This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| require('load-grunt-tasks')(grunt); | |
| // Project configuration. | |
| grunt.initConfig({ | |
| open : { | |
| server : { | |
| path: 'http://localhost:5000' | |
| } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="notify"> | |
| <p></p> | |
| <a class="close" href="#">x</a> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| &::-webkit-scrollbar { | |
| width: 12px; | |
| } | |
| &::-webkit-scrollbar-thumb { | |
| background-color: #CCC; | |
| border-radius: 5px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="tabs cf"> | |
| <a class="tab active" data-type="tab1">tab1</a> | |
| <a class="tab" data-type="tab2">tab2</a> | |
| <a class="tab" data-type="tab3">tab3</a> | |
| </div> | |
| <div class="tab-panes"> | |
| <div class="tab-pane active" data-type="tab1"> | |
| tab1 info | |
| </div> | |
| <div class="tab-pane" data-type="tab2"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(window).on('keyup', function(e) { | |
| switch(e.keyCode) { | |
| // space | |
| case 32: | |
| break; | |
| // enter | |
| case 13: | |
| break; | |
| // up arrow | |
| case 38: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @appular hbs v0.0.1 - include file as text and convert it to a handlebars template | |
| * @define hbs! | |
| */ | |
| // hbtemplate.js plugin for requirejs / text.js | |
| // it loads and compiles Handlebars templates | |
| define([ | |
| 'handlebars' | |
| ], function (Handlebars) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define([], function () { | |
| var CookieManager = function() {}; | |
| CookieManager.prototype.createCookie = function(name, value, days) { | |
| if (days) { | |
| var date = new Date(); | |
| date.setTime(date.getTime()+(days*24*60*60*1000)); | |
| var expires = "; expires="+date.toGMTString(); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var expandEntityResult = function(data, map) { | |
| var replacer = function(match, p1, offset, value) { | |
| return map[p1]; | |
| }; | |
| var replace = function(value) { | |
| var keys = Object.keys(map).join('|'); | |
| var regexp = new RegExp('^(' + keys + ')\:'); | |
| return value.replace(regexp, replacer); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function (global, factory) { | |
| if (typeof define === "function" && define.amd) { | |
| define(['exports'], factory); | |
| } else if (typeof exports !== "undefined") { | |
| factory(exports); | |
| } else { | |
| var mod = { | |
| exports: {} | |
| }; | |
| factory(mod.exports); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _.extend(Backbone.View.prototype, { | |
| // Set a hash of module options on the object, firing `"change"`. | |
| set: function(key, value, options) { | |
| var attribute, | |
| attributes, | |
| changes, | |
| silent, | |
| changing, | |
| previous, | |
| current; |
OlderNewer