-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.min.js
executable file
·1 lines (1 loc) · 8.22 KB
/
scripts.min.js
1
function initMap(){var t={lat:22.5932759,lng:88.27027720000001},e=new google.maps.Map(document.getElementById("map-canvas"),{zoom:15,center:t,scrollwheel:!1});new google.maps.Marker({position:t,map:e})}function initBBSRMap(){var t={lat:20.305826,lng:85.85480189999998},e=new google.maps.Map(document.getElementById("map-canvas"),{zoom:15,center:t,scrollwheel:!1});new google.maps.Marker({position:t,map:e})}function alert_markup(t,e){return'<div class="alert alert-'+t+'" role="alert">'+e+'<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span>×</span></button></div>'}$(document).ready(function(){$(".wp1").waypoint(function(){$(".wp1").addClass("animated fadeInLeft")},{offset:"75%"}),$(".wp2").waypoint(function(){$(".wp2").addClass("animated fadeInRight")},{offset:"75%"}),$(".wp3").waypoint(function(){$(".wp3").addClass("animated fadeInLeft")},{offset:"75%"}),$(".wp4").waypoint(function(){$(".wp4").addClass("animated fadeInRight")},{offset:"75%"}),$(".wp5").waypoint(function(){$(".wp5").addClass("animated fadeInLeft")},{offset:"75%"}),$(".wp6").waypoint(function(){$(".wp6").addClass("animated fadeInRight")},{offset:"75%"}),$(".wp7").waypoint(function(){$(".wp7").addClass("animated fadeInUp")},{offset:"75%"}),$(".wp8").waypoint(function(){$(".wp8").addClass("animated fadeInLeft")},{offset:"75%"}),$(".wp9").waypoint(function(){$(".wp9").addClass("animated fadeInRight")},{offset:"75%"}),$(".flexslider").flexslider({animation:"slide"}),$(".single_image").fancybox({padding:4}),$(".fancybox").fancybox({padding:4,width:1e3,height:800}),$('[data-toggle="tooltip"]').tooltip(),$(".nav-toggle").click(function(){$(this).toggleClass("active"),$(".header-nav").toggleClass("open"),event.preventDefault()}),$(".header-nav li a").click(function(){$(".nav-toggle").toggleClass("active"),$(".header-nav").toggleClass("open")}),$(function(){$(window).scroll(function(){$(window).scrollTop()>=20?($("section.navigation").addClass("fixed"),$("header").css({"border-bottom":"none",padding:"35px 0"}),$("header .member-actions").css({top:"26px"}),$("header .navicon").css({top:"34px"})):($("section.navigation").removeClass("fixed"),$("header").css({"border-bottom":"solid 1px rgba(255, 255, 255, 0.2)",padding:"50px 0"}),$("header .member-actions").css({top:"41px"}),$("header .navicon").css({top:"48px"}))})}),$(function(){$("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname){var t=$(this.hash);if((t=t.length?t:$("[name="+this.hash.slice(1)+"]")).length)return $("html,body").animate({scrollTop:t.offset().top-90},2e3),!1}})});var t=document.getElementsByClassName("share-bar"),e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/platform.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a);for(var n=0;n<t.length;n++){var o='<iframe allowtransparency="true" frameborder="0" scrolling="no"src="https://platform.twitter.com/widgets/tweet_button.html?url='+encodeURIComponent(window.location)+"&text="+encodeURIComponent(document.title)+'&via=ramswarooppatra&hashtags=yaochixuan&count=horizontal"style="width:105px; height:21px;"></iframe><iframe src="//www.facebook.com/plugins/like.php?href='+encodeURIComponent(window.location)+'&width&layout=button_count&action=like&show_faces=false&share=true&height=21&appId=101094500229731&width=150" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:150px; height:21px;" allowTransparency="true"></iframe><div class="g-plusone" data-size="medium"></div>';t[n].innerHTML=o,t[n].style.display="inline-block"}$(".player").YTPlayer(),$("#btn-show-map").click(function(){$("#map-content").toggleClass("toggle-map-content"),$("#btn-show-content").toggleClass("toggle-map-content")}),$("#btn-show-content").click(function(){$("#map-content").toggleClass("toggle-map-content"),$("#btn-show-content").toggleClass("toggle-map-content")});var r=createCalendar({options:{class:"",id:""},data:{title:"Yao Chi Xuan",start:new Date("Jan 1, 2019 10:00"),end:new Date("Dec 31, 2022 00:00"),address:"",description:""}});$("#add-to-cal").html(r),$("#rsvp-form").on("submit",function(t){t.preventDefault();var e=$(this).serialize();$("#alert-wrapper").html(alert_markup("info","<strong>Just a sec!</strong> We are saving your details.")),""!==MD5($("#invite_code").val())&&""!==MD5($("#invite_code").val())?$("#alert-wrapper").html(alert_markup("danger","")):$.post("",e).done(function(t){console.log(t),$("#alert-wrapper").html(""),$("#rsvp-modal").modal("show")}).fail(function(t){console.log(t),$("#alert-wrapper").html(alert_markup("danger","<strong>Sorry!</strong> There is some issue with the server. "))})})});var MD5=function(t){function e(t,e){return t<<e|t>>>32-e}function a(t,e){var a,n,o,r,i;return o=2147483648&t,r=2147483648&e,a=1073741824&t,n=1073741824&e,i=(1073741823&t)+(1073741823&e),a&n?2147483648^i^o^r:a|n?1073741824&i?3221225472^i^o^r:1073741824^i^o^r:i^o^r}function n(t,e,a){return t&e|~t&a}function o(t,e,a){return t&a|e&~a}function r(t,e,a){return t^e^a}function i(t,e,a){return e^(t|~a)}function s(t,o,r,i,s,l,c){return t=a(t,a(a(n(o,r,i),s),c)),a(e(t,l),o)}function l(t,n,r,i,s,l,c){return t=a(t,a(a(o(n,r,i),s),c)),a(e(t,l),n)}function c(t,n,o,i,s,l,c){return t=a(t,a(a(r(n,o,i),s),c)),a(e(t,l),n)}function p(t,n,o,r,s,l,c){return t=a(t,a(a(i(n,o,r),s),c)),a(e(t,l),n)}function d(t){var e,a="",n="";for(e=0;e<=3;e++)a+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return a}var f,m,g,u,h,w,$,v,C,y=Array();for(y=function(t){for(var e,a=t.length,n=a+8,o=16*((n-n%64)/64+1),r=Array(o-1),i=0,s=0;s<a;)i=s%4*8,r[e=(s-s%4)/4]=r[e]|t.charCodeAt(s)<<i,s++;return e=(s-s%4)/4,i=s%4*8,r[e]=r[e]|128<<i,r[o-2]=a<<3,r[o-1]=a>>>29,r}(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",a=0;a<t.length;a++){var n=t.charCodeAt(a);n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t)),w=1732584193,$=4023233417,v=2562383102,C=271733878,f=0;f<y.length;f+=16)m=w,g=$,u=v,h=C,$=p($=p($=p($=p($=c($=c($=c($=c($=l($=l($=l($=l($=s($=s($=s($=s($,v=s(v,C=s(C,w=s(w,$,v,C,y[f+0],7,3614090360),$,v,y[f+1],12,3905402710),w,$,y[f+2],17,606105819),C,w,y[f+3],22,3250441966),v=s(v,C=s(C,w=s(w,$,v,C,y[f+4],7,4118548399),$,v,y[f+5],12,1200080426),w,$,y[f+6],17,2821735955),C,w,y[f+7],22,4249261313),v=s(v,C=s(C,w=s(w,$,v,C,y[f+8],7,1770035416),$,v,y[f+9],12,2336552879),w,$,y[f+10],17,4294925233),C,w,y[f+11],22,2304563134),v=s(v,C=s(C,w=s(w,$,v,C,y[f+12],7,1804603682),$,v,y[f+13],12,4254626195),w,$,y[f+14],17,2792965006),C,w,y[f+15],22,1236535329),v=l(v,C=l(C,w=l(w,$,v,C,y[f+1],5,4129170786),$,v,y[f+6],9,3225465664),w,$,y[f+11],14,643717713),C,w,y[f+0],20,3921069994),v=l(v,C=l(C,w=l(w,$,v,C,y[f+5],5,3593408605),$,v,y[f+10],9,38016083),w,$,y[f+15],14,3634488961),C,w,y[f+4],20,3889429448),v=l(v,C=l(C,w=l(w,$,v,C,y[f+9],5,568446438),$,v,y[f+14],9,3275163606),w,$,y[f+3],14,4107603335),C,w,y[f+8],20,1163531501),v=l(v,C=l(C,w=l(w,$,v,C,y[f+13],5,2850285829),$,v,y[f+2],9,4243563512),w,$,y[f+7],14,1735328473),C,w,y[f+12],20,2368359562),v=c(v,C=c(C,w=c(w,$,v,C,y[f+5],4,4294588738),$,v,y[f+8],11,2272392833),w,$,y[f+11],16,1839030562),C,w,y[f+14],23,4259657740),v=c(v,C=c(C,w=c(w,$,v,C,y[f+1],4,2763975236),$,v,y[f+4],11,1272893353),w,$,y[f+7],16,4139469664),C,w,y[f+10],23,3200236656),v=c(v,C=c(C,w=c(w,$,v,C,y[f+13],4,681279174),$,v,y[f+0],11,3936430074),w,$,y[f+3],16,3572445317),C,w,y[f+6],23,76029189),v=c(v,C=c(C,w=c(w,$,v,C,y[f+9],4,3654602809),$,v,y[f+12],11,3873151461),w,$,y[f+15],16,530742520),C,w,y[f+2],23,3299628645),v=p(v,C=p(C,w=p(w,$,v,C,y[f+0],6,4096336452),$,v,y[f+7],10,1126891415),w,$,y[f+14],15,2878612391),C,w,y[f+5],21,4237533241),v=p(v,C=p(C,w=p(w,$,v,C,y[f+12],6,1700485571),$,v,y[f+3],10,2399980690),w,$,y[f+10],15,4293915773),C,w,y[f+1],21,2240044497),v=p(v,C=p(C,w=p(w,$,v,C,y[f+8],6,1873313359),$,v,y[f+15],10,4264355552),w,$,y[f+6],15,2734768916),C,w,y[f+13],21,1309151649),v=p(v,C=p(C,w=p(w,$,v,C,y[f+4],6,4149444226),$,v,y[f+11],10,3174756917),w,$,y[f+2],15,718787259),C,w,y[f+9],21,3951481745),w=a(w,m),$=a($,g),v=a(v,u),C=a(C,h);return(d(w)+d($)+d(v)+d(C)).toLowerCase()};