This file contains 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
App.Features = { | |
init: function() { | |
var features = $('[data-features]'), | |
featuresArray = [], | |
$this = this; | |
if (!features.length) return false; | |
for (var i = 0, n = features.length; i < n; i++) { | |
var $element = $(features[i]), | |
func = $element.data('features'); | |
featuresArray = func.split(' '); |
This file contains 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
App.Features.customFeature = (function(feature){ | |
var els = {}; | |
setEls = function(element) { | |
/* Cache any selectors that are needed */ | |
/* els.element = $('.element') if using jQuery*/ | |
}; | |
method = function() { | |
/* Method/function to make magic happen. Add as many of this as need |
This file contains 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.App = { | |
Classes: {}, | |
Controllers: {}, | |
Constants: {}, | |
Devices: {}, | |
Features: {}, | |
Functions: {}, | |
Helpers: {}, | |
Models: {}, | |
Views: {} |
This file contains 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
_.templateSettings = { | |
interpolate: /\{\{\=(.+?)\}\}/gim, | |
evaluate: /\{\{([\s\S]+?)\}\}/gim, | |
escape: /\{\{\-(.+?)\}\}/gim | |
}; |
This file contains 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
{ | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"draw_white_space": "all", | |
"find_selected_text": true, | |
"fold_buttons": false, | |
"folder_exclude_patterns": | |
[ | |
".svn", |
This file contains 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
App.Helpers.AssetsLoader = function() { | |
window.Modernizr.load([ | |
]); | |
}; |
This file contains 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> | |
<h1> | |
Testing display of HTML elements | |
</h1> | |
<h2> | |
This is 2nd level heading | |
</h2> | |
<p> | |
This is a test paragraph. | |
</p> |
This file contains 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
//Element Variables - Use quotes and comma separted values | |
$heading-tags: 'h1, h2, h3, h4, h5, h6' | |
// Usage | |
#{$heading-tags} | |
color: #ff0 |
This file contains 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
if ( location.hostname.indexOf('localhost') !== -1 ) { | |
App.debug = true; | |
var head = document.getElementsByTagName('head')[0]; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = 'http://localhost:35729/livereload.js'; | |
head.appendChild(script); | |
} | |
This file contains 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
@mixin image-replace($width, $height) | |
border: 0 | |
font: 0/0 a | |
text-shadow: none | |
color: transparent | |
width: $width | |
height: $height |
OlderNewer