"use strict";$(function(){var n,o,s=window.tools||[0,1,2],e=$("#ss_toggle"),t=$("#share-menu");0<=s.indexOf(0)&&($("ul.fixed-tool li.share-li").show(),$("#ss_toggle").on("click",function(){$(".qrcontain").is(":hidden")||($(".qrcontain").hide(),$("#qrBtn").removeClass("opened")),(n=parseInt($(this).data("rot"))-180)/180%2==0?(t.css("transform","rotate("+n+"deg)"),t.css("webkitTransform","rotate("+n+"deg)"),e.parent().addClass("ss_active"),e.addClass("close")):(t.css("transform","rotate("+parseInt(n-30)+"deg)"),t.css("webkitTransform","rotate("+parseInt(n-30)+"deg)"),e.parent().removeClass("ss_active"),e.removeClass("close")),$(this).data("rot",n)}),t.on("transitionend webkitTransitionEnd oTransitionEnd",function(){n/180%2==0?$("#share-menu i.fab").addClass("bounce"):$("#share-menu i.fab").removeClass("bounce")})),0<=s.indexOf(1)&&($("ul.fixed-tool li.qr-li").show(),$("#qrBtn").on("click",function(){$("#ss_toggle").hasClass("close")&&($("#share-menu").css("transition","none"),$("#ss_toggle").click()),$(".qrcontain").is(":hidden")?($(".qrcontain").removeClass("fadeOutLeft").addClass("fadeInLeft"),$(".qrcontain").show(),$("#qrBtn").addClass("opened")):($(".qrcontain").removeClass("fadeInLeft").addClass("fadeOutLeft"),$(".qrcontain").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(".qrcontain").hide()}),$("#qrBtn").removeClass("opened")),$("#share-menu").css("transition","all 1s ease 0s")}),(o=document.createElement("img")).src=logoPath,o.onload=function(){$("#qrcode").qrcode({text:window.location.href,size:"100",ecLevel:"H",minVersion:4,mode:4,image:o,mSize:.3})}),0<=s.indexOf(2)&&($("ul.fixed-tool li.top-li").show(),$(window).scroll(function(){0<$(window).scrollTop()?($("#scrollTop").show(),$(".qrcontain").css("top","-57px"),$(".qrcontain .arrow").css("top","52%")):($("#scrollTop").hide(),$(".qrcontain").css("top","-107px"),$(".qrcontain .arrow").css("top","86%"))}),$("#scrollTop a").on("click",function(){$("html,body").animate({scrollTop:0},800)}))});