mirror of
https://github.com/arsenetar/arsenetar.github.io.git
synced 2026-02-24 11:01:39 +00:00
Update site to test pelican-red
This commit is contained in:
52
theme/js/app.js
Normal file
52
theme/js/app.js
Normal file
@@ -0,0 +1,52 @@
|
||||
// Javascript loaded via modernizr.load (aka yepnopejs )
|
||||
|
||||
// Find the baseURL
|
||||
var baseURL = '';
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for( var i = 0, l = scripts.length; i < l; i++ ){
|
||||
if(scripts[i].src.indexOf('modernizr') >= 0)
|
||||
baseURL = scripts[i].getAttribute('data');
|
||||
}
|
||||
|
||||
yepnope.errorTimeout = 3000; // set 3 second error timeout instead of 10
|
||||
|
||||
function ready(){
|
||||
// Hack to fix .codehilitetable overflow
|
||||
$('.codehilitetable').wrap('<div class="codehilitewrapper">');
|
||||
};
|
||||
|
||||
// zeptojs or jquery
|
||||
Modernizr.load([{
|
||||
test: '__proto__' in {},
|
||||
yep: 'http://cdn.jsdelivr.net/foundation/4.3.1/js/vendor/zepto.js',
|
||||
nope: 'http://cdn.jsdelivr.net/jquery/1.10.2/jquery-1.10.2.min.js',
|
||||
complete: function() {
|
||||
if( !window.jQuery && !window.Zepto )
|
||||
Modernizr.load([{
|
||||
test: '__proto__' in {},
|
||||
yep: baseURL+'zepto.min.js',
|
||||
nope: baseURL+'jquery.min.js',
|
||||
}])
|
||||
}
|
||||
},
|
||||
|
||||
// Foundation
|
||||
{
|
||||
load: 'http://cdn.jsdelivr.net/foundation/4.3.1/js/foundation.min.js',
|
||||
complete: function(){
|
||||
if(!window.Foundation)
|
||||
Modernizr.load([{
|
||||
load: baseURL+'foundation.min.js',
|
||||
complete: function() {
|
||||
$(document).foundation()
|
||||
ready()
|
||||
},
|
||||
}]);
|
||||
else {
|
||||
$(document).foundation()
|
||||
ready()
|
||||
}
|
||||
}
|
||||
},
|
||||
]);
|
||||
|
||||
4
theme/js/vendor/custom.modernizr.js
vendored
Normal file
4
theme/js/vendor/custom.modernizr.js
vendored
Normal file
File diff suppressed because one or more lines are too long
15
theme/js/vendor/foundation.min.js
vendored
Normal file
15
theme/js/vendor/foundation.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
theme/js/vendor/jquery.min.js
vendored
Normal file
6
theme/js/vendor/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
2
theme/js/vendor/zepto.min.js
vendored
Normal file
2
theme/js/vendor/zepto.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user