Skip to content

Commit

Permalink
- Update JS scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
oneeyedman committed Feb 28, 2017
1 parent 3ac4612 commit c46fbf3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
17 changes: 17 additions & 0 deletions _source/js/_sn.snitch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* SN.snitch
* Show browser window real width, FYI.
*
*/

SN.snitch = {
init: function(responsiveDebug){

// > Responsive snitch
if ( responsiveDebug ) {
SN.cache.$body.width_snitch({
style:{}
})
}
}
};
13 changes: 1 addition & 12 deletions _source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,11 @@ SN.init = function() {
SN.cache.init();
SN.externalLinks.init();
SN.cookies.init();
SN.snitch.init(true);
}

$(function() {

SN.init();

var responsiveDebug = true;





// > Responsive snitch
if ( responsiveDebug ) {
SN.cache.$body.width_snitch({
style:{}
})
}
});
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"_source/js/_sn.cache.js",
"_source/js/_sn.cookies.js",
"_source/js/_sn.externallinks.js",
"_source/js/_sn.snitch.js",
"_source/js/main.js"
],
"dest": "public/assets/js/"
Expand Down

0 comments on commit c46fbf3

Please sign in to comment.