Files
wordpress-preseed/wp-content/themes/piratenkleider/js/dynamic-sidebar.min.js
2019-10-25 23:14:31 +02:00

1 line
855 B
JavaScript

jQuery(document).ready(function(d){var e={width:"100%"};var b={width:"0"};var a={width:"67%"};var f={width:"33%"};d.SetOnSwitch=function(){d(".content-primary").prepend($htmlOnSwitch)};d.SetOffSwitch=function(){d(".content-primary").prepend($htmlOffSwitch)};d.OnClickOnSwitchOff=function(){d(".switchoff a").click(function(g){d(".switchon").toggle();d(".switchoff").toggle();d(".content-aside .skin").toggle();d(".content-primary").css(e);d(".content-aside").css(b);g.preventDefault()})};d.OnClickOnSwitchOn=function(){d(".switchon a").click(function(g){d(".switchon").toggle();d(".switchoff").toggle();d(".content-aside .skin").toggle();d(".content-primary").css(a);d(".content-aside").css(f);g.preventDefault()})};var c=d(window).width();if(c>600){d.SetOnSwitch();d.SetOffSwitch();d(".switchon").toggle();d.OnClickOnSwitchOff();d.OnClickOnSwitchOn()}});