Replace Google-hosted scripts with cdnjs equivalents

This commit is contained in:
Leon Feng
2015-09-19 08:55:04 +08:00
parent 5d3b3c0b51
commit a682009025
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js")
script.
window.jQuery || document.write('<script src="/bower_components/jquery/dist/jquery.min.js"><\/script>');
script(src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.11/angular.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.11/angular.js")
script.
if (typeof window.angular === 'undefined') {
document.write('<script src="/bower_components/angular/angular.min.js"><\/script>');

View File

@ -1,4 +1,4 @@
script(src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js")
script(src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js")
link(rel='stylesheet', href='/bower_components/font-awesome/css/font-awesome.min.css')
link(rel='stylesheet', href=rev('/css', 'main.css'))