// source --> https://hibabejelento.bagolyvarkoli.eu/wp-content/plugins/awesome-support/assets/public/js/component-privacy-popup.js?ver=5.8.0 /* Handles the front-end logic for the privacy popup. */ /* Will NOT be included in the public-dist.js because of an exclusion in gruntfile.js */ jQuery(document).ready(function ($) { jQuery( ".privacy-container-template" ).on( "click", ".download-file-link", function(e) { jQuery(this).parent('p').remove(); }); jQuery( '.wpas-gdpr-pre-loader' ).hide(); jQuery( '.wpas-gdpr-loader-background' ).hide(); jQuery('.wpas-link-privacy').click(function(){ jQuery(".privacy-container-template").show(); jQuery(document).keyup(function(e) { if (e.keyCode == 27) jQuery(".privacy-container-template").hide(); }); jQuery(".privacy-container-template .hide-the-content").click(function(){ jQuery(".privacy-container-template").hide(); }); }); /** * Ajax based ticket submission for "Right To Be Forgotten" * in "Delete My Existing Data" from GDPR popup */ jQuery( "#wpas-gdpr-ded-submit" ).click( function(e) { e.preventDefault(); e.stopImmediatePropagation(); jQuery( '.wpas-gdpr-pre-loader' ).show(); jQuery( '.wpas-gdpr-loader-background').show(); /** * Get current tinyMCE content * NOTE: We cannot get the content wpas_set_editor_content() * on submission. This will be the workaround. */ var activeEditor_content = tinyMCE.activeEditor.getContent(); jQuery( '#wpas-gdpr-ded-more-info' ).html( activeEditor_content ); var data = { 'action': 'wpas_gdpr_open_ticket', 'security' : WPAS_GDPR.nonce, 'data' : { 'nonce' : WPAS_GDPR.nonce, 'request_type': 'delete', 'form-data' : $( '#wpas-gdpr-rtbf-form' ).serialize() } }; jQuery.post( WPAS_GDPR.ajax_url, data, function( response ) { jQuery( '.wpas-gdpr-pre-loader' ).hide(); jQuery( '.wpas-gdpr-loader-background').hide(); if( response.message && response.code === 200 ) { jQuery( '.wpas-gdpr-notice.delete-existing-data' ).addClass( 'success' ).html( '
' + response.message + '
' ); jQuery( '.wpas-gdpr-form-table' ).remove(); }else{ jQuery( '.wpas-gdpr-notice.delete-existing-data' ).addClass( 'failure' ).html( '' + response.message + '
' ); } } ); }); /** * Ajax based ticket submission * in "Export My Existing Data" from GDPR popup */ jQuery( "#wpas-gdpr-export-submit" ).click( function(e) { e.preventDefault(); e.stopImmediatePropagation(); jQuery( '.wpas-gdpr-pre-loader' ).show(); jQuery( '.wpas-gdpr-loader-background').show(); /** * Get current tinyMCE content * NOTE: We cannot get the content wpas_set_editor_content() * on submission. This will be the workaround. */ var activeEditor_content = tinyMCE.activeEditor.getContent(); jQuery( '#wpas-gdpr-export-more-info' ).html( activeEditor_content ); var data = { 'action': 'wpas_gdpr_open_ticket', 'security' : WPAS_GDPR.nonce, 'data' : { 'nonce' : WPAS_GDPR.nonce, 'request_type': 'export', 'form-data' : $( '#wpas-gdpr-rted-form' ).serialize() } }; jQuery.post( WPAS_GDPR.ajax_url, data, function( response ) { jQuery( '.wpas-gdpr-pre-loader' ).hide(); jQuery( '.wpas-gdpr-loader-background').hide(); if( response.message && response.code === 200 ) { jQuery( '.wpas-gdpr-notice.export-existing-data' ).addClass( 'success' ).html( '' + response.message + '
' ); jQuery( '.wpas-gdpr-form-table' ).remove(); }else{ jQuery( '.wpas-gdpr-notice.export-existing-data' ).addClass( 'failure' ).html( '' + response.message + '
' ); } } ); }); /** * Ajax based Opted in button processing * in "Add/Remove Consent" from GDPR popup */ jQuery( ".privacy-container-template" ).on( "click", ".wpas-gdpr-opt-in", function(e) { e.preventDefault(); var optin_handle = jQuery(this); jQuery( '.wpas-gdpr-pre-loader' ).show(); jQuery( '.wpas-gdpr-loader-background').show(); var data = { 'action': 'wpas_gdpr_user_opt_in', 'security' : WPAS_GDPR.nonce, 'data' : { 'nonce' : WPAS_GDPR.nonce, 'gdpr-data' : jQuery(this).data( 'gdpr' ), 'gdpr-user' : jQuery(this).data( 'user' ), 'gdpr-optout' : jQuery(this).data( 'optout-date' ) } }; jQuery.post( WPAS_GDPR.ajax_url, data, function( response ) { jQuery( '.wpas-gdpr-pre-loader' ).hide(); jQuery( '.wpas-gdpr-loader-background').hide(); if( undefined !== response.message.success ){ if( undefined !== response.message.date ){ optin_handle.parent('td').siblings('td:nth-child(3)').html(response.message.date); } if( undefined !== response.message.status ){ optin_handle.parent('td').siblings('td:nth-child(2)').html(response.message.status); } if( undefined !== response.message.button ){ optin_handle.parent('td').html( response.message.button ); } jQuery( '.wpas-gdpr-notice.add-remove-consent' ).addClass( 'success' ).html( '' + response.message.success + '
' ); } else if( undefined !== response.message.error ){ jQuery( '.wpas-gdpr-notice.add-remove-consent' ).addClass( 'failure' ).html( '' + response.message.error + '
' ); } } ); }); /** * Ajax based Opted out button processing * in "Add/Remove Consent" from GDPR popup */ jQuery( ".privacy-container-template" ).on( "click", ".wpas-gdpr-opt-out", function(e) { e.preventDefault(); var handle = jQuery(this); jQuery( '.wpas-gdpr-pre-loader' ).show(); jQuery( '.wpas-gdpr-loader-background').show(); var data = { 'action': 'wpas_gdpr_user_opt_out', 'security' : WPAS_GDPR.nonce, 'data' : { 'nonce' : WPAS_GDPR.nonce, 'gdpr-data' : jQuery(this).data( 'gdpr' ), 'gdpr-user' : jQuery(this).data( 'user' ), 'gdpr-optin' : jQuery(this).data( 'optin-date' ) } }; jQuery.post( WPAS_GDPR.ajax_url, data, function( response ) { jQuery( '.wpas-gdpr-pre-loader' ).hide(); jQuery( '.wpas-gdpr-loader-background').hide(); if( undefined !== response.message.success ){ if( undefined !== response.message.date ){ handle.parent('td').siblings('td:nth-child(4)').html( response.message.date ); } if( undefined !== response.message.status ){ handle.parent('td').siblings('td:nth-child(2)').html(response.message.status); } if( undefined !== response.message.button ){ handle.parent('td').html( response.message.button ); } jQuery( '.wpas-gdpr-notice.add-remove-consent' ).addClass( 'success' ).html( '' + response.message.success + '
' ); } else if( undefined !== response.message.error ){ jQuery( '.wpas-gdpr-notice.add-remove-consent' ).addClass( 'failure' ).html( '' + response.message.error + '
' ); } } ); }); /** * Ajax based export data */ jQuery( "#wpas-gdpr-export-data-submit" ).click( function(e) { e.preventDefault(); jQuery( '.wpas-gdpr-pre-loader' ).show(); jQuery( '.wpas-gdpr-loader-background').show(); var data = { 'action': 'wpas_gdpr_export_data', 'security' : WPAS_GDPR.nonce, 'data' : { 'nonce' : WPAS_GDPR.nonce, 'gdpr-user' : jQuery(this).data( 'user' ) } }; jQuery.post( WPAS_GDPR.ajax_url, data, function( response ) { jQuery( '.wpas-gdpr-pre-loader' ).hide(); jQuery( '.wpas-gdpr-loader-background').hide(); if( undefined !== response.message.success ){ jQuery( '.export-data' ).addClass( 'success' ).html( response.message.success ); } else if( undefined !== response.message.error ) { jQuery( '.export-data' ).addClass( 'failure' ).html( response.message.error ); } } ); }); /** * Set tab default */ jQuery( ".wpas-gdpr-tablinks" ).first().click(); /** * Initiate WP Editor when requesting right * to be deleted data in GDPR popup */ jQuery( ".wpas-gdpr-tablinks" ).click( function(e) { if( jQuery(this).data( 'id' ) === 'delete-existing' ) { /** * If the Additional Information is set */ if( jQuery( '#wpas-gdpr-ded-more-info' ).length > 0 ) { wpas_init_editor( 'wpas-gdpr-ded-more-info', '' ); } } if( jQuery(this).data( 'id' ) === 'export-existing' ) { /** * If the Additional Information is set */ if( jQuery( '#wpas-gdpr-export-more-info' ).length > 0 ) { wpas_init_editor( 'wpas-gdpr-export-more-info', '' ); } } }); }); /** * Set content on WP Editor * * @param {*} content * @param {*} editor_id * @param {*} textarea_id */ function wpas_set_editor_content( content, editor_id, textarea_id ){ if ( typeof editor_id == 'undefined' ) editor_id = wpActiveEditor; if ( typeof textarea_id == 'undefined' ) textarea_id = editor_id; if ( jQuery('#wp-'+editor_id+'-wrap').hasClass('tmce-active') && tinyMCE.get(editor_id) ) { return tinyMCE.get(editor_id).setContent(content); }else{ return jQuery('#'+textarea_id).val(content); } } /** * Initialize WP Editor through Javascript * * @param {*} this_id * @param {*} content */ function wpas_init_editor( this_id, content ){ /** * Prepare the standard settings. Include the media buttons plus toolbars */ settings = { mediaButtons: false, tinymce: { toolbar1: 'bold,italic,bullist,numlist,link,blockquote,alignleft,aligncenter,alignright,strikethrough,hr,forecolor,pastetext,removeformat,codeformat,undo,redo' }, quicktags: true, }; wp.editor.remove(this_id); /** * Initialize editor */ wp.editor.initialize( this_id, settings ); /** * Set editor content. This function set the * editor content back to textarea as well */ wpas_set_editor_content( content, this_id ); } /** * A function for switching tabs in GDPR pop up * * @param {*} evt * @param {*} tab */ function wpas_gdpr_open_tab(evt, tab) { // Declare all variables! var i, tabcontent, tablinks; // Get all elements with class="tabcontent" and hide them! tabcontent = document.getElementsByClassName("wpas-gdpr-tab-content"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } // Get all elements with class="tablinks" and remove the class "active"! tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } // Show the current tab, and add an "active" class to the button that opened the tab! document.getElementById(tab).style.display = "block"; evt.target.className += " active"; }; // source --> https://hibabejelento.bagolyvarkoli.eu/wp-content/themes/optimizer/assets/js/optimizer.js?ver=1 /** * The Javascript file for Optimizer * * Stores all the javascript of the template. * * @package Optimizer * * @since Optimizer 1.0 */ jQuery(window).ready(function() { /*CHECK IF TOUCH ENABLED DEVICE*/ function is_touch_device() { return (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)); } if (is_touch_device()) { jQuery('body').addClass('touchon'); } //MENU Animation if (jQuery(window).width() > 768) { jQuery('#topmenu ul > li').not('#topmenu ul > li.mega-menu-item').hoverIntent(function(){ jQuery(this).find('.sub-menu, ul.children').eq(0).removeClass('animated fadeOut').addClass('animated fadeInUp menushow'); }, function(){ jQuery(this).find('.sub-menu, ul.children').eq(0).addClass('animated fadeOut').delay(300).queue(function(next){ jQuery(this).removeClass("animated fadeInUp menushow");next();}); }); jQuery('#topmenu ul li ul li').not('#topmenu ul li.mega-menu-item ul.mega-sub-menu li').hoverIntent(function(){ jQuery(this).find('.sub-menu, ul.children').eq(0).removeClass('animated fadeOut').addClass('animated fadeInUp menushow'); }, function(){ jQuery(this).find('.sub-menu, ul.children').eq(0).addClass('animated fadeOut').delay(300).queue(function(next){ jQuery(this).removeClass("animated fadeInUp menushow");next();}); }); jQuery('#topmenu ul li').not('#topmenu ul li.mega-menu-item, #topmenu ul li ul li').hover(function(){ jQuery(this).addClass('menu_hover'); }, function(){ jQuery(this).removeClass('menu_hover'); }); jQuery('#topmenu li').has("ul").addClass('zn_parent_menu'); jQuery('.zn_parent_menu > a').append(' '); } //BLOCKS Equal height jQuery('.midrow_blocks_wrap').each(function(index, element) { jQuery(this).waitForImages(function() { jQuery(this).find('.midrow_block').matchHeight({ property: 'min-height'}); }); }); //Layout1 Animation jQuery(".lay1").each(function(index, element) { var divs = jQuery(this).find(".hentry"); for(var i = 0; i < divs.length; i+=3) { divs.slice(i, i+3).wrapAll(""); } if (jQuery(window).width() < 1200) { var flaywidth = jQuery(this).find(".hentry").width(); jQuery(this).find('.post_image').css({"maxHeight":(flaywidth * 66)/100}); } }); jQuery('.lay1 .postitle a:empty').closest("h2").addClass('no_title'); jQuery('.no_title').css({"padding":"0"}); jQuery('.lay1 h2.postitle a').each(function() { if(jQuery(this).height() >80){ jQuery(this).parent().parent().parent().addClass('lowreadmo'); } }); jQuery('.lts_layout1 .listing-item h2').each(function() { if(jQuery(this).outerHeight() >76){ jQuery(this).parent().addClass('lowreadmo'); } }); // TO_TOP jQuery(window).bind("scroll", function() { if (jQuery(this).scrollTop() > 800) { jQuery(".to_top").fadeIn('slow'); } else { jQuery(".to_top").fadeOut('fast'); } }); jQuery(".to_top").click(function() { jQuery("html, body").animate({ scrollTop: 0 }, "slow"); return false; }); //STATIC SLIDER IMAGE FIXED jQuery('.stat_has_img').waitForImages(function() { var statimg = jQuery(".stat_has_img .stat_bg_img").attr('src'); var statimgheight = jQuery(".stat_has_img .stat_bg_img").height() + jQuery(".header").height(); var hheight = jQuery(".header").height(); jQuery("body.home").prepend(''); jQuery('#slidera').css({"minHeight":"initial"}); jQuery('.home .stat_has_img .stat_bg_img').css('opacity', 0); //Static Slider Overlay on scroll overlayon = jQuery(".home .stat_has_img"); overlayon.waypoint({ handler: function(direction) { jQuery('.home .stat_bg_overlay').removeClass("overlay_off").addClass("overlay_on"); }, offset: '-170px' }); overlayoff = jQuery(".home .stat_has_img"); overlayoff.waypoint({ handler: function(direction) { jQuery('.home .stat_bg_overlay').removeClass("overlay_on").addClass("overlay_off");; }, offset: '-90px' }); }); jQuery('.stat_has_img').waitForImages(function() { var resizeTimer; jQuery(window).bind("load resize", function() { clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { var body_size = jQuery('.stat_has_img .stat_content_inner .center').height() + 120; jQuery('#stat_img, .stat_bg img, .stat_bg_overlay').css('min-height',body_size); }, 50); }); }); jQuery(window).bind("load resize", function() { if (jQuery(window).width() <= 480) { jQuery(".stat_bg_img").css({"opacity":"0"}); jQuery('.stat_content_inner').waitForImages(function() { jQuery("#stat_img").height(jQuery(".stat_content_inner").height()); }); var statbg = jQuery(".stat_bg_img").attr('src'); jQuery(".stat_has_img").css({"background":"url("+statbg+")", "background-repeat":"no-repeat", "background-size":"cover"}); } if (jQuery(window).width() <= 960 <= 480) { var statbg = jQuery(".stat_bg_img").attr('src'); jQuery(".stat_has_img").css({"background":"url("+statbg+") top center", "background-repeat":"no-repeat", "background-size":"cover"}); jQuery('.has_trans_header .stat_content_inner, .has_trans_header .header').waitForImages(function() { var mhheight = jQuery(".has_trans_header .header").height(); jQuery(".has_trans_header .stat_content_inner").css({"paddingTop":mhheight}); }); } }); //WAYPOINT ANIMATIONS if (jQuery(window).width() > 480) { jQuery('.home #zn_nivo, .home #accordion').waitForImages(function() { //Header color on scroll var sliderheight = jQuery('.home #zn_nivo, .home #accordion').height(); jQuery('.home #zn_nivo, .home #accordion').waypoint(function() { jQuery(".is-sticky .header").addClass("headcolor"); }, { offset: '-'+sliderheight/2+'px' }); jQuery('.home #zn_nivo, .home #accordion').waypoint(function() { jQuery(".is-sticky .header").removeClass("headcolor"); }, { offset: '-90px' }); }); //BLOCKS Animation jQuery('.block_type2 .midrow_blocks .midrow_block').css({"opacity":"0"}); jQuery('.block_type1 .midrow_blocks').waypoint(function() { jQuery(this).addClass('animated bounceIn'); }, { offset: '90%' }); jQuery('.block_type2 .midrow_blocks .midrow_block').waypoint(function() { jQuery(this).addClass('animated fadeInUp'); }, { offset: '90%' }); //WELCOME Animation jQuery('.welcmblock .text_block_wrap').css({"opacity":"0"}); jQuery('.welcmblock .text_block_wrap').waypoint(function() { jQuery(this).addClass('animated fadeIn'); }, { offset: '90%' }); //Posts Animation jQuery('.home .postsblck .center').css({"opacity":"0"}); jQuery('.home .postsblck .center').waypoint(function() { jQuery(this).addClass('animated fadeInUp'); }, { offset: '85%' }); } //Next Previous post button Link var link = jQuery('.ast-next > a').attr('href'); jQuery('.right_arro').attr('href', link); var link = jQuery('.ast-prev > a').attr('href'); jQuery('.left_arro').attr('href', link); //Gallery Template jQuery("#sidebar .widget_pages ul li a, #sidebar .widget_meta ul li a, #sidebar .widget_nav_menu ul li a, #sidebar .widget_categories ul li a, #sidebar .widget_recent_entries ul li a, #sidebar .widget_recent_comments ul li, #sidebar .widget_archive ul li, #sidebar .widget_rss ul li").prepend(' '); jQuery('#sidebar .fa-double-angle-right').css({"opacity":"0.5"}); //Mobile Menu var padmenu = jQuery("#simple-menu").html(); jQuery('#simple-menu').sidr({ name: 'sidr-main', source: '#topmenu', side: 'right' }); jQuery(".sidr").prepend(" "); //Make Icons show up in sidr jQuery('.sidr-class-menu-item i').attr('class', function(_, klass) { return 'fa fa' + klass.split('-fa').pop(); }); jQuery("#topmenu .head_soc").clone().appendTo(".sidr-class-head_soc"); jQuery(".pad_menutitle span").click(function() { jQuery.sidr('close', 'sidr-main') preventDefaultEvents: false; }); //If the topmenu is empty remove it if (jQuery(window).width() < 1025) { if(jQuery("#topmenu:has(ul)").length == 0){ jQuery('#simple-menu').addClass('hide_mob_menu'); } } //NivoSlider Navigation Bug Fix if (jQuery(window).width() < 480) { jQuery(".nivo-control").text(''); } //slider porgressbar loader jQuery(function () { var n = 0, $imgs = jQuery('.slider-wrapper .sldimg'), val = 100 / $imgs.length, $bar = jQuery('#astbar'); $progrssn = jQuery('.progrssn'); $imgs.load(function () { n = n + val; // for displaying purposes $progrssn.css({"bottom":n + '%'}); var numTruncated = parseFloat(n).toFixed(0); $bar.text(numTruncated+'%'); }); }); jQuery('.slider-wrapper').waitForImages(function() { jQuery("#zn_nivo, .nivo-controlNav, #slide_acord, .nivoinner").css({"display":"block"}); jQuery(".pbar_wrap").fadeOut(); }); //HEADER SWITCH jQuery('#slidera').has('#stat_img').addClass('selected_stat'); jQuery('#slidera').has('.slide_wrap').addClass('selected_slide'); if (jQuery(window).width() < 1025) { jQuery('.dlthref').removeAttr("href"); } //WIDGET BORDER jQuery("#sidebar .widget .widgettitle, .related_h3, h3#comments, #reply-title").after(""); //Rearragnge comment form box jQuery(".comm_wrap").insertAfter(".comment-form-comment"); jQuery(".comm_wrap input").placeholder(); //404 class is not being added in body jQuery('body').has('.error_msg').addClass('error404'); //Next-Previous Post Image Check jQuery(".nav-box.ast-prev, .nav-box.ast-next").not(":has(img)").addClass('navbox-noimg'); //Make sure the footer always stays to the bottom of the page when the page is short jQuery(window).bind("load", function() { var docHeight = jQuery(window).height(); var footerHeight = jQuery('#footer').height(); var footerTop = jQuery('#footer').position().top + footerHeight; if (footerTop < docHeight) { jQuery('#footer').css('margin-top', 1 + (docHeight - footerTop) + 'px'); } }); //Woocommerce jQuery('.lay1.optimposts, .lay4.optimposts').each(function(index, element) { jQuery(this).waitForImages(function() { jQuery(this).find('.type-product').matchHeight({property: 'min-height'}); }); }); jQuery('.lay1.optimposts .type-product').each(function(index, element) { if (jQuery(window).width() >= 960) { jQuery(this).find('.button.add_to_cart_button').prependTo(jQuery(this).find('.imgwrap')); } jQuery(this).find('span.price').prependTo(jQuery(this).find('.post_image ')); }); }); jQuery(window).on('load scroll', function() { var scrollTop = jQuery(this).scrollTop(); var hheight = jQuery(".header").height() + jQuery('.admin-bar #wpadminbar').height() + jQuery('#customizer_topbar').height(); if ( !scrollTop ) { jQuery('body:not(.has_trans_header) .stat_bg img').css({"top":hheight+"px"}); jQuery('body:not(.has_trans_header) .stat_bg').css({"background-position-y":hheight+"px"}); }else{ jQuery('body:not(.has_trans_header) .stat_bg img').css({"top":"0px"}); jQuery('body:not(.has_trans_header) .stat_bg').css({"background-position-y":"0px"}); } }); //Check If IOS & SAFARI function getMobileOperatingSystem() { var userAgent = navigator.userAgent || navigator.vendor || window.opera; if( userAgent.match( /iPad/i ) || userAgent.match( /iPhone/i ) || userAgent.match( /iPod/i ) ) { return 'iOS'; } } var isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/); //IF iOS, Hide the video slider: jQuery(window).ready(function() { if(getMobileOperatingSystem() == 'iOS'){ jQuery('body').addClass('is-ios'); }else{ jQuery('body').addClass('not-ios'); } //Check If Safari if(isSafari == true){ jQuery('body').addClass('is_safari'); } }); // source --> https://hibabejelento.bagolyvarkoli.eu/wp-content/themes/optimizer/assets/js/other.js?ver=1 /* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built in easing capabilities added In jQuery 1.1 * to offer multiple easing options * * TERMS OF USE - jQuery Easing * * Open source under the BSD License. */ // t: current time, b: begInnIng value, c: change In value, d: duration jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g