Cory's public fiddles
-
7qpnJ
Mootools 1.4.5, HTML, CSS, JavaScript
-
FvxeD
No-Library (pure JS), HTML, CSS, JavaScript
-
d6MVn
Mootools 1.4.5, HTML, CSS, JavaScript
-
6WrZP
jQuery 1.7.2, HTML, CSS, JavaScript
-
loopin through divs adding event handlers
No-Library (pure JS), HTML, CSS, JavaScript
-
aH8qX
Mootools 1.4.5, HTML, CSS, JavaScript
-
GgZVU
jQuery 1.7.2, HTML, CSS, JavaScript
-
-
stackoverflow solution
http://stackoverflow.com/questions/10178793/support-for-cancelling-dhtml-dialog-box-with-escape
-
playin w/ negative spread values on box-shadow
the top shadow.
-
javascript long division
no decimal point, but w/e. calculates pi by default using the most precise fraction (it repeats after 112 places ;_;)
-
loop test for phones
had to remove some array.prototype stuff to make it work.. also took out the console.log stuff It's a setInterval loop that saves the start/end time and calculates the number of times the loop was able to run within a second. The higher the iMax (200, default.. was pretty accurate) value, the more accurate. iMax represent the number of total times that setInterval will run before calculating the end time time. The whole thing runs r number of times. (3, default) Basically a game loop. All the loop does is check to see if it's the first iteration, increase i by 1, and check to see if i is equal to the max i value (iMax). If it's the first iteration of the loop it will record the starting time, if it's the last iteration, it will record the end time then find the difference between the 2 in milliseconds. What gets reported are 3 numbers which represent the number of loops per second that show how many times setInterval was able to run per second.
-
loop test
doesn't work on phones because of array.prototype stuff It's a setInterval loop that saves the start/end time and calculates the number of times the loop was able to run within a second. The higher the iMax (200, default.. was pretty accurate) value, the more accurate. iMax represent the number of total times that setInterval will run before calculating the end time time. The whole thing runs r number of times. (3, default) Basically a game loop. All the loop does is check to see if it's the first iteration, increase i by 1, and check to see if i is equal to the max i value (iMax). If it's the first iteration of the loop it will record the starting time, if it's the last iteration, it will record the end time then find the difference between the 2 in milliseconds. What gets reported are 3 numbers which represent the number of loops per second that show how many times setInterval was able to run per second.
-
.forEach() and forEach() from scratch
Made 2 functions which perform a for loop on a node list and perform a callback function to each item of the list. NodeList.forEach(callback); forEach(NodeList, callback);
-
a fantastic way
to ruin any website :D
-
AAga4
Mootools 1.4.5, HTML, CSS, JavaScript
-
playing around with mouse events: chrome
tracking mouse movement and whatnot. cute.
-
js callback demo
playin around with the javascripts
-
ZFQhY
Mootools 1.4.5, HTML, CSS, JavaScript
-
jq/js/css all handling all resize
derp a lerp double derp herpty derp