Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pad [2024/04/19 13:29] – [Animations / Classes] melonpad [2024/11/17 15:05] (current) – [File Types] melon
Line 46: Line 46:
 MoMG Picture frames can also be used by default, just wrap your image in a frame div/span like so: MoMG Picture frames can also be used by default, just wrap your image in a frame div/span like so:
   <div class="picture-frame-1"><img src="https://momg.neocities.org/gifs/i-41399.gif" /></div>   <div class="picture-frame-1"><img src="https://momg.neocities.org/gifs/i-41399.gif" /></div>
-.picture-frame-1 picture-frame-5 are supported and will offer different sizes and colors of frame.+**.picture-frame-1** to **.picture-frame-5** are supported and will offer different sizes and colors of frame.
 ===== Fonts ===== ===== Fonts =====
 All forum fonts are supported by default on every page All forum fonts are supported by default on every page
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 "hello.css" it will be processed as a css file instead of a webpage - this allows you to host community styles and scripts.
 +
 +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 **?api=X&target=Y** on all everyone site pages.
 +
 +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:
 +<code>
 +https://everyone.melonland.net/?api=texts&target=li a
 +# This will return all the text within links on the homepage.
 +
 +https://everyone.melonland.net/links?api=links&target=.links
 +# 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://everyone.melonland.net/danceparty?api=images
 +# This will return the urls of every image in the dance party!
 +</code>
 +