Skip to content

Commit

Permalink
Separate JS assets to logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 27, 2015
1 parent 6bbe490 commit 5477a63
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions assets/js/src/__init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ window.Itch = Itch =
return 'mobile' if (w <= 480)
return 'tablet' if (w <= 1024)
'desktop'

# jQuery.smartresize
`!function(n,r){var t;t=function(n,r,t){var i;return i=void 0,function(){var e,u,a;a=this,e=arguments,u=function(){t||n.apply(a,e),i=null},i?clearTimeout(i):t&&n.apply(a,e),i=setTimeout(u,r||100)}},jQuery.fn[r]=function(n){return n?this.bind("resize",t(n)):this.trigger(r)}}(jQuery,"smartresize");`
File renamed without changes.
1 change: 1 addition & 0 deletions assets/js/src/jquery.smartresize.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<div class="clearfix"></div>
</footer>
{{ghost_foot}}
<script type="text/javascript" src="{{asset "js/application.js"}}"></script>
<script type="text/javascript" src="{{asset "js/itch.js"}}"></script>
{{! Twitter buttons }}
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
Expand Down
4 changes: 3 additions & 1 deletion gulpfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ src =
js :
main : [ 'assets/js/src/__init.coffee'
'assets/js/src/main.coffee' ]
vendor : ['assets/js/src/prism.js'
vendor : ['assets/js/src/application.js'
'assets/js/src/jquery.smartresize.js'
'assets/js/src/prism.js'
'assets/vendor/fitvids/jquery.fitvids.js'
'assets/vendor/fastclick/lib/fastclick.js']
css :
Expand Down

0 comments on commit 5477a63

Please sign in to comment.