gibney.org
:
Technology
:
Javascript
:
Coding Javascript on gibney.org
(Entry Nr. 402, by user 1 |
edit
)
gibney.org provides some functions to easily write javascript software. <br> <br><b>Views</b>: gibney.org can be viewed in differnt views. Each view shows the same content, but is optimized for certain purposes: <br> <br><div class=div_content_info><b>code.gibney.org</b>: this version of gibney.org is optimized for coding. For example, in the standard view the source of the editor bookmarklet looks like crap: <a href="http://en.gibney.org/editor/">en.gibney.org/editor/</a> but in code view it looks nice: <a href="http://code.gibney.org/editor/">code.gibney.org/editor/</a>. code.gibney.org also has a very nice edit mode and some other coding-friendly functions.</div> <br> <br><div class=div_content_info><b>javascript.gibney.org</b>: this version of gibney.org puts out the raw code. For example the editor is here: js.gibney.org/editor.js. Code from js.gibney.org can be included in websites for example.</div> <br> <br><div class=div_content_info><b>js.gibney.org</b>: like javascript.gibney.org but always prefixes the code with the ge_require_once function which can be used to include more javascript code. <br>So you can do stuff like this everywhere in your code: <br><div class=div_content_code>ge_require_once("http://javascript.gibney.org/message_box.js");</div> <br>It will work. You dont have to include the ge_require_once function manually. When you include javascript from a website, do it from js.gibney.org, so the ge_require_once function is available: <br><div class=div_content_code><script src="http://js.gibney.org/overflow_scroller.js"></script></div> <br></div> <br> <br><div class=div_content_info><b>raw.gibney.org</b>: this version of gibney.org puts out the raw content. Some example usages:<ul><li>You create an html file on gibney.org and want to look at it without the gibney.org design around it. Just look at it at raw.gibney.org/yourthing/</li><li>You want to have a css file on gibney.org - just create an entry "example.css" and you can use it like this in a website: <link rel="stylesheet" href="http://raw.gibney.org/example.css"></li></ul></div>
example.css
The example css file mentioned above
Create a new entry at this position