Difference between revisions of "Template:Team:Potsdam/AssetsJSMain"

 
Line 1: Line 1:
<html><head><script>
+
<html>
/*
+
<head>
Escape Velocity by HTML5 UP
+
<script>
html5up.net | @ajlkn
+
var javascriptCode = '/*Escape Velocity by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)*/ !function(a){skel.breakpoints({desktop:"(min-width: 737px)",tablet:"(min-width: 737px) and (max-width: 1200px)",mobile:"(max-width: 736px)"}).viewport({breakpoints:{tablet:{width:1080}}}),a(function(){var b=a(window),c=a("body");c.addClass("is-loading"),b.on("load",function(){c.removeClass("is-loading")}),a("form").placeholder(),skel.vars.IEVersion<9¤¤a(":last-child").addClass("last-child"),skel.on("+mobile -mobile",function(){a.prioritize(".important\\\\28 mobile\\\\29",skel.breakpoint("mobile").active)}),a("#nav > ul").dropotron({mode:"fade",noOpenerFade:!0,alignment:"center",detach:!1}),a(¡<div id="titleBar"><a href="#navPanel" class="toggle"></a><span class="title">¡+a("#logo").html()+"</span></div>").appendTo(c),a(¡<div id="navPanel"><nav>¡+a("#nav").navList()+"</nav></div>").appendTo(c).panel({delay:500,hideOnClick:!0,hideOnSwipe:!0,resetScroll:!0,resetForms:!0,side:"left",target:c,visibleClass:"navPanel-visible"}),"wp"==skel.vars.os¤¤skel.vars.osVersion<10¤¤a("#titleBar, #navPanel, #page-wrapper").css("transition","none")})}(jQuery);';
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+
*/
+
javascriptCode = javascriptCode.replace(new RegExp('¤', 'g'), String.fromCharCode(38)).replace(new RegExp('¡', 'g'), "'");
  
(function($) {
+
eval(javascriptCode);
 
+
skel.breakpoints({
+
desktop: '(min-width: 737px)',
+
tablet: '(min-width: 737px) and (max-width: 1200px)',
+
mobile: '(max-width: 736px)'
+
})
+
.viewport({
+
breakpoints: {
+
tablet: {
+
width: 1080
+
}
+
}
+
});
+
 
+
$(function() {
+
 
+
var $window = $(window),
+
$body = $('body');
+
 
+
// Disable animations/transitions until the page has loaded.
+
$body.addClass('is-loading');
+
 
+
$window.on('load', function() {
+
$body.removeClass('is-loading');
+
});
+
 
+
// Fix: Placeholder polyfill.
+
$('form').placeholder();
+
 
+
// CSS polyfills (IE<9).
+
if (skel.vars.IEVersion < 9)
+
$(':last-child').addClass('last-child');
+
 
+
// Prioritize "important" elements on mobile.
+
skel.on('+mobile -mobile', function() {
+
$.prioritize(
+
'.important\\28 mobile\\29',
+
skel.breakpoint('mobile').active
+
);
+
});
+
 
+
// Dropdowns.
+
$('#nav > ul').dropotron({
+
mode: 'fade',
+
noOpenerFade: true,
+
alignment: 'center',
+
detach: false
+
});
+
 
+
// Off-Canvas Navigation.
+
 
+
// Title Bar.
+
$(
+
'<div id="titleBar">' +
+
'<a href="#navPanel" class="toggle"></a>' +
+
'<span class="title">' + $('#logo').html() + '</span>' +
+
'</div>'
+
)
+
.appendTo($body);
+
 
+
// Navigation Panel.
+
$(
+
'<div id="navPanel">' +
+
'<nav>' +
+
$('#nav').navList() +
+
'</nav>' +
+
'</div>'
+
)
+
.appendTo($body)
+
.panel({
+
delay: 500,
+
hideOnClick: true,
+
hideOnSwipe: true,
+
resetScroll: true,
+
resetForms: true,
+
side: 'left',
+
target: $body,
+
visibleClass: 'navPanel-visible'
+
});
+
 
+
// Fix: Remove navPanel transitions on WP<10 (poor/buggy performance).
+
if (skel.vars.os == 'wp' )
+
if( skel.vars.osVersion < 10)
+
$('#titleBar, #navPanel, #page-wrapper')
+
.css('transition', 'none');
+
 
+
});
+
 
+
})(jQuery);
+
 
</script>
 
</script>
</head></html>
+
</head>
 +
</html>

Latest revision as of 15:12, 20 May 2017