JSFiddle

  • Run Pace Calculator #7 is the latest revision

    adopted from dailymile interface

    function calculatePace(dist, hrs, mins, secs) {
        //console.log(dist, hrs, mins, secs);
        dist = parseFloat(dist), hrs = parseFloat(hrs), mins = parseFloat ...
  • Wussten Sie schon…?

    We <3 MAD

    function randomBetween(min, max) {
        return min + Math.floor(Math.random() * (max-min+1));
    }
    
    function pickRandom() {
        var wisdom = "";
        var random = randomBetween(0 ...
  • JS Hangman Game #45 is the latest revision

    (internet explorer)

    function $(id) { return document.getElementById(id) };
    
    var word = "internet explorer";
    //var splitword = word.split("");
    var maskedword = word.replace(/./g, function ...
  • Mouse enter/leave vs. over/out

    Mouse events

    var container1 = document.getElementById("container"),
        container2 = document.getElementById("container2"),
        inner1 = document.getElementById("inner"),
        inner2 = document.getElementById("inner2")
        log = document.getElementById ...
  • Adventskalender Sketch

    jQuery 1.4.4, HTML, CSS, JavaScript

    function checkDate() {
        var date = new Date();
        var day = date.getDate();
        return day;
    }
    
    function createCalendar() {
        var daysInDecember = new Date(2010, 12 ...
  • Pong on HTML5 Canvas #22 is the latest revision

    jQuery 1.4.3, HTML, CSS, JavaScript

    var x = 120;
    var y = 100;
    var dx = 2;
    var dy = 8;
    var ctx;
    var width;
    var height;
    var paddlex ...
  • 1
  • 2