tuned-city
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

index.js
application/javascript

Download raw (450 bytes)

/*
 * index.js
 */

$(document).ready(function(){
    'strict';
    
    window.app = new tc.App;
    
    app.on('ready', function(){
        window.router = new tc.Router;
        window.Backbone.history.start({pushState: false});
    });
    
    $('body').on('click', '.route', function(evt){
        var that = $(this);
        that.addClass('visited');
        window.router.navigate(that.attr('data-route'));
    });
    
    app.start();
});