1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- // This is a manifest file that'll be compiled into including all the files listed below.
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
- // be included in the compiled file accessible from http://example.com/assets/application.js
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
- // the compiled file.
- //
- //= require ./app/lib/core/jquery-2.1.1.js
- //= require ./app/lib/core/jquery-ui-1.8.23.custom.min.js
- //= require ./app/lib/core/underscore-1.7.0.js
- //= require ./app/lib/animations/velocity.min.js
- //= require ./app/lib/animations/velocity.ui.js
- //= require ./app/lib/animations/skrollr.js
- //not_used= require_tree ./app/lib/spine
- //= require ./app/lib/spine/spine.coffee
- //= require ./app/lib/spine/ajax.coffee
- //= require ./app/lib/spine/local.coffee
- //= require ./app/lib/spine/route.coffee
- //= require ./app/lib/flot/jquery.flot.js
- //= require ./app/lib/flot/jquery.flot.selection.js
- //not_used= require_tree ./app/lib/bootstrap
- //= require ./app/lib/bootstrap/dropdown.js
- //= require ./app/lib/bootstrap/tooltip.js
- //= require ./app/lib/bootstrap/popover.js
- //= require ./app/lib/bootstrap/modal.js
- //= require ./app/lib/bootstrap/tab.js
- //= require ./app/lib/bootstrap/transition.js
- //= require ./app/lib/bootstrap/button.js
- //= require ./app/lib/bootstrap/collapse.js
- //= require_tree ./app/lib/base
- //= require ./app/index.js.coffee
- // IE8 workaround for missing console.log
- if (!window.console) {
- window.console = {}
- }
- if (!console.log) {
- console.log = function(){}
- }
- function escapeRegExp(str) {
- return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
- }
- Date.prototype.getWeek = function() {
- var onejan = new Date(this.getFullYear(),0,1);
- return Math.ceil((((this - onejan) / 86400000) + onejan.getDay()+1)/7);
- }
- function difference(object1, object2) {
- var changes = {};
- for ( var name in object1 ) {
- if ( name in object2 ) {
- if ( _.isObject( object2[name] ) && !_.isArray( object2[name] ) ) {
- var diff = difference( object1[name], object2[name] );
- if ( !_.isEmpty( diff ) ) {
- changes[name] = diff;
- }
- } else if ( !_.isEqual( object1[name], object2[name] ) ) {
- changes[name] = object2[name];
- }
- }
- }
- return changes;
- }
- function clone(object) {
- if (!object) {
- return object
- }
- return JSON.parse(JSON.stringify(object));
- }
- function HTMLEscape(string) {
- return ( '' + string )
- .replace(/&/g, '&')
- .replace(/</g, '<')
- .replace(/>/g, '>')
- .replace(/"/g, '"')
- .replace(/'/g, ''')
- }
- jQuery.event.special.remove = {
- remove: function(e) {
- if (e.handler) e.handler();
- }
- };
- // start application
- jQuery(function(){
- new App.Run();
- });
|