clones
@@ -0,0 +1,251 @@
|
||||
/*
|
||||
Theme Name: Salient Child Theme
|
||||
Description: This is a custom child theme for Salient
|
||||
Theme URI: https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
|
||||
Author: ThemeNectar
|
||||
Author URI: https://themeforest.net/user/themenectar
|
||||
Template: salient
|
||||
Version: 1.0
|
||||
*/
|
||||
|
||||
.nectar-cta .text {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.woocommerce-result-count {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#mobile-categories .replaced-svg,
|
||||
#desktop-categories .replaced-svg {
|
||||
width: 50px;
|
||||
}
|
||||
|
||||
#desktop-categories .replaced-svg {
|
||||
color: #fff;
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
#mobile-categories p {
|
||||
font-size: 14px !important;
|
||||
line-height: 1.33 !important;
|
||||
}
|
||||
|
||||
.nectar-post-grid {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
#ajax-content-wrap .nectar-post-grid .meta-category .style-see-through-button:before {
|
||||
background-color: rgba(0,0,0,0.4);
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
|
||||
.blog-title .entry-title,
|
||||
.nectar-post-grid[data-text-layout=all_middle] .nectar-post-grid-item .content .post-heading {
|
||||
font-weight: bold !important;
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
|
||||
.nectar-post-grid .nectar-post-grid-item__meta-wrap * {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.related-post-wrap {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.blog_next_prev_buttons[data-style=fullwidth_next_prev] ul .next-post:after, .blog_next_prev_buttons[data-style=fullwidth_next_prev] ul .previous-post:after, .container-wrap[data-nav-pos=after_project_2] .bottom_controls .next-project:after, .container-wrap[data-nav-pos=after_project_2] .bottom_controls .previous-project:after {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
content: '';
|
||||
display: block;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
-webkit-transition: opacity .4s cubic-bezier(.05,.2,.1,1) 0s;
|
||||
transition: opacity .4s cubic-bezier(.05,.2,.1,1) 0s;
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
|
||||
.nectar-post-grid-item .meta-category {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.single-product .single-product-main-image {
|
||||
float: none;
|
||||
width: 100%;
|
||||
aspect-ratio: 1920 / 400;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.single-product .summary {
|
||||
width: 100% !important;
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
.attachment-woocommerce_thumbnail,
|
||||
.single-product .wp-post-image {
|
||||
-webkit-box-reflect: below -50% linear-gradient(transparent, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0));
|
||||
}
|
||||
|
||||
.products.columns-1 {
|
||||
margin-bottom: 10% !important;
|
||||
}
|
||||
|
||||
.product-category a {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.product-category img {
|
||||
-webkit-box-reflect: below -50% linear-gradient(transparent, rgba(0, 0, 0, 0.2) 5%, rgba(0, 0, 0, 0));
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.hide-on-mobile {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#field_ocfup1_label,
|
||||
#footer-widgets #archives-1,
|
||||
#footer-widgets #categories-1,
|
||||
#footer-widgets #recent-posts-1 {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#footer-widgets .col {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (min-width:768px) {
|
||||
.hide-on-desktop {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.menu-item:not(.lang-item) + .lang-item {
|
||||
margin-left: 20px !important;
|
||||
}
|
||||
|
||||
.menu-item.lang-item .menu-title-text:after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.menu-item.lang-item img {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.menu-item.lang-item a {
|
||||
margin-left: 5px !important;
|
||||
margin-right: 5px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.video-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.vlp-link-container {
|
||||
border-color: #eee !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
font-size: 80%;
|
||||
line-height: 1.33;
|
||||
}
|
||||
|
||||
.vlp-link-container img {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.masonry-blog-item .title,
|
||||
.large-featured-post-title .full-slide-link {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.post table {
|
||||
margin-top: 2rem !important;
|
||||
margin-bottom: 2rem !important;
|
||||
}
|
||||
|
||||
.post table td, .post table th {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
ol > li {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
.summary.entry-summary h1.product_title.entry-title.nectar-inherit-default {
|
||||
float: left;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.summary.entry-summary p.price.nectar-inherit-default {
|
||||
float: left;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.summary.entry-summary .woocommerce-product-details__short-description {
|
||||
float: left;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
.summary.entry-summary div[id^="frm_form_"][id$="_container"].frm_forms {
|
||||
float: right;
|
||||
width: 35%;
|
||||
background: #EEE;
|
||||
padding: 20px;
|
||||
border: 1px solid #AAA;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.frm_style_formidable-style .frm_form_field:last-of-type {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.summary.entry-summary .product_meta {
|
||||
display: none;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.summary.entry-summary::after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Responsive adjustments for mobile devices */
|
||||
@media (max-width: 768px) { /* You can adjust the breakpoint (768px) as needed */
|
||||
.summary.entry-summary h1.product_title.entry-title.nectar-inherit-default,
|
||||
.summary.entry-summary p.price.nectar-inherit-default,
|
||||
.summary.entry-summary .woocommerce-product-details__short-description,
|
||||
.summary.entry-summary div[id^="frm_form_"][id$="_container"].frm_forms {
|
||||
float: none;
|
||||
width: 100%; /* Make elements full width */
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.summary.entry-summary div[id^="frm_form_"][id$="_container"].frm_forms {
|
||||
margin-top: 20px; /* Add some space above the form when it stacks */
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce ul.products .product-category {
|
||||
border: 1px solid #aaa !important;
|
||||
background-color: #efefef !important;
|
||||
padding-bottom: 6% !important;
|
||||
}
|
||||
|
||||
.woocommerce ul.products li.product .woocommerce-loop-category__title {
|
||||
margin: 0 20px !important;
|
||||
font-size: 24px !important;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
html:not(.js) #contact-map,html:not(.js) .nectar-google-map{display:none}#contact-map{width:100%;height:370px;margin-bottom:30px}body.page-template-template-contact[data-header-resize="1"] .container-wrap{padding-top:0}.gm-style-iw{color:#777}#contact-map div,.nectar-google-map div{box-sizing:content-box;-webkit-box-sizing:content-box}.nectar-google-map,.wpb_wrapper>.nectar-google-map{margin-bottom:0}.row .col .nectar-google-map__marker-img{margin-bottom:0}.nectar-google-map img{max-width:none!important}.wpb_column.centered-text .nectar-google-map img{display:block}body[data-bg-header=true] #contact-map{margin-top:-30px}.contact-info{padding-left:20px}body.page-template-template-contact-php .page-header-no-bg .col.section-title{border-bottom:0}body.page-template-template-contact-php #page-header-bg{margin-bottom:0}.gm-style .gm-style-iw,.gm-style .gm-style-iw a,.gm-style .gm-style-iw div,.gm-style .gm-style-iw label,.gm-style .gm-style-iw span{font-family:arial;letter-spacing:0;line-height:20px}.nectar-google-map .animated-dot{width:20px;height:20px;left:0;top:-2px;position:relative}.nectar-leaflet-map .animated-dot{width:20px;height:20px;left:-9px;top:-5px;position:relative}.nectar-google-map .animated-dot .middle-dot,.nectar-leaflet-map .animated-dot .middle-dot{width:16px;height:16px;border-radius:30px;position:absolute;left:2px;top:2px;transform-origin:50% 50%;animation-fill-mode:forwards;animation-iteration-count:infinite}.nectar-google-map[data-dark-color-scheme="1"] .animated-dot .middle-dot:after{width:100%;height:100%;display:block;position:absolute;left:0;top:0;content:' ';background-color:#fff;border-radius:30px;z-index:100;opacity:0;animation:animationSignal2 cubic-bezier(0,.55,.55,1) 2s;transform-origin:50% 50%;animation-fill-mode:forwards;animation-delay:.78s;animation-iteration-count:infinite}.nectar-google-map .animated-dot .signal,.nectar-leaflet-map .animated-dot .signal{width:180px;pointer-events:none;height:180px;border-radius:200px;position:absolute;left:-80px;top:-80px;opacity:0;-webkit-animation:animationSignal cubic-bezier(0,.55,.55,1) 2s;animation:animationSignal cubic-bezier(0,.55,.55,1) 2s;transform-origin:50% 50%;animation-fill-mode:forwards;animation-delay:.78s;animation-iteration-count:infinite}.nectar-google-map .animated-dot .signal2,.nectar-leaflet-map .animated-dot .signal2{width:180px;height:180px;pointer-events:none;border-radius:200px;position:absolute;left:-80px;top:-80px;opacity:0;-webkit-animation:animationSignal cubic-bezier(0,.55,.55,1) 2s;animation:animationSignal cubic-bezier(0,.55,.55,1) 2s;transform-origin:50% 50%;animation-fill-mode:forwards;animation-delay:1s;animation-iteration-count:infinite}.nectar-leaflet-map .nectar-leaflet-pin{width:34px;height:34px;font-size:0;border:10px solid #3452ff;border-radius:50% 50% 50% 0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);position:relative;background-color:#fff}.nectar-leaflet-map:not([data-marker-style=nectar]) .leaflet-marker-icon:before{background-image:url(../../../img/icons/leaflet/marker-shadow.png);position:absolute;z-index:-1;display:block;top:2px;left:9px;width:41px;height:41px;content:'';-webkit-transform:rotate(13deg);transform:rotate(13deg)}.nectar-leaflet-map .leaflet-marker-icon{overflow:visible;background-color:transparent;border:none}.nectar-leaflet-map[data-greyscale="1"]>.leaflet-map-pane .leaflet-tile-container{-webkit-filter:grayscale(100%);filter:grayscale(100%)}@-webkit-keyframes animationSignal{0%{opacity:0;transform:scale(0)}1%{opacity:.25}20%{opacity:.25}60%{transform:scale(1);opacity:0}}@-webkit-keyframes animationSignal2{0%{opacity:0}1%{opacity:.2}20%{opacity:.17}60%{opacity:0}}@keyframes animationSignal{0%{opacity:0;transform:scale(0)}1%{opacity:.25}20%{opacity:.25}60%{transform:scale(1);opacity:0}}@keyframes animationSignal2{0%{opacity:0}1%{opacity:.2}20%{opacity:.17}60%{opacity:0}}
|
||||
@@ -0,0 +1 @@
|
||||
html.lenis{height:auto}.lenis.lenis-smooth{scroll-behavior:auto}.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}.lenis.lenis-stopped{overflow:hidden}.lenis.lenis-scrolling iframe{pointer-events:none}
|
||||
44
cloned-websites/klz-cables_com/wp-content/themes/salient/css/font-awesome.min.css
vendored
Normal file
|
After Width: | Height: | Size: 434 KiB |
|
After Width: | Height: | Size: 71 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1 @@
|
||||
var headerEl=document.getElementById("header-outer"),headerSpaceEl=document.getElementById("header-space");void 0!==headerEl&&null!=headerEl&&void 0!==headerSpaceEl&&null!=headerSpaceEl&&headerSpaceEl.hasAttribute("data-secondary-header-display")&&(headerSpaceEl.style.height=headerEl.clientHeight+"px"),jQuery(function(e){"use strict";var t,a,r,n,o,d,i=!1;function h(){var a=t.offset().top;e("#page-header-wrap.fullscreen-header").css("height","auto"),t.css("height",parseInt(window.innerHeight)-parseInt(a)+"px")}if(navigator.userAgent.match(/(Android|iPod|iPhone|iPad|BlackBerry|IEMobile|Opera Mini)/)&&(i=!0),i&&e("#page-header-bg.fullscreen-header").length>0){t=e("#page-header-bg"),h();var l=window.innerWidth,s=window.innerHeight;e(window).resize(function(){e(window).width()!=l&&e(window).height!=s&&(h(),l=window.innerWidth,s=window.innerHeight)})}i&&e(".nectar_fullscreen_zoom_recent_projects").length>0&&(a=e(".body-border-top").length>0&&e(window).width()>1e3?e(".body-border-top").height():0,e(".nectar_fullscreen_zoom_recent_projects").each(function(){e(this).parents(".first-section").length>0?e(this).css("height",e(window).height()-e(this).offset().top-a):e(this).css("height",e(window).height())})),e('#header-outer[data-format="centered-menu-bottom-bar"]').length>0&&(r=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),n=e('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_3'),o=e("#header-secondary-outer"),(d=n.find("#logo").clone()).is('[data-supplied-ml="true"]')&&d.find("img:not(.mobile-only-logo)").remove(),d.find("img.starting-logo").remove(),o.length>0&&o.addClass("centered-menu-bottom-bar"),d.removeAttr("id").addClass("logo-clone"),e('#header-outer[data-condense="true"]').length>0&&0==e('#header-outer[data-menu-bottom-bar-align="left"]').length&&r.prepend(d)),e('#page-header-bg[data-animate-in-effect="zoom-out"]').addClass("loaded")});
|
||||
8
cloned-websites/klz-cables_com/wp-content/themes/salient/js/build/third-party/anime.min.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* hoverIntent v1.9.0 // 2017.09.01 // jQuery v1.7.0+
|
||||
* http://briancherne.github.io/jquery-hoverIntent/
|
||||
*
|
||||
* You may use hoverIntent under the terms of the MIT license. Basically that
|
||||
* means you are free to use hoverIntent as long as this header is left intact.
|
||||
* Copyright 2007-2017 Brian Cherne
|
||||
*/
|
||||
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,track=function(ev){cX=ev.pageX,cY=ev.pageY},compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)},delay=function(ev,$el,s,out){return delete $el.data("hoverIntent")[s.id],out.apply($el[0],[ev])};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});var handleHover=function(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){delay(ev,$el,state,cfg.out)},cfg.timeout)}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*
|
||||
* jQuery Easing v1.4.1 - http://gsgd.co.uk/sandbox/jquery/easing/
|
||||
*/
|
||||
!function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}void 0!==n.easing&&(n.easing.jswing=n.easing.swing);var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,o=1.70158,c=1.525*o,s=2*a/3,f=2*a/4.5;return n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-t(2,20*n-10)*r((20*n-11.125)*f)/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return 2.70158*n*n*n-o*n*n},easeOutBack:function(n){return 1+2.70158*t(n-1,3)+o*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-c)/2:(t(2*n-2,2)*((c+1)*(2*n-2)+c)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}}),n});
|
||||
@@ -0,0 +1,5 @@
|
||||
/*!
|
||||
* jQuery Mousewheel 3.1.13
|
||||
* Copyright OpenJS Foundation and other contributors
|
||||
*/
|
||||
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(u){var f,d,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in window.document||9<=window.document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],w=Array.prototype.slice;if(u.event.fixHooks)for(var i=e.length;i;)u.event.fixHooks[e[--i]]=u.event.mouseHooks;var c=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,{passive:false});else this.onmousewheel=n;u.data(this,"mousewheel-line-height",c.getLineHeight(this)),u.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),i=t["offsetParent"in u.fn?"offsetParent":"parent"]();return i.length||(i=u("body")),parseInt(i.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,i=e||window.event,n=w.call(arguments,1),o=0,l=0,s=0;if((e=u.event.fix(i)).type="mousewheel","detail"in i&&(s=-1*i.detail),"wheelDelta"in i&&(s=i.wheelDelta),"wheelDeltaY"in i&&(s=i.wheelDeltaY),"wheelDeltaX"in i&&(l=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(l=-1*s,s=0),o=0===s?l:s,"deltaY"in i&&(o=s=-1*i.deltaY),"deltaX"in i&&(l=i.deltaX,0===s&&(o=-1*l)),0!==s||0!==l){if(1===i.deltaMode){var a=u.data(this,"mousewheel-line-height");o*=a,s*=a,l*=a}else if(2===i.deltaMode){var h=u.data(this,"mousewheel-page-height");o*=h,s*=h,l*=h}if(t=Math.max(Math.abs(s),Math.abs(l)),(!d||t<d)&&g(i,d=t)&&(d/=40),g(i,t)&&(o/=40,l/=40,s/=40),o=Math[1<=o?"floor":"ceil"](o/d),l=Math[1<=l?"floor":"ceil"](l/d),s=Math[1<=s?"floor":"ceil"](s/d),c.settings.normalizeOffset&&this.getBoundingClientRect){var r=this.getBoundingClientRect();e.offsetX=e.clientX-r.left,e.offsetY=e.clientY-r.top}return e.deltaX=l,e.deltaY=s,e.deltaFactor=d,e.deltaMode=0,n.unshift(e,o,l,s),f&&window.clearTimeout(f),f=window.setTimeout(m,200),(u.event.dispatch||u.event.handle).apply(this,n)}}function m(){d=null}function g(e,t){return c.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}u.fn.extend({mousewheel:function(e){return e?this.on("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.off("mousewheel",e)}})});
|
||||