Javascript Code Snippets

Mar 13, 2013
A class to convert km/h to mph and knots and vice-versa. It can also parse speeds in a text and return the text with corrected and converted speeds. See the live demo at http://ultralight-airplanes.info/yspeed.html..
1 comment(s)  ·   ·  Javascript Snippet
Feb 23, 2013
This is a mIRC mode for use with {} CodeMirror http://codemirror.net/ Adds syntax highlighting for mSL code. Screenshot:
3 comment(s)  ·   ·  Javascript Snippet
Feb 23, 2013
This is a tcl mode for use with {} CodeMirror http://codemirror.net/ Adds syntax highlighting for tcl code. This code is an edit Velocity mode by Steve O'Hara Screenshot:
1 comment(s)  ·   ·  Javascript Snippet
Nov 27, 2012
This is a javascript class that converts the HTML 5 Canvas element into interactive drawing board with tools etc. The code below contains the full class, but I recommend downloading the..
8 comment(s)  ·   ·  Javascript Snippet
Nov 12, 2012
After looking through coffeescript's code base, I found a method to build objects from other objects. With a bit of tinkering with the methodology of it, I finally got something that not..
7 comment(s)  ·   ·  Javascript Snippet
Oct 08, 2012
This is rather simple stuff yet I see it so rarely used. In any dating sites, health calculators, DIY stuff calculators etc they ask you to enter weight and height of something (or your..
7 comment(s)  ·   ·  Javascript Snippet
Jun 27, 2012
You will need to get an account (http://grabz.it/register.aspx) at GrabzIt once you have this you need to add your authorized domain (http://grabz.it/account/domains.aspx) this stops people..
May 29, 2012
submitted some time ago.
2 comment(s)  ·   ·  Javascript Snippet
May 03, 2012
Thought it would be a neat exercise to recreate the mIRC
1 comment(s)  ·   ·  Javascript Snippet
Mar 28, 2011
Doesnt look brilliant at the moment but im off to bed at the moment, I may make a few changes. It seems to start off weirdly in chunks then they move apart more freely and it works nicely...
15 comment(s)  ·   ·  Javascript Snippet
Mar 25, 2011
I coded this as a small learning exercise for myself, not attempting to make any shortening to the code since Im still fairly new to javascript. I know alot of places I could of optimised..
11 comment(s)  ·   ·  Javascript Snippet
Jan 26, 2011
Simple little code, prevents guests from copying and pasting.
Dec 16, 2010
basic JQuery tooltip plugin example: its not as diverse as other tooltips but it serves the same purpose as most and is only 1kb when compiled
1 comment(s)  ·   ·  Javascript Snippet
Apr 04, 2010
This is a simple little image viewer i wrote for javascript enabled browsers. I prefer to do everything out of my browser so I wrote this up. I figure, I could share it with you. It actually..
Mar 11, 2010
A much nicer version of my dropdown script, styled version can be seen at http://left4quake.com/maupin for a limited period of time as it is an assignment. minimum css: it is crucial..
Mar 07, 2010
^^code from Mozilla Development Center
Mar 07, 2010
Generates insults, html is as follows:
Mar 05, 2010
A much nicer version of my dropdown script, styled version can be seen at http://left4quake.com/maupin for a limited period of time as it is an assignment. minimum css: it is crucial..
4 comment(s)  ·   ·  Javascript Snippet
Feb 26, 2010
live demo is currently at http://left4quake.com/pong.html this was made just for the hell of it, page setup is as follows: /////////////////////////////////////////////////////////////////////////////// <script..
13 comment(s)  ·   ·  Javascript Snippet
Dec 27, 2009
First of all. This is JAVASCRIPT, this will not work on Wordpress! So, users can input search parameters (EG. Script Codes) then it would redirect the current page to google then search..
Nov 11, 2009

4 comment(s)  ·   ·  Javascript Snippet
Nov 11, 2009
Just a simple script which uses maths to detect whether or not a year is a leap year or not. If the year inputted
2 comment(s)  ·   ·  Javascript Snippet
Nov 05, 2009
put this where you put html replace 'background' with the background color of your site, replace 'link' with the link you want it to go to, replace 'cmts' with the color you want the text..
Oct 02, 2009
Weasel's first javascript! on your website it pops up an alert with a response depending on the time! put it where you'd put html/javascript!
  1. 1
  2. 2
  3. Next
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.