Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pad [2024/04/19 13:30] – [Animations / Classes] melon | pad [2024/11/17 15:05] (current) – [File Types] melon | ||
---|---|---|---|
Line 63: | Line 63: | ||
* Comic Sans MS | * Comic Sans MS | ||
* MS PGothic Okato | * MS PGothic Okato | ||
+ | |||
+ | ===== File Types ===== | ||
+ | The Everyone Site supports some pages with file types e.g. if you title your page " | ||
+ | |||
+ | The supported file types are: | ||
+ | * .css - Processed as a CSS Style sheet | ||
+ | * .js - Processed as a JavaScript file | ||
+ | * .txt - Processed as a plain text file | ||
+ | * .xml - Processed as a plaintext XML file | ||
+ | * .x3d - Processed as a plaintext X3D file | ||
+ | * .json - Processed as a plaintext JSON file | ||
+ | * .jpg - Processed as a JPEG image | ||
+ | * .gif - Processed as a GIF image | ||
+ | * .png - Processed as a PNG image | ||
+ | |||
+ | ===== API ===== | ||
+ | You can call **? | ||
+ | |||
+ | Currently it supports 3 API calls: (Everything returns JSON data) | ||
+ | * texts - returns an array of text on the page | ||
+ | * links - returns an array of all text and urls of links | ||
+ | * images - returns an array of all image urls on the page | ||
+ | |||
+ | You can use the target= request to limit the api to part of a page using a CSS selector - for example: | ||
+ | < | ||
+ | https:// | ||
+ | # This will return all the text within links on the homepage. | ||
+ | |||
+ | https:// | ||
+ | # This will return all the links and urls in the community links list (useful if you want to embed them in your own site) | ||
+ | |||
+ | https:// | ||
+ | # This will return the urls of every image in the dance party! | ||
+ | </ | ||
+ | |||