JSFiddle

  • jQM Draw on Google Map #1 is the latest revision

    jQuery 1.9.1, HTML, CSS, JavaScript, jQuery Mobile 1.3.0b1

    var map;
    var elevator;
    var myOptions = {
        zoom: 6,
        center: new google.maps.LatLng(36.231719,-113.030911),
        mapTypeId: google.maps ...
  • Ballpark Book LOE

    No-Library (pure JS), HTML, CSS, JavaScript

    angular.module('Author', []).controller('LOE', ['$scope', function ($scope) {
        'use strict';
    
        var PAGES_PER_CHAPTER = 25,
            WHOLESALE_DISCOUNT = 0.52;
    
        // assume starting today
        $scope ...
  • Declarative #2 is the latest revision

    AngularJS 1.1.1, HTML, CSS, JavaScript

    <div ng-app>
        <input type="text" ng-model="name" />
        <h2>Hello <span ng-bind="name"></span></h2>
    </div>
  • Progressive Enhancement KnockoutJS Paging

    Knockout.js 3.0.0, HTML, CSS, JavaScript

    //Custom binding to load the values into the view model
    ko.bindingHandlers.PE = {
        init: function(element, valueAccessor, allBindings) {
            var bindings ...
  • Progressive Enhancement KnockoutJS Infinite Scroll #19 is the latest revision

    Knockout.js 3.0.0, HTML, CSS, JavaScript

    //Custom binding to load the values into the view model
    ko.bindingHandlers.PE = {
        init: function(element, valueAccessor, allBindings) {
            var bindings ...
  • KnockoutJS + Infinite Scroll #11 is the latest revision

    jQuery 1.10.1, HTML, CSS, JavaScript

    var viewModel = {
        items: ko.observableArray([]),
        maxId: 0,
        pendingRequest: ko.observable(false)
    };
    
    $(window).scroll(function () {
        if ($(window).scrollTop() + $(window).height() > $(document ...
  • anaglyph test #3 is the latest revision

    jQuery 1.8.3, HTML, CSS, JavaScript

    //initial setup of scene qualities
    var scene = new THREE.Scene();
    var camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight ...
  • Coin sums

    No-Library (pure JS), HTML, CSS, JavaScript

    target  = 200;
    ways = 0;
     
    for (a = target; a >= 0; a -= 200) {
        for (b = a; b >= 0; b -= 100) {
            for (c ...
  • Smallest multiple

    No-Library (pure JS), HTML, CSS, JavaScript

    function allAreEven(n) {
        var i, e;
        e = false;
        for (i = 1; i < 21; i++) {
            e = n % i === 0;
            if (!e ...
  • Largest palindrome product

    No-Library (pure JS), HTML, CSS, JavaScript

    var a = 999,
        b = 999,
        palindromes = [];
    
    function isPalindrome(n) {
        var s = n.toString(),
            l = s.length;
        for (var i = 0 ...