1 $(document).
ready(
function(){
function o(
o,
t,
e){
o?console.log(
"domElement: "+
o):(console.error(
"Unable to setSticky - domElement is null or undefined: "+
o),alert(
"Unable to setSticky - domElement is null or undefined: "+
o)),
t||(console.error(
"Unable to setSticky - stickTo is null or undefined: "+
t),alert(
"Unable to setSticky - stickTo is null or undefined: "+
t)),
e||(
e=0),$(
window).scroll(
function(){
if($(
window).scrollTop()>$(
t).outerHeight()){$(
"#"+
o).addClass(
"fixed-top shadow");var
e=$(
"."+
o).outerHeight();$(
"body").css(
"padding-top",
e+
"px")}
else $(
"#"+
o).removeClass(
"fixed-top"),$(
"body").css(
"padding-top",0)})}$(
"#navbar").addClass(
"animated fadeIn slow"),
o(
"navbar",
"#intro",0),
o(
"MySidebar",
"#intro",100),$(
"#subMenu li").click(
function(
o){
o.preventDefault();var
t=$(
this).find(
"a"),
e=
t.attr(
"href"),
i=
t.attr(
"target");
if(
"#"===
e.charAt(0))
try{$(
"html, body").velocity(
"scroll",{offset:$(
e).offset().top-250,duration:2400,easing:
"easeOutQuart"})}
catch(
l){console.log(
"Info: Velocity.js is not loaded. Please consider loading velocity.js within the template assets if you want the smoothest scroll experience. Error message: ",
l.message),$(
"html, body").animate({scrollTop:$(
e).offset().top-250},2400)}
else i?
window.open(
e,
i):
window.open(
e,
"_self")}),$(
".scrollup").click(
function(){
try{$(
"html, body").velocity(
"scroll",{duration:2400,easing:
"easeOutExpo"})}
catch{console.log(
"Error: Velocity.js is not loaded. Please consider loading velocity.js within the assets if you want the smoothest scroll experience. Error message: ",
error.message),$(
"html, body").animate({scrollTop:0},1200)}}),$(
"#darkMode").click(
function(){var
o=$(
"#darkMode").data(
"id");document.cookie=
"frontendSwitchID="+
o}),$(
"#lightMode").click(
function(){var
o=$(
"#lightMode").data(
"id");document.cookie=
"frontendSwitchID="+
o}),$(
window).scroll(
function(){var
o=$(
window).width(),
t=$(
window).scrollTop();$(
".scrollDownFadeOut").css(
"opacity",1-
t/(
o/3))});var
t=$(
"#scrollingDiv");$(
window).scroll(
function(){
t.stop().animate({marginTop:$(
window).scrollTop()},0)}),$(
".sliding-link").click(
function(
o){
o.preventDefault();var
t=$(
this).attr(
"href");$(
"html,body").animate({scrollTop:$(
t).offset().top-150},
"slow"),
window.location.hash=
t}),$(
function(){$(
'[data-toggle="tooltip"]').tooltip()});let
e={controlColor:
"#FFFFFF",controlShadow:!0,addCircle:!0,addCircleBlur:!0,showLabels:!0,labelOptions:{before:
"Before",after:
"After",onHover:!0},smoothing:!0,smoothingAmount:80,hoverStart:!0,verticalMode:!1,startingPoint:50,fluidMode:!1};$(
".image-compare").each(
function(){
new ImageCompare(
this,
e).mount()})});
document ready(function(){function o(o, t, e){o?console.log("domElement: "+o):(console.error("Unable to setSticky - domElement is null or undefined: "+o), alert("Unable to setSticky - domElement is null or undefined: "+o)), t||(console.error("Unable to setSticky - stickTo is null or undefined: "+t), alert("Unable to setSticky - stickTo is null or undefined: "+t)), e||(e=0),$(window).scroll(function(){if($(window).scrollTop()>$(t).outerHeight()){$("#"+o).addClass("fixed-top shadow");var e=$("."+o).outerHeight();$("body").css("padding-top", e+"px")}else $("#"+o).removeClass("fixed-top"),$("body").css("padding-top", 0)})}$("#navbar").addClass("animated fadeIn slow"), o("navbar","#intro", 0), o("MySidebar","#intro", 100),$("#subMenu li").click(function(o){o.preventDefault();var t=$(this).find("a"), e=t.attr("href"), i=t.attr("target");if("#"===e.charAt(0)) try{$("html, body").velocity("scroll",{offset:$(e).offset().top-250, duration:2400, easing:"easeOutQuart"})}catch(l){console.log("Info: Velocity.js is not loaded. Please consider loading velocity.js within the template assets if you want the smoothest scroll experience. Error message: ", l.message),$("html, body").animate({scrollTop:$(e).offset().top-250}, 2400)}else i?window.open(e, i):window.open(e,"_self")}),$(".scrollup").click(function(){try{$("html, body").velocity("scroll",{duration:2400, easing:"easeOutExpo"})}catch{console.log("Error: Velocity.js is not loaded. Please consider loading velocity.js within the assets if you want the smoothest scroll experience. Error message: ", error.message),$("html, body").animate({scrollTop:0}, 1200)}}),$("#darkMode").click(function(){var o=$("#darkMode").data("id");document.cookie="frontendSwitchID="+o}),$("#lightMode").click(function(){var o=$("#lightMode").data("id");document.cookie="frontendSwitchID="+o}),$(window).scroll(function(){var o=$(window).width(), t=$(window).scrollTop();$(".scrollDownFadeOut").css("opacity", 1-t/(o/3))});var t=$("#scrollingDiv");$(window).scroll(function(){t.stop().animate({marginTop:$(window).scrollTop()}, 0)}),$(".sliding-link").click(function(o){o.preventDefault();var t=$(this).attr("href");$("html,body").animate({scrollTop:$(t).offset().top-150},"slow"), window.location.hash=t}),$(function(){$('[data-toggle="tooltip"]').tooltip()});let e={controlColor:"#FFFFFF", controlShadow:!0, addCircle:!0, addCircleBlur:!0, showLabels:!0, labelOptions:{before:"Before", after:"After", onHover:!0}, smoothing:!0, smoothingAmount:80, hoverStart:!0, verticalMode:!1, startingPoint:50, fluidMode:!1};$(".image-compare").each(function(){new ImageCompare(this, e).mount()})})