init
This commit is contained in:
213
public/frontend/web/scripts/bxslider/jquery.bxslider-list.css
Executable file
213
public/frontend/web/scripts/bxslider/jquery.bxslider-list.css
Executable file
@@ -0,0 +1,213 @@
|
||||
/**
|
||||
* BxSlider v4.0 - Fully loaded, responsive content slider
|
||||
* http://bxslider.com
|
||||
*
|
||||
* Written by: Steven Wanderski, 2012
|
||||
* http://stevenwanderski.com
|
||||
* (while drinking Belgian ales and listening to jazz)
|
||||
*
|
||||
* CEO and founder of bxCreative, LTD
|
||||
* http://bxcreative.com
|
||||
*/
|
||||
|
||||
|
||||
/** RESET AND LAYOUT
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
*zoom: 1;
|
||||
}
|
||||
@media screen and (min-width:1480px){
|
||||
.bx-wrapper{width:1440px;}
|
||||
}
|
||||
.bx-wrapper img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/** THEME
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper .bx-viewport {
|
||||
background-color:transparent;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager,
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
position: relative;
|
||||
bottom: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* LOADER */
|
||||
|
||||
.bx-wrapper .bx-loading {
|
||||
min-height: 50px;
|
||||
background: url(images/bx_loader.gif) center center no-repeat #fff;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
/* PAGER */
|
||||
|
||||
.bx-wrapper .bx-pager {
|
||||
text-align: center;
|
||||
font-size: .85em;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager .bx-pager-item,
|
||||
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
||||
display: inline-block;
|
||||
*zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a {
|
||||
background: #999;
|
||||
text-indent: -9999px;
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0 5px;
|
||||
outline: 0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
||||
.bx-wrapper .bx-pager.bx-default-pager a.active {
|
||||
background: #00a0e9;
|
||||
}
|
||||
|
||||
/* DIRECTION CONTROLS (NEXT / PREV) */
|
||||
|
||||
.bx-wrapper .bx-prev {
|
||||
right: 101%; background: url(/uploads/category/list-left.png) no-repeat; width:2.5vw; height: 10.26vw; background-size:100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next {
|
||||
left: 101%; background: url(/uploads/category/list-right.png) no-repeat; width:2.5vw; height: 10.26vw; background-size:100%;
|
||||
}
|
||||
|
||||
|
||||
.bx-wrapper .bx-prev:hover {
|
||||
right: 101%; background: url(/uploads/category/list-one-left.png) no-repeat; width:2.5vw; height: 10.26vw; background-size:100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next:hover {
|
||||
left: 101%; background: url(/uploads/category/list-one-right.png) no-repeat; width:2.5vw; height: 10.26vw; background-size:100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a, .bx-wrapper .bx-controls-direction a:hover {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
outline: 0;
|
||||
text-indent: -9999px;
|
||||
z-index: 99;
|
||||
width:3.02vw;
|
||||
height: 6.66vw;
|
||||
margin-top:-3.33vw;
|
||||
}
|
||||
|
||||
@media screen and (max-width:640px){
|
||||
.bx-wrapper .bx-prev {
|
||||
right: 100%; background: url(/uploads/category/list-one-left.png) no-repeat; width:5.625vw; height: 12.4vw; background-size:100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next {
|
||||
left: 100%; background: url(/uploads/category/list-one-right.png) no-repeat; width:5.625vw; height: 12.4vw; background-size:100%;
|
||||
}
|
||||
.bx-wrapper .bx-controls-direction a {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
outline: 0;
|
||||
text-indent: -9999px;
|
||||
z-index: 9999;
|
||||
width:5.625vw;
|
||||
height: 12.4vw;
|
||||
margin-top:-6.2vw;
|
||||
}
|
||||
}
|
||||
.bx-wrapper .bx-controls-direction a.disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* AUTO CONTROLS (START / STOP) */
|
||||
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 10px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -11px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-start.active {
|
||||
background-position: -86px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 9px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -44px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-stop.active {
|
||||
background-position: -86px -33px;
|
||||
}
|
||||
|
||||
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
||||
text-align: left;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
||||
right: 0;
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
/* IMAGE CAPTIONS */
|
||||
|
||||
.bx-wrapper .bx-caption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #666\9;
|
||||
background: rgba(80, 80, 80, 0.75);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-caption span {
|
||||
color: #fff;
|
||||
font-family: Arial;
|
||||
display: block;
|
||||
font-size: .85em;
|
||||
padding: 10px;
|
||||
}
|
||||
257
public/frontend/web/scripts/bxslider/jquery.bxslider.css
Executable file
257
public/frontend/web/scripts/bxslider/jquery.bxslider.css
Executable file
@@ -0,0 +1,257 @@
|
||||
/**
|
||||
* BxSlider v4.0 - Fully loaded, responsive content slider
|
||||
* http://bxslider.com
|
||||
*
|
||||
* Written by: Steven Wanderski, 2012
|
||||
* http://stevenwanderski.com
|
||||
* (while drinking Belgian ales and listening to jazz)
|
||||
*
|
||||
* CEO and founder of bxCreative, LTD
|
||||
* http://bxcreative.com
|
||||
*/
|
||||
|
||||
|
||||
/** RESET AND LAYOUT
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
.bx-wrapper img {
|
||||
max-width: 100%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/** THEME
|
||||
===================================*/
|
||||
|
||||
.bx-wrapper .bx-viewport {
|
||||
background-color:transparent;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager,
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
position: relative;
|
||||
bottom: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* LOADER */
|
||||
|
||||
|
||||
.bx-wrapper .bx-loading {
|
||||
min-height: 50px;
|
||||
/*background: url(images/bx_loader.gif) center center no-repeat #fff;*/
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 2000;
|
||||
}
|
||||
|
||||
/* PAGER */
|
||||
|
||||
.bx-wrapper .bx-pager {
|
||||
text-align: center;
|
||||
font-size: .85em;
|
||||
font-family: Arial;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager .bx-pager-item,
|
||||
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
|
||||
display: inline-block;
|
||||
*zoom: 1;
|
||||
*display: inline;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a {
|
||||
background: #999;
|
||||
text-indent: -9999px;
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin: 0 5px;
|
||||
outline: 0;
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-pager.bx-default-pager a:hover,
|
||||
.bx-wrapper .bx-pager.bx-default-pager a.active {
|
||||
background: #00a0e9;
|
||||
}
|
||||
|
||||
/* DIRECTION CONTROLS (NEXT / PREV) */
|
||||
|
||||
.bx-wrapper .bx-prev {
|
||||
left: 10px;
|
||||
background: url(images/controls.png) no-repeat 0 -32px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next {
|
||||
right: 10px;
|
||||
background: url(images/controls.png) no-repeat -43px -32px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-prev:hover {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-next:hover {
|
||||
background-position: -43px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
margin-top: -16px;
|
||||
outline: 0;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
text-indent: -9999px;
|
||||
z-index: 9;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-direction a.disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* AUTO CONTROLS (START / STOP) */
|
||||
|
||||
.bx-wrapper .bx-controls-auto {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 10px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -11px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-start:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-start.active {
|
||||
background-position: -86px 0;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop {
|
||||
display: block;
|
||||
text-indent: -9999px;
|
||||
width: 9px;
|
||||
height: 11px;
|
||||
outline: 0;
|
||||
background: url(images/controls.png) -86px -44px no-repeat;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls-auto .bx-stop:hover,
|
||||
.bx-wrapper .bx-controls-auto .bx-stop.active {
|
||||
background-position: -86px -33px;
|
||||
}
|
||||
|
||||
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
|
||||
text-align: left;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
|
||||
right: 0;
|
||||
width: 35px;
|
||||
}
|
||||
|
||||
/* IMAGE CAPTIONS */
|
||||
|
||||
.bx-wrapper .bx-caption {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background: #666\9;
|
||||
background: rgba(80, 80, 80, 0.75);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.bx-wrapper .bx-caption span {
|
||||
color: #fff;
|
||||
font-family: Arial;
|
||||
display: block;
|
||||
font-size: .85em;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
/*首页品类探索*/
|
||||
.lj_index_img_01 .bx-wrapper .bx-prev {left:auto; right: 101%; background: url(/uploads/category/list-one-left.png) no-repeat; width:2.5vw; height: 10.26vw; background-size:100%;}
|
||||
.lj_index_img_01 .bx-wrapper .bx-next {right:auto; left: 101%; background: url(/uploads/category/list-one-right.png) no-repeat; width:2.5vw; height: 10.26vw; background-size:100%;}
|
||||
.lj_index_img_01 .bx-wrapper .bx-controls-direction a {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
outline: 0;
|
||||
text-indent: -9999px;
|
||||
z-index: 9999;
|
||||
width:3.02vw;
|
||||
height: 6.66vw;
|
||||
margin-top:-3.33vw;
|
||||
}
|
||||
|
||||
@media screen and (max-width:640px){
|
||||
.lj_index_img_01 .bx-wrapper .bx-prev {
|
||||
left:auto; right: 100%; background: url(/uploads/category/list-one-left.png) no-repeat; width:5.625vw; height: 12.4vw; background-size:100%;
|
||||
}
|
||||
|
||||
.lj_index_img_01 .bx-wrapper .bx-next {
|
||||
right:auto; left: 100%; background: url(/uploads/category/list-one-right.png) no-repeat; width:5.625vw; height: 12.4vw; background-size:100%;
|
||||
}
|
||||
.lj_index_img_01 .bx-wrapper .bx-controls-direction a {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
outline: 0;
|
||||
text-indent: -9999px;
|
||||
z-index: 1;
|
||||
width:5.625vw;
|
||||
height: 12.4vw;
|
||||
margin-top:-6.2vw;
|
||||
}
|
||||
}
|
||||
.lj_index_img_01 .bx-wrapper {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
*zoom: 1;
|
||||
}
|
||||
|
||||
/*首页新闻*/
|
||||
.index_news .bx-wrapper .bx-prev {
|
||||
left:-6.8vw; right: 100%; background: url(../../images/home/new_l.jpg) no-repeat; width:3.34vw; height: 6.67vw; background-size:100%;
|
||||
}
|
||||
|
||||
.index_news .bx-wrapper .bx-next {
|
||||
right:-6.8vw; background: url(../../images/home/new_r.jpg) no-repeat; width:3.34vw; height: 6.67vw; background-size:100%;
|
||||
}
|
||||
|
||||
|
||||
.index_news .bx-wrapper .bx-prev:hover {
|
||||
left:-6.8vw; right: 100%; background: url(../../images/home/new_l_hover.jpg) no-repeat; width:3.34vw; height: 6.67vw; background-size:100%;
|
||||
}
|
||||
|
||||
.index_news .bx-wrapper .bx-next:hover {
|
||||
right:-6.8vw; background: url(../../images/home/new_r_hover.jpg) no-repeat; width:3.34vw; height: 6.67vw; background-size:100%;
|
||||
}
|
||||
.index_news .bx-wrapper .bx-controls-direction a{top: 50%; margin-top: -3.335vw;}
|
||||
|
||||
.home_new .bx-wrapper .bx-pager{margin-top:-20px; padding-top:0}
|
||||
|
||||
|
||||
10
public/frontend/web/scripts/bxslider/jquery.bxslider.min.js
vendored
Executable file
10
public/frontend/web/scripts/bxslider/jquery.bxslider.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
151
public/frontend/web/scripts/comment.js
Executable file
151
public/frontend/web/scripts/comment.js
Executable file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
parentcontent //父容器
|
||||
boxcontent // 评论区图片展示区域
|
||||
*/
|
||||
function commentMove(parentcontent, boxcontent) {
|
||||
this.obj = {
|
||||
activeClass: 'tm-current',
|
||||
nextButton: '.tm-m-photo-viewer-navright',
|
||||
prevButton: '.tm-m-photo-viewer-navleft',
|
||||
}
|
||||
this.parentcontent = parentcontent;
|
||||
this.boxcontent = boxcontent;
|
||||
|
||||
}
|
||||
commentMove.prototype = {
|
||||
init: function() {
|
||||
var that = this;
|
||||
that.start();
|
||||
this.lefthover();
|
||||
this.righthover();
|
||||
this.leftclick();
|
||||
this.rightclick();
|
||||
},
|
||||
start: function() {
|
||||
var that = this;
|
||||
var src;
|
||||
$(that.parentcontent + ' li').click(function() {
|
||||
var haha = this;
|
||||
|
||||
$(this).toggleClass(that.obj.activeClass).siblings().removeClass(that.obj.activeClass);
|
||||
|
||||
console.log($(this).attr('class'));
|
||||
if ($(this).attr("class") == "tm-current") {
|
||||
src = $(haha).children(img)[0].src;
|
||||
|
||||
console.log("111111111");
|
||||
console.log(src);
|
||||
} else{
|
||||
console.log("22222222")
|
||||
src = "aaa";
|
||||
|
||||
console.log(src);
|
||||
}
|
||||
|
||||
// var src = $('.' + that.obj.activeClass).attr('data-src');
|
||||
|
||||
|
||||
var img = new Image();
|
||||
img.src = src;
|
||||
img.onload = function() {
|
||||
var imageWidth = img.width;
|
||||
var imageHeight = img.height;
|
||||
$(haha).parent().parent().children('.tm-m-photo-viewer').css({
|
||||
"width": imageWidth,
|
||||
"height": imageHeight
|
||||
})
|
||||
$(that.obj.prevButton).css({
|
||||
"width": imageWidth / 3,
|
||||
"height": imageHeight
|
||||
})
|
||||
$(that.obj.prevButton).children().css({
|
||||
"top": imageHeight / 2 - 10 + 'px'
|
||||
})
|
||||
$(that.obj.nextButton).children().css({
|
||||
"top": imageHeight / 2 - 10 + 'px'
|
||||
})
|
||||
|
||||
}
|
||||
if(src == "aaa") {
|
||||
|
||||
console.log(src);
|
||||
$(that.boxcontent).css({
|
||||
"width": 0,
|
||||
"height": 0
|
||||
});
|
||||
} else {
|
||||
console.log(src);
|
||||
$(haha).parent().parent().children('.tm-m-photo-viewer').children(img).attr('src', src);
|
||||
}
|
||||
})
|
||||
},
|
||||
lefthover: function() {
|
||||
var that = this;
|
||||
$(that.obj.prevButton).hover(function() {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
if(index < 1) {
|
||||
$(this).children().css("display", "none");
|
||||
} else {
|
||||
$(this).children().css({
|
||||
"display": "inline"
|
||||
});
|
||||
}
|
||||
}, function() {
|
||||
$(this).children().css({
|
||||
"display": "none"
|
||||
});
|
||||
})
|
||||
},
|
||||
righthover: function() {
|
||||
var that = this;
|
||||
|
||||
$(that.obj.nextButton).hover(function() {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
if(index >= $(that.parentcontent + ' li').length - 1) {
|
||||
$(this).children().css("display", "none");
|
||||
} else {
|
||||
$(this).children().css({
|
||||
"display": "inline"
|
||||
});
|
||||
}
|
||||
}, function() {
|
||||
$(this).children().css({
|
||||
"display": "none"
|
||||
});
|
||||
})
|
||||
},
|
||||
leftclick: function() {
|
||||
var that = this;
|
||||
$(that.obj.prevButton).click(function() {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
|
||||
index--;
|
||||
if(index >= 0) {
|
||||
$(that.parentcontent + ' li').eq(index).toggleClass(that.obj.activeClass).siblings().removeClass(that.obj.activeClass)
|
||||
$(that.boxcontent + " img").attr("src", $(that.parentcontent + ' li').eq(index).attr('data-src'))
|
||||
}
|
||||
if(index < 1) {
|
||||
index = 0;
|
||||
$(this).children().css({
|
||||
"display": "none"
|
||||
});
|
||||
return;
|
||||
}
|
||||
})
|
||||
},
|
||||
rightclick: function() {
|
||||
var that = this;
|
||||
$(that.obj.nextButton).click(function() {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
index++;
|
||||
$(that.boxcontent + " img").attr("src", $(that.parentcontent + ' li').eq(index).attr('data-src'))
|
||||
|
||||
$(that.parentcontent + ' li').eq(index).toggleClass(that.obj.activeClass).siblings().removeClass(that.obj.activeClass);
|
||||
if(index >= $(that.parentcontent + ' li').length - 1) {
|
||||
$(this).children().css({
|
||||
"display": "none"
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
111
public/frontend/web/scripts/comment1.js
Executable file
111
public/frontend/web/scripts/comment1.js
Executable file
@@ -0,0 +1,111 @@
|
||||
|
||||
/*
|
||||
parentcontent //父容器
|
||||
boxcontent // 评论区图片展示区域
|
||||
*/
|
||||
function commentMove(parentcontent, boxcontent) {
|
||||
this.obj = {
|
||||
activeClass: 'tm-current',
|
||||
nextButton: '.tm-m-photo-viewer-navright',
|
||||
prevButton: '.tm-m-photo-viewer-navleft',
|
||||
}
|
||||
this.parentcontent = parentcontent;
|
||||
this.boxcontent = boxcontent;
|
||||
|
||||
}
|
||||
commentMove.prototype = {
|
||||
init: function () {
|
||||
var that = this;
|
||||
that.start();
|
||||
this.lefthover();
|
||||
this.righthover();
|
||||
this.leftclick();
|
||||
this.rightclick();
|
||||
},
|
||||
start: function () {
|
||||
var that = this;
|
||||
$(that.parentcontent + ' li').click(function () {
|
||||
console.log('点击了enlarge-img');
|
||||
$(this).toggleClass(that.obj.activeClass).siblings().removeClass(that.obj.activeClass);
|
||||
var src = $('.' + that.obj.activeClass).attr('data-src');
|
||||
|
||||
var img = new Image();
|
||||
img.src = src;
|
||||
img.onload = function () {
|
||||
var imageWidth = img.width;
|
||||
var imageHeight = img.height;
|
||||
$(that.boxcontent).css({ "width": imageWidth, "height": imageHeight })
|
||||
$(that.obj.prevButton).css({ "width": imageWidth / 3, "height": imageHeight })
|
||||
$(that.obj.prevButton).children().css({ "top": imageHeight / 2 - 10 + 'px' })
|
||||
$(that.obj.nextButton).children().css({ "top": imageHeight / 2 - 10 + 'px' })
|
||||
|
||||
}
|
||||
if (!src) {
|
||||
$(that.boxcontent).css({ "width": 0, "height": 0 });
|
||||
} else {
|
||||
$(that.boxcontent + " img").attr('src', src);
|
||||
}
|
||||
})
|
||||
},
|
||||
lefthover: function () {
|
||||
var that = this;
|
||||
$(that.obj.prevButton).hover(function () {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
if (index < 1) {
|
||||
$(this).children().css("display", "none");
|
||||
} else {
|
||||
$(this).children().css({ "display": "inline" });
|
||||
}
|
||||
}, function () {
|
||||
$(this).children().css({ "display": "none" });
|
||||
})
|
||||
},
|
||||
righthover: function () {
|
||||
var that = this;
|
||||
|
||||
$(that.obj.nextButton).hover(function () {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
if (index >= $(that.parentcontent + ' li').length - 1) {
|
||||
$(this).children().css("display", "none");
|
||||
} else {
|
||||
$(this).children().css({ "display": "inline" });
|
||||
}
|
||||
}, function () {
|
||||
$(this).children().css({ "display": "none" });
|
||||
})
|
||||
},
|
||||
leftclick: function () {
|
||||
var that = this;
|
||||
$(that.obj.prevButton).click(function () {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
|
||||
index--;
|
||||
if (index >= 0) {
|
||||
$(that.parentcontent + ' li').eq(index).toggleClass(that.obj.activeClass).siblings().removeClass(that.obj.activeClass)
|
||||
$(that.boxcontent + " img").attr("src", $(that.parentcontent + ' li').eq(index).attr('data-src'))
|
||||
}
|
||||
if (index < 1) {
|
||||
index = 0;
|
||||
$(this).children().css({ "display": "none" });
|
||||
return;
|
||||
}
|
||||
})
|
||||
},
|
||||
rightclick: function () {
|
||||
var that = this;
|
||||
$(that.obj.nextButton).click(function () {
|
||||
var index = $(that.parentcontent + ' li').index($(that.parentcontent + ' li.' + that.obj.activeClass));
|
||||
index++;
|
||||
$(that.boxcontent + " img").attr("src", $(that.parentcontent + ' li').eq(index).attr('data-src'))
|
||||
|
||||
$(that.parentcontent + ' li').eq(index).toggleClass(that.obj.activeClass).siblings().removeClass(that.obj.activeClass);
|
||||
if (index >= $(that.parentcontent + ' li').length - 1) {
|
||||
$(this).children().css({ "display": "none" });
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
1
public/frontend/web/scripts/common.js
Executable file
1
public/frontend/web/scripts/common.js
Executable file
@@ -0,0 +1 @@
|
||||
|
||||
891
public/frontend/web/scripts/enlarge/index.js
Executable file
891
public/frontend/web/scripts/enlarge/index.js
Executable file
@@ -0,0 +1,891 @@
|
||||
;(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
factory(require('jquery'));
|
||||
} else {
|
||||
factory(jQuery);
|
||||
}
|
||||
})(function ($) {
|
||||
'use strict';
|
||||
var $W = $(window), $D = $(document), jqEle = null, isMoving = false, isResizing = false;
|
||||
var EVENTS = {
|
||||
CLICK: 'click',
|
||||
KEYDOWN: 'keydown',
|
||||
RESIZE: 'resize',
|
||||
WHEEL: 'wheel mousewheel DOMMouseScroll',
|
||||
MOUSESTART: 'mousedown',
|
||||
MOUSEMOVE: 'mousemove',
|
||||
MOUSEEND: 'mouseup',
|
||||
EVENT_NS: '.magnify'
|
||||
};
|
||||
var cssSelector = {
|
||||
'modal': '.magnify-modal',
|
||||
'header': '.magnify-header',
|
||||
'footer': '.magnify-footer',
|
||||
'toolbar': '.magnify-toolbar',
|
||||
'stage': '.magnify-stage',
|
||||
'title': '.magnify-title',
|
||||
'image': '.magnify-image',
|
||||
'close': '.magnify-btn-close',
|
||||
'zoomIn': '.magnify-btn-zoomIn',
|
||||
'zoomOut': '.magnify-btn-zoomOut',
|
||||
'prev': '.magnify-btn-prev',
|
||||
'next': '.magnify-btn-next',
|
||||
'actualSize': '.magnify-btn-actualSize',
|
||||
'rotateLeft': '.magnify-btn-rotateLeft',
|
||||
'rotateRight': '.magnify-btn-rotateRight',
|
||||
'loader': '.magnify-loader',
|
||||
'btn': '.magnify-btn'
|
||||
};
|
||||
|
||||
/*
|
||||
* draggable 是否支持模态框拖动
|
||||
* resizable 是否支持模态框改变弹窗大小
|
||||
* movable 是否支持图片拖动
|
||||
* keyboard 是否支持键盘操作
|
||||
* title 是否显示图片标题
|
||||
* Toolbar 底部工具选项
|
||||
* i18n 中文说明
|
||||
* callbacks 回调函数
|
||||
* modalSize 默认弹层大小(width,height)
|
||||
* modalOffset 弹层偏移量(x轴,y轴)
|
||||
* ratioThreshold 缩放阈值
|
||||
* dragHandle 拖拽选择器
|
||||
* */
|
||||
|
||||
var defaults = {
|
||||
draggable: false,
|
||||
resizable: false,
|
||||
movable: false,
|
||||
keyboard: false,
|
||||
title: true,
|
||||
Toolbar: [
|
||||
'prev',
|
||||
'next',
|
||||
'rotateLeft',
|
||||
'rotateRight',
|
||||
'zoomIn',
|
||||
'actualSize',
|
||||
'zoomOut'
|
||||
],
|
||||
i18n: {
|
||||
close: '关闭',
|
||||
zoomIn: '放大(+)',
|
||||
zoomOut: '缩小(-)',
|
||||
prev: '上一张(←)',
|
||||
next: '下一张(→)',
|
||||
actualSize: '实际尺寸(Ctrl+Alt+0)',
|
||||
rotateLeft: '左旋转(Ctrl+,)',
|
||||
rotateRight: '右旋转(Ctrl+.)'
|
||||
},
|
||||
modalSize: [800, 600],
|
||||
modalOffset: [0, 0],
|
||||
ratioThreshold: 0.1,
|
||||
minRatio: 0.1,
|
||||
maxRatio: 16,
|
||||
dragHandle: false,
|
||||
beforeOpen: null,
|
||||
opened: null,
|
||||
beforeClose: null,
|
||||
closed: null,
|
||||
beforeChange: null,
|
||||
changed: null,
|
||||
ieTransforms: {
|
||||
/*'0': 'progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=0, M21=0, M22=1, SizingMethod="auto expand")',
|
||||
'90': 'progid:DXImageTransform.Microsoft.Matrix(M11=0, M12=-1, M21=1, M22=0, SizingMethod="auto expand")',
|
||||
'180': 'progid:DXImageTransform.Microsoft.Matrix(M11=-1, M12=0, M21=0, M22=-1, SizingMethod="auto expand")',
|
||||
'270': 'progid:DXImageTransform.Microsoft.Matrix(M11=0, M12=1, M21=-1, M22=0, SizingMethod="auto expand")'*/
|
||||
'0': 'progid:DXImageTransform.Microsoft.BasicImage(rotation=0)',
|
||||
'90': 'progid:DXImageTransform.Microsoft.BasicImage(rotation=1)',
|
||||
'180': 'progid:DXImageTransform.Microsoft.BasicImage(rotation=2)',
|
||||
'270': 'progid:DXImageTransform.Microsoft.BasicImage(rotation=3)'
|
||||
}
|
||||
};
|
||||
|
||||
var magnify = function (ele, opts) {
|
||||
this.settings = $.extend(true, {}, defaults, opts);
|
||||
if (opts && $.isArray(opts.Toolbar)) {
|
||||
if (opts.Toolbar.length !== defaults.Toolbar.length) {
|
||||
this.settings.Toolbar = opts.Toolbar;
|
||||
} else {
|
||||
this.settings.Toolbar = defaults.Toolbar;
|
||||
}
|
||||
}
|
||||
this.$ele = $(ele);
|
||||
this.isOpened = false;
|
||||
this.isRotated = false;
|
||||
this.rotateAngle = 0;
|
||||
this.imageData = {};
|
||||
this.modalData = {
|
||||
width: null,
|
||||
height: null,
|
||||
left: null,
|
||||
top: null
|
||||
};
|
||||
this.init(ele);
|
||||
};
|
||||
|
||||
magnify.prototype = {
|
||||
init: function (ele) {
|
||||
var imgSrc = getImgSrc(ele);
|
||||
this.groupName = null;
|
||||
var currentGroupName = $(ele).data('group');
|
||||
var groupList = $D.find('[data-group="' + currentGroupName + '"]');
|
||||
if (currentGroupName !== undefined) {
|
||||
this.groupName = currentGroupName;
|
||||
this.getImgGroup(groupList, imgSrc);
|
||||
} else {
|
||||
this.getImgGroup(jqEle.not('[data-group]'), imgSrc);
|
||||
}
|
||||
this.open();
|
||||
this.loadImg(imgSrc);
|
||||
if (this.settings.draggable) {
|
||||
this.draggable(this.$magnify, this.dragHandle, cssSelector.btn)
|
||||
}
|
||||
if (this.settings.movable) {
|
||||
this.movable(this.$stage, this.$image);
|
||||
}
|
||||
if (this.settings.resizable) {
|
||||
this.resizable(this.$magnify, this.$stage, this.$image, this.settings.modalSize);
|
||||
}
|
||||
},
|
||||
open: function () {
|
||||
if ($(cssSelector.modal)) {
|
||||
$(cssSelector.modal).remove();
|
||||
}
|
||||
this.build();
|
||||
this.triggerHook('beforeOpen', this.$ele);
|
||||
$('body').append(this.$magnify);
|
||||
this.addEvents();
|
||||
this.setModalPos(this.$magnify);
|
||||
this.triggerHook('opened', this.$ele);
|
||||
},
|
||||
build: function () {
|
||||
var _html = this.createDOM();
|
||||
var $magnify = $(_html);
|
||||
//获取所有magnify DOM元素
|
||||
this.$magnify = $magnify;
|
||||
this.$header = $magnify.find(cssSelector.header);
|
||||
this.$footer = $magnify.find(cssSelector.footer);
|
||||
this.$toolbar = $magnify.find(cssSelector.toolbar);
|
||||
this.$stage = $magnify.find(cssSelector.stage);
|
||||
this.$title = $magnify.find(cssSelector.title);
|
||||
this.$image = $magnify.find(cssSelector.image);
|
||||
this.$close = $magnify.find(cssSelector.close);
|
||||
this.$zoomIn = $magnify.find(cssSelector.zoomIn);
|
||||
this.$zoomOut = $magnify.find(cssSelector.zoomOut);
|
||||
this.$prev = $magnify.find(cssSelector.prev);
|
||||
this.$next = $magnify.find(cssSelector.next);
|
||||
this.$fullScreen = $magnify.find(cssSelector.fullScreen);
|
||||
this.$actualSize = $magnify.find(cssSelector.actualSize);
|
||||
this.$rotateLeft = $magnify.find(cssSelector.rotateLeft);
|
||||
this.$rotateRight = $magnify.find(cssSelector.rotateRight);
|
||||
|
||||
if (!this.settings.dragHandle || this.settings.dragHandle === cssSelector.modal) {
|
||||
this.dragHandle = this.$magnify;
|
||||
} else {
|
||||
this.dragHandle = this.$magnify.find(this.settings.dragHandle);
|
||||
}
|
||||
},
|
||||
createDOM: function () {
|
||||
var btnTpl = {
|
||||
zoomIn: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-zoomIn" title="' + this.settings.i18n.zoomIn + '"></a>',
|
||||
zoomOut: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-zoomOut" title="' + this.settings.i18n.zoomOut + '"></a>',
|
||||
prev: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-prev" title="' + this.settings.i18n.prev + '"></a>',
|
||||
next: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-next" title="' + this.settings.i18n.next + '"></a>',
|
||||
actualSize: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-actualSize" title="' + this.settings.i18n.actualSize + '"></a>',
|
||||
rotateLeft: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-rotateLeft" title="' + this.settings.i18n.rotateLeft + '"></a>',
|
||||
rotateRight: '<a href="javascript:void(0)" class="magnify-btn magnify-btn-rotateRight" title="' + this.settings.i18n.rotateRight + '"></a>'
|
||||
};
|
||||
return '<div class="magnify-modal">' +
|
||||
'<div class="magnify-header">' + this.createTitle() +
|
||||
'<a href="javascript:void(0)" class="magnify-btn-close" title="' + this.settings.i18n.close + '"></a>' +
|
||||
'</div>' +
|
||||
'<div class="magnify-stage"><img src="" alt="" class="magnify-image" style="transform: rotate(0deg); transform-origin: 50% 50% 0px;"></div>' +
|
||||
'<div class="magnify-footer"><div class="magnify-toolbar">' + this.createBtn(this.settings.Toolbar, btnTpl) + '</div></div>' +
|
||||
'</div>';
|
||||
},
|
||||
createTitle: function () {
|
||||
return this.settings.title ? '<div class="magnify-title"></div>' : '';
|
||||
},
|
||||
createBtn: function (toolbar, btns) {
|
||||
var btnStr = '';
|
||||
$.each(toolbar, function (index, item) {
|
||||
btnStr += btns[item];
|
||||
});
|
||||
return btnStr;
|
||||
},
|
||||
setModalSize: function () {
|
||||
var self = this;
|
||||
var $modal = this.$magnify;
|
||||
var winWidth = $W.width();
|
||||
var winHeight = $W.height();
|
||||
|
||||
var newLeft = (winWidth - self.modalData.width) / 2;
|
||||
var newTop = (winHeight - self.modalData.height) / 2;
|
||||
$modal.css({
|
||||
left: newLeft,
|
||||
top: newTop
|
||||
});
|
||||
$.extend(self.modalData, {
|
||||
left: newLeft,
|
||||
top: newTop
|
||||
})
|
||||
},
|
||||
setModalPos: function (modal) {
|
||||
var winWidth = $W.width(),
|
||||
winHeight = $W.height(),
|
||||
modalSize = this.settings.modalSize,
|
||||
modalWidth = modalSize[0],
|
||||
modalHeight = modalSize[1];
|
||||
modal.css({
|
||||
width: modalWidth,
|
||||
height: modalHeight,
|
||||
left: (winWidth - modalWidth) / 2,
|
||||
top: (winHeight - modalHeight) / 2
|
||||
});
|
||||
$.extend(this.modalData, {
|
||||
width: modalWidth,
|
||||
height: modalHeight,
|
||||
left: (winWidth - modalWidth) / 2,
|
||||
top: (winHeight - modalHeight) / 2
|
||||
});
|
||||
this.isOpened = true;
|
||||
},
|
||||
setImageSize: function (img, tag) {
|
||||
var stageData = {
|
||||
w: this.$stage.width(),
|
||||
h: this.$stage.height()
|
||||
};
|
||||
var scale = 1;
|
||||
if (!this.isRotated) {
|
||||
scale = Math.min(stageData.w / img.width, stageData.h / img.height, 1);
|
||||
} else {
|
||||
scale = Math.min(stageData.w / img.height, stageData.h / img.width, 1);
|
||||
}
|
||||
|
||||
/* this.$image.css({
|
||||
width: Math.ceil(img.width * scale),
|
||||
height: Math.ceil(img.height * scale),
|
||||
left: (stageData.w - Math.ceil(img.width * scale)) / 2,
|
||||
top: (stageData.h - Math.ceil(img.height * scale)) / 2
|
||||
});*/
|
||||
|
||||
//console.log(stageData.w, this.$image.width(), img.width);
|
||||
|
||||
|
||||
//如果进行了旋转
|
||||
if (this.isRotated && tag === 'jump') {
|
||||
this.$image.css({
|
||||
left: (stageData.w - this.$image.width()) / 2,
|
||||
top: (stageData.h - this.$image.height()) / 2
|
||||
})
|
||||
} else {
|
||||
this.$image.css({
|
||||
width: Math.ceil(img.width * scale),
|
||||
height: Math.ceil(img.height * scale),
|
||||
left: (stageData.w - Math.ceil(img.width * scale)) / 2,
|
||||
top: (stageData.h - Math.ceil(img.height * scale)) / 2
|
||||
});
|
||||
}
|
||||
|
||||
$.extend(this.imageData, {
|
||||
width: img.width * scale,
|
||||
height: img.height * scale,
|
||||
left: (stageData.w - img.width * scale) / 2,
|
||||
top: (stageData.h - img.height * scale) / 2
|
||||
});
|
||||
setGrabCursor(
|
||||
{w: this.$image.width(), h: this.$image.height()},
|
||||
{w: this.$stage.width(), h: this.$stage.height()},
|
||||
this.$stage,
|
||||
this.isRotated
|
||||
);
|
||||
|
||||
this.$magnify.find(cssSelector.loader).remove();
|
||||
this.$image.fadeIn();
|
||||
|
||||
//console.log(this.$image);
|
||||
},
|
||||
loadImg: function (imgSrc, tag) {
|
||||
var self = this;
|
||||
var loadHTML = '<div class="magnify-loader"></div>';
|
||||
this.$magnify.append(loadHTML);
|
||||
self.$image.attr('src', imgSrc);
|
||||
//imgSrc = './images/b1.png';
|
||||
imgSrc = './images/b1.jpg';
|
||||
preLoadImg(imgSrc, function (img) {
|
||||
self.imageData = {
|
||||
originalWidth: img.width,
|
||||
originalHeight: img.height
|
||||
};
|
||||
self.setImageSize(img, tag);
|
||||
|
||||
}, function () {
|
||||
self.$magnify.find(cssSelector.loader).remove();
|
||||
});
|
||||
|
||||
if (this.settings.title) {
|
||||
this.setImgTitle();
|
||||
}
|
||||
},
|
||||
getImgGroup: function (list, imgSrc) {
|
||||
var self = this;
|
||||
self.groupData = [];
|
||||
$(list).each(function (index, item) {
|
||||
var src = getImgSrc(item);
|
||||
self.groupData.push({
|
||||
src: src,
|
||||
caption: $(item).data('caption')
|
||||
});
|
||||
if (imgSrc === src) {
|
||||
self.groupIndex = index;
|
||||
}
|
||||
})
|
||||
},
|
||||
setImgTitle: function () {
|
||||
var index = this.groupIndex;
|
||||
var caption = this.groupData[index].caption;
|
||||
caption = caption ? caption : '';
|
||||
this.$title.text(caption);
|
||||
},
|
||||
triggerHook: function (e, data) {
|
||||
if (typeof this.settings[e] === 'function') {
|
||||
typeof this.settings[e].call(this, $.isArray(data) ? data : [data], this.$magnify);
|
||||
}
|
||||
},
|
||||
addEvents: function () {
|
||||
var self = this;
|
||||
this.$close.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.close();
|
||||
});
|
||||
this.$prev.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.jump(-1);
|
||||
});
|
||||
this.$next.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.jump(1);
|
||||
});
|
||||
this.$zoomIn.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.zoom(self.settings.ratioThreshold * 3, {x: self.$stage.width() / 2, y: self.$stage.height() / 2});
|
||||
});
|
||||
this.$zoomOut.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.zoom(-self.settings.ratioThreshold * 3, {x: self.$stage.width() / 2, y: self.$stage.height() / 2});
|
||||
});
|
||||
this.$actualSize.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.actualSize();
|
||||
});
|
||||
this.$rotateLeft.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.rotate(-90);
|
||||
});
|
||||
this.$rotateRight.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function () {
|
||||
self.rotate(90);
|
||||
});
|
||||
this.$stage.off(EVENTS.WHEEL + EVENTS.EVENT_NS).on(EVENTS.WHEEL + EVENTS.EVENT_NS, function (e) {
|
||||
self.wheel(e);
|
||||
});
|
||||
$D.off(EVENTS.KEYDOWN + EVENTS.EVENT_NS).on(EVENTS.KEYDOWN + EVENTS.EVENT_NS, function (e) {
|
||||
self.keyDown(e);
|
||||
});
|
||||
$W.on(EVENTS.RESIZE + EVENTS.EVENT_NS, function () {
|
||||
self.resize();
|
||||
});
|
||||
},
|
||||
close: function () {
|
||||
this.triggerHook('beforeClose', this.$ele);
|
||||
this.$magnify.remove();
|
||||
this.isRotated = false;
|
||||
this.isOpened = false;
|
||||
this.rotateAngle = 0;
|
||||
$D.off(EVENTS.KEYDOWN + EVENTS.EVENT_NS);
|
||||
$W.off(EVENTS.RESIZE + EVENTS.EVENT_NS);
|
||||
this.triggerHook('closed', this.$ele);
|
||||
},
|
||||
wheel: function (e) {
|
||||
stopPre(e);
|
||||
var delta = 1;
|
||||
if (e.originalEvent.deltaY) {
|
||||
delta = e.originalEvent.deltaY > 0 ? 1 : -1;
|
||||
} else if (e.originalEvent.wheelDelta) {
|
||||
delta = -e.originalEvent.wheelDelta / 120;
|
||||
} else if (e.originalEvent.detail) {
|
||||
delta = e.originalEvent.detail > 0 ? 1 : -1;
|
||||
}
|
||||
var ratio = -delta * this.settings.ratioThreshold;
|
||||
var pointer = {
|
||||
x: e.originalEvent.clientX - this.$stage.offset().left + $D.scrollLeft(),
|
||||
y: e.originalEvent.clientY - this.$stage.offset().top + $D.scrollTop()
|
||||
};
|
||||
this.zoom(ratio, pointer, e);
|
||||
},
|
||||
zoom: function (ratio, origin) {
|
||||
ratio = ratio < 0 ? (1 / (1 - ratio)) : (1 + ratio);
|
||||
if (ratio > 0.95 && ratio < 1.05) {
|
||||
ratio = 1;
|
||||
}
|
||||
//ratio = this.$image.width() / this.imageData.originalWidth * ratio;
|
||||
//ratio = this.$image.width() / this.imageData.originalWidth * ratio;
|
||||
ratio = parseInt(this.$image[0].style.width) / this.imageData.originalWidth * ratio;
|
||||
ratio = Math.max(ratio, this.settings.minRatio);
|
||||
ratio = Math.min(ratio, this.settings.maxRatio);
|
||||
|
||||
|
||||
var $image = this.$image;
|
||||
var $stage = this.$stage;
|
||||
var imgData = {
|
||||
w: this.imageData.width,
|
||||
h: this.imageData.height,
|
||||
x: this.imageData.left,
|
||||
y: this.imageData.top
|
||||
};
|
||||
var stageData = {
|
||||
w: $stage.width(),
|
||||
h: $stage.height(),
|
||||
x: $stage.offset().left,
|
||||
y: $stage.offset().top
|
||||
};
|
||||
|
||||
var newWidth = this.imageData.originalWidth * ratio;
|
||||
var newHeight = this.imageData.originalHeight * ratio;
|
||||
var newLeft = origin.x - (origin.x - imgData.x) / imgData.w * newWidth;
|
||||
var newTop = origin.y - (origin.y - imgData.y) / imgData.h * newHeight;
|
||||
|
||||
|
||||
var gt = !this.isRotated ? 0 : (newWidth - newHeight) / 2;
|
||||
var imgNewWidth = !this.isRotated ? newWidth : newHeight;
|
||||
var imgNewHeight = !this.isRotated ? newHeight : newWidth;
|
||||
var offsetX = stageData.w - newWidth;
|
||||
var offsetY = stageData.h - newHeight;
|
||||
|
||||
//先调整图片大小
|
||||
$image.css({
|
||||
width: Math.round(newWidth),
|
||||
height: Math.round(newHeight)
|
||||
});
|
||||
|
||||
//再调整图片位置
|
||||
//获取当前的大小,如果有旋转,会有变化
|
||||
var imgCurrWidth = $image.width();
|
||||
var imgCurrHeight = $image.height();
|
||||
if (imgNewWidth <= stageData.w) {
|
||||
//缩小了 或者 没变
|
||||
newLeft = (stageData.w - imgCurrWidth) / 2;
|
||||
} else {
|
||||
//放大了
|
||||
newLeft = -(imgCurrWidth - stageData.w) / 2;
|
||||
|
||||
}
|
||||
if (imgNewHeight <= stageData.h) {
|
||||
newTop = (stageData.h - imgCurrHeight) / 2;
|
||||
} else {
|
||||
newTop = -(imgCurrHeight - stageData.h) / 2;
|
||||
}
|
||||
|
||||
|
||||
$image.css({
|
||||
left: Math.round(newLeft),
|
||||
top: Math.round(newTop)
|
||||
})
|
||||
|
||||
/* if (imgNewHeight <= stageData.h) {
|
||||
// 缩小了
|
||||
newTop = (stageData.h - newHeight) / 2;
|
||||
} else {
|
||||
newTop = newTop > gt ? gt : (newTop > (offsetY - gt) ? newTop : (offsetY - gt));
|
||||
}
|
||||
if (imgNewWidth <= stageData.w) {
|
||||
newLeft = (stageData.w - newWidth) / 2;
|
||||
} else {
|
||||
newLeft = newLeft > -gt ? -gt : (newLeft > (offsetX + gt) ? newLeft : (offsetX + gt));
|
||||
}
|
||||
|
||||
$image.css({
|
||||
width: Math.round(newWidth),
|
||||
height: Math.round(newHeight),
|
||||
left: Math.round(newLeft),
|
||||
top: Math.round(newTop)
|
||||
});*/
|
||||
$.extend(this.imageData, {
|
||||
width: newWidth,
|
||||
height: newHeight,
|
||||
left: newLeft,
|
||||
top: newTop
|
||||
});
|
||||
|
||||
setGrabCursor(
|
||||
{w: Math.round(imgNewWidth), h: Math.round(imgNewHeight)},
|
||||
{w: stageData.w, h: stageData.h},
|
||||
this.$stage
|
||||
);
|
||||
},
|
||||
jump: function (n) {
|
||||
var groupLen = this.groupData.length;
|
||||
if (n > 0) {
|
||||
if (this.groupIndex + n >= groupLen) {
|
||||
n = 0
|
||||
} else {
|
||||
n = this.groupIndex + 1
|
||||
}
|
||||
}
|
||||
if (n < 0) {
|
||||
if (this.groupIndex + n < 0) {
|
||||
n = groupLen + n;
|
||||
} else {
|
||||
n = this.groupIndex + n
|
||||
}
|
||||
}
|
||||
this.groupIndex = n;
|
||||
this.triggerHook('beforeChange', n);
|
||||
this.loadImg(this.groupData[n].src, 'jump');
|
||||
this.triggerHook('changed', n);
|
||||
},
|
||||
actualSize: function () {
|
||||
this.isRotated = false;
|
||||
this.rotateAngle = 0;
|
||||
this.$image.css({
|
||||
transform: 'rotate(0deg)'
|
||||
});
|
||||
//兼容IE8
|
||||
var useIeTransforms = function () {
|
||||
var isIE = false;
|
||||
if (navigator.appName === 'Microsoft Internet Explorer') {
|
||||
if (navigator.userAgent.match(/Trident/i) && navigator.userAgent.match(/MSIE 8.0/i)) {
|
||||
isIE = true
|
||||
}
|
||||
}
|
||||
return isIE;
|
||||
}();
|
||||
if (useIeTransforms) {
|
||||
this.$image.css('filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation=0)');
|
||||
}
|
||||
|
||||
this.loadImg(this.groupData[this.groupIndex].src);
|
||||
},
|
||||
rotate: function (angle) {
|
||||
var self = this;
|
||||
this.rotateAngle = this.rotateAngle + angle;
|
||||
this.isRotated = (this.rotateAngle / 90) % 2 !== 0;
|
||||
self.transformDeg(this.$image,self.rotateAngle);
|
||||
},
|
||||
transformDeg: function (currentImg, currentDeg) {
|
||||
var unit = this;
|
||||
var useIeTransforms = function () {
|
||||
var isIE = false;
|
||||
if (navigator.appName === 'Microsoft Internet Explorer') {
|
||||
if (navigator.userAgent.match(/Trident/i) && navigator.userAgent.match(/MSIE 8.0/i)) {
|
||||
isIE = true
|
||||
}
|
||||
}
|
||||
return isIE;
|
||||
}();
|
||||
var cssVal = 'rotate(' + currentDeg + 'deg)';
|
||||
|
||||
var _style = ['', '-webkit-', '-moz-', '-o-', '-ms-'];
|
||||
for (var i = 0; i < _style.length; i++) {
|
||||
var prefix = _style[i];
|
||||
currentImg.css(prefix + 'transform', cssVal);
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (useIeTransforms) {
|
||||
var _IeStyle = ['-ms-', ''];
|
||||
for (var j = 0; j < _IeStyle.length; j++) {
|
||||
var IEprefix = _IeStyle[j];
|
||||
// ie8下旋转角度大于270度时就失效了
|
||||
if(Math.abs(currentDeg)>=360){
|
||||
currentDeg = currentDeg%360
|
||||
}
|
||||
|
||||
currentImg.css(IEprefix + 'filter', unit.settings.ieTransforms[Math.abs(currentDeg)]);
|
||||
|
||||
/* var imgHeightStr = currentImg[0].style.height;
|
||||
var imgWidthStr = currentImg[0].style.width;
|
||||
var imgHeightNum = parseInt(imgHeightStr.substr(0, imgHeightStr.indexOf('px')));
|
||||
var imgWidthNum = parseInt(imgWidthStr.substr(0, imgWidthStr.indexOf('px')));*/
|
||||
|
||||
//这样获取的实际的大小, 旋转后相应的宽高会变
|
||||
var imgHeightNum = currentImg.height();
|
||||
var imgWidthNum = currentImg.width();
|
||||
|
||||
if (defaults.modalSize[0] >= imgHeightNum) {
|
||||
//缩小了 或者没变
|
||||
currentImg.css(IEprefix+'left', defaults.modalSize[0]/2 - imgWidthNum/2 + 'px');
|
||||
currentImg.css(IEprefix+'top', defaults.modalSize[1]/2 - imgHeightNum/2 + 'px');
|
||||
} else {
|
||||
//放大了
|
||||
currentImg.css(IEprefix+'left', -(imgWidthNum - defaults.modalSize[0]) / 2 + 'px')
|
||||
currentImg.css(IEprefix+'top', -(imgHeightNum - defaults.modalSize[1]) / 2 + 'px')
|
||||
}
|
||||
|
||||
/*if(Math.abs(currentDeg) == 90 || Math.abs(currentDeg) == 270 ){
|
||||
if(defaults.modalSize[1]>imgWidthNum){
|
||||
//缩小了
|
||||
currentImg.css(IEprefix+'left',(defaults.modalSize[1])/2 - imgWidthNum/2+'px');
|
||||
}else if(defaults.modalSize[1]<=imgWidthNum){
|
||||
//放大了
|
||||
currentImg.css(IEprefix+'top',-(imgWidthNum-defaults.modalSize[1])/2+'px');
|
||||
currentImg.css(IEprefix+'left',(defaults.modalSize[0])/2 - imgHeightNum/2+'px');
|
||||
}
|
||||
}else if(Math.abs(currentDeg) == 0 || Math.abs(currentDeg) == 180){
|
||||
if(imgHeightNum > defaults.modalSize[0]){
|
||||
currentImg.css(IEprefix+'left',(defaults.modalSize[0])/2 - imgHeightNum/2+'px');
|
||||
currentImg.css(IEprefix+'top',-(imgHeightNum - defaults.modalSize[1])/2+'px');
|
||||
}else if(imgHeightNum <= defaults.modalSize[1]){
|
||||
currentImg.css(IEprefix+'left',(defaults.modalSize[0])/2 - imgWidthNum/2+'px');
|
||||
currentImg.css(IEprefix+'top',(defaults.modalSize[1])/2 - imgHeightNum/2+'px');
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
resize: function () {
|
||||
var self = this;
|
||||
return throttle(function () {
|
||||
self.setModalSize()
|
||||
}, 500);
|
||||
},
|
||||
keyDown: function (e) {
|
||||
var self = this;
|
||||
if (!this.settings.keyboard) return false;
|
||||
var keyCode = e.keyCode || e.which || e.charCode;
|
||||
var ctrlKey = e.ctrlKey || e.metaKey;
|
||||
var altKey = e.altKey || e.metaKey;
|
||||
switch (keyCode) {
|
||||
case 37:
|
||||
self.jump(-1);
|
||||
break;
|
||||
case 39:
|
||||
self.jump(1);
|
||||
break;
|
||||
case 187:
|
||||
self.zoom(self.settings.ratioThreshold * 3, {
|
||||
x: self.$stage.width() / 2,
|
||||
y: self.$stage.height() / 2
|
||||
});
|
||||
break;
|
||||
case 189:
|
||||
self.zoom(-self.settings.ratioThreshold * 3, {
|
||||
x: self.$stage.width() / 2,
|
||||
y: self.$stage.height() / 2
|
||||
});
|
||||
break;
|
||||
case 61:
|
||||
self.zoom(self.settings.ratioThreshold * 3, {
|
||||
x: self.$stage.width() / 2,
|
||||
y: self.$stage.height() / 2
|
||||
});
|
||||
break;
|
||||
case 173:
|
||||
self.zoom(-self.settings.ratioThreshold * 3, {
|
||||
x: self.$stage.width() / 2,
|
||||
y: self.$stage.height() / 2
|
||||
});
|
||||
break;
|
||||
case 188:
|
||||
if (ctrlKey) {
|
||||
self.rotate(-90);
|
||||
}
|
||||
break;
|
||||
case 190:
|
||||
if (ctrlKey) {
|
||||
self.rotate(90);
|
||||
}
|
||||
break;
|
||||
case 48:
|
||||
if (ctrlKey && altKey) {
|
||||
self.actualSize();
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
movable: function (stage, image) {
|
||||
var self = this,
|
||||
isDragging = false,
|
||||
startX = 0,
|
||||
startY = 0,
|
||||
left = 0,
|
||||
top = 0,
|
||||
widthDiff = 0,
|
||||
heightDiff = 0,
|
||||
gt = 0;
|
||||
var dragStart = function (e) {
|
||||
stopPre(e);
|
||||
var imgWidth = $(image).width();
|
||||
var imgHeight = $(image).height();
|
||||
var stageWidth = $(stage).width();
|
||||
var stageHeight = $(stage).height();
|
||||
|
||||
startX = e.clientX;
|
||||
startY = e.clientY;
|
||||
gt = !self.isRotated ? 0 : (imgWidth - imgHeight) / 2;
|
||||
|
||||
widthDiff = !self.isRotated ? imgWidth - stageWidth : imgHeight - stageWidth;
|
||||
heightDiff = !self.isRotated ? imgHeight - stageHeight : imgWidth - stageHeight;
|
||||
|
||||
isDragging = widthDiff > 0 || heightDiff > 0 ? true : false;
|
||||
isMoving = widthDiff > 0 || heightDiff > 0 ? true : false;
|
||||
|
||||
left = $(image).position().left - gt;
|
||||
top = $(image).position().top + gt;
|
||||
if (stage.hasClass('is-grab')) {
|
||||
$('html,body,.magnify-modal,.magnify-stage,.magnify-btn').addClass('is-grabbing');
|
||||
}
|
||||
$D.on(EVENTS.MOUSEMOVE + EVENTS.EVENT_NS, dragMove).on(EVENTS.MOUSEEND + EVENTS.EVENT_NS, dragEnd);
|
||||
};
|
||||
var dragMove = function (e) {
|
||||
stopPre(e);
|
||||
if (isDragging) {
|
||||
var endX = e.clientX, endY = e.clientY;
|
||||
var relativeX = endX - startX, relativeY = endY - startY;
|
||||
var newLeft = relativeX + left, newTop = relativeY + top;
|
||||
|
||||
if (heightDiff > 0) {
|
||||
if (relativeY + top > gt) {
|
||||
newTop = gt;
|
||||
} else if (relativeY + top < -heightDiff + gt) {
|
||||
newTop = -heightDiff + gt;
|
||||
}
|
||||
} else {
|
||||
newTop = top;
|
||||
}
|
||||
|
||||
if (widthDiff > 0) {
|
||||
if (relativeX + left > -gt) {
|
||||
newLeft = -gt;
|
||||
} else if (relativeX + left < -widthDiff - gt) {
|
||||
newLeft = -widthDiff - gt;
|
||||
}
|
||||
} else {
|
||||
newLeft = left;
|
||||
}
|
||||
|
||||
$(image).css({
|
||||
left: newLeft,
|
||||
top: newTop
|
||||
});
|
||||
$.extend(self.imageData, {
|
||||
left: newLeft,
|
||||
top: newTop
|
||||
});
|
||||
}
|
||||
};
|
||||
var dragEnd = function () {
|
||||
$D.off(EVENTS.MOUSEMOVE + EVENTS.EVENT_NS, dragMove).off(EVENTS.MOUSEEND + EVENTS.EVENT_NS, dragEnd);
|
||||
isDragging = false;
|
||||
isMoving = false;
|
||||
$('html,body,.magnify-modal,.magnify-stage,.magnify-btn').removeClass('is-grabbing');
|
||||
};
|
||||
$(stage).on(EVENTS.MOUSESTART + EVENTS.EVENT_NS, dragStart);
|
||||
},
|
||||
draggable: function (modal, dragHandle, dragCancel) {
|
||||
var isDragging = false;
|
||||
var startX = 0, startY = 0, left = 0, top = 0;
|
||||
var dragStart = function (e) {
|
||||
e = e || window.event;
|
||||
var cancelElem = $(e.target).closest(dragCancel);
|
||||
if (cancelElem.length) {
|
||||
return true;
|
||||
}
|
||||
isDragging = true;
|
||||
startX = e.clientX;
|
||||
startY = e.clientY;
|
||||
left = $(modal).offset().left;
|
||||
top = $(modal).offset().top;
|
||||
$D.on(EVENTS.MOUSEMOVE + EVENTS.EVENT_NS, dragMove).on(EVENTS.MOUSEEND + EVENTS.EVENT_NS, dragEnd);
|
||||
};
|
||||
var dragMove = function (e) {
|
||||
stopPre(e);
|
||||
if (isDragging && !isMoving && !isResizing) {
|
||||
var endX = e.clientX;
|
||||
var endY = e.clientY;
|
||||
var relativeX = endX - startX;
|
||||
var relativeY = endY - startY;
|
||||
$(modal).css({
|
||||
left: relativeX + left,
|
||||
top: relativeY + top
|
||||
})
|
||||
}
|
||||
};
|
||||
var dragEnd = function () {
|
||||
$D.off(EVENTS.MOUSEMOVE + EVENTS.EVENT_NS, dragMove).off(EVENTS.MOUSEEND + EVENTS.EVENT_NS, dragEnd);
|
||||
isDragging = false;
|
||||
};
|
||||
$(dragHandle).on(EVENTS.MOUSESTART + EVENTS.EVENT_NS, dragStart);
|
||||
}
|
||||
};
|
||||
$.fn.Magnify = function (options) {
|
||||
jqEle = $(this);
|
||||
var opts = $.extend(true, {}, defaults, options);
|
||||
jqEle.off(EVENTS.CLICK + EVENTS.EVENT_NS).on(EVENTS.CLICK + EVENTS.EVENT_NS, function (e) {
|
||||
stopPro(e);
|
||||
stopPre(e);
|
||||
$(this).data('magnify', new magnify(this, opts));
|
||||
});
|
||||
return jqEle;
|
||||
};
|
||||
|
||||
// 阻止冒泡
|
||||
function stopPro(event) {
|
||||
event = event || window.event;
|
||||
try {
|
||||
event.stopPropagation();
|
||||
} catch (e) {
|
||||
event.cancelBubble = true;
|
||||
}
|
||||
}
|
||||
|
||||
// 阻止浏览器默认行为
|
||||
function stopPre(event) {
|
||||
event = event || window.event;
|
||||
try {
|
||||
event.preventDefault();
|
||||
} catch (e) {
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
|
||||
// 获取图片地址
|
||||
function getImgSrc(ele) {
|
||||
return $(ele).data('src') || $(ele).attr('href');
|
||||
}
|
||||
|
||||
// 获取图片原始属性
|
||||
function preLoadImg(src, success, error) {
|
||||
var img = new Image();
|
||||
img.onload = function () {
|
||||
success(img);
|
||||
};
|
||||
img.onerror = function () {
|
||||
error(img)
|
||||
};
|
||||
img.src = src;
|
||||
}
|
||||
|
||||
function setGrabCursor(imageData, stageData, stage, isRotated) {
|
||||
var imgWidth = !isRotated ? imageData.w : imageData.h;
|
||||
var imgHeight = !isRotated ? imageData.h : imageData.w;
|
||||
|
||||
if (imgHeight > stageData.h || imgWidth > stageData.w) {
|
||||
stage.addClass('is-grab');
|
||||
}
|
||||
if (imgHeight <= stageData.h && imgWidth <= stageData.w) {
|
||||
stage.removeClass('is-grab')
|
||||
}
|
||||
}
|
||||
|
||||
function throttle(fn, delay) {
|
||||
var timer = null;
|
||||
var context = this, args = arguments;
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(function () {
|
||||
fn.apply(context, args);
|
||||
}, delay);
|
||||
}
|
||||
|
||||
});
|
||||
22
public/frontend/web/scripts/enlarge/jquery.rotate.min.js
vendored
Executable file
22
public/frontend/web/scripts/enlarge/jquery.rotate.min.js
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
// VERSION: 2.3 LAST UPDATE: 11.07.2013
|
||||
/*
|
||||
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* Made by Wilq32, wilq32@gmail.com, Wroclaw, Poland, 01.2009
|
||||
* Website: http://code.google.com/p/jqueryrotate/
|
||||
*/
|
||||
(function(k){for(var d,f,l=document.getElementsByTagName("head")[0].style,h=["transformProperty","WebkitTransform","OTransform","msTransform","MozTransform"],g=0;g<h.length;g++)void 0!==l[h[g]]&&(d=h[g]);d&&(f=d.replace(/[tT]ransform/,"TransformOrigin"),"T"==f[0]&&(f[0]="t"));eval('IE = "v"=="\v"');jQuery.fn.extend({rotate:function(a){if(0!==this.length&&"undefined"!=typeof a){"number"==typeof a&&(a={angle:a});for(var b=[],c=0,d=this.length;c<d;c++){var e=this.get(c);if(e.Wilq32&&e.Wilq32.PhotoEffect)e.Wilq32.PhotoEffect._handleRotation(a);
|
||||
else{var f=k.extend(!0,{},a),e=(new Wilq32.PhotoEffect(e,f))._rootObj;b.push(k(e))}}return b}},getRotateAngle:function(){for(var a=[],b=0,c=this.length;b<c;b++){var d=this.get(b);d.Wilq32&&d.Wilq32.PhotoEffect&&(a[b]=d.Wilq32.PhotoEffect._angle)}return a},stopRotate:function(){for(var a=0,b=this.length;a<b;a++){var c=this.get(a);c.Wilq32&&c.Wilq32.PhotoEffect&&clearTimeout(c.Wilq32.PhotoEffect._timer)}}});Wilq32=window.Wilq32||{};Wilq32.PhotoEffect=function(){return d?function(a,b){a.Wilq32={PhotoEffect:this};
|
||||
this._img=this._rootObj=this._eventObj=a;this._handleRotation(b)}:function(a,b){this._img=a;this._onLoadDelegate=[b];this._rootObj=document.createElement("span");this._rootObj.style.display="inline-block";this._rootObj.Wilq32={PhotoEffect:this};a.parentNode.insertBefore(this._rootObj,a);if(a.complete)this._Loader();else{var c=this;jQuery(this._img).bind("load",function(){c._Loader()})}}}();Wilq32.PhotoEffect.prototype={_setupParameters:function(a){this._parameters=this._parameters||{};"number"!==
|
||||
typeof this._angle&&(this._angle=0);"number"===typeof a.angle&&(this._angle=a.angle);this._parameters.animateTo="number"===typeof a.animateTo?a.animateTo:this._angle;this._parameters.step=a.step||this._parameters.step||null;this._parameters.easing=a.easing||this._parameters.easing||this._defaultEasing;this._parameters.duration=a.duration||this._parameters.duration||1E3;this._parameters.callback=a.callback||this._parameters.callback||this._emptyFunction;this._parameters.center=a.center||this._parameters.center||
|
||||
["50%","50%"];this._rotationCenterX="string"==typeof this._parameters.center[0]?parseInt(this._parameters.center[0],10)/100*this._imgWidth*this._aspectW:this._parameters.center[0];this._rotationCenterY="string"==typeof this._parameters.center[1]?parseInt(this._parameters.center[1],10)/100*this._imgHeight*this._aspectH:this._parameters.center[1];a.bind&&a.bind!=this._parameters.bind&&this._BindEvents(a.bind)},_emptyFunction:function(){},_defaultEasing:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-
|
||||
1)+c},_handleRotation:function(a,b){d||this._img.complete||b?(this._setupParameters(a),this._angle==this._parameters.animateTo?this._rotate(this._angle):this._animateStart()):this._onLoadDelegate.push(a)},_BindEvents:function(a){if(a&&this._eventObj){if(this._parameters.bind){var b=this._parameters.bind,c;for(c in b)b.hasOwnProperty(c)&&jQuery(this._eventObj).unbind(c,b[c])}this._parameters.bind=a;for(c in a)a.hasOwnProperty(c)&&jQuery(this._eventObj).bind(c,a[c])}},_Loader:function(){return IE?function(){var a=
|
||||
this._img.width,b=this._img.height;this._imgWidth=a;this._imgHeight=b;this._img.parentNode.removeChild(this._img);this._vimage=this.createVMLNode("image");this._vimage.src=this._img.src;this._vimage.style.height=b+"px";this._vimage.style.width=a+"px";this._vimage.style.position="absolute";this._vimage.style.top="0px";this._vimage.style.left="0px";this._aspectW=this._aspectH=1;this._container=this.createVMLNode("group");this._container.style.width=a;this._container.style.height=b;this._container.style.position=
|
||||
"absolute";this._container.style.top="0px";this._container.style.left="0px";this._container.setAttribute("coordsize",a-1+","+(b-1));this._container.appendChild(this._vimage);this._rootObj.appendChild(this._container);this._rootObj.style.position="relative";this._rootObj.style.width=a+"px";this._rootObj.style.height=b+"px";this._rootObj.setAttribute("id",this._img.getAttribute("id"));this._rootObj.className=this._img.className;for(this._eventObj=this._rootObj;a=this._onLoadDelegate.shift();)this._handleRotation(a,
|
||||
!0)}:function(){this._rootObj.setAttribute("id",this._img.getAttribute("id"));this._rootObj.className=this._img.className;this._imgWidth=this._img.naturalWidth;this._imgHeight=this._img.naturalHeight;var a=Math.sqrt(this._imgHeight*this._imgHeight+this._imgWidth*this._imgWidth);this._width=3*a;this._height=3*a;this._aspectW=this._img.offsetWidth/this._img.naturalWidth;this._aspectH=this._img.offsetHeight/this._img.naturalHeight;this._img.parentNode.removeChild(this._img);this._canvas=document.createElement("canvas");
|
||||
this._canvas.setAttribute("width",this._width);this._canvas.style.position="relative";this._canvas.style.left=-this._img.height*this._aspectW+"px";this._canvas.style.top=-this._img.width*this._aspectH+"px";this._canvas.Wilq32=this._rootObj.Wilq32;this._rootObj.appendChild(this._canvas);this._rootObj.style.width=this._img.width*this._aspectW+"px";this._rootObj.style.height=this._img.height*this._aspectH+"px";this._eventObj=this._canvas;for(this._cnv=this._canvas.getContext("2d");a=this._onLoadDelegate.shift();)this._handleRotation(a,
|
||||
!0)}}(),_animateStart:function(){this._timer&&clearTimeout(this._timer);this._animateStartTime=+new Date;this._animateStartAngle=this._angle;this._animate()},_animate:function(){var a=+new Date,b=a-this._animateStartTime>this._parameters.duration;if(b&&!this._parameters.animatedGif)clearTimeout(this._timer);else{if(this._canvas||this._vimage||this._img)a=this._parameters.easing(0,a-this._animateStartTime,this._animateStartAngle,this._parameters.animateTo-this._animateStartAngle,this._parameters.duration),
|
||||
this._rotate(~~(10*a)/10);this._parameters.step&&this._parameters.step(this._angle);var c=this;this._timer=setTimeout(function(){c._animate.call(c)},10)}this._parameters.callback&&b&&(this._angle=this._parameters.animateTo,this._rotate(this._angle),this._parameters.callback.call(this._rootObj))},_rotate:function(){var a=Math.PI/180;return IE?function(a){this._angle=a;this._container.style.rotation=a%360+"deg";this._vimage.style.top=-(this._rotationCenterY-this._imgHeight/2)+"px";this._vimage.style.left=
|
||||
-(this._rotationCenterX-this._imgWidth/2)+"px";this._container.style.top=this._rotationCenterY-this._imgHeight/2+"px";this._container.style.left=this._rotationCenterX-this._imgWidth/2+"px"}:d?function(a){this._angle=a;this._img.style[d]="rotate("+a%360+"deg)";this._img.style[f]=this._parameters.center.join(" ")}:function(b){this._angle=b;b=b%360*a;this._canvas.width=this._width;this._canvas.height=this._height;this._cnv.translate(this._imgWidth*this._aspectW,this._imgHeight*this._aspectH);this._cnv.translate(this._rotationCenterX,
|
||||
this._rotationCenterY);this._cnv.rotate(b);this._cnv.translate(-this._rotationCenterX,-this._rotationCenterY);this._cnv.scale(this._aspectW,this._aspectH);this._cnv.drawImage(this._img,0,0)}}()};IE&&(Wilq32.PhotoEffect.prototype.createVMLNode=function(){document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{return!document.namespaces.rvml&&document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),function(a){return document.createElement("<rvml:"+a+' class="rvml">')}}catch(a){return function(a){return document.createElement("<"+
|
||||
a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}}())})(jQuery);
|
||||
189
public/frontend/web/scripts/enlarge/large.js
Executable file
189
public/frontend/web/scripts/enlarge/large.js
Executable file
@@ -0,0 +1,189 @@
|
||||
$(document).ready(function() {
|
||||
// 图片上下滚动
|
||||
var count = $("#imageMenu li").length - 4; /* 显示 5 个 li标签内容 */
|
||||
var interval = $("#imageMenu li:first").height();
|
||||
var curIndex = 0;
|
||||
|
||||
//左右箭头切换图片
|
||||
$('.scrollbutton').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
$('.scrollbutton').removeClass('disabled');
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
|
||||
//获取当前指定的图片属性
|
||||
var midImg = $("#imageMenu li").eq(curIndex).find('img').attr('src');
|
||||
//切换图片
|
||||
$("#midimg").attr('src',midImg);
|
||||
$(".enlarge-img").find("img").attr('src',midImg);
|
||||
//小图添加属性
|
||||
$("#imageMenu li").eq(curIndex).addClass('on').siblings().removeClass("on");
|
||||
|
||||
});
|
||||
|
||||
|
||||
//大图左右箭头切换图片
|
||||
$('.scrollbutton').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
$('.scrollbutton').removeClass('disabled');
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
|
||||
//获取当前指定的图片属性
|
||||
var midImg = $("#imageMenu li").eq(curIndex).find('img').attr('src');
|
||||
//切换图片
|
||||
$("#midimg").attr('src',midImg);
|
||||
$(".enlarge-img").find("img").attr('src',midImg);
|
||||
//小图添加属性
|
||||
$("#imageMenu li").eq(curIndex).addClass('on').siblings().removeClass("on");
|
||||
|
||||
});
|
||||
// 解决 ie6 select框 问题
|
||||
$.fn.decorateIframe = function(options) {
|
||||
if ($.browser.msie && $.browser.version < 7) {
|
||||
var opts = $.extend({}, $.fn.decorateIframe.defaults, options);
|
||||
$(this).each(function() {
|
||||
var $myThis = $(this);
|
||||
//创建一个IFRAME
|
||||
var divIframe = $("<iframe />");
|
||||
divIframe.attr("id", opts.iframeId);
|
||||
divIframe.css("position", "absolute");
|
||||
divIframe.css("display", "none");
|
||||
divIframe.css("display", "block");
|
||||
divIframe.css("z-index", opts.iframeZIndex);
|
||||
divIframe.css("border");
|
||||
divIframe.css("top", "0");
|
||||
divIframe.css("left", "0");
|
||||
if (opts.width == 0) {
|
||||
divIframe.css("width", $myThis.width() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
if (opts.height == 0) {
|
||||
divIframe.css("height", $myThis.height() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
divIframe.css("filter", "mask(color=#fff)");
|
||||
$myThis.append(divIframe);
|
||||
});
|
||||
}
|
||||
}
|
||||
$.fn.decorateIframe.defaults = {
|
||||
iframeId: "decorateIframe1",
|
||||
iframeZIndex: -1,
|
||||
width: 0,
|
||||
height: 0
|
||||
}
|
||||
//放大镜视窗
|
||||
$("#bigView").decorateIframe();
|
||||
|
||||
//点击到中图
|
||||
var midChangeHandler = null;
|
||||
|
||||
$("#imageMenu li img").bind("click", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
midChange($(this).attr("src"));
|
||||
$("#imageMenu li").removeAttr("id");
|
||||
$(this).parent().attr("id", "onlickImg");
|
||||
}
|
||||
}).bind("mouseover", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
window.clearTimeout(midChangeHandler);
|
||||
midChange($(this).attr("src"));
|
||||
// $(this).css({ "border": "1px solid #990000" });
|
||||
}
|
||||
}).bind("mouseout", function(){
|
||||
if($(this).attr("id") != "onlickImg"){
|
||||
$(this).removeAttr("style");
|
||||
midChangeHandler = window.setTimeout(function(){
|
||||
midChange($("#onlickImg img").attr("src"));
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
//点击中图,切换大图
|
||||
$("#midimg").bind("click", function(){
|
||||
$(".enlarge-img").find("img").attr("src",$(this).attr("src"));
|
||||
});
|
||||
|
||||
function midChange(src) {
|
||||
$("#midimg").attr("src", src).load(function() {
|
||||
changeViewImg();
|
||||
});
|
||||
}
|
||||
|
||||
//大视窗看图
|
||||
function mouseover(e) {
|
||||
if ($("#winSelector").css("display") == "none") {
|
||||
$("#winSelector,#bigView").show();
|
||||
}
|
||||
|
||||
$("#winSelector").css(fixedPosition(e));
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
function mouseOut(e) {
|
||||
if ($("#winSelector").css("display") != "none") {
|
||||
$("#winSelector,#bigView").hide();
|
||||
}
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
$("#midimg").mouseover(mouseover); //中图事件
|
||||
$("#midimg,#winSelector").mousemove(mouseover).mouseout(mouseOut); //选择器事件
|
||||
|
||||
var $divWidth = $("#winSelector").width(); //选择器宽度
|
||||
var $divHeight = $("#winSelector").height(); //选择器高度
|
||||
var $imgWidth = $("#midimg").width(); //中图宽度
|
||||
var $imgHeight = $("#midimg").height(); //中图高度
|
||||
var $viewImgWidth = $viewImgHeight = $height = null; //IE加载后才能得到 大图宽度 大图高度 大图视窗高度
|
||||
|
||||
function changeViewImg() {
|
||||
$("#bigView img").attr("src", $("#midimg").attr("src"));
|
||||
}
|
||||
|
||||
changeViewImg();
|
||||
|
||||
$("#bigView").scrollLeft(0).scrollTop(0);
|
||||
function fixedPosition(e) {
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
var $imgLeft = $("#midimg").offset().left; //中图左边距
|
||||
var $imgTop = $("#midimg").offset().top; //中图上边距
|
||||
X = e.pageX - $imgLeft - $divWidth / 2; //selector顶点坐标 X
|
||||
Y = e.pageY - $imgTop - $divHeight / 2; //selector顶点坐标 Y
|
||||
X = X < 0 ? 0 : X;
|
||||
Y = Y < 0 ? 0 : Y;
|
||||
X = X + $divWidth > $imgWidth ? $imgWidth - $divWidth : X;
|
||||
Y = Y + $divHeight > $imgHeight ? $imgHeight - $divHeight : Y;
|
||||
|
||||
if ($viewImgWidth == null) {
|
||||
$viewImgWidth = $("#bigView img").outerWidth();
|
||||
$viewImgHeight = $("#bigView img").height();
|
||||
if ($viewImgWidth < 200 || $viewImgHeight < 200) {
|
||||
$viewImgWidth = $viewImgHeight = 800;
|
||||
}
|
||||
$height = $divHeight * $viewImgHeight / $imgHeight;
|
||||
$("#bigView").width($divWidth * $viewImgWidth / $imgWidth);
|
||||
$("#bigView").height($height);
|
||||
}
|
||||
|
||||
var scrollX = X * $viewImgWidth / $imgWidth;
|
||||
var scrollY = Y * $viewImgHeight / $imgHeight;
|
||||
$("#bigView img").css({ "left": scrollX * -1, "top": scrollY * -1 });
|
||||
$("#bigView").css({ "top": 0, "left": $(".preview").offset().left + $(".preview").width() + 15 });
|
||||
|
||||
return { left: X, top: Y };
|
||||
}
|
||||
});
|
||||
10
public/frontend/web/scripts/enlarge/masterslider.min.js
vendored
Executable file
10
public/frontend/web/scripts/enlarge/masterslider.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
246
public/frontend/web/scripts/fq20151027/css/default.css
Executable file
246
public/frontend/web/scripts/fq20151027/css/default.css
Executable file
@@ -0,0 +1,246 @@
|
||||
@font-face {
|
||||
font-family: 'icomoon';
|
||||
src:url('../fonts/icomoon.eot?rretjt');
|
||||
src:url('../fonts/icomoon.eot?#iefixrretjt') format('embedded-opentype'),
|
||||
url('../fonts/icomoon.woff?rretjt') format('woff'),
|
||||
url('../fonts/icomoon.ttf?rretjt') format('truetype'),
|
||||
url('../fonts/icomoon.svg?rretjt#icomoon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
[class^="icon-"], [class*=" icon-"] {
|
||||
font-family: 'icomoon';
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body, html { font-size: 100%; padding: 0; margin: 0;}
|
||||
|
||||
/* Reset */
|
||||
*,
|
||||
*:after,
|
||||
*:before {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Clearfix hack */
|
||||
.clearfix:before,
|
||||
.clearfix:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
body{
|
||||
background: #f9f7f6;
|
||||
color: #404d5b;
|
||||
font-weight: 500;
|
||||
font-size: 1.05em;
|
||||
font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", "FontAwesome", sans-serif;
|
||||
}
|
||||
a{color: #2fa0ec;text-decoration: none;outline: none;}
|
||||
a:hover,a:focus{color:#74777b;}
|
||||
|
||||
.htmleaf-container{
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
.htmleaf-content {
|
||||
font-size: 150%;
|
||||
padding: 1em 0;
|
||||
}
|
||||
|
||||
.htmleaf-content h2 {
|
||||
margin: 0 0 2em;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.htmleaf-content p {
|
||||
margin: 1em 0;
|
||||
padding: 5em 0 0 0;
|
||||
font-size: 0.65em;
|
||||
}
|
||||
.bgcolor-1 { background: #f0efee; }
|
||||
.bgcolor-2 { background: #f9f9f9; }
|
||||
.bgcolor-3 { background: #e8e8e8; }/*light grey*/
|
||||
.bgcolor-4 { background: #2f3238; color: #fff; }/*Dark grey*/
|
||||
.bgcolor-5 { background: #df6659; color: #521e18; }/*pink1*/
|
||||
.bgcolor-6 { background: #2fa8ec; }/*sky blue*/
|
||||
.bgcolor-7 { background: #d0d6d6; }/*White tea*/
|
||||
.bgcolor-8 { background: #3d4444; color: #fff; }/*Dark grey2*/
|
||||
.bgcolor-9 { background: #ef3f52; color: #fff;}/*pink2*/
|
||||
.bgcolor-10{ background: #64448f; color: #fff;}/*Violet*/
|
||||
.bgcolor-11{ background: #3755ad; color: #fff;}/*dark blue*/
|
||||
.bgcolor-12{ background: #3498DB; color: #fff;}/*light blue*/
|
||||
/* Header */
|
||||
.htmleaf-header{
|
||||
padding: 1em 190px 1em;
|
||||
letter-spacing: -1px;
|
||||
text-align: center;
|
||||
}
|
||||
.htmleaf-header h1 {
|
||||
font-weight: 600;
|
||||
font-size: 2em;
|
||||
line-height: 1;
|
||||
margin-bottom: 0;
|
||||
font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", "FontAwesome", sans-serif;
|
||||
}
|
||||
.htmleaf-header h1 span {
|
||||
font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", "FontAwesome", sans-serif;
|
||||
display: block;
|
||||
font-size: 60%;
|
||||
font-weight: 400;
|
||||
padding: 0.8em 0 0.5em 0;
|
||||
color: #c3c8cd;
|
||||
}
|
||||
/*nav*/
|
||||
.htmleaf-demo a{color: #1d7db1;text-decoration: none;}
|
||||
.htmleaf-demo{width: 100%;padding-bottom: 1.2em;}
|
||||
.htmleaf-demo a{display: inline-block;margin: 0.5em;padding: 0.6em 1em;border: 3px solid #1d7db1;font-weight: 700;}
|
||||
.htmleaf-demo a:hover{opacity: 0.6;}
|
||||
.htmleaf-demo a.current{background:#1d7db1;color: #fff; }
|
||||
/* Top Navigation Style */
|
||||
.htmleaf-links {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
font-size: 1.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.htmleaf-links::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
margin-left: -1px;
|
||||
width: 2px;
|
||||
height: 100%;
|
||||
background: #dbdbdb;
|
||||
content: '';
|
||||
-webkit-transform: rotate3d(0,0,1,22.5deg);
|
||||
transform: rotate3d(0,0,1,22.5deg);
|
||||
}
|
||||
|
||||
.htmleaf-icon {
|
||||
display: inline-block;
|
||||
margin: 0.5em;
|
||||
padding: 0em 0;
|
||||
width: 1.5em;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.htmleaf-icon span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.htmleaf-icon:before {
|
||||
margin: 0 5px;
|
||||
text-transform: none;
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-family: 'icomoon';
|
||||
line-height: 1;
|
||||
speak: none;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
/* footer */
|
||||
.htmleaf-footer{width: 100%;padding-top: 10px;}
|
||||
.htmleaf-small{font-size: 0.8em;}
|
||||
.center{text-align: center;}
|
||||
/****/
|
||||
.related {
|
||||
color: #fff;
|
||||
background: #333;
|
||||
text-align: center;
|
||||
font-size: 1.25em;
|
||||
padding: 0.5em 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.related > a {
|
||||
vertical-align: top;
|
||||
width: calc(100% - 20px);
|
||||
max-width: 340px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
margin: 20px 10px;
|
||||
padding: 25px;
|
||||
font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", "FontAwesome", sans-serif;
|
||||
}
|
||||
.related a {
|
||||
display: inline-block;
|
||||
text-align: left;
|
||||
margin: 20px auto;
|
||||
padding: 10px 20px;
|
||||
opacity: 0.8;
|
||||
-webkit-transition: opacity 0.3s;
|
||||
transition: opacity 0.3s;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.related a:hover,
|
||||
.related a:active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.related a img {
|
||||
max-width: 100%;
|
||||
opacity: 0.8;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.related a:hover img,
|
||||
.related a:active img {
|
||||
opacity: 1;
|
||||
}
|
||||
.related h3{font-family: "Microsoft YaHei", sans-serif;}
|
||||
.related a h3 {
|
||||
font-weight: 300;
|
||||
margin-top: 0.15em;
|
||||
color: #fff;
|
||||
}
|
||||
/* icomoon */
|
||||
.icon-htmleaf-home-outline:before {
|
||||
content: "\e5000";
|
||||
}
|
||||
|
||||
.icon-htmleaf-arrow-forward-outline:before {
|
||||
content: "\e5001";
|
||||
}
|
||||
|
||||
@media screen and (max-width: 50em) {
|
||||
.htmleaf-header {
|
||||
padding: 3em 10% 4em;
|
||||
}
|
||||
.htmleaf-header h1 {
|
||||
font-size:2em;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 40em) {
|
||||
.htmleaf-header h1 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 30em) {
|
||||
.htmleaf-header h1 {
|
||||
font-size:1.2em;
|
||||
}
|
||||
}
|
||||
401
public/frontend/web/scripts/fq20151027/css/styles.css
Executable file
401
public/frontend/web/scripts/fq20151027/css/styles.css
Executable file
@@ -0,0 +1,401 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.strips {
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
color: white;
|
||||
position: relative;
|
||||
}
|
||||
.strips__strip {
|
||||
will-change: width, left, z-index, height;
|
||||
position: absolute;
|
||||
width: 14.3%;
|
||||
min-height: 100%;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
top:0;
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
.strips__strip:nth-child(1) {
|
||||
left: 0%;
|
||||
}
|
||||
.strips__strip:nth-child(2) {
|
||||
left: 14.3%;
|
||||
}
|
||||
.strips__strip:nth-child(3) {
|
||||
left: 28.6%;
|
||||
}
|
||||
.strips__strip:nth-child(4) {
|
||||
left: 42.9%;
|
||||
}
|
||||
.strips__strip:nth-child(5) {
|
||||
left: 57.2%;
|
||||
}
|
||||
.strips__strip:nth-child(6) {
|
||||
left: 71.5%;
|
||||
}
|
||||
.strips__strip:nth-child(7) {
|
||||
left: 85.2%;
|
||||
}
|
||||
.strips__strip:nth-child(1) .strip__content {
|
||||
background: #00a1ff;
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
-webkit-animation-name: strip1;
|
||||
animation-name: strip1;
|
||||
-webkit-animation-delay: 0.1s;
|
||||
animation-delay: 0.1s;
|
||||
}
|
||||
.strips__strip:nth-child(2) .strip__content {
|
||||
background: #2dccd3;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
-webkit-animation-name: strip2;
|
||||
animation-name: strip2;
|
||||
-webkit-animation-delay: 0.2s;
|
||||
animation-delay: 0.2s;
|
||||
}
|
||||
.strips__strip:nth-child(3) .strip__content {
|
||||
background: #00bb31;
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
-webkit-animation-name: strip3;
|
||||
animation-name: strip3;
|
||||
-webkit-animation-delay: 0.3s;
|
||||
animation-delay: 0.3s;
|
||||
}
|
||||
.strips__strip:nth-child(4) .strip__content {
|
||||
background: #ff6900;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
-webkit-animation-name: strip4;
|
||||
animation-name: strip4;
|
||||
-webkit-animation-delay: 0.4s;
|
||||
animation-delay: 0.4s;
|
||||
}
|
||||
.strips__strip:nth-child(5) .strip__content {
|
||||
background: #963cbd;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
-webkit-animation-name: strip5;
|
||||
animation-name: strip5;
|
||||
-webkit-animation-delay: 0.5s;
|
||||
animation-delay: 0.5s;
|
||||
}
|
||||
.strips__strip:nth-child(6) .strip__content {
|
||||
background: #c4d600;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
-webkit-animation-name: strip5;
|
||||
animation-name: strip5;
|
||||
-webkit-animation-delay: 0.5s;
|
||||
animation-delay: 0.5s;
|
||||
}
|
||||
.strips__strip:nth-child(7) .strip__content {
|
||||
background: #000000;
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
-webkit-animation-name: strip5;
|
||||
animation-name: strip5;
|
||||
-webkit-animation-delay: 0.5s;
|
||||
animation-delay: 0.5s;
|
||||
}
|
||||
@media screen and (max-width: 760px) {
|
||||
.strips__strip {
|
||||
min-height: 20vh;
|
||||
}
|
||||
.strips__strip:nth-child(1) {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.strips__strip:nth-child(2) {
|
||||
top: 20vh;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.strips__strip:nth-child(3) {
|
||||
top: 40vh;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.strips__strip:nth-child(4) {
|
||||
top: 60vh;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.strips__strip:nth-child(5) {
|
||||
top: 80vh;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.strips__strip:nth-child(6) {
|
||||
top: 80vh;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.strips__strip:nth-child(7) {
|
||||
top: 80vh;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.strips .strip__content {
|
||||
-webkit-animation-duration: 1s;
|
||||
animation-duration: 1s;
|
||||
-webkit-animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
||||
animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
|
||||
-webkit-animation-fill-mode: both;
|
||||
animation-fill-mode: both;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-decoration: none;
|
||||
}
|
||||
.strips .strip__content:hover:before {
|
||||
-webkit-transform: skew(-30deg) scale(1.5) translate(0, 0);
|
||||
-ms-transform: skew(-30deg) scale(1.5) translate(0, 0);
|
||||
transform: skew(-30deg) scale(1.5) translate(0, 0);
|
||||
opacity: 0.1;
|
||||
}
|
||||
.strips .strip__content:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 10%;
|
||||
width: 80%;
|
||||
height: 100%;
|
||||
background: white;
|
||||
opacity: 0.05;
|
||||
-webkit-transform-origin: center center;
|
||||
-ms-transform-origin: center center;
|
||||
transform-origin: center center;
|
||||
-webkit-transform: skew(-30deg) scaleY(1) translate(0, 0);
|
||||
-ms-transform: skew(-30deg) scaleY(1) translate(0, 0);
|
||||
transform: skew(-30deg) scaleY(1) translate(0, 0);
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
.strips .strip__inner-text {
|
||||
will-change: transform, opacity;
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 100%;
|
||||
-webkit-transform: translate(-50%, -50%) scale(0.5);
|
||||
-ms-transform: translate(-50%, -50%) scale(0.5);
|
||||
transform: translate(-50%, -50%) scale(0.5);
|
||||
opacity: 0;
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
.strips__strip--expanded {
|
||||
width: 100%;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
z-index: 3;
|
||||
cursor: default;
|
||||
}
|
||||
@media screen and (max-width: 760px) {
|
||||
.strips__strip--expanded {
|
||||
min-height: 100vh;
|
||||
}
|
||||
}
|
||||
.strips__strip--expanded .strip__content:hover:before {
|
||||
-webkit-transform: skew(-30deg) scale(1) translate(0, 0);
|
||||
-ms-transform: skew(-30deg) scale(1) translate(0, 0);
|
||||
transform: skew(-30deg) scale(1) translate(0, 0);
|
||||
opacity: 0.05;
|
||||
}
|
||||
.strips__strip--expanded .strip__title {
|
||||
opacity: 0;
|
||||
}
|
||||
.strips__strip--expanded .strip__inner-text {
|
||||
opacity: 1;
|
||||
-webkit-transform: translate(-50%, -50%) scale(1);
|
||||
-ms-transform: translate(-50%, -50%) scale(1);
|
||||
transform: translate(-50%, -50%) scale(1);
|
||||
}
|
||||
|
||||
.strip__title {
|
||||
display: block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
width: 100%;
|
||||
font-size: 1.6vw;
|
||||
color: white;
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
@media screen and (max-width: 760px) {
|
||||
.strip__title {
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.strip__close {
|
||||
position: absolute;
|
||||
right: 3vw;
|
||||
top: 3vw;
|
||||
opacity: 0;
|
||||
z-index: 10;
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
cursor: pointer;
|
||||
-webkit-transition-delay: 0.5s;
|
||||
transition-delay: 0.5s;
|
||||
}
|
||||
.strip__close--show {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@-webkit-keyframes strip1 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes strip1 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(-100%, 0, 0);
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes strip2 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes strip2 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes strip3 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes strip3 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(0, -100%, 0);
|
||||
transform: translate3d(0, -100%, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes strip4 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes strip4 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes strip5 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
@keyframes strip5 {
|
||||
0% {
|
||||
-webkit-transform: translate3d(100%, 0, 0);
|
||||
transform: translate3d(100%, 0, 0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
}
|
||||
/* Demo purposes */
|
||||
body {
|
||||
font-family: 'Open Sans';
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: geometricPrecision;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.fa {
|
||||
font-size: 30px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 36px;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
.strips img{width:100%; position: relative; display: block; z-index: -1;}
|
||||
.img-responsives{width:100%;}
|
||||
|
||||
.
|
||||
BIN
public/frontend/web/scripts/fq20151027/fonts/icomoon.eot
Executable file
BIN
public/frontend/web/scripts/fq20151027/fonts/icomoon.eot
Executable file
Binary file not shown.
12
public/frontend/web/scripts/fq20151027/fonts/icomoon.svg
Executable file
12
public/frontend/web/scripts/fq20151027/fonts/icomoon.svg
Executable file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Generated by IcoMoon</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " d="" horiz-adv-x="512" />
|
||||
<glyph unicode="󥀀" d="M949.845 492.032c-144.64 121.771-407.296 348.629-409.899 350.933l-27.947 24.021-27.819-24.021c-2.645-2.261-265.429-229.035-412.16-351.915-18.688-16.811-29.355-40.32-29.355-64.384 0-47.104 38.229-85.333 85.333-85.333h42.667v-256c0-47.104 38.229-85.333 85.333-85.333h512c47.104 0 85.333 38.229 85.333 85.333v256h42.667c47.104 0 85.333 38.229 85.333 85.333 0 25.515-11.733 49.536-31.488 65.365zM597.333 85.334h-170.667v213.333h170.667v-213.333zM768 426.667l0.085-341.333c-0.085 0-128.085 0-128.085 0v256h-256v-256h-128v341.333h-128.043c117.973 98.645 312.107 265.685 384.043 327.68 71.936-61.995 265.984-228.992 384-327.723 0 0-128 0-128 0.043z" />
|
||||
<glyph unicode="󥀁" d="M170.667 85.376c-4.096 0-8.149 0.64-12.203 1.792-18.091 5.376-30.464 22.016-30.464 40.875v42.667c0 204.8 144.256 378.197 341.333 417.963v72.704c0 22.784 8.875 44.203 24.96 60.331 32.256 32.299 88.533 32.256 120.704 0.043l268.288-264.661c8.149-8.021 12.715-18.901 12.715-30.379s-4.565-22.357-12.715-30.379l-268.501-264.832c-31.829-31.829-88.192-32.043-120.448 0.213-16.128 16.128-25.003 37.547-25.003 60.331v61.312c-106.453-8.576-192.981-42.027-262.997-148.651-8.107-12.288-21.547-19.328-35.669-19.328zM512 340.907c11.179 0 42.667 0.427 42.667 0.427v-149.291l237.909 234.667-237.909 234.496v-149.205c0 0-16.384 0.171-38.016-2.219-145.749-16.128-261.333-122.197-294.059-259.413 90.496 73.728 194.176 88.149 289.408 90.539z" />
|
||||
</font></defs></svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/frontend/web/scripts/fq20151027/fonts/icomoon.ttf
Executable file
BIN
public/frontend/web/scripts/fq20151027/fonts/icomoon.ttf
Executable file
Binary file not shown.
BIN
public/frontend/web/scripts/fq20151027/fonts/icomoon.woff
Executable file
BIN
public/frontend/web/scripts/fq20151027/fonts/icomoon.woff
Executable file
Binary file not shown.
2
public/frontend/web/scripts/fq20151027/js/jquery-1.8.3.min.js
vendored
Executable file
2
public/frontend/web/scripts/fq20151027/js/jquery-1.8.3.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
571
public/frontend/web/scripts/fuzzy_search/horsey.js
Executable file
571
public/frontend/web/scripts/fuzzy_search/horsey.js
Executable file
File diff suppressed because one or more lines are too long
571
public/frontend/web/scripts/horsey.js
Executable file
571
public/frontend/web/scripts/horsey.js
Executable file
File diff suppressed because one or more lines are too long
4
public/frontend/web/scripts/html5shiv.v3.72.min.js
vendored
Executable file
4
public/frontend/web/scripts/html5shiv.v3.72.min.js
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
/**
|
||||
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
||||
*/
|
||||
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&(c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}function f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){if(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.cache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}function i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.shivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);return!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.2",n=a.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shivMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,createDocumentFragment:h,addElements:e};a.html5=t,j(b)}(this,document);
|
||||
2
public/frontend/web/scripts/jquery-1.8.3.min.js
vendored
Executable file
2
public/frontend/web/scripts/jquery-1.8.3.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
2
public/frontend/web/scripts/jquery-1.8.3.min.js 20181016
Executable file
2
public/frontend/web/scripts/jquery-1.8.3.min.js 20181016
Executable file
File diff suppressed because one or more lines are too long
2
public/frontend/web/scripts/jquery-3.7.1.min.js
vendored
Executable file
2
public/frontend/web/scripts/jquery-3.7.1.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
631
public/frontend/web/scripts/jquery-tp-150423184326/css/home_2c89410.css
Executable file
631
public/frontend/web/scripts/jquery-tp-150423184326/css/home_2c89410.css
Executable file
@@ -0,0 +1,631 @@
|
||||
#secondary-navbar-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#features {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
#feature-slider {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#slide-container {
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
left: -200%;
|
||||
}
|
||||
|
||||
.slide {
|
||||
width: 100%;
|
||||
vertical-align: top;
|
||||
height: 565px;
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.slider-text {
|
||||
width: 500px;
|
||||
margin-left: 10%;
|
||||
padding-top: 50px;
|
||||
white-space: normal;
|
||||
color: #013b72;
|
||||
}
|
||||
|
||||
.slider-header {
|
||||
font-size: 38px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.slider-header-2 {
|
||||
font-size: 16px;
|
||||
padding-bottom: 23px;
|
||||
}
|
||||
|
||||
.slider-text img {
|
||||
padding-bottom: 17px;
|
||||
}
|
||||
|
||||
.slider-description {
|
||||
font-size: 16px;
|
||||
padding-bottom: 45px;
|
||||
line-height: 35px;
|
||||
}
|
||||
|
||||
#image-slider {
|
||||
position: relative;
|
||||
margin-top: -160px;
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
background-color: rgba(153, 153, 153, 0.35);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.before-slider, .before-image, .after-slider, .after-image {
|
||||
position: absolute;
|
||||
top: 51%;
|
||||
width: 20%;
|
||||
height: 1px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.before-slider {
|
||||
margin-left: -20%; /* Same as width */
|
||||
}
|
||||
|
||||
.after-image {
|
||||
width: 5%;
|
||||
}
|
||||
|
||||
.before-image {
|
||||
width: 5%;
|
||||
margin-left: -5%; /* Same as width */
|
||||
}
|
||||
|
||||
.slider-image {
|
||||
cursor: pointer;
|
||||
width: 10%;
|
||||
vertical-align: middle;
|
||||
max-width: 70px;
|
||||
max-height: 70px;
|
||||
}
|
||||
|
||||
#last-image {
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
display: inline;
|
||||
line-height: 160px;
|
||||
padding-right: 8%;
|
||||
}
|
||||
|
||||
#experience {
|
||||
background-color: #FFA200;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#experience > img {
|
||||
padding-top: 40px;
|
||||
margin-left: 10%;
|
||||
float: left;
|
||||
width: 40%;
|
||||
max-width: 500px;
|
||||
max-height: 321px;
|
||||
}
|
||||
|
||||
#experience-text-container {
|
||||
float: right;
|
||||
color: #fff;
|
||||
padding: 100px 10% 0 0;
|
||||
}
|
||||
|
||||
#experience-text-description {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.subWeibo
|
||||
{
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
.head-font
|
||||
{
|
||||
font-size:38px;
|
||||
}
|
||||
|
||||
.ul-weibo li
|
||||
{
|
||||
padding:3px;
|
||||
font-size:15px;
|
||||
}
|
||||
|
||||
.weibohover :hover
|
||||
{
|
||||
cursor:pointer;
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
#android :hover
|
||||
{
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
|
||||
/*-- 2014.8.19 New --*/
|
||||
.ag-content-customer-wrap {
|
||||
width:100%;
|
||||
background:#f1f1f1;
|
||||
transition:background-color .5s;
|
||||
-moz-transition:background-color .5s;
|
||||
-webkit-transition:background-color .5s;
|
||||
-o-transition:background-color .5s;
|
||||
}
|
||||
.ag-content-customer {
|
||||
width:100%;
|
||||
margin:0 auto;
|
||||
}
|
||||
.ag-content-customer-ele {
|
||||
width:14%;
|
||||
float:left;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
font-size:18px;
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.ag-content-customer-ele:hover {
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.ag-content-customer-ele span {
|
||||
display:block;
|
||||
width:100%;
|
||||
color:#FFF;
|
||||
font-size: 1.5em;
|
||||
position:absolute;
|
||||
line-height: 30px;
|
||||
top:50%;
|
||||
margin-top:-15px;
|
||||
left:0;
|
||||
text-align: center;
|
||||
transition:color .3s;
|
||||
-moz-transition:color .3s;
|
||||
-webkit-transition:color .3s;
|
||||
-o-transition:color .3s;
|
||||
}
|
||||
.ag-content-customer-ele img {
|
||||
display:block;
|
||||
width:300px;
|
||||
height:400px;
|
||||
position:absolute;
|
||||
top:52px;
|
||||
left:85px;
|
||||
}
|
||||
.ag-content-customer-ele-detail {
|
||||
width:100%;
|
||||
position:relative;
|
||||
float:left;
|
||||
background:#469acb;
|
||||
overflow:hidden;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul {
|
||||
width:100%;
|
||||
position: relative;
|
||||
z-index: 99;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li {
|
||||
width:14.28%;
|
||||
height:48px;
|
||||
font-size:16px;
|
||||
color:#333;
|
||||
padding:11px 0;
|
||||
cursor:pointer;
|
||||
background-repeat:no-repeat;
|
||||
position: relative;
|
||||
float: left;
|
||||
text-align: center;
|
||||
line-height: 48px;
|
||||
/*
|
||||
transition:background-position-y .2s;
|
||||
-moz-transition:background-position-y .2s;
|
||||
-webkit-transition:background-position-y .2s;
|
||||
-o-transition:background-position-y .2s;
|
||||
*/
|
||||
}
|
||||
|
||||
.ag-content-customer-ele-detail ul li.acced-li-1 {
|
||||
background-color:#00a1ff;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li.acced-li-2 {
|
||||
background-color: #2dccd3;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li.acced-li-3 {
|
||||
background-color: #00bb31;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li.acced-li-4 {
|
||||
background-color: #ff6900;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li.acced-li-5 {
|
||||
background-color: #963cbd;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li.acced-li-6 {
|
||||
background-color: #c4d600;
|
||||
}
|
||||
.ag-content-customer-ele-detail ul li.acced-li-7 {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
.ag-content-customer-ele-detail ul li span{color:#FFF; font-size: 1.125em;}
|
||||
@-webkit-keyframes mymove {
|
||||
0% {opacity:0;}
|
||||
100% {opacity:1;}
|
||||
}
|
||||
@-moz-keyframes mymove {
|
||||
0% {opacity:0;}
|
||||
100% {opacity:1;}
|
||||
}
|
||||
@-o-keyframes mymove {
|
||||
0% {opacity:0;}
|
||||
100% {opacity:1;}
|
||||
}
|
||||
@-webkit-keyframes remove {
|
||||
0% {opacity:0;}
|
||||
100% {opacity:1;}
|
||||
}
|
||||
@-moz-keyframes remove {
|
||||
0% {opacity:0;}
|
||||
100% {opacity:1;}
|
||||
}
|
||||
@-o-keyframes remove {
|
||||
0% {opacity:0;}
|
||||
100% {opacity:1;}
|
||||
}
|
||||
.ag-content-customer-ele-detail-display {
|
||||
display:none;
|
||||
width:100%;
|
||||
float:left;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-left {
|
||||
width:100%;
|
||||
position:relative;
|
||||
top:0px;
|
||||
left:0px;
|
||||
opacity:0;
|
||||
animation:mymove 1s both;
|
||||
-moz-animation:mymove 1s both;
|
||||
-webkit-animation:mymove 1s both;
|
||||
-o-animation:mymove 1s both;
|
||||
height: 100%;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right {
|
||||
width:580px;
|
||||
height:420px;
|
||||
position:absolute;
|
||||
top:50px;
|
||||
right:-120px;
|
||||
opacity:0;
|
||||
filter:alpha(opacity=0);
|
||||
animation:remove 1.5s both;
|
||||
-moz-animation:remove 1.5s both;
|
||||
-webkit-animation:remove 1.5s both;
|
||||
-o-animation:remove 1.5s both;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right span {
|
||||
display:block;
|
||||
line-height:40px;
|
||||
font-family:Arial;
|
||||
font-size:30px;
|
||||
color:#fff;
|
||||
text-align:center;
|
||||
position:absolute;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right span.point {
|
||||
font-family:'SimSun';
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a {
|
||||
display:block;
|
||||
width:134px;
|
||||
height:140px;
|
||||
text-align:left;
|
||||
text-indent:-9999px;
|
||||
background-image:url('../images/ag-link-icon_87d8dbf.png');
|
||||
background-repeat:no-repeat;
|
||||
cursor:pointer;
|
||||
position:absolute;
|
||||
overflow:hidden;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agwyx:link {
|
||||
background-position:0px 0px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agwyx:hover {
|
||||
background-position:-134px 0px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agwyx:active {
|
||||
background-position:-268px 0px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agwm:link {
|
||||
background-position:0px -140px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agwm:hover {
|
||||
background-position:-134px -140px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agwm:active {
|
||||
background-position:-268px -140px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.aggg:link {
|
||||
background-position:0px -280px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.aggg:hover {
|
||||
background-position:-134px -280px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.aggg:active {
|
||||
background-position:-268px -280px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agxt:link {
|
||||
background-position:0px -420px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agxt:hover {
|
||||
background-position:-134px -420px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.agxt:active {
|
||||
background-position:-268px -420px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.jjzs:link {
|
||||
background-position:0px -560px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.jjzs:hover {
|
||||
background-position:-134px -560px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.jjzs:active {
|
||||
background-position:-268px -560px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.tgrb:link {
|
||||
background-position:0px -700px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.tgrb:hover {
|
||||
background-position:-134px -700px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.tgrb:active {
|
||||
background-position:-268px -700px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.ag360:link {
|
||||
background-position:0px -840px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.ag360:hover {
|
||||
background-position:-134px -840px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-display-right a.ag360:active {
|
||||
background-position:-268px -840px;
|
||||
}
|
||||
.ag-content-customer-ele-detail-return {
|
||||
width:90px;
|
||||
height:40px;
|
||||
line-height:40px;
|
||||
font-size:15px;
|
||||
color:#fff;
|
||||
text-align:center;
|
||||
position:absolute;
|
||||
bottom:5px;
|
||||
left:50%;
|
||||
margin-left:-45px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.ag-content-customer-ele-detail-return span {
|
||||
float:left;
|
||||
font-family:"SimSun";
|
||||
font-size:30px;
|
||||
}
|
||||
.ag-content-customer-prompt {
|
||||
width:100%;
|
||||
height:52px;
|
||||
background:#f1f1f1;
|
||||
text-align:center;
|
||||
}
|
||||
.ag-content-app-wytgg-wrap {
|
||||
width:100%;
|
||||
background:#fff;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-app-wytgg {
|
||||
width:1002px;
|
||||
height:590px;
|
||||
margin:0 auto;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-app-wytgg-left {
|
||||
width:300px;
|
||||
height:400px;
|
||||
position:absolute;
|
||||
top:100px;
|
||||
left:0px;
|
||||
}
|
||||
.ag-content-app-wytgg-left > img {
|
||||
display:block;
|
||||
float:left;
|
||||
margin-bottom:75px;
|
||||
}
|
||||
|
||||
|
||||
.ag-content-app-wytgg-right {
|
||||
width:570px;
|
||||
height:380px;
|
||||
position:absolute;
|
||||
top:95px;
|
||||
right:0px;
|
||||
border:8px solid #787878;
|
||||
border-radius:8px;
|
||||
}
|
||||
.ag-content-app-tgrb-wrap {
|
||||
width:100%;
|
||||
background:#f1f1f1;
|
||||
border-top:1px solid #d4d4d4;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-app-tgrb {
|
||||
width:1002px;
|
||||
height:590px;
|
||||
margin:0 auto;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-app-tgrb-left {
|
||||
width:463px;
|
||||
height:431px;
|
||||
position:absolute;
|
||||
top:80px;
|
||||
left:0px;
|
||||
}
|
||||
.ag-content-app-tgrb-right {
|
||||
width:308px;
|
||||
height:230px;
|
||||
position:absolute;
|
||||
top:120px;
|
||||
right:0px;
|
||||
}
|
||||
/*modify by chonggao with date 2015/02/05 for new image description*/
|
||||
.ag-content-app-tgrb-right > img {
|
||||
position:relative;
|
||||
right:180px;
|
||||
}
|
||||
.ag-content-app-tgrb-right a {
|
||||
display:block;
|
||||
width:129px;
|
||||
height:47px;
|
||||
background:url('../images/ag-tgrb-btn-1_3b967d3.png') no-repeat;
|
||||
margin:24px 0 0 207px;
|
||||
}
|
||||
.ag-content-app-tgrb-right a:link {
|
||||
background-position:0px 0px;
|
||||
}
|
||||
.ag-content-app-tgrb-right a:hover {
|
||||
background-position:-129px 0px;
|
||||
}
|
||||
.ag-content-app-tgrb-right a:active {
|
||||
background-position:-258px 0px;
|
||||
}
|
||||
.ag-content-partners-parnter-wrap {
|
||||
width:100%;
|
||||
background:#fff;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-partners-parnter {
|
||||
width:1002px;
|
||||
margin:0 auto;
|
||||
padding:30px 0 42px 0;
|
||||
position:relative;
|
||||
text-align:center;
|
||||
}
|
||||
.ag-content-partners-parnter img {
|
||||
margin-top:24px;
|
||||
}
|
||||
.ag-content-partners-customer-wrap {
|
||||
width:100%;
|
||||
background:#707070;
|
||||
position:relative;
|
||||
}
|
||||
.ag-content-partners-customer {
|
||||
width:1002px;
|
||||
margin:0 auto;
|
||||
padding:20px 0 42px 0;
|
||||
position:relative;
|
||||
text-align:center;
|
||||
}
|
||||
.ag-content-partners-customer img {
|
||||
margin-top:30px;
|
||||
}
|
||||
|
||||
/*-- 2014/12/25 --*/
|
||||
#floatAdv {
|
||||
display:none;
|
||||
width:283px;
|
||||
height:57px;
|
||||
position:fixed;
|
||||
top:0px;
|
||||
left:0px;
|
||||
z-index:999999999;
|
||||
}
|
||||
#floatAdv img {
|
||||
width:283px;
|
||||
height:57px;
|
||||
}
|
||||
#floatAdv span {
|
||||
display:none;
|
||||
border:1px solid #d2d2d2;
|
||||
background-color:#f2f2f2;
|
||||
font-size:12px;
|
||||
position:absolute;
|
||||
top:0px;
|
||||
right:0px;
|
||||
cursor:pointer;
|
||||
}
|
||||
#floatAdv:hover span {
|
||||
display:block;
|
||||
}
|
||||
|
||||
.ag-content-customer{position: relative; }
|
||||
.ag-content-customer img{width:100%; display: block;}
|
||||
|
||||
/*七大产品线排序*/
|
||||
.ag-content-customer-ele:nth-child(1){left:0%; background-color:#00a1ff;}
|
||||
.ag-content-customer-ele:nth-child(2){left:14%; background-color:#2dccd3;}
|
||||
.ag-content-customer-ele:nth-child(3){left:28%; background-color: #00bb31;}
|
||||
.ag-content-customer-ele:nth-child(4){left:42%; background-color:#ff6900;}
|
||||
.ag-content-customer-ele:nth-child(5){left:56%; background-color:#963cbd;}
|
||||
.ag-content-customer-ele:nth-child(6){left:70%; background-color:#c4d600;}
|
||||
.ag-content-customer-ele:nth-child(7){left:84%; background-color:#000000;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.ag-content-customer-ele:before{
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: 0;
|
||||
left: 10%;
|
||||
width: 80%;
|
||||
height: 100%;
|
||||
background: white;
|
||||
opacity: 0.05;
|
||||
-webkit-transform-origin: center center;
|
||||
-ms-transform-origin: center center;
|
||||
transform-origin: center center;
|
||||
-webkit-transform: skew(-30deg) scaleY(1) translate(0, 0);
|
||||
-ms-transform: skew(-30deg) scaleY(1) translate(0, 0);
|
||||
transform: skew(-30deg) scaleY(1) translate(0, 0);
|
||||
-webkit-transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
|
||||
}
|
||||
|
||||
.ag-content-customer-ele:hover:before {
|
||||
-webkit-transform: skew(-30deg) scale(1.5) translate(0, 0);
|
||||
-ms-transform: skew(-30deg) scale(1.5) translate(0, 0);
|
||||
transform: skew(-30deg) scale(1.5) translate(0, 0);
|
||||
opacity: 0.1;
|
||||
}
|
||||
718
public/frontend/web/scripts/jquery-tp-150423184326/css/layout_220082c.css
Executable file
718
public/frontend/web/scripts/jquery-tp-150423184326/css/layout_220082c.css
Executable file
@@ -0,0 +1,718 @@
|
||||
/*
|
||||
Document : layout.css
|
||||
Created on : 2013.06.24
|
||||
Author : Jessica Kung
|
||||
*/
|
||||
|
||||
body, html, #container {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#container {
|
||||
height:auto !important;
|
||||
}
|
||||
|
||||
body > #container {
|
||||
height: auto;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body, html {
|
||||
font-family: "Microsoft YaHei","微软雅黑",Candara,Tahoma,SimSun !important;
|
||||
font-size: 16px;
|
||||
background: #fff;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
text-align: left;
|
||||
color: #1a1a1a;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.clearfix:after {
|
||||
content: ".";
|
||||
display: block;
|
||||
height: 0;
|
||||
clear: both;
|
||||
visibility: hidden;
|
||||
zoom: 1
|
||||
}
|
||||
|
||||
#header{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
*height: 81px;
|
||||
vertical-align: middle;
|
||||
background:#fff;
|
||||
z-index: 9000;
|
||||
}
|
||||
|
||||
#main-navbar-list a:hover {
|
||||
color: #00adef;
|
||||
}
|
||||
|
||||
#secondary-navbar a:hover {
|
||||
color: #F1E400;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
#logo {
|
||||
margin-left: 10%;
|
||||
font-size: 46px;
|
||||
margin-top: 17px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#logo a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#logo a:hover {
|
||||
color: #cfcfcf;
|
||||
}
|
||||
|
||||
#login-register-wrapper {
|
||||
float: right;
|
||||
margin-right: 10%;
|
||||
font-size: 12px;
|
||||
color: #7a8181;
|
||||
}
|
||||
|
||||
#login-register a {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
#small-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#main-navbar-wrapper, #secondary-navbar-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#main-navbar-wrapper {
|
||||
height: 80px;
|
||||
*height: 0px;
|
||||
}
|
||||
|
||||
#secondary-navbar-wrapper {
|
||||
background:#00adef;
|
||||
height:46px;
|
||||
}
|
||||
|
||||
#main-navbar, #secondary-navbar {
|
||||
position: absolute;
|
||||
float: right;
|
||||
margin-right: 10%;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#main-navbar {
|
||||
display:block;
|
||||
height:44px;
|
||||
line-height:44px;
|
||||
bottom:0px;
|
||||
}
|
||||
|
||||
#secondary-navbar {
|
||||
bottom:-34px;
|
||||
}
|
||||
|
||||
#secondary-about, #secondary-products {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#header.stuck
|
||||
{
|
||||
position: fixed;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#header li, #header li {
|
||||
display:inline-block;
|
||||
*display:inline;
|
||||
zoom:1;
|
||||
font-size:16px;
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
/*
|
||||
#header li.first a, #header li.first {
|
||||
padding-left: 0px;
|
||||
}
|
||||
*/
|
||||
|
||||
#header li.last a, #header li.last {
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
#main-navbar-list li a {
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
color:#1a1a1a;
|
||||
padding:0 18px;
|
||||
}
|
||||
|
||||
#secondary-navbar li a {
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
color:#fff;
|
||||
padding:0 18px;
|
||||
}
|
||||
|
||||
#main-navbar-list li a.navbar-active {
|
||||
color:#fff;
|
||||
background:#00adef;
|
||||
}
|
||||
|
||||
#secondary-navbar li a.navbar-active {
|
||||
color:#F1E400;
|
||||
}
|
||||
|
||||
#content-wrapper {
|
||||
padding-top: 80px;
|
||||
padding-bottom: 30px;
|
||||
min-height:92%;
|
||||
}
|
||||
|
||||
.ad {
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center center!important;
|
||||
overflow: hidden!important;
|
||||
width: 100%!important;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 438px;
|
||||
}
|
||||
|
||||
.ad-text-container {
|
||||
margin: 100px 0 0 10%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.description-text {
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
|
||||
.panel-no-bottom {
|
||||
padding: 60px 10% 0 10%;
|
||||
}
|
||||
|
||||
.panel {
|
||||
padding: 60px 10%;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: #00adef;
|
||||
font-family: "Microsoft YaHei","微软雅黑",Candara,Tahoma,SimSun !important;
|
||||
color: #fff;
|
||||
border: none;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
font-size: 26px;
|
||||
padding: 14px 40px;
|
||||
*padding: 7px 40px 8px 40px;
|
||||
*overflow: visible;
|
||||
transition: all 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #008acb;
|
||||
cursor: pointer;
|
||||
transition: all 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
.blue-button {
|
||||
background-color: #00adef;
|
||||
}
|
||||
|
||||
.gray-button {
|
||||
background-color: #c7c7c7;
|
||||
}
|
||||
|
||||
.gray-button:hover {
|
||||
background-color: #999;
|
||||
}
|
||||
|
||||
.orange-button {
|
||||
background-color: #ffa200;
|
||||
}
|
||||
|
||||
.orange-button:hover {
|
||||
background-color: #d88900;
|
||||
}
|
||||
|
||||
.header1 {
|
||||
font-size: 58px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.header2 {
|
||||
font-size: 44px;
|
||||
}
|
||||
|
||||
.header3 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.header4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.description-text {
|
||||
font-size: 16px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 58px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #469acb;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #1a1a1a;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
*:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
textarea {
|
||||
font-size: 16px;
|
||||
padding: 14px;
|
||||
border: #cfcfcf 1px solid;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
textarea:focus {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
input {
|
||||
height: 34px;
|
||||
border: #cfcfcf 1px solid;
|
||||
padding-left: 4%;
|
||||
padding-right: 8%;
|
||||
font-size: 16px;
|
||||
font-family: "Microsoft YaHei","微软雅黑",Candara,Tahoma,SimSun !important;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
input[type="submit"]::-moz-focus-inner {border:0;}
|
||||
|
||||
::-webkit-input-placeholder {
|
||||
font-family: "Microsoft YaHei", "微软雅黑", Candara, Tahoma, SimSun !important;
|
||||
font-weight: 100;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
::-moz-placeholder {
|
||||
font-family: "Microsoft YaHei", "微软雅黑", Candara, Tahoma, SimSun !important;
|
||||
font-weight: 100;
|
||||
color: #999;
|
||||
} /* firefox 19+ */
|
||||
|
||||
:-ms-input-placeholder {
|
||||
font-family: "Microsoft YaHei", "微软雅黑", Candara, Tahoma, SimSun !important;
|
||||
font-weight: 100;
|
||||
color: #999;
|
||||
} /* ie */
|
||||
|
||||
input:-moz-placeholder {
|
||||
font-family: "Microsoft YaHei", "微软雅黑", Candara, Tahoma, SimSun !important;
|
||||
font-weight: 100;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
img.center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
#footer-wrapper {
|
||||
width: 100%;
|
||||
clear: both;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
/*height: 380px;*/
|
||||
margin-top: -30px;
|
||||
text-align: center;
|
||||
background:#f9f9f9;
|
||||
}
|
||||
|
||||
#footer-header {
|
||||
height:70px;
|
||||
line-height:70px;
|
||||
font-size:24px;
|
||||
text-align:center;
|
||||
color:#fff;
|
||||
background-color:#92949b;
|
||||
}
|
||||
|
||||
#footer-header >div a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-size: 24px;
|
||||
}
|
||||
#footer-header div{
|
||||
margin-left: 85px;
|
||||
display: inline-block;
|
||||
}
|
||||
.footer-phone{
|
||||
margin-left: -5px !important;
|
||||
}
|
||||
#footer-header img{
|
||||
position: relative;
|
||||
top: 7px;
|
||||
}
|
||||
#footer-content{
|
||||
padding:2% 9.5% 0;
|
||||
}
|
||||
.footer-list{
|
||||
display: inline-block;
|
||||
margin-left: 8%;
|
||||
text-align: left;
|
||||
color: #6a737b;
|
||||
|
||||
}
|
||||
.footer-list dt {
|
||||
color: #6a737b;
|
||||
font-size: 14px;
|
||||
line-height: 25px;
|
||||
}
|
||||
.footer-list dt >a{
|
||||
color: #6a737b;
|
||||
}
|
||||
|
||||
.footer-list >h4{
|
||||
color:#333;
|
||||
}
|
||||
|
||||
#footer-bottom{
|
||||
color: #6a737b;
|
||||
font-size: 12px;
|
||||
padding:10px 0 25px 0;
|
||||
/*
|
||||
text-align: right;
|
||||
background-color: #f5f5f5;
|
||||
position: relative;
|
||||
right: 3px;
|
||||
*/
|
||||
}
|
||||
|
||||
.imgWrap {
|
||||
width:1001px;
|
||||
margin:0 auto;
|
||||
position:relative;
|
||||
}
|
||||
|
||||
.imgWrap img {
|
||||
display:block;
|
||||
}
|
||||
|
||||
|
||||
/*-- 2014.8.19 New --*/
|
||||
ul, li {
|
||||
list-style-type:none;
|
||||
}
|
||||
img {
|
||||
border:none;
|
||||
}
|
||||
body {
|
||||
overflow-x:hidden;
|
||||
}
|
||||
#ag-header-wrap {
|
||||
width:100%;
|
||||
height:60px;
|
||||
background:#f4f4f4;
|
||||
border-bottom:1px solid #c6c6c6;
|
||||
}
|
||||
.ag-header {
|
||||
width:1002px;
|
||||
height:60px;
|
||||
position:relative;
|
||||
margin:0 auto;
|
||||
font-family:'Microsoft YaHei';
|
||||
}
|
||||
.ag-header a.ag-header-homeLink {
|
||||
display:block;
|
||||
width:100px;
|
||||
height:60px;
|
||||
float:left;
|
||||
}
|
||||
.ag-header ul {
|
||||
float:left;
|
||||
}
|
||||
.ag-header ul li {
|
||||
height:60px;
|
||||
float:left;
|
||||
margin-left:20px;
|
||||
position:relative;
|
||||
}
|
||||
.ag-header ul li:hover .ag-header-nav {
|
||||
display:block;
|
||||
}
|
||||
.ag-header ul li:hover a {
|
||||
color:#469acb;
|
||||
}
|
||||
.ag-header ul li > a {
|
||||
display:block;
|
||||
height:60px;
|
||||
line-height:64px;
|
||||
font-size:16px;
|
||||
color:#333;
|
||||
text-align:left;
|
||||
}
|
||||
.ag-header ul li.current-page > a {
|
||||
color:#469acb;
|
||||
}
|
||||
.ag-header ul li .ag-header-nav {
|
||||
display:none;
|
||||
background:#f4f4f4;
|
||||
border:1px solid #c6c6c6;
|
||||
border-top:none;
|
||||
border-radius: 0 0 8px 8px;
|
||||
padding-bottom:5px;
|
||||
position:absolute;
|
||||
left:-10px;
|
||||
z-index:99999;
|
||||
}
|
||||
.ag-header ul li .ag-header-nav a {
|
||||
display:block;
|
||||
height:34px;
|
||||
line-height:24px;
|
||||
color:#333;
|
||||
text-align:left;
|
||||
padding:0 10px;
|
||||
white-space:nowrap;
|
||||
}
|
||||
.ag-header ul li .ag-header-nav a:hover {
|
||||
color:#469acb;
|
||||
}
|
||||
.ag-header .ag-header-login {
|
||||
height:32px;
|
||||
float:right;
|
||||
padding:14px 0;
|
||||
}
|
||||
.ag-header .ag-header-login a {
|
||||
display:block;
|
||||
width:auto;
|
||||
height:32px;
|
||||
float:left;
|
||||
margin-left:10px;
|
||||
}
|
||||
/* modify by chonggao for header with date 2015/02/05 */
|
||||
.ag-header .ag-header-login a.ag-header-login-btn {
|
||||
height:23px;
|
||||
line-height:23px;
|
||||
font-size:14px;
|
||||
color:#fff;
|
||||
text-align:center;
|
||||
margin-top:5px;
|
||||
padding:0 15px;
|
||||
border-radius:12px;
|
||||
background:#469acb;
|
||||
}
|
||||
.ag-header .ag-header-login a img {
|
||||
width:28px;
|
||||
height:28px;
|
||||
display:block;
|
||||
float:left;
|
||||
position:relative;
|
||||
z-index:1;
|
||||
top:3px;
|
||||
}
|
||||
.ag-header .ag-header-login a span {
|
||||
width:1px;
|
||||
height:23px;
|
||||
line-height:22px;
|
||||
font-size:14px;
|
||||
color:#fff;
|
||||
text-align:left;
|
||||
text-indent:10px;
|
||||
float:left;
|
||||
margin:5px 0 0 -7px;
|
||||
background:#707070;
|
||||
border-radius:0 12px 12px 0;
|
||||
white-space:nowrap;
|
||||
overflow:hidden;
|
||||
}
|
||||
/*modify end*/
|
||||
#ag-container {
|
||||
width:100%;
|
||||
margin:0px;
|
||||
background:#f1f1f1;
|
||||
font-family:'Microsoft YaHei';
|
||||
color:#262626;
|
||||
}
|
||||
.ag-container-wrap {
|
||||
width:1002px;
|
||||
height:auto;
|
||||
position:relative;
|
||||
margin:0 auto;
|
||||
font-family:'Microsoft YaHei';
|
||||
}
|
||||
#ag-footer {
|
||||
width:100%;
|
||||
clear:both;
|
||||
padding:0px;
|
||||
font-family:'Microsoft YaHei';
|
||||
position:relative;
|
||||
background:#f5f5f5;
|
||||
border-top:74px solid #ccd0d9;
|
||||
}
|
||||
.ag-footer-top {
|
||||
width:1002px;
|
||||
height:48px;
|
||||
position:absolute;
|
||||
top:-74px;
|
||||
left:50%;
|
||||
margin-left:-500px;
|
||||
padding:13px 0;
|
||||
}
|
||||
.ag-footer-top a {
|
||||
display:block;
|
||||
height:48px;
|
||||
line-height:48px;
|
||||
float:left;
|
||||
margin:0px;
|
||||
padding-left:54px;
|
||||
font-size:28px;
|
||||
color:#000;
|
||||
text-align:left;
|
||||
white-space:nowrap;
|
||||
background-image:url('http://static.agrant.cn/static/images/ag-icon_bc1916c.png');
|
||||
background-repeat:no-repeat;
|
||||
background-position:left;
|
||||
}
|
||||
.ag-footer-top a.ag-footer-top-phone {
|
||||
width:180px;
|
||||
background-position:left 0px;
|
||||
cursor:default;
|
||||
}
|
||||
.ag-footer-top a.ag-footer-top-mail {
|
||||
width:284px;
|
||||
margin-left:130px;
|
||||
background-position:left -48px;
|
||||
}
|
||||
.ag-footer-top a.ag-footer-top-msg {
|
||||
width:116px;
|
||||
margin-left:130px;
|
||||
background-position:left -96px;
|
||||
}
|
||||
.ag-footer-middle {
|
||||
width:810px;
|
||||
margin:0 auto;
|
||||
padding:30px 0 20px 192px;
|
||||
position:relative;
|
||||
background-image:url('http://static.agrant.cn/static/images/ag-logo-footer_8407831.png');
|
||||
background-repeat:no-repeat;
|
||||
background-position:left 30px;
|
||||
overflow:hidden;
|
||||
}
|
||||
.ag-footer-middle ul {
|
||||
display:block;
|
||||
float:left;
|
||||
margin-left:100px;
|
||||
position:relative;
|
||||
}
|
||||
.ag-footer-middle ul li {
|
||||
height:24px;
|
||||
line-height:24px;
|
||||
font-size:12px;
|
||||
color:#556173;
|
||||
}
|
||||
.ag-footer-middle ul li:first-child {
|
||||
font-size:16px;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
.ag-footer-middle ul li a {
|
||||
font-size:12px;
|
||||
color:#556173;
|
||||
}
|
||||
.ag-footer-middle ul li a:hover {
|
||||
color:#469acb;
|
||||
text-decoration:underline;
|
||||
}
|
||||
.ag-footer-bottom {
|
||||
width:1002px;
|
||||
height:20px;
|
||||
line-height:20px;
|
||||
margin:0 auto;
|
||||
padding-bottom:15px;
|
||||
font-size:12px;
|
||||
color:#999;
|
||||
text-align:right;
|
||||
}
|
||||
.ag-content-title {
|
||||
width:100%;
|
||||
height:115px;
|
||||
background:#f1f1f1;
|
||||
border-top:1px solid #d4d4d4;
|
||||
border-bottom:1px solid #d4d4d4;
|
||||
position:relative;
|
||||
text-align:center;
|
||||
}
|
||||
.ag-content-title img.point {
|
||||
position:absolute;
|
||||
bottom:-25px;
|
||||
left:50%;
|
||||
margin-left:-15px;
|
||||
z-index:1;
|
||||
}
|
||||
.temp-return {
|
||||
padding:0 10% 30px 10%;
|
||||
}
|
||||
.temp-help {
|
||||
background-color: white !important;
|
||||
color: gray!important;
|
||||
border:1px solid gray;
|
||||
}
|
||||
.temp-help:hover{
|
||||
border:1px solid #ffae22 !important;
|
||||
color: #ffae22 !important;
|
||||
}
|
||||
/*-- 2014.8.19 New --*/
|
||||
652
public/frontend/web/scripts/jquery-tp-150423184326/index.html
Executable file
652
public/frontend/web/scripts/jquery-tp-150423184326/index.html
Executable file
@@ -0,0 +1,652 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/layout_220082c.css" />
|
||||
|
||||
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
|
||||
|
||||
|
||||
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
||||
<title>页jQuery特效</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="css/home_2c89410.css" />
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
<!-- customer -->
|
||||
|
||||
<div class="ag-content-customer-wrap">
|
||||
|
||||
<div class="ag-content-customer">
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
<span>电脑周边</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
|
||||
<span>手机周边</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
|
||||
<span>电子电工</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
|
||||
<span>影音娱乐</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
|
||||
<span>个人护理</span>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
|
||||
<span>生活周边</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele">
|
||||
|
||||
<div class="ag-content-customer-ele-shadow"></div>
|
||||
|
||||
<span>高端游戏</span>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="ag-content-customer-ele-detail">
|
||||
|
||||
<ul style="display: none">
|
||||
|
||||
<li class="acced-li-1"><span>电脑周边</span></li>
|
||||
|
||||
<li class="acced-li-2"><span>手机周边</span></li>
|
||||
|
||||
<li class="acced-li-3"><span>电子电工</span></li>
|
||||
|
||||
<li class="acced-li-4"><span>影音娱乐</span></li>
|
||||
|
||||
<li class="acced-li-5"><span>个人护理</span></li>
|
||||
|
||||
<li class="acced-li-6"><span>生活周边</span></li>
|
||||
|
||||
<li class="acced-li-7"><span>高端游戏</span></li>
|
||||
</ul>
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/1.jpg" />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/2.jpg" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/3.jpg" />
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/4.jpg" />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/5.jpg" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/6.jpg" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display">
|
||||
|
||||
<div class="ag-content-customer-ele-detail-display-left">
|
||||
|
||||
<img src="images/7.jpg" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<img src="images/bg.png" >
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
var ctrlBar = false;
|
||||
|
||||
|
||||
|
||||
var float_timer = null;
|
||||
|
||||
var float_max_X;
|
||||
|
||||
var float_max_Y;
|
||||
|
||||
var float_ctrl_X = true;
|
||||
|
||||
var float_ctrl_Y = true;
|
||||
|
||||
$(function () {
|
||||
|
||||
float_max_X = $(window).width();
|
||||
|
||||
float_max_Y = $(window).height();
|
||||
|
||||
});
|
||||
|
||||
function showVideoImage() {
|
||||
|
||||
if ($('.vjs-poster').css('display') == 'none') {
|
||||
|
||||
$('.vjs-poster').addClass('index').show();
|
||||
|
||||
} else {
|
||||
|
||||
setTimeout('showVideoImage()', 50);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function startMove() {
|
||||
|
||||
var obj = $('#floatAdv');
|
||||
|
||||
var limit_X = float_max_X - obj.width();
|
||||
|
||||
var limit_Y = float_max_Y - obj.height();
|
||||
|
||||
float_timer = setInterval(function () {
|
||||
|
||||
var _x = parseInt(obj.css('left'));
|
||||
|
||||
var _y = parseInt(obj.css('top'));
|
||||
|
||||
if (_x >= limit_X) {
|
||||
|
||||
float_ctrl_X = false;
|
||||
|
||||
}
|
||||
|
||||
if (_x <= 0) {
|
||||
|
||||
float_ctrl_X = true;
|
||||
|
||||
}
|
||||
|
||||
if (_y >= limit_Y) {
|
||||
|
||||
float_ctrl_Y = false;
|
||||
|
||||
}
|
||||
|
||||
if (_y <= 0) {
|
||||
|
||||
float_ctrl_Y = true;
|
||||
|
||||
}
|
||||
|
||||
if (float_ctrl_X) {
|
||||
|
||||
_x += 1;
|
||||
|
||||
} else {
|
||||
|
||||
_x -= 1;
|
||||
|
||||
}
|
||||
|
||||
if (float_ctrl_Y) {
|
||||
|
||||
_y += 1;
|
||||
|
||||
} else {
|
||||
|
||||
_y -= 1;
|
||||
|
||||
}
|
||||
|
||||
obj.css({
|
||||
|
||||
'left': _x + 'px',
|
||||
|
||||
'top': _y + 'px'
|
||||
|
||||
});
|
||||
|
||||
}, 10);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function endMove() {
|
||||
|
||||
clearInterval(float_timer);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
$('.ag-header ul li:eq(0)').addClass('current-page');
|
||||
|
||||
showVideoImage();
|
||||
|
||||
|
||||
|
||||
$('#floatAdv').mouseenter(function () {
|
||||
|
||||
endMove();
|
||||
|
||||
});
|
||||
|
||||
$('#floatAdv').mouseleave(function () {
|
||||
|
||||
startMove();
|
||||
|
||||
});
|
||||
|
||||
$('#floatAdv span').click(function (e) {
|
||||
|
||||
endMove();
|
||||
|
||||
$('#floatAdv').attr('href', 'javascript:;').removeAttr('target').hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(".ag-content-customer-ele").bind("mouseenter mouseleave", function (e) {
|
||||
|
||||
var w = $(this).width();
|
||||
|
||||
var h = $(this).height();
|
||||
|
||||
var x = (e.pageX - this.offsetLeft - (w / 2)) * (w > h ? (h / w) : 1);
|
||||
|
||||
var y = (e.pageY - this.offsetTop - (h / 2)) * (h > w ? (w / h) : 1);
|
||||
|
||||
var direction = Math.round((((Math.atan2(y, x) * (180 / Math.PI)) + 180) / 90) + 3) % 4;
|
||||
|
||||
if (e.type == 'mouseenter') {
|
||||
|
||||
// 0:up - 1:right - 2:down - 3:left
|
||||
|
||||
if(direction == 0) {
|
||||
|
||||
$(this).find('div').css({
|
||||
|
||||
'top' : '-470px',
|
||||
|
||||
'left' : '0px'
|
||||
|
||||
});
|
||||
|
||||
$(this).find('div').animate({ 'top': 0 }, { queue: false, duration: 300 });
|
||||
|
||||
} else if(direction == 2) {
|
||||
|
||||
$(this).find('div').css({
|
||||
|
||||
'top' : '470px',
|
||||
|
||||
'left' : '0px'
|
||||
|
||||
});
|
||||
|
||||
$(this).find('div').animate({ 'top': 0 }, { queue: false, duration: 300 });
|
||||
|
||||
} else if(direction == 1) {
|
||||
|
||||
$(this).find('div').css({
|
||||
|
||||
'top' : '0px',
|
||||
|
||||
'left' : '167px'
|
||||
|
||||
});
|
||||
|
||||
$(this).find('div').animate({ 'left': 0 }, { queue: false, duration: 300 });
|
||||
|
||||
} else if(direction == 3) {
|
||||
|
||||
$(this).find('div').css({
|
||||
|
||||
'top' : '0px',
|
||||
|
||||
'left' : '-167px'
|
||||
|
||||
});
|
||||
|
||||
$(this).find('div').animate({ 'left': 0 }, { queue: false, duration: 300 });
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$(this).find('img').animate({ 'left': $(this).find('img').attr('data-hover') }, { queue: false, duration: 200 });
|
||||
|
||||
}else{
|
||||
|
||||
if(direction == 0) {
|
||||
|
||||
$(this).find('div').animate({ 'top': -470 }, { queue: false, duration: 300 });
|
||||
|
||||
} else if(direction == 2) {
|
||||
|
||||
$(this).find('div').animate({ 'top': 470 }, { queue: false, duration: 300 });
|
||||
|
||||
} else if(direction == 1) {
|
||||
|
||||
$(this).find('div').animate({ 'left': 167 }, { queue: false, duration: 300 });
|
||||
|
||||
} else if(direction == 3) {
|
||||
|
||||
$(this).find('div').animate({ 'left': -167 }, { queue: false, duration: 300 });
|
||||
|
||||
}
|
||||
|
||||
|
||||
$(this).find('img').animate({ 'left': $(this).find('img').attr('data-normal') }, { queue: false, duration: 200 });
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(".ag-content-customer-ele").bind('click', function (e) {
|
||||
|
||||
|
||||
|
||||
var navIndex = $(e.target).parent().index();
|
||||
|
||||
$('.ag-content-customer-ele-detail ul li').removeClass('current');
|
||||
|
||||
$('.ag-content-customer-ele-detail ul li').eq(navIndex).addClass('current');
|
||||
|
||||
|
||||
|
||||
$('.ag-content-customer-ele').animate({ width:"0"}, 500);
|
||||
$('.ag-content-customer-ele-detail ul').show(500);
|
||||
|
||||
|
||||
$('.ag-content-customer-ele-detail').animate({Width:"100%"}, {
|
||||
|
||||
duration: 500,
|
||||
|
||||
complete: function () {
|
||||
|
||||
$('.ag-content-customer-ele-detail ul li').eq(navIndex).click();
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.ag-content-customer-ele-detail-return').bind('click', function (e) {
|
||||
|
||||
|
||||
|
||||
|
||||
$('.ag-content-customer-ele-detail').css('overflow', 'hidden');
|
||||
|
||||
$('.ag-content-customer-ele').animate({ 'width': 167 }, 500);
|
||||
|
||||
$('.ag-content-customer-ele-detail').animate({ 'width': 0 }, 500);
|
||||
|
||||
$('.ag-content-customer-ele-detail-display').hide();
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.ag-content-customer-ele-detail ul li').bind('click', function () {
|
||||
|
||||
|
||||
|
||||
$('.ag-content-customer-ele-detail ul li').removeClass('current');
|
||||
|
||||
$(this).addClass('current');
|
||||
|
||||
$('.ag-content-customer-ele-detail').css('overflow', 'visible');
|
||||
|
||||
|
||||
|
||||
var disIndex = $(this).index();
|
||||
|
||||
$('.ag-content-customer-ele-detail-display').hide();
|
||||
|
||||
$('.ag-content-customer-ele-detail-display').eq(disIndex).show();
|
||||
|
||||
|
||||
|
||||
// IE
|
||||
|
||||
if ("ActiveXObject" in window) {
|
||||
|
||||
$('.ag-content-customer-ele-detail-display-left').css({
|
||||
|
||||
'left': '0px',
|
||||
|
||||
'opacity':'1'
|
||||
|
||||
});
|
||||
|
||||
$('.ag-content-customer-ele-detail-display-right').css({
|
||||
|
||||
'right': '-120px',
|
||||
|
||||
'opacity': '1'
|
||||
|
||||
});
|
||||
|
||||
$('.ag-content-customer-ele-detail-display-left').eq(disIndex).animate({ 'left': 120 }, { duration: 1000, easing: 'easeOutQuint' });
|
||||
|
||||
$('.ag-content-customer-ele-detail-display-right').eq(disIndex).animate({ 'right': 0 }, { duration: 1000, easing: 'easeOutQuint' });
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('body').on('click', '.vjs-big-play-button', function () {
|
||||
|
||||
$(this).hide();
|
||||
|
||||
ctrlBar = true;
|
||||
|
||||
$('.vjs-control-bar').removeClass('vjs-fade-out').addClass('vjs-fade-in');
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('.ag-content-app-wytgg-right').click(function () {
|
||||
|
||||
if (!$('#ag-app-video').hasClass('vjs-playing')) {
|
||||
|
||||
$('.vjs-big-play-button').css('display', 'none');
|
||||
|
||||
ctrlBar = true;
|
||||
|
||||
$('.vjs-control-bar').removeClass('vjs-fade-out').addClass('vjs-fade-in');
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
// IE7
|
||||
|
||||
if (window.navigator.userAgent.indexOf('MSIE 7.0') >= 0) {
|
||||
|
||||
$('#ag-app-video').css({
|
||||
|
||||
'width': '570px',
|
||||
|
||||
'height': '380px',
|
||||
|
||||
'position': 'relative'
|
||||
|
||||
});
|
||||
|
||||
$('#ag-app-video').find('div.vjs-poster').css({
|
||||
|
||||
'width': '570px',
|
||||
|
||||
'height': '380px',
|
||||
|
||||
'position': 'absolute',
|
||||
|
||||
'top': '0px'
|
||||
|
||||
});
|
||||
|
||||
$('.vjs-big-play-button').css({
|
||||
|
||||
'width': '100px',
|
||||
|
||||
'height': '100px',
|
||||
|
||||
'position': 'absolute',
|
||||
|
||||
'top': '140px',
|
||||
|
||||
'left': '235px'
|
||||
|
||||
});
|
||||
|
||||
$('.ag-content-app-wytgg-right').css('overflow', 'hidden');
|
||||
|
||||
} else {
|
||||
|
||||
$('.ag-content-app-wytgg-right').hover(
|
||||
|
||||
function () {
|
||||
|
||||
if (ctrlBar) {
|
||||
|
||||
$('.vjs-control-bar').removeClass('vjs-fade-out').addClass('vjs-fade-in');
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
function () {
|
||||
|
||||
$('.vjs-control-bar').removeClass('vjs-fade-in').addClass('vjs-fade-out');
|
||||
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
6
public/frontend/web/scripts/jquery-tp-150423184326/jquery插件库.url
Executable file
6
public/frontend/web/scripts/jquery-tp-150423184326/jquery插件库.url
Executable file
@@ -0,0 +1,6 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.jq22.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
6
public/frontend/web/scripts/jquery-tp-150423184326/js/jquery-1.10.2.min.js
vendored
Executable file
6
public/frontend/web/scripts/jquery-tp-150423184326/js/jquery-1.10.2.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
7
public/frontend/web/scripts/jquery-tp-150423184326/www.jq22.com.txt
Executable file
7
public/frontend/web/scripts/jquery-tp-150423184326/www.jq22.com.txt
Executable file
@@ -0,0 +1,7 @@
|
||||
|
||||
|
||||
jQuery<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
|
||||
http://www.jq22.com
|
||||
521
public/frontend/web/scripts/jquery.SuperSlide.2.1.1.js
Executable file
521
public/frontend/web/scripts/jquery.SuperSlide.2.1.1.js
Executable file
@@ -0,0 +1,521 @@
|
||||
/*!
|
||||
* SuperSlide v2.1.1
|
||||
* 轻松解决网站大部分特效展示问题
|
||||
* 详尽信息请看官网:http://www.SuperSlide2.com/
|
||||
*
|
||||
* Copyright 2011-2013, 大话主席
|
||||
*
|
||||
* 请尊重原创,保留头部版权
|
||||
* 在保留版权的前提下可应用于个人或商业用途
|
||||
|
||||
* v2.1.1:修复当调用多个SuperSlide,并设置returnDefault:true 时返回defaultIndex索引错误
|
||||
|
||||
*/
|
||||
|
||||
! function (a) {
|
||||
a.fn.slide = function (b) {
|
||||
return a.fn.slide.defaults = {
|
||||
type: "slide",
|
||||
effect: "fade",
|
||||
autoPlay: !1,
|
||||
delayTime: 1200,
|
||||
interTime: 5000,
|
||||
triggerTime: 300,
|
||||
defaultIndex: 0,
|
||||
titCell: ".hd li",
|
||||
mainCell: ".bd",
|
||||
targetCell: null,
|
||||
trigger: "mouseover",
|
||||
scroll: 1,
|
||||
vis: 1,
|
||||
titOnClassName: "on",
|
||||
autoPage: !1,
|
||||
prevCell: ".prev",
|
||||
nextCell: ".next",
|
||||
pageStateCell: ".pageState",
|
||||
opp: !1,
|
||||
pnLoop: !0,
|
||||
easing: "swing",
|
||||
startFun: null,
|
||||
endFun: null,
|
||||
switchLoad: null,
|
||||
playStateCell: ".playState",
|
||||
mouseOverStop: !0,
|
||||
defaultPlay: !0,
|
||||
returnDefault: !1
|
||||
}, this.each(function () {
|
||||
var c = a.extend({}, a.fn.slide.defaults, b),
|
||||
d = a(this),
|
||||
e = c.effect,
|
||||
f = a(c.prevCell, d),
|
||||
g = a(c.nextCell, d),
|
||||
h = a(c.pageStateCell, d),
|
||||
i = a(c.playStateCell, d),
|
||||
j = a(c.titCell, d),
|
||||
k = j.size(),
|
||||
l = a(c.mainCell, d),
|
||||
m = l.children().size(),
|
||||
n = c.switchLoad,
|
||||
o = a(c.targetCell, d),
|
||||
p = parseInt(c.defaultIndex),
|
||||
q = parseInt(c.delayTime),
|
||||
r = parseInt(c.interTime);
|
||||
parseInt(c.triggerTime);
|
||||
var Q, t = parseInt(c.scroll),
|
||||
u = parseInt(c.vis),
|
||||
v = "false" == c.autoPlay || 0 == c.autoPlay ? !1 : !0,
|
||||
w = "false" == c.opp || 0 == c.opp ? !1 : !0,
|
||||
x = "false" == c.autoPage || 0 == c.autoPage ? !1 : !0,
|
||||
y = "false" == c.pnLoop || 0 == c.pnLoop ? !1 : !0,
|
||||
z = "false" == c.mouseOverStop || 0 == c.mouseOverStop ? !1 : !0,
|
||||
A = "false" == c.defaultPlay || 0 == c.defaultPlay ? !1 : !0,
|
||||
B = "false" == c.returnDefault || 0 == c.returnDefault ? !1 : !0,
|
||||
C = 0,
|
||||
D = 0,
|
||||
E = 0,
|
||||
F = 0,
|
||||
G = c.easing,
|
||||
H = null,
|
||||
I = null,
|
||||
J = null,
|
||||
K = c.titOnClassName,
|
||||
L = j.index(d.find("." + K)),
|
||||
M = p = -1 == L ? p : L,
|
||||
N = p,
|
||||
O = p,
|
||||
P = m >= u ? 0 != m % t ? m % t : t : 0,
|
||||
R = "leftMarquee" == e || "topMarquee" == e ? !0 : !1,
|
||||
S = function () {
|
||||
a.isFunction(c.startFun) && c.startFun(p, k, d, a(c.titCell, d), l, o, f, g)
|
||||
},
|
||||
T = function () {
|
||||
a.isFunction(c.endFun) && c.endFun(p, k, d, a(c.titCell, d), l, o, f, g)
|
||||
},
|
||||
U = function () {
|
||||
j.removeClass(K), A && j.eq(N).addClass(K)
|
||||
};
|
||||
if ("menu" == c.type) return A && j.removeClass(K).eq(p).addClass(K), j.hover(function () {
|
||||
Q = a(this).find(c.targetCell);
|
||||
var b = j.index(a(this));
|
||||
I = setTimeout(function () {
|
||||
switch (p = b, j.removeClass(K).eq(p).addClass(K), S(), e) {
|
||||
case "fade":
|
||||
Q.stop(!0, !0).animate({
|
||||
opacity: "show"
|
||||
}, q, G, T);
|
||||
break;
|
||||
case "slideDown":
|
||||
Q.stop(!0, !0).animate({
|
||||
height: "show"
|
||||
}, q, G, T)
|
||||
}
|
||||
}, c.triggerTime)
|
||||
}, function () {
|
||||
switch (clearTimeout(I), e) {
|
||||
case "fade":
|
||||
Q.animate({
|
||||
opacity: "hide"
|
||||
}, q, G);
|
||||
break;
|
||||
case "slideDown":
|
||||
Q.animate({
|
||||
height: "hide"
|
||||
}, q, G)
|
||||
}
|
||||
}), B && d.hover(function () {
|
||||
clearTimeout(J)
|
||||
}, function () {
|
||||
J = setTimeout(U, q)
|
||||
}), void 0;
|
||||
if (0 == k && (k = m), R && (k = 2), x) {
|
||||
if (m >= u)
|
||||
if ("leftLoop" == e || "topLoop" == e) k = 0 != m % t ? (0 ^ m / t) + 1 : m / t;
|
||||
else {
|
||||
var V = m - u;
|
||||
k = 1 + parseInt(0 != V % t ? V / t + 1 : V / t), 0 >= k && (k = 1)
|
||||
}
|
||||
else k = 1;
|
||||
j.html("");
|
||||
var W = "";
|
||||
if (1 == c.autoPage || "true" == c.autoPage)
|
||||
for (var X = 0; k > X; X++) W += "<li>" + (X + 1) + "</li>";
|
||||
else
|
||||
for (var X = 0; k > X; X++) W += c.autoPage.replace("$", X + 1);
|
||||
j.html(W);
|
||||
var j = j.children()
|
||||
}
|
||||
if (m >= u) {
|
||||
l.children().each(function () {
|
||||
a(this).width() > E && (E = a(this).width(), D = a(this).outerWidth(!0)), a(this).height() > F && (F = a(this).height(), C = a(this).outerHeight(!0))
|
||||
});
|
||||
var Y = l.children(),
|
||||
Z = function () {
|
||||
for (var a = 0; u > a; a++) Y.eq(a).clone().addClass("clone").appendTo(l);
|
||||
for (var a = 0; P > a; a++) Y.eq(m - a - 1).clone().addClass("clone").prependTo(l)
|
||||
};
|
||||
switch (e) {
|
||||
case "fold":
|
||||
l.css({
|
||||
position: "relative",
|
||||
width: D,
|
||||
height: C
|
||||
}).children().css({
|
||||
position: "absolute",
|
||||
width: E,
|
||||
left: 0,
|
||||
top: 0,
|
||||
display: "none"
|
||||
});
|
||||
break;
|
||||
case "top":
|
||||
l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; height:' + u * C + 'px"></div>').css({
|
||||
top: -(p * t) * C,
|
||||
position: "relative",
|
||||
padding: "0",
|
||||
margin: "0"
|
||||
}).children().css({
|
||||
height: F
|
||||
});
|
||||
break;
|
||||
case "left":
|
||||
l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; width:' + u * D + 'px"></div>').css({
|
||||
width: m * D,
|
||||
left: -(p * t) * D,
|
||||
position: "relative",
|
||||
overflow: "hidden",
|
||||
padding: "0",
|
||||
margin: "0"
|
||||
}).children().css({
|
||||
"float": "left",
|
||||
width: E
|
||||
});
|
||||
break;
|
||||
case "leftLoop":
|
||||
case "leftMarquee":
|
||||
Z(), l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; width:' + u * D + 'px"></div>').css({
|
||||
width: (m + u + P) * D,
|
||||
position: "relative",
|
||||
overflow: "hidden",
|
||||
padding: "0",
|
||||
margin: "0",
|
||||
left: -(P + p * t) * D
|
||||
}).children().css({
|
||||
"float": "left",
|
||||
width: E
|
||||
});
|
||||
break;
|
||||
case "topLoop":
|
||||
case "topMarquee":
|
||||
Z(), l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; height:' + u * C + 'px"></div>').css({
|
||||
height: (m + u + P) * C,
|
||||
position: "relative",
|
||||
padding: "0",
|
||||
margin: "0",
|
||||
top: -(P + p * t) * C
|
||||
}).children().css({
|
||||
height: F
|
||||
})
|
||||
}
|
||||
}
|
||||
var $ = function (a) {
|
||||
var b = a * t;
|
||||
return a == k ? b = m : -1 == a && 0 != m % t && (b = -m % t), b
|
||||
},
|
||||
_ = function (b) {
|
||||
var c = function (c) {
|
||||
for (var d = c; u + c > d; d++) b.eq(d).find("img[" + n + "]").each(function () {
|
||||
var b = a(this);
|
||||
if (b.attr("src", b.attr(n)).removeAttr(n), l.find(".clone")[0])
|
||||
for (var c = l.children(), d = 0; d < c.size(); d++) c.eq(d).find("img[" + n + "]").each(function () {
|
||||
a(this).attr(n) == b.attr("src") && a(this).attr("src", a(this).attr(n)).removeAttr(n)
|
||||
})
|
||||
})
|
||||
};
|
||||
switch (e) {
|
||||
case "fade":
|
||||
case "fold":
|
||||
case "top":
|
||||
case "left":
|
||||
case "slideDown":
|
||||
c(p * t);
|
||||
break;
|
||||
case "leftLoop":
|
||||
case "topLoop":
|
||||
c(P + $(O));
|
||||
break;
|
||||
case "leftMarquee":
|
||||
case "topMarquee":
|
||||
var d = "leftMarquee" == e ? l.css("left").replace("px", "") : l.css("top").replace("px", ""),
|
||||
f = "leftMarquee" == e ? D : C,
|
||||
g = P;
|
||||
if (0 != d % f) {
|
||||
var h = Math.abs(0 ^ d / f);
|
||||
g = 1 == p ? P + h : P + h - 1
|
||||
}
|
||||
c(g)
|
||||
}
|
||||
},
|
||||
ab = function (a) {
|
||||
if (!A || M != p || a || R) {
|
||||
if (R ? p >= 1 ? p = 1 : 0 >= p && (p = 0) : (O = p, p >= k ? p = 0 : 0 > p && (p = k - 1)), S(), null != n && _(l.children()), o[0] && (Q = o.eq(p), null != n && _(o), "slideDown" == e ? (o.not(Q).stop(!0, !0).slideUp(q), Q.slideDown(q, G, function () {
|
||||
l[0] || T()
|
||||
})) : (o.not(Q).stop(!0, !0).hide(), Q.animate({
|
||||
opacity: "show"
|
||||
}, q, function () {
|
||||
l[0] || T()
|
||||
}))), m >= u) switch (e) {
|
||||
case "fade":
|
||||
l.children().stop(!0, !0).eq(p).animate({
|
||||
opacity: "show"
|
||||
}, q, G, function () {
|
||||
T()
|
||||
}).siblings().hide();
|
||||
break;
|
||||
case "fold":
|
||||
l.children().stop(!0, !0).eq(p).animate({
|
||||
opacity: "show"
|
||||
}, q, G, function () {
|
||||
T()
|
||||
}).siblings().animate({
|
||||
opacity: "hide"
|
||||
}, q, G);
|
||||
break;
|
||||
case "top":
|
||||
l.stop(!0, !1).animate({
|
||||
top: -p * t * C
|
||||
}, q, G, function () {
|
||||
T()
|
||||
});
|
||||
break;
|
||||
case "left":
|
||||
l.stop(!0, !1).animate({
|
||||
left: -p * t * D
|
||||
}, q, G, function () {
|
||||
T()
|
||||
});
|
||||
break;
|
||||
case "leftLoop":
|
||||
var b = O;
|
||||
l.stop(!0, !0).animate({
|
||||
left: -($(O) + P) * D
|
||||
}, q, G, function () {
|
||||
-1 >= b ? l.css("left", -(P + (k - 1) * t) * D) : b >= k && l.css("left", -P * D), T()
|
||||
});
|
||||
break;
|
||||
case "topLoop":
|
||||
var b = O;
|
||||
l.stop(!0, !0).animate({
|
||||
top: -($(O) + P) * C
|
||||
}, q, G, function () {
|
||||
-1 >= b ? l.css("top", -(P + (k - 1) * t) * C) : b >= k && l.css("top", -P * C), T()
|
||||
});
|
||||
break;
|
||||
case "leftMarquee":
|
||||
var c = l.css("left").replace("px", "");
|
||||
0 == p ? l.animate({
|
||||
left: ++c
|
||||
}, 0, function () {
|
||||
l.css("left").replace("px", "") >= 0 && l.css("left", -m * D)
|
||||
}) : l.animate({
|
||||
left: --c
|
||||
}, 0, function () {
|
||||
l.css("left").replace("px", "") <= -(m + P) * D && l.css("left", -P * D)
|
||||
});
|
||||
break;
|
||||
case "topMarquee":
|
||||
var d = l.css("top").replace("px", "");
|
||||
0 == p ? l.animate({
|
||||
top: ++d
|
||||
}, 0, function () {
|
||||
l.css("top").replace("px", "") >= 0 && l.css("top", -m * C)
|
||||
}) : l.animate({
|
||||
top: --d
|
||||
}, 0, function () {
|
||||
l.css("top").replace("px", "") <= -(m + P) * C && l.css("top", -P * C)
|
||||
})
|
||||
}
|
||||
j.removeClass(K).eq(p).addClass(K), M = p, y || (g.removeClass("nextStop"), f.removeClass("prevStop"), 0 == p && f.addClass("prevStop"), p == k - 1 && g.addClass("nextStop")), h.html("<span>" + (p + 1) + "</span>/" + k)
|
||||
}
|
||||
};
|
||||
A && ab(!0), B && d.hover(function () {
|
||||
clearTimeout(J)
|
||||
}, function () {
|
||||
J = setTimeout(function () {
|
||||
p = N, A ? ab() : "slideDown" == e ? Q.slideUp(q, U) : Q.animate({
|
||||
opacity: "hide"
|
||||
}, q, U), M = p
|
||||
}, 300)
|
||||
});
|
||||
var bb = function (a) {
|
||||
H = setInterval(function () {
|
||||
w ? p-- : p++, ab()
|
||||
}, a ? a : r)
|
||||
},
|
||||
cb = function (a) {
|
||||
H = setInterval(ab, a ? a : r)
|
||||
},
|
||||
db = function () {
|
||||
z || (clearInterval(H), bb())
|
||||
},
|
||||
eb = function () {
|
||||
(y || p != k - 1) && (p++, ab(), R || db())
|
||||
},
|
||||
fb = function () {
|
||||
(y || 0 != p) && (p--, ab(), R || db())
|
||||
},
|
||||
gb = function () {
|
||||
clearInterval(H), R ? cb() : bb(), i.removeClass("pauseState")
|
||||
},
|
||||
hb = function () {
|
||||
clearInterval(H), i.addClass("pauseState")
|
||||
};
|
||||
if (v ? R ? (w ? p-- : p++, cb(), z && l.hover(hb, gb)) : (bb(), z && d.hover(hb, gb)) : (R && (w ? p-- : p++), i.addClass("pauseState")), i.click(function () {
|
||||
i.hasClass("pauseState") ? gb() : hb()
|
||||
}), "mouseover" == c.trigger ? j.hover(function () {
|
||||
var a = j.index(this);
|
||||
I = setTimeout(function () {
|
||||
p = a, ab(), db()
|
||||
}, c.triggerTime)
|
||||
}, function () {
|
||||
clearTimeout(I)
|
||||
}) : j.click(function () {
|
||||
p = j.index(this), ab(), db()
|
||||
}), R) {
|
||||
if (g.mousedown(eb), f.mousedown(fb), y) {
|
||||
var ib, jb = function () {
|
||||
ib = setTimeout(function () {
|
||||
clearInterval(H), cb(0 ^ r / 10)
|
||||
}, 150)
|
||||
},
|
||||
kb = function () {
|
||||
clearTimeout(ib), clearInterval(H), cb()
|
||||
};
|
||||
g.mousedown(jb), g.mouseup(kb), f.mousedown(jb), f.mouseup(kb)
|
||||
}
|
||||
"mouseover" == c.trigger && (g.hover(eb, function () {}), f.hover(fb, function () {}))
|
||||
} else g.click(eb), f.click(fb)
|
||||
})
|
||||
}
|
||||
}(jQuery), jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, {
|
||||
def: "easeOutQuad",
|
||||
swing: function (a, b, c, d, e) {
|
||||
return jQuery.easing[jQuery.easing.def](a, b, c, d, e)
|
||||
},
|
||||
easeInQuad: function (a, b, c, d, e) {
|
||||
return d * (b /= e) * b + c
|
||||
},
|
||||
easeOutQuad: function (a, b, c, d, e) {
|
||||
return -d * (b /= e) * (b - 2) + c
|
||||
},
|
||||
easeInOutQuad: function (a, b, c, d, e) {
|
||||
return (b /= e / 2) < 1 ? d / 2 * b * b + c : -d / 2 * (--b * (b - 2) - 1) + c
|
||||
},
|
||||
easeInCubic: function (a, b, c, d, e) {
|
||||
return d * (b /= e) * b * b + c
|
||||
},
|
||||
easeOutCubic: function (a, b, c, d, e) {
|
||||
return d * ((b = b / e - 1) * b * b + 1) + c
|
||||
},
|
||||
easeInOutCubic: function (a, b, c, d, e) {
|
||||
return (b /= e / 2) < 1 ? d / 2 * b * b * b + c : d / 2 * ((b -= 2) * b * b + 2) + c
|
||||
},
|
||||
easeInQuart: function (a, b, c, d, e) {
|
||||
return d * (b /= e) * b * b * b + c
|
||||
},
|
||||
easeOutQuart: function (a, b, c, d, e) {
|
||||
return -d * ((b = b / e - 1) * b * b * b - 1) + c
|
||||
},
|
||||
easeInOutQuart: function (a, b, c, d, e) {
|
||||
return (b /= e / 2) < 1 ? d / 2 * b * b * b * b + c : -d / 2 * ((b -= 2) * b * b * b - 2) + c
|
||||
},
|
||||
easeInQuint: function (a, b, c, d, e) {
|
||||
return d * (b /= e) * b * b * b * b + c
|
||||
},
|
||||
easeOutQuint: function (a, b, c, d, e) {
|
||||
return d * ((b = b / e - 1) * b * b * b * b + 1) + c
|
||||
},
|
||||
easeInOutQuint: function (a, b, c, d, e) {
|
||||
return (b /= e / 2) < 1 ? d / 2 * b * b * b * b * b + c : d / 2 * ((b -= 2) * b * b * b * b + 2) + c
|
||||
},
|
||||
easeInSine: function (a, b, c, d, e) {
|
||||
return -d * Math.cos(b / e * (Math.PI / 2)) + d + c
|
||||
},
|
||||
easeOutSine: function (a, b, c, d, e) {
|
||||
return d * Math.sin(b / e * (Math.PI / 2)) + c
|
||||
},
|
||||
easeInOutSine: function (a, b, c, d, e) {
|
||||
return -d / 2 * (Math.cos(Math.PI * b / e) - 1) + c
|
||||
},
|
||||
easeInExpo: function (a, b, c, d, e) {
|
||||
return 0 == b ? c : d * Math.pow(2, 10 * (b / e - 1)) + c
|
||||
},
|
||||
easeOutExpo: function (a, b, c, d, e) {
|
||||
return b == e ? c + d : d * (-Math.pow(2, -10 * b / e) + 1) + c
|
||||
},
|
||||
easeInOutExpo: function (a, b, c, d, e) {
|
||||
return 0 == b ? c : b == e ? c + d : (b /= e / 2) < 1 ? d / 2 * Math.pow(2, 10 * (b - 1)) + c : d / 2 * (-Math.pow(2, -10 * --b) + 2) + c
|
||||
},
|
||||
easeInCirc: function (a, b, c, d, e) {
|
||||
return -d * (Math.sqrt(1 - (b /= e) * b) - 1) + c
|
||||
},
|
||||
easeOutCirc: function (a, b, c, d, e) {
|
||||
return d * Math.sqrt(1 - (b = b / e - 1) * b) + c
|
||||
},
|
||||
easeInOutCirc: function (a, b, c, d, e) {
|
||||
return (b /= e / 2) < 1 ? -d / 2 * (Math.sqrt(1 - b * b) - 1) + c : d / 2 * (Math.sqrt(1 - (b -= 2) * b) + 1) + c
|
||||
},
|
||||
easeInElastic: function (a, b, c, d, e) {
|
||||
var f = 1.70158,
|
||||
g = 0,
|
||||
h = d;
|
||||
if (0 == b) return c;
|
||||
if (1 == (b /= e)) return c + d;
|
||||
if (g || (g = .3 * e), h < Math.abs(d)) {
|
||||
h = d;
|
||||
var f = g / 4
|
||||
} else var f = g / (2 * Math.PI) * Math.asin(d / h);
|
||||
return -(h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g)) + c
|
||||
},
|
||||
easeOutElastic: function (a, b, c, d, e) {
|
||||
var f = 1.70158,
|
||||
g = 0,
|
||||
h = d;
|
||||
if (0 == b) return c;
|
||||
if (1 == (b /= e)) return c + d;
|
||||
if (g || (g = .3 * e), h < Math.abs(d)) {
|
||||
h = d;
|
||||
var f = g / 4
|
||||
} else var f = g / (2 * Math.PI) * Math.asin(d / h);
|
||||
return h * Math.pow(2, -10 * b) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c
|
||||
},
|
||||
easeInOutElastic: function (a, b, c, d, e) {
|
||||
var f = 1.70158,
|
||||
g = 0,
|
||||
h = d;
|
||||
if (0 == b) return c;
|
||||
if (2 == (b /= e / 2)) return c + d;
|
||||
if (g || (g = e * .3 * 1.5), h < Math.abs(d)) {
|
||||
h = d;
|
||||
var f = g / 4
|
||||
} else var f = g / (2 * Math.PI) * Math.asin(d / h);
|
||||
return 1 > b ? -.5 * h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + c : .5 * h * Math.pow(2, -10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c
|
||||
},
|
||||
easeInBack: function (a, b, c, d, e, f) {
|
||||
return void 0 == f && (f = 1.70158), d * (b /= e) * b * ((f + 1) * b - f) + c
|
||||
},
|
||||
easeOutBack: function (a, b, c, d, e, f) {
|
||||
return void 0 == f && (f = 1.70158), d * ((b = b / e - 1) * b * ((f + 1) * b + f) + 1) + c
|
||||
},
|
||||
easeInOutBack: function (a, b, c, d, e, f) {
|
||||
return void 0 == f && (f = 1.70158), (b /= e / 2) < 1 ? d / 2 * b * b * (((f *= 1.525) + 1) * b - f) + c : d / 2 * ((b -= 2) * b * (((f *= 1.525) + 1) * b + f) + 2) + c
|
||||
},
|
||||
easeInBounce: function (a, b, c, d, e) {
|
||||
return d - jQuery.easing.easeOutBounce(a, e - b, 0, d, e) + c
|
||||
},
|
||||
easeOutBounce: function (a, b, c, d, e) {
|
||||
return (b /= e) < 1 / 2.75 ? d * 7.5625 * b * b + c : 2 / 2.75 > b ? d * (7.5625 * (b -= 1.5 / 2.75) * b + .75) + c : 2.5 / 2.75 > b ? d * (7.5625 * (b -= 2.25 / 2.75) * b + .9375) + c : d * (7.5625 * (b -= 2.625 / 2.75) * b + .984375) + c
|
||||
},
|
||||
easeInOutBounce: function (a, b, c, d, e) {
|
||||
return e / 2 > b ? .5 * jQuery.easing.easeInBounce(a, 2 * b, 0, d, e) + c : .5 * jQuery.easing.easeOutBounce(a, 2 * b - e, 0, d, e) + .5 * d + c
|
||||
}
|
||||
});
|
||||
1343
public/frontend/web/scripts/jquery.bxslider.js
Executable file
1343
public/frontend/web/scripts/jquery.bxslider.js
Executable file
File diff suppressed because it is too large
Load Diff
4
public/frontend/web/scripts/jquery.mCustomScrollbar.concat.min.js
vendored
Executable file
4
public/frontend/web/scripts/jquery.mCustomScrollbar.concat.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
3184
public/frontend/web/scripts/jquery.nicescroll.js
Executable file
3184
public/frontend/web/scripts/jquery.nicescroll.js
Executable file
File diff suppressed because it is too large
Load Diff
152
public/frontend/web/scripts/jquery.reveal.js
Executable file
152
public/frontend/web/scripts/jquery.reveal.js
Executable file
@@ -0,0 +1,152 @@
|
||||
|
||||
(function($) {
|
||||
|
||||
/*---------------------------
|
||||
Defaults for Reveal
|
||||
----------------------------*/
|
||||
|
||||
/*---------------------------
|
||||
Listener for data-reveal-id attributes
|
||||
----------------------------*/
|
||||
|
||||
$('a[data-reveal-id]').live('click', function(e) {
|
||||
e.preventDefault();
|
||||
var modalLocation = $(this).attr('data-reveal-id');
|
||||
$('#'+modalLocation).reveal($(this).data());
|
||||
});
|
||||
|
||||
/*---------------------------
|
||||
Extend and Execute
|
||||
----------------------------*/
|
||||
|
||||
$.fn.reveal = function(options) {
|
||||
|
||||
|
||||
var defaults = {
|
||||
animation: 'fadeAndPop', //fade, fadeAndPop, none
|
||||
animationspeed: 300, //how fast animtions are
|
||||
closeonbackgroundclick: true, //if you click background will modal close?
|
||||
dismissmodalclass: 'close-reveal-modal' //the class of a button or element that will close an open modal
|
||||
};
|
||||
|
||||
//Extend dem' options
|
||||
var options = $.extend({}, defaults, options);
|
||||
|
||||
return this.each(function() {
|
||||
|
||||
/*---------------------------
|
||||
Global Variables
|
||||
----------------------------*/
|
||||
var modal = $(this),
|
||||
topMeasure = parseInt(modal.css('top')),
|
||||
topOffset = modal.height() + topMeasure,
|
||||
locked = false,
|
||||
modalBG = $('.reveal-modal-bg');
|
||||
|
||||
/*---------------------------
|
||||
Create Modal BG
|
||||
----------------------------*/
|
||||
if(modalBG.length == 0) {
|
||||
modalBG = $('<div class="reveal-modal-bg" />').insertAfter(modal);
|
||||
}
|
||||
|
||||
/*---------------------------
|
||||
Open & Close Animations
|
||||
----------------------------*/
|
||||
//Entrance Animations
|
||||
modal.bind('reveal:open', function () {
|
||||
modalBG.unbind('click.modalEvent');
|
||||
$('.' + options.dismissmodalclass).unbind('click.modalEvent');
|
||||
if(!locked) {
|
||||
lockModal();
|
||||
if(options.animation == "fadeAndPop") {
|
||||
modal.css({'top': $(document).scrollTop()-topOffset, 'opacity' : 0, 'visibility' : 'visible'});
|
||||
modalBG.fadeIn(options.animationspeed/2);
|
||||
modal.delay(options.animationspeed/2).animate({
|
||||
"top": $(document).scrollTop()+topMeasure + 'px',
|
||||
"opacity" : 1
|
||||
}, options.animationspeed,unlockModal());
|
||||
}
|
||||
if(options.animation == "fade") {
|
||||
|
||||
modalBG.fadeIn(options.animationspeed/2);
|
||||
modal.delay(options.animationspeed/2).animate({
|
||||
"opacity" : 1
|
||||
}, options.animationspeed,unlockModal());
|
||||
}
|
||||
if(options.animation == "none") {
|
||||
|
||||
modalBG.css({"display":"block"});
|
||||
unlockModal()
|
||||
}
|
||||
}
|
||||
modal.unbind('reveal:open');
|
||||
});
|
||||
|
||||
//Closing Animation
|
||||
modal.bind('reveal:close', function () {
|
||||
if(!locked) {
|
||||
lockModal();
|
||||
if(options.animation == "fadeAndPop") {
|
||||
modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
|
||||
modal.animate({
|
||||
"top": $(document).scrollTop()-topOffset + 'px',
|
||||
"opacity" : 0
|
||||
}, options.animationspeed/2, function() {
|
||||
|
||||
unlockModal();
|
||||
});
|
||||
}
|
||||
if(options.animation == "fade") {
|
||||
modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
|
||||
modal.animate({
|
||||
"opacity" : 0
|
||||
}, options.animationspeed, function() {
|
||||
|
||||
unlockModal();
|
||||
});
|
||||
}
|
||||
if(options.animation == "none") {
|
||||
|
||||
modalBG.css({'display' : 'none'});
|
||||
}
|
||||
}
|
||||
modal.unbind('reveal:close');
|
||||
});
|
||||
|
||||
/*---------------------------
|
||||
Open and add Closing Listeners
|
||||
----------------------------*/
|
||||
//Open Modal Immediately
|
||||
modal.trigger('reveal:open')
|
||||
|
||||
//Close Modal Listeners
|
||||
var closeButton = $('.' + options.dismissmodalclass).bind('click.modalEvent', function () {
|
||||
modal.trigger('reveal:close')
|
||||
});
|
||||
|
||||
if(options.closeonbackgroundclick) {
|
||||
modalBG.css({"cursor":"pointer"})
|
||||
modalBG.bind('click.modalEvent', function () {
|
||||
modal.trigger('reveal:close')
|
||||
});
|
||||
}
|
||||
$('body').keyup(function(e) {
|
||||
if(e.which===27){ modal.trigger('reveal:close'); } // 27 is the keycode for the Escape key
|
||||
});
|
||||
|
||||
|
||||
/*---------------------------
|
||||
Animations Locks
|
||||
----------------------------*/
|
||||
function unlockModal() {
|
||||
locked = false;
|
||||
}
|
||||
function lockModal() {
|
||||
locked = true;
|
||||
}
|
||||
|
||||
});//each call
|
||||
}//orbit plugin call
|
||||
})(jQuery);
|
||||
|
||||
9
public/frontend/web/scripts/jquery.sliderPro.min.js
vendored
Executable file
9
public/frontend/web/scripts/jquery.sliderPro.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
152
public/frontend/web/scripts/large-20181025.js
Executable file
152
public/frontend/web/scripts/large-20181025.js
Executable file
@@ -0,0 +1,152 @@
|
||||
$(document).ready(function() {
|
||||
// 图片上下滚动
|
||||
var count = $("#imageMenu li").length - 4; /* 显示 5 个 li标签内容 */
|
||||
var interval = $("#imageMenu li:first").height();
|
||||
var curIndex = 0;
|
||||
|
||||
$('.scrollbutton').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
$('.scrollbutton').removeClass('disabled');
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
});
|
||||
|
||||
// 解决 ie6 select框 问题
|
||||
$.fn.decorateIframe = function(options) {
|
||||
if ($.browser.msie && $.browser.version < 7) {
|
||||
var opts = $.extend({}, $.fn.decorateIframe.defaults, options);
|
||||
$(this).each(function() {
|
||||
var $myThis = $(this);
|
||||
//创建一个IFRAME
|
||||
var divIframe = $("<iframe />");
|
||||
divIframe.attr("id", opts.iframeId);
|
||||
divIframe.css("position", "absolute");
|
||||
divIframe.css("display", "none");
|
||||
divIframe.css("display", "block");
|
||||
divIframe.css("z-index", opts.iframeZIndex);
|
||||
divIframe.css("border");
|
||||
divIframe.css("top", "0");
|
||||
divIframe.css("left", "0");
|
||||
if (opts.width == 0) {
|
||||
divIframe.css("width", $myThis.width() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
if (opts.height == 0) {
|
||||
divIframe.css("height", $myThis.height() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
divIframe.css("filter", "mask(color=#fff)");
|
||||
$myThis.append(divIframe);
|
||||
});
|
||||
}
|
||||
}
|
||||
$.fn.decorateIframe.defaults = {
|
||||
iframeId: "decorateIframe1",
|
||||
iframeZIndex: -1,
|
||||
width: 0,
|
||||
height: 0
|
||||
}
|
||||
//放大镜视窗
|
||||
$("#bigView").decorateIframe();
|
||||
|
||||
//点击到中图
|
||||
var midChangeHandler = null;
|
||||
|
||||
$("#imageMenu li img").bind("click", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
midChange($(this).attr("src"));
|
||||
$("#imageMenu li").removeAttr("id");
|
||||
$(this).parent().attr("id", "onlickImg");
|
||||
}
|
||||
}).bind("mouseover", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
window.clearTimeout(midChangeHandler);
|
||||
midChange($(this).attr("src"));
|
||||
// $(this).css({ "border": "1px solid #990000" });
|
||||
}
|
||||
}).bind("mouseout", function(){
|
||||
if($(this).attr("id") != "onlickImg"){
|
||||
$(this).removeAttr("style");
|
||||
midChangeHandler = window.setTimeout(function(){
|
||||
midChange($("#onlickImg img").attr("src"));
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
function midChange(src) {
|
||||
$("#midimg").attr("src", src).load(function() {
|
||||
changeViewImg();
|
||||
});
|
||||
}
|
||||
|
||||
//大视窗看图
|
||||
function mouseover(e) {
|
||||
if ($("#winSelector").css("display") == "none") {
|
||||
$("#winSelector,#bigView").show();
|
||||
}
|
||||
|
||||
$("#winSelector").css(fixedPosition(e));
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
function mouseOut(e) {
|
||||
if ($("#winSelector").css("display") != "none") {
|
||||
$("#winSelector,#bigView").hide();
|
||||
}
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
$("#midimg").mouseover(mouseover); //中图事件
|
||||
$("#midimg,#winSelector").mousemove(mouseover).mouseout(mouseOut); //选择器事件
|
||||
|
||||
var $divWidth = $("#winSelector").width(); //选择器宽度
|
||||
var $divHeight = $("#winSelector").height(); //选择器高度
|
||||
var $imgWidth = $("#midimg").width(); //中图宽度
|
||||
var $imgHeight = $("#midimg").height(); //中图高度
|
||||
var $viewImgWidth = $viewImgHeight = $height = null; //IE加载后才能得到 大图宽度 大图高度 大图视窗高度
|
||||
|
||||
function changeViewImg() {
|
||||
$("#bigView img").attr("src", $("#midimg").attr("src"));
|
||||
}
|
||||
|
||||
changeViewImg();
|
||||
|
||||
$("#bigView").scrollLeft(0).scrollTop(0);
|
||||
function fixedPosition(e) {
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
var $imgLeft = $("#midimg").offset().left; //中图左边距
|
||||
var $imgTop = $("#midimg").offset().top; //中图上边距
|
||||
X = e.pageX - $imgLeft - $divWidth / 2; //selector顶点坐标 X
|
||||
Y = e.pageY - $imgTop - $divHeight / 2; //selector顶点坐标 Y
|
||||
X = X < 0 ? 0 : X;
|
||||
Y = Y < 0 ? 0 : Y;
|
||||
X = X + $divWidth > $imgWidth ? $imgWidth - $divWidth : X;
|
||||
Y = Y + $divHeight > $imgHeight ? $imgHeight - $divHeight : Y;
|
||||
|
||||
if ($viewImgWidth == null) {
|
||||
$viewImgWidth = $("#bigView img").outerWidth();
|
||||
$viewImgHeight = $("#bigView img").height();
|
||||
if ($viewImgWidth < 200 || $viewImgHeight < 200) {
|
||||
$viewImgWidth = $viewImgHeight = 800;
|
||||
}
|
||||
$height = $divHeight * $viewImgHeight / $imgHeight;
|
||||
$("#bigView").width($divWidth * $viewImgWidth / $imgWidth);
|
||||
$("#bigView").height($height);
|
||||
}
|
||||
|
||||
var scrollX = X * $viewImgWidth / $imgWidth;
|
||||
var scrollY = Y * $viewImgHeight / $imgHeight;
|
||||
$("#bigView img").css({ "left": scrollX * -1, "top": scrollY * -1 });
|
||||
$("#bigView").css({ "top": 0, "left": $(".preview").offset().left + $(".preview").width() + 15 });
|
||||
|
||||
return { left: X, top: Y };
|
||||
}
|
||||
});
|
||||
191
public/frontend/web/scripts/large.js
Executable file
191
public/frontend/web/scripts/large.js
Executable file
@@ -0,0 +1,191 @@
|
||||
$(document).ready(function() {
|
||||
// 图片上下滚动
|
||||
var count = $("#imageMenu li").length ; /* 显示 5 个 li标签内容 */
|
||||
var interval = $("#imageMenu li:first").height();
|
||||
var curIndex = 0;
|
||||
if( curIndex > count ) curIndex = 0;
|
||||
//左右箭头切换图片
|
||||
$('.scrollbutton').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
$('.scrollbutton').removeClass('disabled');
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
|
||||
//获取当前指定的图片属性
|
||||
var midImg = $("#imageMenu li").eq(curIndex).find('img').attr('src');
|
||||
//切换图片
|
||||
$("#midimg").attr('src',midImg);
|
||||
$(".enlarge-img").find("img").attr('src',midImg);
|
||||
//小图添加属性
|
||||
$("#imageMenu li").eq(curIndex).addClass('on').siblings().removeClass("on");
|
||||
|
||||
});
|
||||
|
||||
|
||||
//大图左右箭头切换图片
|
||||
$('.scrollbutton_01').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
|
||||
$('.scrollbutton_01').removeClass('disabled');
|
||||
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
//$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
//获取当前指定的图片属性
|
||||
var midImg = $("#imageMenu li").eq(curIndex).find('img').attr('src');
|
||||
//切换图片
|
||||
$("#midimg").attr('src',midImg);
|
||||
$(".enlarge-img").find("img").attr('src',midImg);
|
||||
//小图添加属性
|
||||
$("#imageMenu li").eq(curIndex).addClass('on').siblings().removeClass("on");
|
||||
|
||||
});
|
||||
// 解决 ie6 select框 问题
|
||||
$.fn.decorateIframe = function(options) {
|
||||
if ($.browser.msie && $.browser.version < 7) {
|
||||
var opts = $.extend({}, $.fn.decorateIframe.defaults, options);
|
||||
$(this).each(function() {
|
||||
var $myThis = $(this);
|
||||
//创建一个IFRAME
|
||||
var divIframe = $("<iframe />");
|
||||
divIframe.attr("id", opts.iframeId);
|
||||
divIframe.css("position", "absolute");
|
||||
divIframe.css("display", "none");
|
||||
divIframe.css("display", "block");
|
||||
divIframe.css("z-index", opts.iframeZIndex);
|
||||
divIframe.css("border");
|
||||
divIframe.css("top", "0");
|
||||
divIframe.css("left", "0");
|
||||
if (opts.width == 0) {
|
||||
divIframe.css("width", $myThis.width() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
if (opts.height == 0) {
|
||||
divIframe.css("height", $myThis.height() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
divIframe.css("filter", "mask(color=#fff)");
|
||||
$myThis.append(divIframe);
|
||||
});
|
||||
}
|
||||
}
|
||||
$.fn.decorateIframe.defaults = {
|
||||
iframeId: "decorateIframe1",
|
||||
iframeZIndex: -1,
|
||||
width: 0,
|
||||
height: 0
|
||||
}
|
||||
//放大镜视窗
|
||||
$("#bigView").decorateIframe();
|
||||
|
||||
//点击到中图
|
||||
var midChangeHandler = null;
|
||||
|
||||
$("#imageMenu li img").bind("click", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
midChange($(this).attr("src"));
|
||||
$("#imageMenu li").removeAttr("id");
|
||||
//$(this).parent().attr("id", "onlickImg");
|
||||
}
|
||||
}).bind("mouseover", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
window.clearTimeout(midChangeHandler);
|
||||
midChange($(this).attr("src"));
|
||||
// $(this).css({ "border": "1px solid #990000" });
|
||||
}
|
||||
}).bind("mouseout", function(){
|
||||
if($(this).attr("id") != "onlickImg"){
|
||||
$(this).removeAttr("style");
|
||||
midChangeHandler = window.setTimeout(function(){
|
||||
midChange($("#onlickImg img").attr("src"));
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
//点击中图,切换大图
|
||||
$("#midimg").bind("click", function(){
|
||||
$(".enlarge-img").find("img").attr("src",$(this).attr("src"));
|
||||
});
|
||||
|
||||
function midChange(src) {
|
||||
$("#midimg").attr("src", src).load(function() {
|
||||
changeViewImg();
|
||||
});
|
||||
}
|
||||
|
||||
//大视窗看图
|
||||
function mouseover(e) {
|
||||
if ($("#winSelector").css("display") == "none") {
|
||||
$("#winSelector,#bigView").show();
|
||||
}
|
||||
|
||||
$("#winSelector").css(fixedPosition(e));
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
function mouseOut(e) {
|
||||
if ($("#winSelector").css("display") != "none") {
|
||||
$("#winSelector,#bigView").hide();
|
||||
}
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
$("#midimg").mouseover(mouseover); //中图事件
|
||||
$("#midimg,#winSelector").mousemove(mouseover).mouseout(mouseOut); //选择器事件
|
||||
|
||||
var $divWidth = $("#winSelector").width(); //选择器宽度
|
||||
var $divHeight = $("#winSelector").height(); //选择器高度
|
||||
var $imgWidth = $("#midimg").width(); //中图宽度
|
||||
var $imgHeight = $("#midimg").height(); //中图高度
|
||||
var $viewImgWidth = $viewImgHeight = $height = null; //IE加载后才能得到 大图宽度 大图高度 大图视窗高度
|
||||
|
||||
function changeViewImg() {
|
||||
$("#bigView img").attr("src", $("#midimg").attr("src"));
|
||||
}
|
||||
|
||||
changeViewImg();
|
||||
|
||||
$("#bigView").scrollLeft(0).scrollTop(0);
|
||||
function fixedPosition(e) {
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
var $imgLeft = $("#midimg").offset().left; //中图左边距
|
||||
var $imgTop = $("#midimg").offset().top; //中图上边距
|
||||
X = e.pageX - $imgLeft - $divWidth / 2; //selector顶点坐标 X
|
||||
Y = e.pageY - $imgTop - $divHeight / 2; //selector顶点坐标 Y
|
||||
X = X < 0 ? 0 : X;
|
||||
Y = Y < 0 ? 0 : Y;
|
||||
X = X + $divWidth > $imgWidth ? $imgWidth - $divWidth : X;
|
||||
Y = Y + $divHeight > $imgHeight ? $imgHeight - $divHeight : Y;
|
||||
|
||||
if ($viewImgWidth == null) {
|
||||
$viewImgWidth = $("#bigView img").outerWidth();
|
||||
$viewImgHeight = $("#bigView img").height();
|
||||
if ($viewImgWidth < 200 || $viewImgHeight < 200) {
|
||||
$viewImgWidth = $viewImgHeight = 800;
|
||||
}
|
||||
$height = $divHeight * $viewImgHeight / $imgHeight;
|
||||
$("#bigView").width($divWidth * $viewImgWidth / $imgWidth);
|
||||
$("#bigView").height($height);
|
||||
}
|
||||
|
||||
var scrollX = X * $viewImgWidth / $imgWidth;
|
||||
var scrollY = Y * $viewImgHeight / $imgHeight;
|
||||
$("#bigView img").css({ "left": scrollX * -1, "top": scrollY * -1 });
|
||||
$("#bigView").css({ "top": 0, "left": $(".preview").offset().left + $(".preview").width() + 15 });
|
||||
|
||||
return { left: X, top: Y };
|
||||
}
|
||||
});
|
||||
152
public/frontend/web/scripts/large20181013.js
Executable file
152
public/frontend/web/scripts/large20181013.js
Executable file
@@ -0,0 +1,152 @@
|
||||
$(document).ready(function() {
|
||||
// 图片上下滚动
|
||||
var count = $("#imageMenu li").length - 4; /* 显示 5 个 li标签内容 */
|
||||
var interval = $("#imageMenu li:first").height();
|
||||
var curIndex = 0;
|
||||
|
||||
$('.scrollbutton').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
$('.scrollbutton').removeClass('disabled');
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
});
|
||||
|
||||
// 解决 ie6 select框 问题
|
||||
$.fn.decorateIframe = function(options) {
|
||||
if ($.browser.msie && $.browser.version < 7) {
|
||||
var opts = $.extend({}, $.fn.decorateIframe.defaults, options);
|
||||
$(this).each(function() {
|
||||
var $myThis = $(this);
|
||||
//创建一个IFRAME
|
||||
var divIframe = $("<iframe />");
|
||||
divIframe.attr("id", opts.iframeId);
|
||||
divIframe.css("position", "absolute");
|
||||
divIframe.css("display", "none");
|
||||
divIframe.css("display", "block");
|
||||
divIframe.css("z-index", opts.iframeZIndex);
|
||||
divIframe.css("border");
|
||||
divIframe.css("top", "0");
|
||||
divIframe.css("left", "0");
|
||||
if (opts.width == 0) {
|
||||
divIframe.css("width", $myThis.width() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
if (opts.height == 0) {
|
||||
divIframe.css("height", $myThis.height() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
divIframe.css("filter", "mask(color=#fff)");
|
||||
$myThis.append(divIframe);
|
||||
});
|
||||
}
|
||||
}
|
||||
$.fn.decorateIframe.defaults = {
|
||||
iframeId: "decorateIframe1",
|
||||
iframeZIndex: -1,
|
||||
width: 0,
|
||||
height: 0
|
||||
}
|
||||
//放大镜视窗
|
||||
$("#bigView").decorateIframe();
|
||||
|
||||
//点击到中图
|
||||
var midChangeHandler = null;
|
||||
|
||||
$("#imageMenu li img").bind("click", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
midChange($(this).attr("src").replace("small", "mid"));
|
||||
$("#imageMenu li").removeAttr("id");
|
||||
$(this).parent().attr("id", "onlickImg");
|
||||
}
|
||||
}).bind("mouseover", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
window.clearTimeout(midChangeHandler);
|
||||
midChange($(this).attr("src").replace("small", "mid"));
|
||||
// $(this).css({ "border": "1px solid #990000" });
|
||||
}
|
||||
}).bind("mouseout", function(){
|
||||
if($(this).attr("id") != "onlickImg"){
|
||||
$(this).removeAttr("style");
|
||||
midChangeHandler = window.setTimeout(function(){
|
||||
midChange($("#onlickImg img").attr("src").replace("small", "mid"));
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
function midChange(src) {
|
||||
$("#midimg").attr("src", src).load(function() {
|
||||
changeViewImg();
|
||||
});
|
||||
}
|
||||
|
||||
//大视窗看图
|
||||
function mouseover(e) {
|
||||
if ($("#winSelector").css("display") == "none") {
|
||||
$("#winSelector,#bigView").show();
|
||||
}
|
||||
|
||||
$("#winSelector").css(fixedPosition(e));
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
function mouseOut(e) {
|
||||
if ($("#winSelector").css("display") != "none") {
|
||||
$("#winSelector,#bigView").hide();
|
||||
}
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
$("#midimg").mouseover(mouseover); //中图事件
|
||||
$("#midimg,#winSelector").mousemove(mouseover).mouseout(mouseOut); //选择器事件
|
||||
|
||||
var $divWidth = $("#winSelector").width(); //选择器宽度
|
||||
var $divHeight = $("#winSelector").height(); //选择器高度
|
||||
var $imgWidth = $("#midimg").width(); //中图宽度
|
||||
var $imgHeight = $("#midimg").height(); //中图高度
|
||||
var $viewImgWidth = $viewImgHeight = $height = null; //IE加载后才能得到 大图宽度 大图高度 大图视窗高度
|
||||
|
||||
function changeViewImg() {
|
||||
$("#bigView img").attr("src", $("#midimg").attr("src").replace("mid", "big"));
|
||||
}
|
||||
|
||||
changeViewImg();
|
||||
|
||||
$("#bigView").scrollLeft(0).scrollTop(0);
|
||||
function fixedPosition(e) {
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
var $imgLeft = $("#midimg").offset().left; //中图左边距
|
||||
var $imgTop = $("#midimg").offset().top; //中图上边距
|
||||
X = e.pageX - $imgLeft - $divWidth / 2; //selector顶点坐标 X
|
||||
Y = e.pageY - $imgTop - $divHeight / 2; //selector顶点坐标 Y
|
||||
X = X < 0 ? 0 : X;
|
||||
Y = Y < 0 ? 0 : Y;
|
||||
X = X + $divWidth > $imgWidth ? $imgWidth - $divWidth : X;
|
||||
Y = Y + $divHeight > $imgHeight ? $imgHeight - $divHeight : Y;
|
||||
|
||||
if ($viewImgWidth == null) {
|
||||
$viewImgWidth = $("#bigView img").outerWidth();
|
||||
$viewImgHeight = $("#bigView img").height();
|
||||
if ($viewImgWidth < 200 || $viewImgHeight < 200) {
|
||||
$viewImgWidth = $viewImgHeight = 800;
|
||||
}
|
||||
$height = $divHeight * $viewImgHeight / $imgHeight;
|
||||
$("#bigView").width($divWidth * $viewImgWidth / $imgWidth);
|
||||
$("#bigView").height($height);
|
||||
}
|
||||
|
||||
var scrollX = X * $viewImgWidth / $imgWidth;
|
||||
var scrollY = Y * $viewImgHeight / $imgHeight;
|
||||
$("#bigView img").css({ "left": scrollX * -1, "top": scrollY * -1 });
|
||||
$("#bigView").css({ "top": 0, "left": $(".preview").offset().left + $(".preview").width() + 15 });
|
||||
|
||||
return { left: X, top: Y };
|
||||
}
|
||||
});
|
||||
152
public/frontend/web/scripts/large20181025.js
Executable file
152
public/frontend/web/scripts/large20181025.js
Executable file
@@ -0,0 +1,152 @@
|
||||
$(document).ready(function() {
|
||||
// 图片上下滚动
|
||||
var count = $("#imageMenu li").length - 4; /* 显示 5 个 li标签内容 */
|
||||
var interval = $("#imageMenu li:first").height();
|
||||
var curIndex = 0;
|
||||
|
||||
$('.scrollbutton').click(function(){
|
||||
if( $(this).hasClass('disabled') ) return false;
|
||||
|
||||
if ($(this).hasClass('smallImgUp')) --curIndex;
|
||||
else ++curIndex;
|
||||
|
||||
$('.scrollbutton').removeClass('disabled');
|
||||
if (curIndex == 0) $('.smallImgUp').addClass('disabled');
|
||||
if (curIndex == count-1) $('.smallImgDown').addClass('disabled');
|
||||
|
||||
$("#imageMenu ul").stop(false, true).animate({"marginTop" : -curIndex*interval + "px"}, 600);
|
||||
});
|
||||
|
||||
// 解决 ie6 select框 问题
|
||||
$.fn.decorateIframe = function(options) {
|
||||
if ($.browser.msie && $.browser.version < 7) {
|
||||
var opts = $.extend({}, $.fn.decorateIframe.defaults, options);
|
||||
$(this).each(function() {
|
||||
var $myThis = $(this);
|
||||
//创建一个IFRAME
|
||||
var divIframe = $("<iframe />");
|
||||
divIframe.attr("id", opts.iframeId);
|
||||
divIframe.css("position", "absolute");
|
||||
divIframe.css("display", "none");
|
||||
divIframe.css("display", "block");
|
||||
divIframe.css("z-index", opts.iframeZIndex);
|
||||
divIframe.css("border");
|
||||
divIframe.css("top", "0");
|
||||
divIframe.css("left", "0");
|
||||
if (opts.width == 0) {
|
||||
divIframe.css("width", $myThis.width() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
if (opts.height == 0) {
|
||||
divIframe.css("height", $myThis.height() + parseInt($myThis.css("padding")) * 2 + "px");
|
||||
}
|
||||
divIframe.css("filter", "mask(color=#fff)");
|
||||
$myThis.append(divIframe);
|
||||
});
|
||||
}
|
||||
}
|
||||
$.fn.decorateIframe.defaults = {
|
||||
iframeId: "decorateIframe1",
|
||||
iframeZIndex: -1,
|
||||
width: 0,
|
||||
height: 0
|
||||
}
|
||||
//放大镜视窗
|
||||
$("#bigView").decorateIframe();
|
||||
|
||||
//点击到中图
|
||||
var midChangeHandler = null;
|
||||
|
||||
$("#imageMenu li img").bind("click", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
midChange($(this).attr("src"));
|
||||
$("#imageMenu li").removeAttr("id");
|
||||
$(this).parent().attr("id", "onlickImg");
|
||||
}
|
||||
}).bind("mouseover", function(){
|
||||
if ($(this).attr("id") != "onlickImg") {
|
||||
window.clearTimeout(midChangeHandler);
|
||||
midChange($(this).attr("src"));
|
||||
// $(this).css({ "border": "1px solid #990000" });
|
||||
}
|
||||
}).bind("mouseout", function(){
|
||||
if($(this).attr("id") != "onlickImg"){
|
||||
$(this).removeAttr("style");
|
||||
midChangeHandler = window.setTimeout(function(){
|
||||
midChange($("#onlickImg img").attr("src"));
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
function midChange(src) {
|
||||
$("#midimg").attr("src", src).load(function() {
|
||||
changeViewImg();
|
||||
});
|
||||
}
|
||||
|
||||
//大视窗看图
|
||||
function mouseover(e) {
|
||||
if ($("#winSelector").css("display") == "none") {
|
||||
$("#winSelector,#bigView").show();
|
||||
}
|
||||
|
||||
$("#winSelector").css(fixedPosition(e));
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
function mouseOut(e) {
|
||||
if ($("#winSelector").css("display") != "none") {
|
||||
$("#winSelector,#bigView").hide();
|
||||
}
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
|
||||
$("#midimg").mouseover(mouseover); //中图事件
|
||||
$("#midimg,#winSelector").mousemove(mouseover).mouseout(mouseOut); //选择器事件
|
||||
|
||||
var $divWidth = $("#winSelector").width(); //选择器宽度
|
||||
var $divHeight = $("#winSelector").height(); //选择器高度
|
||||
var $imgWidth = $("#midimg").width(); //中图宽度
|
||||
var $imgHeight = $("#midimg").height(); //中图高度
|
||||
var $viewImgWidth = $viewImgHeight = $height = null; //IE加载后才能得到 大图宽度 大图高度 大图视窗高度
|
||||
|
||||
function changeViewImg() {
|
||||
$("#bigView img").attr("src", $("#midimg").attr("src"));
|
||||
}
|
||||
|
||||
changeViewImg();
|
||||
|
||||
$("#bigView").scrollLeft(0).scrollTop(0);
|
||||
function fixedPosition(e) {
|
||||
if (e == null) {
|
||||
return;
|
||||
}
|
||||
var $imgLeft = $("#midimg").offset().left; //中图左边距
|
||||
var $imgTop = $("#midimg").offset().top; //中图上边距
|
||||
X = e.pageX - $imgLeft - $divWidth / 2; //selector顶点坐标 X
|
||||
Y = e.pageY - $imgTop - $divHeight / 2; //selector顶点坐标 Y
|
||||
X = X < 0 ? 0 : X;
|
||||
Y = Y < 0 ? 0 : Y;
|
||||
X = X + $divWidth > $imgWidth ? $imgWidth - $divWidth : X;
|
||||
Y = Y + $divHeight > $imgHeight ? $imgHeight - $divHeight : Y;
|
||||
|
||||
if ($viewImgWidth == null) {
|
||||
$viewImgWidth = $("#bigView img").outerWidth();
|
||||
$viewImgHeight = $("#bigView img").height();
|
||||
if ($viewImgWidth < 200 || $viewImgHeight < 200) {
|
||||
$viewImgWidth = $viewImgHeight = 800;
|
||||
}
|
||||
$height = $divHeight * $viewImgHeight / $imgHeight;
|
||||
$("#bigView").width($divWidth * $viewImgWidth / $imgWidth);
|
||||
$("#bigView").height($height);
|
||||
}
|
||||
|
||||
var scrollX = X * $viewImgWidth / $imgWidth;
|
||||
var scrollY = Y * $viewImgHeight / $imgHeight;
|
||||
$("#bigView img").css({ "left": scrollX * -1, "top": scrollY * -1 });
|
||||
$("#bigView").css({ "top": 0, "left": $(".preview").offset().left + $(".preview").width() + 15 });
|
||||
|
||||
return { left: X, top: Y };
|
||||
}
|
||||
});
|
||||
100
public/frontend/web/scripts/map/analytics.js
Executable file
100
public/frontend/web/scripts/map/analytics.js
Executable file
@@ -0,0 +1,100 @@
|
||||
(function(){/*
|
||||
|
||||
Copyright The Closure Library Authors.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var aa=this||self,l=function(a,b){a=a.split(".");var c=aa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b};var m=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},q=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};var r=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;/*
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var t=window,u=window.history,v=document,w=navigator,x=function(a,b){v.addEventListener?v.addEventListener(a,b,!1):v.attachEvent&&v.attachEvent("on"+a,b)};var y={},z=function(){y.TAGGING=y.TAGGING||[];y.TAGGING[1]=!0};var A=/:[0-9]+$/,B=function(a,b,c){a=a.split("&");for(var d=0;d<a.length;d++){var e=a[d].split("=");if(decodeURIComponent(e[0]).replace(/\+/g," ")===b)return b=e.slice(1).join("="),c?b:decodeURIComponent(b).replace(/\+/g," ")}},E=function(a,b){b&&(b=String(b).toLowerCase());if("protocol"===b||"port"===b)a.protocol=C(a.protocol)||C(t.location.protocol);"port"===b?a.port=String(Number(a.hostname?a.port:t.location.port)||("http"==a.protocol?80:"https"==a.protocol?443:"")):"host"===b&&(a.hostname=(a.hostname||
|
||||
t.location.hostname).replace(A,"").toLowerCase());return D(a,b,void 0,void 0,void 0)},D=function(a,b,c,d,e){var f=C(a.protocol);b&&(b=String(b).toLowerCase());switch(b){case "url_no_fragment":d="";a&&a.href&&(d=a.href.indexOf("#"),d=0>d?a.href:a.href.substr(0,d));a=d;break;case "protocol":a=f;break;case "host":a=a.hostname.replace(A,"").toLowerCase();c&&(d=/^www\d*\./.exec(a))&&d[0]&&(a=a.substr(d[0].length));break;case "port":a=String(Number(a.port)||("http"==f?80:"https"==f?443:""));break;case "path":a.pathname||
|
||||
a.hostname||z();a="/"==a.pathname.substr(0,1)?a.pathname:"/"+a.pathname;a=a.split("/");0<=(d||[]).indexOf(a[a.length-1])&&(a[a.length-1]="");a=a.join("/");break;case "query":a=a.search.replace("?","");e&&(a=B(a,e,void 0));break;case "extension":a=a.pathname.split(".");a=1<a.length?a[a.length-1]:"";a=a.split("/")[0];break;case "fragment":a=a.hash.replace("#","");break;default:a=a&&a.href}return a},C=function(a){return a?a.replace(":","").toLowerCase():""},F=function(a){var b=v.createElement("a");a&&
|
||||
(b.href=a);var c=b.pathname;"/"!==c[0]&&(a||z(),c="/"+c);a=b.hostname.replace(A,"");return{href:b.href,protocol:b.protocol,host:b.host,hostname:a,pathname:c,search:b.search,hash:b.hash,port:b.port}};function G(){for(var a=H,b={},c=0;c<a.length;++c)b[a[c]]=c;return b}function I(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a+=a.toLowerCase()+"0123456789-_";return a+"."}var H,J;function K(a){H=H||I();J=J||G();for(var b=[],c=0;c<a.length;c+=3){var d=c+1<a.length,e=c+2<a.length,f=a.charCodeAt(c),g=d?a.charCodeAt(c+1):0,h=e?a.charCodeAt(c+2):0,k=f>>2;f=(f&3)<<4|g>>4;g=(g&15)<<2|h>>6;h&=63;e||(h=64,d||(g=64));b.push(H[k],H[f],H[g],H[h])}return b.join("")}
|
||||
function ba(a){function b(k){for(;d<a.length;){var n=a.charAt(d++),p=J[n];if(null!=p)return p;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n);}return k}H=H||I();J=J||G();for(var c="",d=0;;){var e=b(-1),f=b(0),g=b(64),h=b(64);if(64===h&&-1===e)return c;c+=String.fromCharCode(e<<2|f>>4);64!=g&&(c+=String.fromCharCode(f<<4&240|g>>2),64!=h&&(c+=String.fromCharCode(g<<6&192|h)))}};var L;var M=void 0,O=function(){var a=ca,b=da,c=N(),d=function(g){a(g.target||g.srcElement||{})},e=function(g){b(g.target||g.srcElement||{})};if(!c.init){x("mousedown",d);x("keyup",d);x("submit",e);var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){b(this);f.call(this)};c.init=!0}},P=function(a,b,c,d,e){a={callback:a,domains:b,fragment:2===c,placement:c,forms:d,sameHost:e};N().decorators.push(a)},Q=function(a,b,c){for(var d=N().decorators,e={},f=0;f<d.length;++f){var g=d[f],
|
||||
h;if(h=!c||g.forms)a:{h=g.domains;var k=a,n=!!g.sameHost;if(h&&(n||k!==v.location.hostname))for(var p=0;p<h.length;p++)if(h[p]instanceof RegExp){if(h[p].test(k)){h=!0;break a}}else if(0<=k.indexOf(h[p])||n&&0<=h[p].indexOf(k)){h=!0;break a}h=!1}h&&(h=g.placement,void 0==h&&(h=g.fragment?2:1),h===b&&m(e,g.callback()))}return e};function N(){var a={};var b=t.google_tag_data;t.google_tag_data=void 0===b?a:b;a=t.google_tag_data;b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var ea=/(.*?)\*(.*?)\*(.*)/,fa=/([^?#]+)(\?[^#]*)?(#.*)?/;function R(a){return new RegExp("(.*?)(^|&)"+a+"=([^&]*)&?(.*)")}var T=function(a,b){var c=[],d;for(d in a)if(a.hasOwnProperty(d)){var e=a[d];void 0!==e&&e===e&&null!==e&&"[object Object]"!==e.toString()&&(c.push(d),c.push(K(String(e))))}a=c.join("*");void 0!==b&&(c="xp_"+b,b=ha[b](a),a=a+"*"+[c,K(String(b))].join("*"));return["1",S(a),a].join("*")};
|
||||
function S(a,b){a=[t.navigator.userAgent,(new Date).getTimezoneOffset(),w.userLanguage||w.language,Math.floor((new Date(Date.now())).getTime()/60/1E3)-(void 0===b?0:b),a].join("*");if(!(b=L)){b=Array(256);for(var c=0;256>c;c++){for(var d=c,e=0;8>e;e++)d=d&1?d>>>1^3988292384:d>>>1;b[c]=d}}L=b;b=4294967295;for(c=0;c<a.length;c++)b=b>>>8^L[(b^a.charCodeAt(c))&255];return((b^-1)>>>0).toString(36)}var U={},ha=(U[1]=ia,U[2]=ja,U[3]=ka,U);function ia(){return"CHECKSUM_EXP_DISABLED"}
|
||||
function ja(){return"CHECKSUM_EXP_DISABLED"}function la(){w.userAgentData&&w.userAgentData.getHighEntropyValues(["architecture","model","bitness","platformVersion","uaFullVersion"]).then(function(){})}function ka(){return"CHECKSUM_EXP_DISABLED"}function ma(a){return function(b){var c=F(t.location.href),d=c.search.replace("?","");var e=B(d,"_gl",!0);b.query=V(e||"")||{};e=E(c,"fragment");var f=e.match(R("_gl"));b.fragment=V(f&&f[3]||"")||{};a&&na(c,d,e)}}
|
||||
function W(a,b){if(a=R(a).exec(b)){var c=a[2],d=a[4];b=a[1];d&&(b=b+c+d)}return b}function na(a,b,c){function d(f,g){f=W("_gl",f);f.length&&(f=g+f);return f}if(u&&u.replaceState){var e=R("_gl");if(e.test(b)||e.test(c))a=E(a,"path"),b=d(b,"?"),c=d(c,"#"),u.replaceState({},void 0,""+a+b+c)}}
|
||||
var V=function(a){var b=void 0===b?3:b;try{if(a){a:{for(var c=0;3>c;++c){var d=ea.exec(a);if(d){var e=d;break a}a=decodeURIComponent(a)}e=void 0}if(e&&"1"===e[1]){var f=e[2],g=e[3];a:{for(e=0;e<b;++e)if(f===S(g,e)){var h=!0;break a}h=!1}if(h){b={};var k=g?g.split("*"):[];for(g=0;g<k.length;g+=2)b[k[g]]=ba(k[g+1]);return b}}}}catch(n){}};
|
||||
function X(a,b,c,d){function e(k){k=W(a,k);var n=k.charAt(k.length-1);k&&"&"!==n&&(k+="&");return k+h}d=void 0===d?!1:d;var f=fa.exec(c);if(!f)return"";c=f[1];var g=f[2]||"";f=f[3]||"";var h=a+"="+b;d?f="#"+e(f.substring(1)):g="?"+e(g.substring(1));return""+c+g+f}function Y(a,b){var c="FORM"===(a.tagName||"").toUpperCase(),d=Q(b,1,c),e=Q(b,2,c);b=Q(b,3,c);var f=M;q(d)&&(d=T(d,f),c?oa("_gl",d,a):Z("_gl",d,a,!1));!c&&q(e)&&(c=T(e),Z("_gl",c,a,!0));for(var g in b)b.hasOwnProperty(g)&&pa(g,b[g],a)}
|
||||
function pa(a,b,c,d){if(c.tagName){if("a"===c.tagName.toLowerCase())return Z(a,b,c,d);if("form"===c.tagName.toLowerCase())return oa(a,b,c)}if("string"==typeof c)return X(a,b,c,d)}function Z(a,b,c,d){c.href&&(a=X(a,b,c.href,void 0===d?!1:d),r.test(a)&&(c.href=a))}
|
||||
function oa(a,b,c){if(c&&c.action){var d=(c.method||"").toLowerCase();if("get"===d){d=c.childNodes||[];for(var e=!1,f=0;f<d.length;f++){var g=d[f];if(g.name===a){g.setAttribute("value",b);e=!0;break}}e||(d=v.createElement("input"),d.setAttribute("type","hidden"),d.setAttribute("name",a),d.setAttribute("value",b),c.appendChild(d))}else"post"===d&&(a=X(a,b,c.action),r.test(a)&&(c.action=a))}}
|
||||
function ca(a){try{a:{for(var b=100;a&&0<b;){if(a.href&&a.nodeName.match(/^a(?:rea)?$/i)){var c=a;break a}a=a.parentNode;b--}c=null}if(c){var d=c.protocol;"http:"!==d&&"https:"!==d||Y(c,c.hostname)}}catch(e){}}function da(a){try{if(a.action){var b=E(F(a.action),"host");Y(a,b)}}catch(c){}};l("google_tag_data.glBridge.auto",function(a,b,c,d,e){O();void 0!==e&&(M=e);3===e&&la();P(a,b,"fragment"===c?2:1,!!d,!1)});l("google_tag_data.glBridge.passthrough",function(a,b,c,d){O();void 0!==d&&(M=d);P(a,[D(t.location,"host",!0)],b,!!c,!0)});l("google_tag_data.glBridge.decorate",function(a,b,c){a=T(a);return pa("_gl",a,b,!!c)});l("google_tag_data.glBridge.generate",T);
|
||||
l("google_tag_data.glBridge.get",function(a,b){var c=ma(!!b);b=N();b.data||(b.data={query:{},fragment:{}},c(b.data));c={};if(b=b.data)m(c,b.query),a&&m(c,b.fragment);return c});})(window);
|
||||
(function(){function La(a){var b=1,c;if(a)for(b=0,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;b=0!=d?b^d>>21:b}return b};/*
|
||||
|
||||
Copyright The Closure Library Authors.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var $c=function(a){this.C=a||[]};$c.prototype.set=function(a){this.C[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b<this.C.length;b++)this.C[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var ha=window.GoogleAnalyticsObject,wa;if(wa=void 0!=ha)wa=-1<(ha.constructor+"").indexOf("String");var ya;if(ya=wa){var fc=window.GoogleAnalyticsObject;ya=fc?fc.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""}var gb=ya||"ga",jd=/^(?:utma\.)?\d+\.\d+$/,kd=/^amp-[\w.-]{22,64}$/,Ba=!1;var vd=new $c;function J(a){vd.set(a)}var Td=function(a){a=Dd(a);a=new $c(a);for(var b=vd.C.slice(),c=0;c<a.C.length;c++)b[c]=b[c]||a.C[c];return(new $c(b)).encode()},Dd=function(a){a=a.get(Gd);ka(a)||(a=[]);return a};var ea=function(a){return"function"==typeof a},ka=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},qa=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},D=function(a,b){return 0==a.indexOf(b)},sa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},ra=function(){for(var a=O.navigator.userAgent+(M.cookie?M.cookie:"")+(M.referrer?M.referrer:""),b=a.length,c=O.history.length;0<c;)a+=c--^b++;return[hd()^La(a)&2147483647,Math.round((new Date).getTime()/
|
||||
1E3)].join(".")},ta=function(a){var b=M.createElement("img");b.width=1;b.height=1;b.src=a;return b},ua=function(){},K=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);J(28);return a},L=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},f=/^[\w\-:/.?=&%!\[\]]+$/,Nd=/^[\w+/_-]+[=]{0,2}$/,ff=null,Id=function(a,b,c,d,e){if(!ff){ff={createScriptURL:function(ca){return ca},createHTML:function(ca){return ca}};
|
||||
try{ff=window.trustedTypes.createPolicy("google-analytics",ff)}catch(ca){}}if(a){var g=M.querySelector&&M.querySelector("script[nonce]")||null;g=g?g.nonce||g.getAttribute&&g.getAttribute("nonce")||"":"";c?(e=d="",b&&f.test(b)&&(d=' id="'+b+'"'),g&&Nd.test(g)&&(e=' nonce="'+g+'"'),f.test(a)&&M.write(ff.createHTML("<script"+d+e+' src="'+a+'">\x3c/script>'))):(c=M.createElement("script"),c.type="text/javascript",c.async=!0,c.src=ff.createScriptURL(a),d&&(c.onload=d),e&&(c.onerror=e),b&&(c.id=b),g&&c.setAttribute("nonce",
|
||||
g),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a))}},be=function(a,b){return E(M.location[b?"href":"search"],a)},E=function(a,b){return(a=a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},de=function(a,b){var c=a.indexOf(b);if(5==c||6==c)if(a=a.charAt(c+b.length),"/"==a||"?"==a||""==a||":"==a)return!0;return!1},za=function(a,b){if(1==
|
||||
b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e].hasOwnProperty(g)&&(c[g]=b[e][g]);break}else e<a.length&&(c[a[e]]=b[e]);return c},Ee=function(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return!0;return!1};var ee=function(){this.oa=[];this.ea={};this.m={}};ee.prototype.set=function(a,b,c){this.oa.push(a);c?this.m[":"+a]=b:this.ea[":"+a]=b};ee.prototype.get=function(a){return this.m.hasOwnProperty(":"+a)?this.m[":"+a]:this.ea[":"+a]};ee.prototype.map=function(a){for(var b=0;b<this.oa.length;b++){var c=this.oa[b],d=this.get(c);d&&a(c,d)}};var O=window,M=document,jf=document.currentScript?document.currentScript.src:"",va=function(a,b){return setTimeout(a,b)};var Qa=window,Za=document,G=function(a){var b=Qa._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===Qa["ga-disable-"+a])return!0;try{var c=Qa.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(g){}a=[];b=String(Za.cookie).split(";");for(c=0;c<b.length;c++){var d=b[c].split("="),e=d[0].replace(/^\s*|\s*$/g,"");e&&"AMP_TOKEN"==e&&((d=d.slice(1).join("=").replace(/^\s*|\s*$/g,""))&&(d=decodeURIComponent(d)),a.push(d))}for(b=0;b<a.length;b++)if("$OPT_OUT"==a[b])return!0;return Za.getElementById("__gaOptOutExtension")?
|
||||
!0:!1};var Ca=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push(e[1])}return b},zc=function(a,b,c,d,e,g,ca){e=G(e)?!1:eb.test(M.location.hostname)||"/"==c&&vc.test(d)?!1:!0;if(!e)return!1;b&&1200<b.length&&(b=b.substring(0,1200));c=a+"="+b+"; path="+c+"; ";g&&(c+="expires="+(new Date((new Date).getTime()+g)).toGMTString()+"; ");d&&"none"!==d&&(c+="domain="+d+";");ca&&(c+=ca+";");d=M.cookie;M.cookie=c;if(!(d=d!=M.cookie))a:{a=
|
||||
Ca(a);for(d=0;d<a.length;d++)if(b==a[d]){d=!0;break a}d=!1}return d},Cc=function(a){return encodeURIComponent?encodeURIComponent(a).replace(/\(/g,"%28").replace(/\)/g,"%29"):a},vc=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,eb=/(^|\.)doubleclick\.net$/i;var Oe=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+(a||"_gac")+"_(UA-\\d+-\\d+)=\\s*(.+?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push({ja:e[1],value:e[2],timestamp:Number(e[2].split(".")[1])||0})}b.sort(function(g,ca){return ca.timestamp-g.timestamp});return b};
|
||||
function df(a,b,c){b=Oe(b);var d={};if(!b||!b.length)return d;for(var e=0;e<b.length;e++){var g=b[e].value.split(".");if("1"!==g[0]||c&&3>g.length||!c&&3!==g.length)a&&(a.na=!0);else if(Number(g[1])){d[b[e].ja]?a&&(a.pa=!0):d[b[e].ja]=[];var ca={version:g[0],timestamp:1E3*Number(g[1]),qa:g[2]};c&&3<g.length&&(ca.labels=g.slice(3));d[b[e].ja].push(ca)}}return d};var Fa,Ga,fb,Ab,ja=/^https?:\/\/[^/]*cdn\.ampproject\.org\//,Ue=/^(?:www\.|m\.|amp\.)+/,Ub=[],da=function(a){if(ye(a[Kd])){if(void 0===Ab){var b;if(b=(b=De.get())&&b._ga||void 0)Ab=b,J(81)}if(void 0!==Ab)return a[Q]||(a[Q]=Ab),!1}if(a[Kd]){J(67);if(a[ac]&&"cookie"!=a[ac])return!1;if(void 0!==Ab)a[Q]||(a[Q]=Ab);else{a:{b=String(a[W]||xa());var c=String(a[Yb]||"/"),d=Ca(String(a[U]||"_ga"));b=na(d,b,c);if(!b||jd.test(b))b=!0;else if(b=Ca("AMP_TOKEN"),0==b.length)b=!0;else{if(1==b.length&&(b=decodeURIComponent(b[0]),
|
||||
"$RETRIEVING"==b||"$OPT_OUT"==b||"$ERROR"==b||"$NOT_FOUND"==b)){b=!0;break a}b=!1}}if(b&&tc(ic,String(a[Na])))return!0}}return!1},ic=function(){Z.D([ua])},tc=function(a,b){var c=Ca("AMP_TOKEN");if(1<c.length)return J(55),!1;c=decodeURIComponent(c[0]||"");if("$OPT_OUT"==c||"$ERROR"==c||G(b))return J(62),!1;if(!ja.test(M.referrer)&&"$NOT_FOUND"==c)return J(68),!1;if(void 0!==Ab)return J(56),va(function(){a(Ab)},0),!0;if(Fa)return Ub.push(a),!0;if("$RETRIEVING"==c)return J(57),va(function(){tc(a,b)},
|
||||
1E4),!0;Fa=!0;c&&"$"!=c[0]||(xc("$RETRIEVING",3E4),setTimeout(Mc,3E4),c="");return Pc(c,b)?(Ub.push(a),!0):!1},Pc=function(a,b,c){if(!window.JSON)return J(58),!1;var d=O.XMLHttpRequest;if(!d)return J(59),!1;var e=new d;if(!("withCredentials"in e))return J(60),!1;e.open("POST",(c||"https://ampcid.google.com/v1/publisher:getClientId")+"?key=AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM",!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onload=function(){Fa=!1;if(4==e.readyState){try{200!=
|
||||
e.status&&(J(61),Qc("","$ERROR",3E4));var g=JSON.parse(e.responseText);g.optOut?(J(63),Qc("","$OPT_OUT",31536E6)):g.clientId?Qc(g.clientId,g.securityToken,31536E6):!c&&g.alternateUrl?(Ga&&clearTimeout(Ga),Fa=!0,Pc(a,b,g.alternateUrl)):(J(64),Qc("","$NOT_FOUND",36E5))}catch(ca){J(65),Qc("","$ERROR",3E4)}e=null}};d={originScope:"AMP_ECID_GOOGLE"};a&&(d.securityToken=a);e.send(JSON.stringify(d));Ga=va(function(){J(66);Qc("","$ERROR",3E4)},1E4);return!0},Mc=function(){Fa=!1},xc=function(a,b){if(void 0===
|
||||
fb){fb="";for(var c=id(),d=0;d<c.length;d++){var e=c[d];if(zc("AMP_TOKEN",encodeURIComponent(a),"/",e,"",b)){fb=e;return}}}zc("AMP_TOKEN",encodeURIComponent(a),"/",fb,"",b)},Qc=function(a,b,c){Ga&&clearTimeout(Ga);b&&xc(b,c);Ab=a;b=Ub;Ub=[];for(c=0;c<b.length;c++)b[c](a)},ye=function(a){a:{if(ja.test(M.referrer)){var b=M.location.hostname.replace(Ue,"");b:{var c=M.referrer;c=c.replace(/^https?:\/\//,"");var d=c.replace(/^[^/]+/,"").split("/"),e=d[2];d=(d="s"==e?d[3]:e)?decodeURIComponent(d):d;if(!d){if(0==
|
||||
c.indexOf("xn--")){c="";break b}(c=c.match(/(.*)\.cdn\.ampproject\.org\/?$/))&&2==c.length&&(d=c[1].replace(/-/g,".").replace(/\.\./g,"-"))}c=d?d.replace(Ue,""):""}(d=b===c)||(c="."+c,d=b.substring(b.length-c.length,b.length)===c);if(d){b=!0;break a}else J(78)}b=!1}return b&&!1!==a};var bd=function(a){return(a?"https:":Ba||"https:"==M.location.protocol?"https:":"http:")+"//www.google-analytics.com"},Ge=function(a){switch(a){default:case 1:return"https://www.google-analytics.com/gtm/js?id=";case 2:return"https://www.googletagmanager.com/gtag/js?id="}},Da=function(a){this.name="len";this.message=a+"-8192"},ba=function(a,b,c){c=c||ua;if(2036>=b.length)wc(a,b,c);else if(8192>=b.length)x(a,b,c)||wd(a,b,c)||wc(a,b,c);else throw ge("len",b.length),new Da(b.length);},pe=function(a,b,
|
||||
c,d){d=d||ua;wd(a+"?"+b,"",d,c)},wc=function(a,b,c){var d=ta(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},wd=function(a,b,c,d){var e=O.XMLHttpRequest;if(!e)return!1;var g=new e;if(!("withCredentials"in g))return!1;a=a.replace(/^http:/,"https:");g.open("POST",a,!0);g.withCredentials=!0;g.setRequestHeader("Content-Type","text/plain");g.onreadystatechange=function(){if(4==g.readyState){if(d&&"text/plain"===g.getResponseHeader("Content-Type"))try{Ea(d,g.responseText,c)}catch(ca){ge("xhr",
|
||||
"rsp"),c()}else c();g=null}};g.send(b);return!0},Ea=function(a,b,c){if(1>b.length)ge("xhr","ver","0"),c();else if(3<a.count++)ge("xhr","tmr",""+a.count),c();else{var d=b.charAt(0);if("1"===d)oc(a,b.substring(1),c);else if(a.V&&"2"===d){var e=b.substring(1).split(","),g=0;b=function(){++g===e.length&&c()};for(d=0;d<e.length;d++)oc(a,e[d],b)}else ge("xhr","ver",String(b.length)),c()}},oc=function(a,b,c){if(0===b.length)c();else{var d=b.charAt(0);switch(d){case "d":pe("https://stats.g.doubleclick.net/j/collect",
|
||||
a.U,a,c);break;case "g":wc("https://www.google.com/ads/ga-audiences",a.google,c);(b=b.substring(1))&&(/^[a-z.]{1,6}$/.test(b)?wc("https://www.google.%/ads/ga-audiences".replace("%",b),a.google,ua):ge("tld","bcc",b));break;case "G":if(a.V){a.V("G-"+b.substring(1));c();break}case "x":if(a.V){a.V();c();break}default:ge("xhr","brc",d),c()}}},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||(a=["t=error","_e="+
|
||||
a,"_v=j96","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc(bd(!0)+"/u/d",a.join("&"),ua))};var qc=function(){return O.gaData=O.gaData||{}},h=function(a){var b=qc();return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b<this.M.length;b++){var c=a.get(this.M[b]);c&&ea(c)&&c.call(O,a)}}catch(d){}b=a.get(Ia);b!=ua&&ea(b)&&(a.set(Ia,ua,!0),setTimeout(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";}
|
||||
function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];ue.map(function(c,d){d.F&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.F+"="+K(""+c))))});!1===a.get(xe)&&b.push("npa=1");b.push("z="+Bd());a.set(Ra,b.join("&"),!0)}
|
||||
function Sa(a){var b=P(a,fa);!b&&a.get(Vd)&&(b="beacon");var c=P(a,gd),d=P(a,oe),e=c||(d||bd(!1)+"")+"/collect";switch(P(a,ad)){case "d":e=c||(d||bd(!1)+"")+"/j/collect";b=a.get(qe)||void 0;pe(e,P(a,Ra),b,a.Z(Ia));break;default:b?(c=P(a,Ra),d=(d=a.Z(Ia))||ua,"image"==b?wc(e,c,d):"xhr"==b&&wd(e,c,d)||"beacon"==b&&x(e,c,d)||ba(e,c,d)):ba(e,P(a,Ra),a.Z(Ia))}e=P(a,Na);e=h(e);b=e.hitcount;e.hitcount=b?b+1:1;e.first_hit||(e.first_hit=(new Date).getTime());e=P(a,Na);delete h(e).pending_experiments;a.set(Ia,
|
||||
ua,!0)}function Hc(a){qc().expId&&a.set(Nc,qc().expId);qc().expVar&&a.set(Oc,qc().expVar);var b=P(a,Na);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&((b=a.get(m))&&(d=b+"!"+d),a.set(m,d,!0))}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";}
|
||||
function yd(a){var b=O.gaDevIds||[];if(ka(b)){var c=a.get("&did");qa(c)&&0<c.length&&(b=b.concat(c.split(",")));c=[];for(var d=0;d<b.length;d++)Ee(c,b[d])||c.push(b[d]);0!=c.length&&a.set("&did",c.join(","),!0)}}function vb(a){if(!a.get(Na))throw"abort";}
|
||||
function Pe(a){try{if(!a.get(Qe)&&(a.set(Qe,!0),!a.get(">m"))){var b=void 0;lf(be("gtm_debug"))&&(b=2);!b&&D(M.referrer,"https://tagassistant.google.com/")&&(b=3);!b&&Ee(M.cookie.split("; "),"__TAG_ASSISTANT=x")&&(b=4);if(!b){var c=M.documentElement.getAttribute("data-tag-assistant-present");lf(c)&&(b=5)}if(b){O["google.tagmanager.debugui2.queue"]||(O["google.tagmanager.debugui2.queue"]=[],Id("https://www.google-analytics.com/debug/bootstrap?id="+a.get(Na)+"&src=LEGACY&cond="+b));var d=M.currentScript;
|
||||
O["google.tagmanager.debugui2.queue"].push({messageType:"LEGACY_CONTAINER_STARTING",data:{id:a.get(Na),scriptSource:d&&d.src||""}})}}}catch(e){}}function lf(a){if(null==a||0===a.length)return!1;a=Number(a);var b=Date.now();return a<b+3E5&&a>b-9E5};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){c=R(a,Wa);var d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee};Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){a=a.get(b);return void 0==a?"":""+a},R=function(a,b){a=a.get(b);return void 0==a||""===a?0:Number(a)};Ya.prototype.Z=function(a){return(a=this.get(a))&&ea(a)?a:ua};
|
||||
Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)};var ab=function(a,b,c,d){if(void 0!=c)switch(b){case Na:wb.test(c)}var e=$a(b);e&&e.o?e.o(a,b,c,d):a.data.set(b,c,d)};var ue=new ee,ve=[],bb=function(a,b,c,d,e){this.name=a;this.F=b;this.Z=d;this.o=e;this.defaultValue=c},$a=function(a){var b=ue.get(a);if(!b)for(var c=0;c<ve.length;c++){var d=ve[c],e=d[0].exec(a);if(e){b=d[1](e);ue.set(b.name,b);break}}return b},yc=function(a){var b;ue.map(function(c,d){d.F==a&&(b=d)});return b&&b.name},S=function(a,b,c,d,e){a=new bb(a,b,c,d,e);ue.set(a.name,a);return a.name},cb=function(a,b){ve.push([new RegExp("^"+a+"$"),b])},T=function(a,b,c){return S(a,b,c,void 0,db)},db=function(){};var hb=T("apiVersion","v"),ib=T("clientVersion","_v");S("anonymizeIp","aip");var jb=S("adSenseId","a"),Va=S("hitType","t"),Ia=S("hitCallback"),Ra=S("hitPayload");S("nonInteraction","ni");S("currencyCode","cu");S("dataSource","ds");var Vd=S("useBeacon",void 0,!1),fa=S("transport");S("sessionControl","sc","");S("sessionGroup","sg");S("queueTime","qt");var Ac=S("_s","_s");S("screenName","cd");var kb=S("location","dl",""),lb=S("referrer","dr"),mb=S("page","dp","");S("hostname","dh");
|
||||
var nb=S("language","ul"),ob=S("encoding","de");S("title","dt",function(){return M.title||void 0});cb("contentGroup([0-9]+)",function(a){return new bb(a[0],"cg"+a[1])});var pb=S("screenColors","sd"),qb=S("screenResolution","sr"),rb=S("viewportSize","vp"),sb=S("javaEnabled","je"),tb=S("flashVersion","fl");S("campaignId","ci");S("campaignName","cn");S("campaignSource","cs");S("campaignMedium","cm");S("campaignKeyword","ck");S("campaignContent","cc");
|
||||
var ub=S("eventCategory","ec"),xb=S("eventAction","ea"),yb=S("eventLabel","el"),zb=S("eventValue","ev"),Bb=S("socialNetwork","sn"),Cb=S("socialAction","sa"),Db=S("socialTarget","st"),Eb=S("l1","plt"),Fb=S("l2","pdt"),Gb=S("l3","dns"),Hb=S("l4","rrt"),Ib=S("l5","srt"),Jb=S("l6","tcp"),Kb=S("l7","dit"),Lb=S("l8","clt"),Ve=S("l9","_gst"),We=S("l10","_gbt"),Xe=S("l11","_cst"),Ye=S("l12","_cbt"),Mb=S("timingCategory","utc"),Nb=S("timingVar","utv"),Ob=S("timingLabel","utl"),Pb=S("timingValue","utt");
|
||||
S("appName","an");S("appVersion","av","");S("appId","aid","");S("appInstallerId","aiid","");S("exDescription","exd");S("exFatal","exf");var Nc=S("expId","xid"),Oc=S("expVar","xvar"),m=S("exp","exp"),Rc=S("_utma","_utma"),Sc=S("_utmz","_utmz"),Tc=S("_utmht","_utmht"),Ua=S("_hc",void 0,0),Xa=S("_ti",void 0,0),Wa=S("_to",void 0,20);cb("dimension([0-9]+)",function(a){return new bb(a[0],"cd"+a[1])});cb("metric([0-9]+)",function(a){return new bb(a[0],"cm"+a[1])});S("linkerParam",void 0,void 0,Bc,db);
|
||||
var Ze=T("_cd2l",void 0,!1),ld=S("usage","_u"),Gd=S("_um");S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid"),ia=S("_j2","gjid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0].substring(1));c&&(b.Z=function(d){return d.get(c)},b.o=function(d,e,g,ca){d.set(c,g,ca)},b.F=void 0);return b});
|
||||
var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=S("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),oa=S("customTask"),ze=S("fpsCrossDomainTask"),Re=T("_cta"),V=T("name"),Q=T("clientId","cid"),n=T("clientIdTime"),xd=T("storedClientId"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),
|
||||
W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires",void 0,63072E3),Hd=T("cookieUpdate",void 0,!0),Be=T("cookieFlags",void 0,""),$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),I=T("_gid","_gid"),la=T("_gcn"),Kd=T("useAmpClientId"),ce=T("_gclid"),fe=T("_gt"),he=T("_ge",void 0,
|
||||
7776E6),ie=T("_gclsrc"),je=T("storeGac",void 0,!0),oe=S("_x_19"),Ae=S("_fplc","_fplc"),F=T("_cs"),Je=T("_useUp",void 0,!1),Le=S("up","up"),Qe=S("_tac",void 0,!1),Se=T("_gbraid"),Te=T("_gbt"),bf=T("_gbe",void 0,7776E6),gd=S("transportUrl"),Md=S("_r","_r"),Od=S("_slc","_slc"),qe=S("_dp"),ad=S("_jt",void 0,"n"),Ud=S("allowAdFeatures",void 0,!0),xe=S("allowAdPersonalizationSignals",void 0,!0);
|
||||
function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c.apply(this,arguments)}catch(e){throw ge("exc",a,e&&e.name),e;}}};var Ed=function(a){if("cookie"==a.get(ac))return a=Ca("FPLC"),0<a.length?a[0]:void 0},Fe=function(a){var b;if(b=P(a,oe)&&a.get(Ze))b=De.get(a.get(cc)),b=!(b&&b._fplc);b&&!Ed(a)&&a.set(Ae,"0")};var aa=function(a){var b=Math.min(R(a,dc),100);return La(P(a,Q))%100>=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0<c?(Y(b,Gb),Y(b,Jb),Y(b,Ib),Y(b,Fb),Y(b,Hb),Y(b,Kb),Y(b,Lb),Y(b,Ve),Y(b,We),Y(b,Xe),Y(b,Ye),va(function(){a(b)},10)):L(O,"load",function(){gc(a)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance;b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;
|
||||
a[Jb]=b.connectEnd-b.connectStart;a[Ib]=b.responseStart-b.requestStart;a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;a[Ve]=N.L-c;a[We]=N.ya-c;O.google_tag_manager&&O.google_tag_manager._li&&(b=O.google_tag_manager._li,a[Xe]=b.cst,a[Ye]=b.cbt);return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;
|
||||
a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&&!a.I){a.I=!0;var c=aa(b),d=0<E(P(b,kb),"gclid").length,e=0<E(P(b,kb),"wbraid").length;(c||d||e)&&gc(function(g){c&&a.send("timing",g);(d||e)&&a.send("adtiming",g)})}}};var hc=!1,mc=function(a){if("cookie"==P(a,ac)){if(a.get(Hd)||P(a,xd)!=P(a,Q)){var b=1E3*R(a,Zb);ma(a,Q,U,b);a.data.set(xd,P(a,Q))}(a.get(Hd)||uc(a)!=P(a,I))&&ma(a,I,la,864E5);if(a.get(je)){if(b=P(a,ce)){var c=Math.min(R(a,he),1E3*R(a,Zb));c=0===c?0:Math.min(c,1E3*R(a,fe)+c-(new Date).getTime());a.data.set(he,c);var d={},e=P(a,fe),g=P(a,ie),ca=kc(P(a,Yb)),l=lc(P(a,W)),k=P(a,Na),w=P(a,Be);g&&"aw.ds"!=g?d&&(d.ua=!0):(b=["1",e,Cc(b)].join("."),0<=c&&(d&&(d.ta=!0),zc("_gac_"+Cc(k),b,ca,l,k,c,w)));le(d)}}else J(75);
|
||||
a.get(je)&&(b=P(a,Se))&&(c=Math.min(R(a,bf),1E3*R(a,Zb)),c=0===c?0:Math.min(c,1E3*R(a,Te)+c-(new Date).getTime()),a.data.set(bf,c),d={},w=P(a,Te),ca=kc(P(a,Yb)),l=lc(P(a,W)),k=P(a,Na),a=P(a,Be),b=["1",w,Cc(b)].join("."),0<=c&&(d&&(d.ta=!0),zc("_gac_gb_"+Cc(k),b,ca,l,k,c,a)),ef(d))}},ma=function(a,b,c,d){var e=nd(a,b);if(e){c=P(a,c);var g=kc(P(a,Yb)),ca=lc(P(a,W)),l=P(a,Be),k=P(a,Na);if("auto"!=ca)zc(c,e,g,ca,k,d,l)&&(hc=!0);else{J(32);for(var w=id(),Ce=0;Ce<w.length;Ce++)if(ca=w[Ce],a.data.set(W,
|
||||
ca),e=nd(a,b),zc(c,e,g,ca,k,d,l)){hc=!0;return}a.data.set(W,"auto")}}},uc=function(a){var b=Ca(P(a,la));return Xd(a,b)},nc=function(a){if("cookie"==P(a,ac)&&!hc&&(mc(a),!hc))throw"abort";},Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||xa(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date).getTime(),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d.hash==b.hash&&a.set(Sc,b.R))}},nd=function(a,b){b=Cc(P(a,b));var c=lc(P(a,W)).split(".").length;a=jc(P(a,Yb));1<a&&(c+="-"+a);return b?["GA1",c,b].join("."):
|
||||
""},Xd=function(a,b){return na(b,P(a,W),P(a,Yb))},na=function(a,b,c){if(!a||1>a.length)J(12);else{for(var d=[],e=0;e<a.length;e++){var g=a[e];var ca=g.split(".");var l=ca.shift();("GA1"==l||"1"==l)&&1<ca.length?(g=ca.shift().split("-"),1==g.length&&(g[1]="1"),g[0]*=1,g[1]*=1,ca={H:g,s:ca.join(".")}):ca=kd.test(g)?{H:[0,0],s:g}:void 0;ca&&d.push(ca)}if(1==d.length)return J(13),d[0].s;if(0==d.length)J(12);else{J(14);d=Gc(d,lc(b).split(".").length,0);if(1==d.length)return d[0].s;d=Gc(d,jc(c),1);1<d.length&&
|
||||
J(41);return d[0]&&d[0].s}}},Gc=function(a,b,c){for(var d=[],e=[],g,ca=0;ca<a.length;ca++){var l=a[ca];l.H[c]==b?d.push(l):void 0==g||l.H[c]<g?(e=[l],g=l.H[c]):l.H[c]==g&&e.push(l)}return 0<d.length?d:e},lc=function(a){return 0==a.indexOf(".")?a.substr(1):a},id=function(){var a=[],b=xa().split(".");if(4==b.length){var c=b[b.length-1];if(parseInt(c,10)==c)return["none"]}for(c=b.length-2;0<=c;c--)a.push(b.slice(c).join("."));b=M.location.hostname;eb.test(b)||vc.test(b)||a.push("none");return a},kc=
|
||||
function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a.split("/").length},le=function(a){a.ta&&J(77);a.na&&J(74);a.pa&&J(73);a.ua&&J(69)},ef=function(a){a.ta&&J(85);a.na&&J(86);a.pa&&J(87)};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=Ca(a);a="__utma"==a?6:2;for(var g=0;g<e.length;g++){var ca=(""+e[g]).split(".");ca.length>=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){if(null==a)var c=a=1;else c=La(a),a=La(D(a,".")?a.substring(1):"."+a);for(var d=0;d<b.length;d++)if(b[d].hash==c||b[d].hash==a)return b[d]};var Jc=new RegExp(/^https?:\/\/([^\/:]+)/),De=O.google_tag_data.glBridge,Kc=RegExp("(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)"),od=RegExp("(.*)([?&#])(?:_gac=[^&#]*)(?:&?)(.*)");function Bc(a){if(a.get(Ze))return J(35),De.generate($e(a));var b=P(a,Q),c=P(a,I)||"";b="_ga=2."+K(pa(c+b,0)+"."+c+"-"+b);(a=af(a))?(J(44),a="&_gac=1."+K([pa(a.qa,0),a.timestamp,a.qa].join("."))):a="";return b+a}
|
||||
function Ic(a,b){var c=new Date,d=O.navigator,e=d.plugins||[];a=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b];for(b=0;b<e.length;++b)a.push(e[b].description);return La(a.join("."))}function pa(a,b){var c=new Date,d=O.navigator,e=c.getHours()+Math.floor((c.getMinutes()+b)/60);return La([a,d.userAgent,d.language||"",c.getTimezoneOffset(),c.getYear(),c.getDate()+Math.floor(e/24),(24+e)%24,(60+c.getMinutes()+b)%60].join("."))}
|
||||
var Dc=function(a){J(48);this.target=a;this.T=!1};Dc.prototype.ca=function(a,b){if(a){if(this.target.get(Ze))return De.decorate($e(this.target),a,b);if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=qd(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return rd(this,a)}if("string"==typeof a)return qd(this,a,b)}};
|
||||
var qd=function(a,b,c){var d=Kc.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));(d=od.exec(b))&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");d=b.indexOf("?");var e=b.indexOf("#");b=c?b+((-1==e?"#":"&")+a):-1==e?b+((-1===d?"?":"&")+a):b.substring(0,e)+(-1===d||d>e?"?":"&")+a+b.substring(e);b=b.replace(/&+_ga=/,"&_ga=");return b=b.replace(RegExp("&+_gac="),"&_gac=")},rd=function(a,b){if(b&&b.action)if("get"==b.method.toLowerCase()){a=a.target.get("linkerParam").split("&");
|
||||
for(var c=0;c<a.length;c++){var d=a[c].split("="),e=d[1];d=d[0];for(var g=b.childNodes||[],ca=!1,l=0;l<g.length;l++)if(g[l].name==d){g[l].setAttribute("value",e);ca=!0;break}ca||(g=M.createElement("input"),g.setAttribute("type","hidden"),g.setAttribute("name",d),g.setAttribute("value",e),b.appendChild(g))}}else"post"==b.method.toLowerCase()&&(b.action=qd(a,b.action))};
|
||||
Dc.prototype.S=function(a,b,c){function d(g){try{g=g||O.event;a:{var ca=g.target||g.srcElement;for(g=100;ca&&0<g;){if(ca.href&&ca.nodeName.match(/^a(?:rea)?$/i)){var l=ca;break a}ca=ca.parentNode;g--}l={}}("http:"==l.protocol||"https:"==l.protocol)&&sd(a,l.hostname||"")&&l.href&&(l.href=qd(e,l.href,b))}catch(k){J(26)}}var e=this;this.target.get(Ze)?De.auto(function(){return $e(e.target)},a,b?"fragment":"",c):(this.T||(this.T=!0,L(M,"mousedown",d,!1),L(M,"keyup",d,!1)),c&&L(M,"submit",function(g){g=
|
||||
g||O.event;if((g=g.target||g.srcElement)&&g.action){var ca=g.action.match(Jc);ca&&sd(a,ca[1])&&rd(e,g)}}))};Dc.prototype.$=function(a){if(a){var b=this,c=b.target.get(F);void 0!==c&&De.passthrough(function(){if(c("analytics_storage"))return{};var d={};return d._ga=b.target.get(Q),d._up="1",d},1,!0)}};function sd(a,b){if(b==M.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1}
|
||||
function ke(a,b){return b!=Ic(a,0)&&b!=Ic(a,-1)&&b!=Ic(a,-2)&&b!=pa(a,0)&&b!=pa(a,-1)&&b!=pa(a,-2)}function $e(a){var b=af(a),c={};c._ga=a.get(Q);c._gid=a.get(I)||void 0;c._gac=b?[b.qa,b.timestamp].join("."):void 0;b=a.get(Ae);a=Ed(a);return c._fplc=b&&"0"!==b?b:a,c}function af(a){function b(e){return void 0==e||""===e?0:Number(e)}var c=a.get(ce);if(c&&a.get(je)){var d=b(a.get(fe));if(1E3*d+b(a.get(he))<=(new Date).getTime())J(76);else return{timestamp:d,qa:c}}};var p=/^(GTM|OPT)-[A-Z0-9]+$/,Ie=/^G-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,Aa=/^https?:\/\/[\w\-.]+\.google.com(:\d+)?\/optimize\/opt-launch\.html\?.*$/,t=function(a){function b(d,e){e&&(c+="&"+d+"="+K(e))}var c=Ge(a.type)+K(a.id);"dataLayer"!=a.B&&b("l",a.B);b("cx",a.context);b("t",a.target);b("cid",a.clientId);b("cidt",a.ka);b("gac",a.la);b("aip",a.ia);a.sync&&b("m","sync");b("cycle",a.G);a.qa&&b("gclid",a.qa);Aa.test(M.referrer)&&b("cb",String(hd()));return c},
|
||||
He=function(a,b){var c=(new Date).getTime();O[a.B]=O[a.B]||[];c={"gtm.start":c};a.sync||(c.event="gtm.js");O[a.B].push(c);2===a.type&&function(d,e,g){O[a.B].push(arguments)}("config",a.id,b)},Ke=function(a,b,c,d){c=c||{};var e=1;Ie.test(b)&&(e=2);var g={id:b,type:e,B:c.dataLayer||"dataLayer",G:!1},ca=void 0;a.get(">m")==b&&(g.G=!0);1===e?(g.ia=!!a.get("anonymizeIp"),g.sync=d,b=String(a.get("name")),"t0"!=b&&(g.target=b),G(String(a.get("trackingId")))||(g.clientId=String(a.get(Q)),g.ka=Number(a.get(n)),
|
||||
c=c.palindrome?r:q,c=(c=M.cookie.replace(/^|(; +)/g,";").match(c))?c.sort().join("").substring(1):void 0,g.la=c,g.qa=E(P(a,kb),"gclid"))):2===e&&(g.context="c",ca={allow_google_signals:a.get(Ud),allow_ad_personalization_signals:a.get(xe)});He(g,ca);return t(g)};var H={},Jd=function(a,b){b||(b=(b=P(a,V))&&"t0"!=b?Wd.test(b)?"_gat_"+Cc(P(a,Na)):"_gat_"+Cc(b):"_gat");this.Y=b},Rd=function(a,b){var c=b.get(Wb);b.set(Wb,function(e){Pd(a,e,ed);Pd(a,e,ia);var g=c(e);Qd(a,e);return g});var d=b.get(Xb);b.set(Xb,function(e){var g=d(e);if(se(e)){J(80);var ca={U:re(e,1),google:re(e,2),count:0};pe("https://stats.g.doubleclick.net/j/collect",ca.U,ca);e.set(ed,"",!0)}return g})},Pd=function(a,b,c){!1===b.get(Ud)||b.get(c)||("1"==Ca(a.Y)[0]?b.set(c,"",!0):b.set(c,""+hd(),
|
||||
!0))},Qd=function(a,b){se(b)&&zc(a.Y,"1",P(b,Yb),P(b,W),P(b,Na),6E4,P(b,Be))},se=function(a){return!!a.get(ed)&&!1!==a.get(Ud)},Ne=function(a){return!H[P(a,Na)]&&void 0===a.get(">m")&&void 0===a.get(fa)&&void 0===a.get(gd)&&void 0===a.get(oe)},re=function(a,b){var c=new ee,d=function(g){$a(g).F&&c.set($a(g).F,a.get(g))};d(hb);d(ib);d(Na);d(Q);d(ed);1==b&&(d(Ad),d(ia),d(I));!1===a.get(xe)&&c.set("npa","1");c.set($a(ld).F,Td(a));var e="";c.map(function(g,ca){e+=K(g)+"=";e+=K(""+ca)+"&"});e+="z="+
|
||||
hd();1==b?e="t=dc&aip=1&_r=3&"+e:2==b&&(e="t=sr&aip=1&_r=4&slf_rd=1&"+e);return e},Me=function(a){if(Ne(a))return H[P(a,Na)]=!0,function(b){if(b&&!H[b]){var c=Ke(a,b);Id(c);H[b]=!0}}},Wd=/^gtm\d+$/;var fd=function(a,b){a=a.model;if(!a.get("dcLoaded")){var c=new $c(Dd(a));c.set(29);a.set(Gd,c.C);b=b||{};var d;b[U]&&(d=Cc(b[U]));b=new Jd(a,d);Rd(b,a);a.set("dcLoaded",!0)}};var Sd=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(ac)){var b=new Jd(a);Pd(b,a,ed);Pd(b,a,ia);Qd(b,a);b=se(a);var c=Ne(a);b&&a.set(Md,1,!0);c&&a.set(Od,1,!0);if(b||c)a.set(ad,"d",!0),J(79),a.set(qe,{U:re(a,1),google:re(a,2),V:Me(a),count:0},!0)}};var Lc=function(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||hd()};var wb=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,pc=function(a){function b(e,g){d.model.data.set(e,g)}function c(e,g){b(e,g);d.filters.add(e)}var d=this;this.model=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,sa(a[Na]));b(U,a[U]);b(W,a[W]||xa());b(Yb,a[Yb]);b(Zb,a[Zb]);b(Hd,a[Hd]);b(Be,a[Be]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(Ad,a[Ad]);b(n,a[n]);b(Kd,a[Kd]);b(je,a[je]);b(Ze,a[Ze]);b(oe,a[oe]);b(Je,a[Je]);b(F,a[F]);b(hb,1);b(ib,"j96");c(Re,Pe);c(Qb,
|
||||
Ma);c(oa,ua);c(dd,cd);c(Rb,Oa);c(md,vb);c(Sb,nc);c(Uc,Yc);c(Tb,Ja);c(Vb,Ta);c(Vc,Hc);c(zd,yd);c(Ld,Sd);c(ze,Fe);c(Wb,Pa);c(Xb,Sa);c(Cd,Fd(this));pd(this.model);td(this.model,a[Q]);this.model.set(jb,Lc())};pc.prototype.get=function(a){return this.model.get(a)};pc.prototype.set=function(a,b){this.model.set(a,b)};
|
||||
pc.prototype.send=function(a){if(!(1>arguments.length)){if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Va],c=arguments;b&&(c=za(me[b]||[],c),c[Va]=b,this.model.set(c,void 0,!0),this.filters.D(this.model),this.model.data.m={})}};pc.prototype.ma=function(a,b){var c=this;u(a,c,b)||(v(a,function(){u(a,c,b)}),y(String(c.get(V)),a,void 0,b,!0))};
|
||||
var td=function(a,b){var c=P(a,U);a.data.set(la,"_ga"==c?"_gid":c+"_gid");if("cookie"==P(a,ac)){hc=!1;c=Ca(P(a,U));c=Xd(a,c);if(!c){c=P(a,W);var d=P(a,$b)||xa();c=Xc("__utma",d,c);void 0!=c?(J(10),c=c.O[1]+"."+c.O[2]):c=void 0}c&&(hc=!0);if(d=c&&!a.get(Hd))if(d=c.split("."),2!=d.length)d=!1;else if(d=Number(d[1])){var e=R(a,Zb);d=d+e<(new Date).getTime()/1E3}else d=!1;d&&(c=void 0);c&&(a.data.set(xd,c),a.data.set(Q,c),(c=uc(a))&&a.data.set(I,c));a.get(je)&&(c=a.get(ce),d=a.get(ie),!c||d&&"aw.ds"!=
|
||||
d)&&(c={},d=(M?df(c):{})[P(a,Na)],le(c),d&&0!=d.length&&(c=d[0],a.data.set(fe,c.timestamp/1E3),a.data.set(ce,c.qa)));a.get(je)&&(c=a.get(Se),d={},e=(M?df(d,"_gac_gb",!0):{})[P(a,Na)],ef(d),e&&0!=e.length&&(d=e[0],e=d.qa,c&&c!==e||(d.labels&&d.labels.length&&(e+="."+d.labels.join(".")),a.data.set(Te,d.timestamp/1E3),a.data.set(Se,e))))}if(a.get(Hd)){c=be("_ga",!!a.get(cc));var g=be("_gl",!!a.get(cc));d=De.get(a.get(cc));e=d._ga;g&&0<g.indexOf("_ga*")&&!e&&J(30);if(b||!a.get(Je))g=!1;else if(g=a.get(F),
|
||||
void 0===g||g("analytics_storage"))g=!1;else{J(84);a.data.set(Le,1);if(g=d._up)if(g=Jc.exec(M.referrer)){g=g[1];var ca=M.location.hostname;g=ca===g||0<=ca.indexOf("."+g)||0<=g.indexOf("."+ca)?!0:!1}else g=!1;g=g?!0:!1}ca=d.gclid;var l=d._gac;if(c||e||ca||l)if(c&&e&&J(36),a.get(bc)||ye(a.get(Kd))||g){if(e&&(J(38),a.data.set(Q,e),d._gid&&(J(51),a.data.set(I,d._gid))),ca?(J(82),a.data.set(ce,ca),d.gclsrc&&a.data.set(ie,d.gclsrc)):l&&(e=l.split("."))&&2===e.length&&(J(37),a.data.set(ce,e[0]),a.data.set(fe,
|
||||
e[1])),(d=d._fplc)&&P(a,oe)&&(J(83),a.data.set(Ae,d)),c)b:if(d=c.indexOf("."),-1==d)J(22);else{e=c.substring(0,d);g=c.substring(d+1);d=g.indexOf(".");c=g.substring(0,d);g=g.substring(d+1);if("1"==e){if(d=g,ke(d,c)){J(23);break b}}else if("2"==e){d=g.indexOf("-");e="";0<d?(e=g.substring(0,d),d=g.substring(d+1)):d=g.substring(1);if(ke(e+d,c)){J(53);break b}e&&(J(2),a.data.set(I,e))}else{J(22);break b}J(11);a.data.set(Q,d);if(c=be("_gac",!!a.get(cc)))c=c.split("."),"1"!=c[0]||4!=c.length?J(72):ke(c[3],
|
||||
c[1])?J(71):(a.data.set(ce,c[3]),a.data.set(fe,c[2]),J(70))}}else J(21)}b&&(J(9),a.data.set(Q,K(b)));a.get(Q)||(b=(b=O.gaGlobal)&&b.from_cookie&&"cookie"!==P(a,ac)?void 0:(b=b&&b.vid)&&-1!==b.search(jd)?b:void 0,b?(J(17),a.data.set(Q,b)):(J(8),a.data.set(Q,ra())));a.get(I)||(J(3),a.data.set(I,ra()));mc(a);b=O.gaGlobal=O.gaGlobal||{};c=P(a,Q);a=c===P(a,xd);if(void 0==b.vid||a&&!b.from_cookie)b.vid=c,b.from_cookie=a},pd=function(a){var b=O.navigator,c=O.screen,d=M.location,e=a.set;a:{var g=!!a.get(ec),
|
||||
ca=!!a.get(Kd);var l=M.referrer;if(/^(https?|android-app):\/\//i.test(l)){if(g)break a;g="//"+M.location.hostname;if(!de(l,g)){if(ca&&(ca=g.replace(/\./g,"-")+".cdn.ampproject.org",de(l,ca))){l=void 0;break a}break a}}l=void 0}e.call(a,lb,l);d&&(e=d.pathname||"","/"!=e.charAt(0)&&(J(31),e="/"+e),a.set(kb,d.protocol+"//"+d.hostname+e+d.search));c&&a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");c=M.documentElement;l=(e=M.body)&&e.clientWidth&&e.clientHeight;ca=[];c&&c.clientWidth&&
|
||||
c.clientHeight&&("CSS1Compat"===M.compatMode||!l)?ca=[c.clientWidth,c.clientHeight]:l&&(ca=[e.clientWidth,e.clientHeight]);c=0>=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);c=a.set;var k;if((e=(e=O.navigator)?e.plugins:null)&&e.length)for(l=0;l<e.length&&!k;l++)ca=e[l],-1<ca.name.indexOf("Shockwave Flash")&&(k=ca.description);if(!k)try{var w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");k=w.GetVariable("$version")}catch(Ce){}if(!k)try{w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),k=
|
||||
"WIN 6,0,21,0",w.AllowScriptAccess="always",k=w.GetVariable("$version")}catch(Ce){}if(!k)try{w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),k=w.GetVariable("$version")}catch(Ce){}k&&(w=k.match(/[\d]+/g))&&3<=w.length&&(k=w[0]+"."+w[1]+" r"+w[2]);c.call(a,tb,k||void 0);a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase());a.data.set(ce,be("gclid",!0));a.data.set(ie,be("gclsrc",!0));
|
||||
a.data.set(fe,Math.round((new Date).getTime()/1E3));a.get(ce)||(a.data.set(Se,be("wbraid",!0)),a.data.set(Te,Math.round((new Date).getTime()/1E3)));if(d&&a.get(cc)&&(b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(k=0;k<b.length;++k)(D(b[k],"utm_id")||D(b[k],"utm_campaign")||D(b[k],"utm_source")||D(b[k],"utm_medium")||D(b[k],"utm_term")||D(b[k],"utm_content")||D(b[k],"gclid")||D(b[k],"dclid")||D(b[k],"gclsrc")||D(b[k],"wbraid"))&&d.push(b[k]);0<d.length&&(b="#"+d.join("&"),a.set(kb,a.get(kb)+b))}},
|
||||
me={pageview:[mb],event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]};var rc=function(a){if("prerender"==M.visibilityState)return!1;a();return!0},z=function(a){if(!rc(a)){J(16);var b=!1,c=function(){if(!b&&rc(a)){b=!0;var d=c,e=M;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};L(M,"visibilitychange",c)}};var te=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,sc=function(a){if(ea(a[0]))this.u=a[0];else{var b=te.exec(a[0]);null!=b&&4==b.length&&(this.da=b[1]||"t0",this.K=b[2]||"",this.methodName=b[3],this.aa=[].slice.call(a,1),this.K||(this.A="create"==this.methodName,this.i="require"==this.methodName,this.g="provide"==this.methodName,this.ba="remove"==this.methodName),this.i&&(3<=this.aa.length?(this.X=this.aa[1],this.W=this.aa[2]):this.aa[1]&&(qa(this.aa[1])?this.X=this.aa[1]:this.W=this.aa[1])));b=a[1];a=a[2];
|
||||
if(!this.methodName)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort";if(this.g&&(!qa(b)||""==b||!ea(a)))throw"abort";if(ud(this.da)||ud(this.K))throw"abort";if(this.g&&"t0"!=this.da)throw"abort";}};function ud(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Yd,Zd,$d,A;Yd=new ee;$d=new ee;A=new ee;Zd={ec:45,ecommerce:46,linkid:47};
|
||||
var u=function(a,b,c){b==N||b.get(V);var d=Yd.get(a);if(!ea(d))return!1;b.plugins_=b.plugins_||new ee;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},y=function(a,b,c,d,e){if(!ea(Yd.get(b))&&!$d.get(b)){Zd.hasOwnProperty(b)&&J(Zd[b]);var g=void 0;if(p.test(b)){J(52);a=N.j(a);if(!a)return!0;c=Ke(a.model,b,d,e);g=function(){Z.D(["provide",b,function(){}]);var l=O[d&&d.dataLayer||"dataLayer"];l&&l.hide&&ea(l.hide.end)&&l.hide[b]&&(l.hide.end(),l.hide.end=void 0)}}!c&&Zd.hasOwnProperty(b)?
|
||||
(J(39),c=b+".js"):J(43);if(c){var ca;d&&(ca=d[oe]);qa(ca)||(ca=void 0);a=ae(cf(c,ca));!ca||ne(a.protocol)&&B(a)||(a=ae(cf(c)));ne(a.protocol)&&B(a)&&(Id(a.url,void 0,e,void 0,g),$d.set(b,!0))}}},v=function(a,b){var c=A.get(a)||[];c.push(b);A.set(a,c)},C=function(a,b){Yd.set(a,b);b=A.get(a)||[];for(var c=0;c<b.length;c++)b[c]();A.set(a,[])},B=function(a){var b=ae(M.location.href);if(D(a.url,Ge(1))||D(a.url,Ge(2)))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==
|
||||
b.host&&a.port==b.port||jf&&(b=M.createElement("a"),b.href=jf,b=kf(b),a.host===b[0]&&a.port===b[1]))return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==a.host&&(a.port||b)==b&&D(a.path,"/plugins/")?!0:!1},ne=function(a){var b=M.location.protocol;return"https:"==a||a==b?!0:"http:"!=a?!1:"http:"==b},kf=function(a){var b=a.hostname||"",c=0<=b.indexOf("]");b=b.split(c?"]":":")[0].toLowerCase();c&&(b+="]");c=(a.protocol||"").toLowerCase();c=1*a.port||("http:"==c?80:"https:"==c?443:
|
||||
"");a=a.pathname||"";D(a,"/")||(a="/"+a);return[b,""+c,a]},ae=function(a){var b=M.createElement("a");b.href=M.location.href;var c=(b.protocol||"").toLowerCase(),d=kf(b),e=b.search||"",g=c+"//"+d[0]+(d[1]?":"+d[1]:"");D(a,"//")?a=c+a:D(a,"/")?a=g+a:!a||D(a,"?")?a=g+d[2]+(a||e):0>a.split("/")[0].indexOf(":")&&(a=g+d[2].substring(0,d[2].lastIndexOf("/"))+"/"+a);b.href=a;c=kf(b);return{protocol:(b.protocol||"").toLowerCase(),host:c[0],port:c[1],path:c[2],query:b.search||"",url:a||""}},cf=function(a,b){return a&&
|
||||
0<=a.indexOf("/")?a:(b||bd(!1))+"/plugins/ua/"+a};var Z={ga:function(){Z.fa=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments);b=Z.fa.concat(b);for(Z.fa=[];0<b.length&&!Z.v(b[0])&&!(b.shift(),0<Z.fa.length););Z.fa=Z.fa.concat(b)};Z.ra=function(a){N.q&&(300===N.q.length&&(N.q.shift(),N.qd++),N.q.push(a))};Z.J=function(a){for(var b=[],c=0;c<arguments.length;c++)try{var d=new sc(arguments[c]);d.g?C(d.aa[0],d.aa[1]):(d.i&&(d.ha=y(d.da,d.aa[0],d.X,d.W)),b.push(d));Z.ra(arguments[c])}catch(e){}return b};
|
||||
Z.v=function(a){try{if(a.u)a.u.call(O,N.j("t0"));else{var b=a.da==gb?N:N.j(a.da);if(a.A){if("t0"==a.da&&(b=N.create.apply(N,a.aa),null===b))return!0}else if(a.ba)N.remove(a.da);else if(b)if(a.i){if(a.ha&&(a.ha=y(a.da,a.aa[0],a.X,a.W)),!u(a.aa[0],b,a.W))return!0}else if(a.K){var c=a.methodName,d=a.aa,e=b.plugins_.get(a.K);e[c].apply(e,d)}else b[a.methodName].apply(b,a.aa)}}catch(g){}};var N=function(a){J(1);Z.D.apply(Z,[arguments])};N.h={};N.P=[];N.L=0;N.ya=0;N.answer=42;var we=[Na,W,V];N.create=function(a){var b=za(we,[].slice.call(arguments));b[V]||(b[V]="t0");var c=""+b[V];if(N.h[c])return N.h[c];if(da(b))return null;b=new pc(b);N.h[c]=b;N.P.push(b);c=qc().tracker_created;if(ea(c))try{c(b)}catch(d){}return b};N.remove=function(a){for(var b=0;b<N.P.length;b++)if(N.P[b].get(V)==a){N.P.splice(b,1);N.h[a]=null;break}};N.j=function(a){return N.h[a]};N.getAll=function(){return N.P.slice(0)};
|
||||
N.N=function(){"ga"!=gb&&J(49);var a=O[gb];if(!a||42!=a.answer){N.L=a&&a.l;N.ya=1*new Date;N.loaded=!0;var b=a&&a.q,c=ka(b);a=[];c?a=b.slice(0):J(50);N.q=c?b:[];N.q.splice(0);N.qd=0;b=O[gb]=N;X("create",b,b.create);X("remove",b,b.remove);X("getByName",b,b.j,5);X("getAll",b,b.getAll,6);b=pc.prototype;X("get",b,b.get,7);X("set",b,b.set,4);X("send",b,b.send);X("requireSync",b,b.ma);b=Ya.prototype;X("get",b,b.get);X("set",b,b.set);if("https:"!=M.location.protocol&&!Ba){a:{b=M.getElementsByTagName("script");
|
||||
for(c=0;c<b.length&&100>c;c++){var d=b[c].src;if(d&&0==d.indexOf(bd(!0)+"/analytics")){b=!0;break a}}b=!1}b&&(Ba=!0)}(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);X("passthrough",b,b.$,25);C("displayfeatures",fd);C("adfeatures",fd);Z.D.apply(N,a)}};var gf=N.N,hf=O[gb];hf&&hf.r?gf():z(gf);z(function(){Z.D(["provide","render",ua])});})(window);
|
||||
1
public/frontend/web/scripts/map/eventemitter3.min.js
vendored
Executable file
1
public/frontend/web/scripts/map/eventemitter3.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EventEmitter3=e()}}(function(){return function i(s,f,c){function u(t,e){if(!f[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(a)return a(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=f[t]={exports:{}};s[t][0].call(o.exports,function(e){return u(s[t][1][e]||e)},o,o.exports,i,s,f,c)}return f[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)u(c[e]);return u}({1:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,v="~";function o(){}function f(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var i=new f(n,r||e,o),s=v?v+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],i]:e._events[s].push(i):(e._events[s]=i,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(v=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(v?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=v?v+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,i=new Array(o);r<o;r++)i[r]=n[r].fn;return i},s.prototype.listenerCount=function(e){var t=v?v+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,o,i){var s=v?v+e:e;if(!this._events[s])return!1;var f,c,u=this._events[s],a=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),a){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,i),!0}for(c=1,f=new Array(a-1);c<a;c++)f[c-1]=arguments[c];u.fn.apply(u.context,f)}else{var l,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),a){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!f)for(l=1,f=new Array(a-1);l<a;l++)f[l-1]=arguments[l];u[c].fn.apply(u[c].context,f)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var o=v?v+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var i=this._events[o];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||u(this,o);else{for(var s=0,f=[],c=i.length;s<c;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&f.push(i[s]);f.length?this._events[o]=1===f.length?f[0]:f:u(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=v?v+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=v,s.EventEmitter=s,void 0!==t&&(t.exports=s)},{}]},{},[1])(1)});
|
||||
4
public/frontend/web/scripts/map/jquery.min.js
vendored
Executable file
4
public/frontend/web/scripts/map/jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
258
public/frontend/web/scripts/map/js
Executable file
258
public/frontend/web/scripts/map/js
Executable file
@@ -0,0 +1,258 @@
|
||||
|
||||
// Copyright 2012 Google Inc. All rights reserved.
|
||||
(function(){
|
||||
|
||||
var data = {
|
||||
"resource": {
|
||||
"version":"1",
|
||||
|
||||
"macros":[{"function":"__e"},{"function":"__cid"}],
|
||||
"tags":[{"function":"__rep","once_per_event":true,"vtp_containerId":["macro",1],"tag_id":1}],
|
||||
"predicates":[{"function":"_eq","arg0":["macro",0],"arg1":"gtm.js"}],
|
||||
"rules":[[["if",0],["add",0]]]
|
||||
},
|
||||
"runtime":[]
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Copyright The Closure Library Authors.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var h,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ba="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ca;if("function"==typeof Object.setPrototypeOf)ca=Object.setPrototypeOf;else{var da;a:{var ea={a:!0},fa={};try{fa.__proto__=ea;da=fa.a;break a}catch(a){}da=!1}ca=da?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
||||
var ha=ca,ja=function(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ha)ha(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Vj=b.prototype},ka=this||self,la=function(a){return a};var ma=function(){},na=function(a){return"function"===typeof a},k=function(a){return"string"===typeof a},oa=function(a){return"number"===typeof a&&!isNaN(a)},qa=Array.isArray,sa=function(a,b){if(a&&qa(a))for(var c=0;c<a.length;c++)if(a[c]&&b(a[c]))return a[c]},ua=function(a,b){if(!oa(a)||!oa(b)||a>b)a=0,b=2147483647;return Math.floor(Math.random()*(b-a+1)+a)},wa=function(a,b){for(var c=new va,d=0;d<a.length;d++)c.set(a[d],!0);for(var e=0;e<b.length;e++)if(c.get(b[e]))return!0;return!1},xa=function(a,
|
||||
b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(c,a[c])},ya=function(a){return!!a&&("[object Arguments]"===Object.prototype.toString.call(a)||Object.prototype.hasOwnProperty.call(a,"callee"))},za=function(a){return Math.round(Number(a))||0},Aa=function(a){return"false"===String(a).toLowerCase()?!1:!!a},Ba=function(a){var b=[];if(qa(a))for(var c=0;c<a.length;c++)b.push(String(a[c]));return b},Ca=function(a){return a?a.replace(/^\s+|\s+$/g,""):""},Da=function(){return new Date(Date.now())},
|
||||
Ea=function(){return Da().getTime()},va=function(){this.prefix="gtm.";this.values={}};va.prototype.set=function(a,b){this.values[this.prefix+a]=b};va.prototype.get=function(a){return this.values[this.prefix+a]};
|
||||
var Ga=function(a,b,c){return a&&a.hasOwnProperty(b)?a[b]:c},Ha=function(a){var b=a;return function(){if(b){var c=b;b=void 0;try{c()}catch(d){}}}},Ia=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Ja=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1},Ka=function(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]),c.push.apply(c,b[a[d]]||[]);return c},La=function(a,b){for(var c={},d=c,e=a.split("."),f=0;f<e.length-1;f++)d=d[e[f]]={};d[e[e.length-1]]=b;return c},Ma=/^\w{1,9}$/,
|
||||
Na=function(a,b){a=a||{};b=b||",";var c=[];xa(a,function(d,e){Ma.test(d)&&e&&c.push(d)});return c.join(b)};var Oa,Pa=function(){if(void 0===Oa){var a=null,b=ka.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:la,createScript:la,createScriptURL:la})}catch(c){ka.console&&ka.console.error(c.message)}Oa=a}else Oa=a}return Oa};var Ra=function(a,b){this.m=b===Qa?a:""};Ra.prototype.toString=function(){return this.m+""};var Qa={};var Sa=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Ta(){var a=ka.navigator;if(a){var b=a.userAgent;if(b)return b}return""}function Ua(a){return-1!=Ta().indexOf(a)};var Va={},Wa=function(a,b,c){this.m=c===Va?a:""};Wa.prototype.toString=function(){return this.m.toString()};var Xa=function(a){return a instanceof Wa&&a.constructor===Wa?a.m:"type_error:SafeHtml"},Ya=function(a){var b=Pa(),c=b?b.createHTML(a):a;return new Wa(c,null,Va)};/*
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
function Za(a){if("script"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeScript.");if("style"===a.tagName.toLowerCase())throw Error("Use setTextContent with a SafeStyleSheet.");};var A=window,G=document,$a=navigator,ab=G.currentScript&&G.currentScript.src,bb=function(a,b){var c=A[a];A[a]=void 0===c?b:c;return A[a]},cb=function(a,b){b&&(a.addEventListener?a.onload=b:a.onreadystatechange=function(){a.readyState in{loaded:1,complete:1}&&(a.onreadystatechange=null,b())})},db={async:1,nonce:1,onerror:1,onload:1,src:1,type:1},eb={onload:1,src:1,width:1,height:1,style:1};function fb(a,b,c){b&&xa(b,function(d,e){d=d.toLowerCase();c.hasOwnProperty(d)||a.setAttribute(d,e)})}
|
||||
var gb=function(a,b,c,d){var e=G.createElement("script");fb(e,d,db);e.type="text/javascript";e.async=!0;var f,g=Pa(),l=g?g.createScriptURL(a):a;f=new Ra(l,Qa);e.src=f instanceof Ra&&f.constructor===Ra?f.m:"type_error:TrustedResourceUrl";var m,n,p,q=null==(p=(n=(e.ownerDocument&&e.ownerDocument.defaultView||window).document).querySelector)?void 0:p.call(n,"script[nonce]");(m=q?q.nonce||q.getAttribute("nonce")||"":"")&&e.setAttribute("nonce",m);cb(e,b);c&&(e.onerror=c);var r=G.getElementsByTagName("script")[0]||
|
||||
G.body||G.head;r.parentNode.insertBefore(e,r);return e},ib=function(){if(ab){var a=ab.toLowerCase();if(0===a.indexOf("https://"))return 2;if(0===a.indexOf("http://"))return 3}return 1},jb=function(a,b,c,d,e){var f=e,g=!1;f||(f=G.createElement("iframe"),g=!0);fb(f,c,eb);d&&xa(d,function(m,n){f.dataset[m]=n});f.height="0";f.width="0";f.style.display="none";f.style.visibility="hidden";if(g){var l=G.body&&G.body.lastChild||G.body||G.head;l.parentNode.insertBefore(f,l)}cb(f,b);void 0!==a&&(f.src=a);return f},
|
||||
kb=function(a,b,c){var d=new Image(1,1);d.onload=function(){d.onload=null;b&&b()};d.onerror=function(){d.onerror=null;c&&c()};d.src=a;return d},lb=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},mb=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},H=function(a){A.setTimeout(a,0)},nb=function(a,b){return a&&b&&a.attributes&&a.attributes[b]?a.attributes[b].value:null},ob=function(a){var b=
|
||||
a.innerText||a.textContent||"";b&&" "!=b&&(b=b.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""));b&&(b=b.replace(/(\xa0+|\s{2,}|\n|\r\t)/g," "));return b},pb=function(a){var b=G.createElement("div"),c=b,d=Ya("A<div>"+a+"</div>");void 0!==c.tagName&&Za(c);c.innerHTML=Xa(d);b=b.lastChild;for(var e=[];b.firstChild;)e.push(b.removeChild(b.firstChild));return e},qb=function(a,b,c){c=c||100;for(var d={},e=0;e<b.length;e++)d[b[e]]=!0;for(var f=a,g=0;f&&g<=c;g++){if(d[String(f.tagName).toLowerCase()])return f;f=f.parentElement}return null},
|
||||
rb=function(a){var b;try{b=$a.sendBeacon&&$a.sendBeacon(a)}catch(c){}b||kb(a)},sb=function(a,b){var c=a[b];c&&"string"===typeof c.animVal&&(c=c.animVal);return c},tb=function(a){var b=G.featurePolicy;return b&&na(b.allowsFeature)?b.allowsFeature(a):!1};/*
|
||||
jQuery (c) 2005, 2012 jQuery Foundation, Inc. jquery.org/license. */
|
||||
var ub=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/,vb=function(a){if(null==a)return String(a);var b=ub.exec(Object.prototype.toString.call(Object(a)));return b?b[1].toLowerCase():"object"},wb=function(a,b){return Object.prototype.hasOwnProperty.call(Object(a),b)},xb=function(a){if(!a||"object"!=vb(a)||a.nodeType||a==a.window)return!1;try{if(a.constructor&&!wb(a,"constructor")&&!wb(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var b in a);return void 0===
|
||||
b||wb(a,b)},J=function(a,b){var c=b||("array"==vb(a)?[]:{}),d;for(d in a)if(wb(a,d)){var e=a[d];"array"==vb(e)?("array"!=vb(c[d])&&(c[d]=[]),c[d]=J(e,c[d])):xb(e)?(xb(c[d])||(c[d]={}),c[d]=J(e,c[d])):c[d]=e}return c};var yb=function(a){if(void 0===a||qa(a)||xb(a))return!0;switch(typeof a){case "boolean":case "number":case "string":case "function":return!0}return!1};var zb=function(){var a=function(b){return{toString:function(){return b}}};return{ih:a("consent"),jh:a("consent_always_fire"),nf:a("convert_case_to"),pf:a("convert_false_to"),qf:a("convert_null_to"),rf:a("convert_true_to"),sf:a("convert_undefined_to"),Fj:a("debug_mode_metadata"),sb:a("function"),Sh:a("instance_name"),Wh:a("live_only"),Xh:a("malware_disabled"),Yh:a("metadata"),ci:a("original_activity_id"),Kj:a("original_vendor_template_id"),Jj:a("once_on_load"),bi:a("once_per_event"),Uf:a("once_per_load"),
|
||||
Mj:a("priority_override"),Nj:a("respected_consent_types"),Yf:a("setup_tags"),Zf:a("tag_id"),$f:a("teardown_tags")}}();var Vb;
|
||||
var Wb=[],Xb=[],Yb=[],Zb=[],ac=[],bc={},cc,dc,ec,fc=function(a,b){var c=a["function"],d=b&&b.event;if(!c)throw Error("Error: No function name given for function call.");var e=bc[c],f={},g;for(g in a)if(a.hasOwnProperty(g))if(0===g.indexOf("vtp_"))e&&d&&d.og&&d.og(a[g]),f[void 0!==e?g:g.substr(4)]=a[g];else if(g===zb.jh.toString()&&a[g]){}e&&d&&d.ng&&(f.vtp_gtmCachedValues=d.ng);
|
||||
return void 0!==e?e(f):Vb(c,f,b)},hc=function(a,b,c){c=c||[];var d={},e;for(e in a)a.hasOwnProperty(e)&&(d[e]=gc(a[e],b,c));return d},gc=function(a,b,c){if(qa(a)){var d;switch(a[0]){case "function_id":return a[1];case "list":d=[];for(var e=1;e<a.length;e++)d.push(gc(a[e],b,c));return d;case "macro":var f=a[1];if(c[f])return;var g=Wb[f];if(!g||b.Te(g))return;c[f]=!0;try{var l=hc(g,b,c);l.vtp_gtmEventId=b.id;d=fc(l,{event:b,index:f,type:2});ec&&(d=ec.ri(d,l))}catch(x){b.Hg&&b.Hg(x,Number(f)),d=!1}c[f]=
|
||||
!1;return d;case "map":d={};for(var m=1;m<a.length;m+=2)d[gc(a[m],b,c)]=gc(a[m+1],b,c);return d;case "template":d=[];for(var n=!1,p=1;p<a.length;p++){var q=gc(a[p],b,c);dc&&(n=n||q===dc.od);d.push(q)}return dc&&n?dc.xi(d):d.join("");case "escape":d=gc(a[1],b,c);if(dc&&qa(a[1])&&"macro"===a[1][0]&&dc.Si(a))return dc.fj(d);d=String(d);for(var r=2;r<a.length;r++)Ab[a[r]]&&(d=Ab[a[r]](d));return d;case "tag":var u=a[1];if(!Zb[u])throw Error("Unable to resolve tag reference "+u+".");return d={vg:a[2],
|
||||
index:u};case "zb":var t={arg0:a[2],arg1:a[3],ignore_case:a[5]};t["function"]=a[1];var v=ic(t,b,c),y=!!a[4];return y||2!==v?y!==(1===v):null;default:throw Error("Attempting to expand unknown Value type: "+a[0]+".");}}return a},ic=function(a,b,c){try{return cc(hc(a,b,c))}catch(d){JSON.stringify(a)}return 2};var lc=function(a){function b(r){for(var u=0;u<r.length;u++)d[r[u]]=!0}for(var c=[],d=[],e=jc(a),f=0;f<Xb.length;f++){var g=Xb[f],l=kc(g,e);if(l){for(var m=g.add||[],n=0;n<m.length;n++)c[m[n]]=!0;b(g.block||[])}else null===l&&b(g.block||[]);}for(var p=[],q=0;q<Zb.length;q++)c[q]&&!d[q]&&(p[q]=!0);return p},kc=function(a,b){for(var c=a["if"]||[],d=0;d<c.length;d++){var e=b(c[d]);if(0===e)return!1;if(2===e)return null}for(var f=
|
||||
a.unless||[],g=0;g<f.length;g++){var l=b(f[g]);if(2===l)return null;if(1===l)return!1}return!0},jc=function(a){var b=[];return function(c){void 0===b[c]&&(b[c]=ic(Yb[c],a));return b[c]}};var mc={ri:function(a,b){b[zb.nf]&&"string"===typeof a&&(a=1==b[zb.nf]?a.toLowerCase():a.toUpperCase());b.hasOwnProperty(zb.qf)&&null===a&&(a=b[zb.qf]);b.hasOwnProperty(zb.sf)&&void 0===a&&(a=b[zb.sf]);b.hasOwnProperty(zb.rf)&&!0===a&&(a=b[zb.rf]);b.hasOwnProperty(zb.pf)&&!1===a&&(a=b[zb.pf]);return a}};
|
||||
|
||||
var O={rb:"_ee",Ec:"_syn_or_mod",Oj:"_uei",Bc:"_eu",Lj:"_pci",Kb:"event_callback",dd:"event_timeout",Aa:"gtag.config",Ia:"gtag.get",ma:"purchase",Hb:"refund",lb:"begin_checkout",Eb:"add_to_cart",Fb:"remove_from_cart",sh:"view_cart",uf:"add_to_wishlist",na:"view_item",Gb:"view_promotion",Vd:"select_promotion",Ud:"select_item",nb:"view_item_list",tf:"add_payment_info",rh:"add_shipping_info",Ra:"value_key",ab:"value_callback",W:"allow_ad_personalization_signals",xc:"restricted_data_processing",cc:"allow_google_signals",
|
||||
ra:"cookie_expires",Jb:"cookie_update",yc:"session_duration",hd:"session_engaged_time",bd:"engagement_time_msec",Ea:"user_properties",va:"transport_url",aa:"ads_data_redaction",wa:"user_data",qc:"first_party_collection",D:"ad_storage",M:"analytics_storage",kf:"region",lf:"wait_for_update",qa:"conversion_linker",Ja:"conversion_cookie_prefix",fa:"value",ca:"currency",Pf:"trip_type",X:"items",Gf:"passengers",Yd:"allow_custom_scripts",qb:"session_id",Lf:"quantity",fb:"transaction_id",eb:"language",ad:"country",
|
||||
$c:"allow_enhanced_conversions",ce:"aw_merchant_id",ae:"aw_feed_country",be:"aw_feed_language",$d:"discount",T:"developer_id",Df:"global_developer_id_string",Af:"event_developer_id_string",jd:"delivery_postal_code",je:"estimated_delivery_date",he:"shipping",oe:"new_customer",de:"customer_lifetime_value",ie:"enhanced_conversions",bc:"page_view",ja:"linker",N:"domains",Mb:"decorate_forms",zf:"enhanced_conversions_automatic_settings",zh:"auto_detection_enabled",Bf:"ga_temp_client_id",Wd:"user_engagement",
|
||||
mh:"app_remove",nh:"app_store_refund",oh:"app_store_subscription_cancel",ph:"app_store_subscription_convert",qh:"app_store_subscription_renew",th:"first_open",uh:"first_visit",vh:"in_app_purchase",wh:"session_start",xh:"allow_display_features",Qa:"campaign",fc:"campaign_content",hc:"campaign_id",ic:"campaign_medium",jc:"campaign_name",kc:"campaign_source",mc:"campaign_term",Ba:"client_id",ia:"cookie_domain",Ib:"cookie_name",Za:"cookie_path",Ka:"cookie_flags",nc:"custom_map",me:"groups",Ff:"non_interaction",
|
||||
Sa:"page_location",pe:"page_path",La:"page_referrer",wc:"page_title",sa:"send_page_view",Nb:"send_to",zc:"session_engaged",oc:"euid_logged_in_state",Ac:"session_number",Ph:"tracking_id",hb:"url_passthrough",Lb:"accept_incoming",vc:"url_position",Jf:"phone_conversion_number",Hf:"phone_conversion_callback",If:"phone_conversion_css_class",Kf:"phone_conversion_options",Kh:"phone_conversion_ids",Jh:"phone_conversion_country_code",ob:"aw_remarketing",Zd:"aw_remarketing_only",Xd:"gclid",yh:"auid",Eh:"affiliation",
|
||||
yf:"tax",fe:"list_name",xf:"checkout_step",wf:"checkout_option",Fh:"coupon",Gh:"promotions",Da:"user_id",Nh:"retoken",Ca:"cookie_prefix",vf:"disable_merchant_reported_purchases",Dh:"dc_natural_search",Ch:"dc_custom_params",Ef:"method",Oh:"search_term",Bh:"content_type",Ih:"optimize_id",Hh:"experiments",cb:"google_signals"};O.fd="google_tld";O.ld="update";O.ke="firebase_id";
|
||||
O.sc="ga_restrict_domain";O.cd="event_settings";O.ee="dynamic_event_settings";O.Ob="user_data_settings";O.Nf="screen_name";O.se="screen_resolution";O.pb="_x_19";O.$a="enhanced_client_id";O.ed="_x_20";O.ne="internal_traffic_results";O.kd="traffic_type";O.gd="referral_exclusion_definition";O.uc="ignore_referrer";O.Ah="content_group";O.oa="allow_interest_groups";var Lc={};O.Sf=Object.freeze((Lc[O.tf]=1,Lc[O.rh]=1,Lc[O.Eb]=1,Lc[O.Fb]=1,Lc[O.sh]=1,Lc[O.lb]=1,Lc[O.Ud]=1,Lc[O.nb]=1,Lc[O.Vd]=1,Lc[O.Gb]=1,Lc[O.ma]=1,Lc[O.Hb]=1,Lc[O.na]=1,Lc[O.uf]=1,Lc));O.ue=Object.freeze([O.W,O.cc,O.Jb]);O.$h=Object.freeze([].concat(O.ue));O.ve=Object.freeze([O.ra,O.dd,O.yc,O.hd,O.bd]);O.ai=Object.freeze([].concat(O.ve));
|
||||
var Mc={};O.Sd=(Mc[O.D]="1",Mc[O.M]="2",Mc);var Qc={wi:"CN",nj:""};var Rc={},Sc=function(a,b){Rc[a]=Rc[a]||[];Rc[a][b]=!0},Tc=function(a){for(var b=[],c=Rc[a]||[],d=0;d<c.length;d++)c[d]&&(b[Math.floor(d/6)]^=1<<d%6);for(var e=0;e<b.length;e++)b[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[e]||0);return b.join("")},Uc=function(){for(var a=[],b=Rc.GA4_EVENT||[],c=0;c<b.length;c++)b[c]&&a.push(c);return 0<a.length?a:void 0};var Q=function(a){Sc("GTM",a)};var Vc=new function(a,b){this.m=a;this.defaultValue=void 0===b?!1:b}(1933);var Xc=function(){var a=Wc,b="Re";if(a.Re&&a.hasOwnProperty(b))return a.Re;var c=new a;a.Re=c;a.hasOwnProperty(b);return c};var Wc=function(){var a={};this.m=function(){var b=Vc.m,c=Vc.defaultValue;return null!=a[b]?a[b]:c};this.o=function(){a[Vc.m]=!0}};var Yc=[];function Zc(){var a=bb("google_tag_data",{});a.ics||(a.ics={entries:{},set:$c,update:ad,addListener:bd,notifyListeners:cd,active:!1,usedDefault:!1,usedUpdate:!1,accessedDefault:!1,accessedAny:!1,wasSetLate:!1});return a.ics}
|
||||
function $c(a,b,c,d,e,f){var g=Zc();!g.usedDefault&&g.usedUpdate&&(g.wasSetLate=!0);g.usedDefault||!g.accessedDefault&&!g.accessedAny||(g.wasSetLate=!0);g.active=!0;g.usedDefault=!0;if(void 0!=b){var l=g.entries,m=l[a]||{},n=m.region,p=c&&k(c)?c.toUpperCase():void 0;d=d.toUpperCase();e=e.toUpperCase();if(""===d||p===e||(p===d?n!==e:!p&&!n)){var q=!!(f&&0<f&&void 0===m.update),r={region:p,initial:"granted"===b,update:m.update,quiet:q};if(""!==d||!1!==m.initial)l[a]=r;q&&A.setTimeout(function(){l[a]===
|
||||
r&&r.quiet&&(r.quiet=!1,dd(a),cd(),Sc("TAGGING",2))},f)}}}function ad(a,b){var c=Zc();c.usedDefault||c.usedUpdate||!c.accessedAny||(c.wasSetLate=!0);c.active=!0;c.usedUpdate=!0;if(void 0!=b){var d=ed(a),e=c.entries,f=e[a]=e[a]||{};f.update="granted"===b;var g=ed(a);f.quiet?(f.quiet=!1,dd(a)):g!==d&&dd(a)}}function bd(a,b){Yc.push({Je:a,Fi:b})}function dd(a){for(var b=0;b<Yc.length;++b){var c=Yc[b];qa(c.Je)&&-1!==c.Je.indexOf(a)&&(c.Mg=!0)}}
|
||||
function cd(a,b){for(var c=0;c<Yc.length;++c){var d=Yc[c];if(d.Mg){d.Mg=!1;try{d.Fi({consentEventId:a,consentPriorityId:b})}catch(e){}}}}
|
||||
var ed=function(a){var b=Zc();b.accessedAny=!0;var c=b.entries[a]||{};return void 0!==c.update?c.update:c.initial},fd=function(a){var b=Zc();b.accessedDefault=!0;return(b.entries[a]||{}).initial},gd=function(a){var b=Zc();b.accessedAny=!0;return!(b.entries[a]||{}).quiet},hd=function(){if(!Xc().m())return!1;var a=Zc();a.accessedAny=!0;return a.active},id=function(){var a=Zc();a.accessedDefault=!0;return a.usedDefault},jd=function(a,b){Zc().addListener(a,b)},kd=function(a,b){Zc().notifyListeners(a,
|
||||
b)},ld=function(a,b){function c(){for(var e=0;e<b.length;e++)if(!gd(b[e]))return!0;return!1}if(c()){var d=!1;jd(b,function(e){d||c()||(d=!0,a(e))})}else a({})},md=function(a,b){function c(){for(var f=[],g=0;g<d.length;g++){var l=d[g];!1===ed(l)||e[l]||(f.push(l),e[l]=!0)}return f}var d=k(b)?[b]:b,e={};c().length!==d.length&&jd(d,function(f){var g=c();0<g.length&&(f.Je=g,a(f))})};function nd(){}function qd(){};function rd(a){for(var b=[],c=0;c<sd.length;c++){var d=a(sd[c]);b[c]=!0===d?"1":!1===d?"0":"-"}return b.join("")}
|
||||
var sd=[O.D,O.M],td=function(a){var b=a[O.kf];b&&Q(40);var c=a[O.lf];c&&Q(41);for(var d=qa(b)?b:[b],e={$b:0};e.$b<d.length;e={$b:e.$b},++e.$b)xa(a,function(f){return function(g,l){if(g!==O.kf&&g!==O.lf){var m=d[f.$b],n=Qc.wi,p=Qc.nj;Zc().set(g,l,m,n,p,c)}}}(e))},ud=0,vd=function(a,b,c){xa(a,function(f,g){Zc().update(f,g)});kd(b,c&&c.priorityId);var d=Ea(),e=d-ud;ud&&0<=e&&1E3>e&&Q(66);ud=d},wd=function(a){var b=ed(a);return void 0!=b?b:!0},xd=function(){return"G1"+rd(ed)},yd=function(a,b){md(a,b)},
|
||||
zd=function(a,b){ld(a,b)};var Bd=function(a){return Ad?G.querySelectorAll(a):null},Cd=function(a,b){if(!Ad)return null;if(Element.prototype.closest)try{return a.closest(b)}catch(e){return null}var c=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector,d=a;if(!G.documentElement.contains(d))return null;do{try{if(c.call(d,b))return d}catch(e){break}d=d.parentElement||d.parentNode}while(null!==d&&1===d.nodeType);
|
||||
return null},Dd=!1;if(G.querySelectorAll)try{var Ed=G.querySelectorAll(":root");Ed&&1==Ed.length&&Ed[0]==G.documentElement&&(Dd=!0)}catch(a){}var Ad=Dd;var S={},U=A.google_tag_manager=A.google_tag_manager||{},Yd=Math.random();S.H="UA-131016147-4";S.Yc="";S.ud="3e0";S.V="dataLayer";S.lh="ChAI8KHbkQYQ0dK368fivesqEicAqwLH5yx4ow4gYKbk9MmA6i7bhBx499nvmteYxcV4QIUxD8KjZPkaAn1U";var Zd={__cl:!0,__ecl:!0,__ehl:!0,__evl:!0,__fal:!0,__fil:!0,__fsl:!0,__hl:!0,__jel:!0,__lcl:!0,__sdl:!0,__tl:!0,__ytl:!0},$d={__paused:!0,__tg:!0},ae;for(ae in Zd)Zd.hasOwnProperty(ae)&&($d[ae]=!0);S.Zc="www.googletagmanager.com";var be,ce=S.Zc+"/gtm.js";ce=S.Zc+"/gtag/js";
|
||||
be=ce;var de=Aa("true"),ee=null,fe=null,ge="https://www.googletagmanager.com/a?id="+S.H+"&cv=1",he={},le={},me=function(){var a=U.sequence||1;U.sequence=a+1;return a};S.kh="";var ne="";S.Dc=ne;var oe=new va,pe={},qe={},te={name:S.V,set:function(a,b){J(La(a,b),pe);re()},get:function(a){return se(a,2)},reset:function(){oe=new va;pe={};re()}},se=function(a,b){return 2!=b?oe.get(a):ue(a)},ue=function(a){var b,c=a.split(".");b=b||[];for(var d=pe,e=0;e<c.length;e++){if(null===d)return!1;if(void 0===d)break;d=d[c[e]];if(-1!==b.indexOf(d))return}return d},ve=function(a,b){qe.hasOwnProperty(a)||(oe.set(a,b),J(La(a,b),pe),re())},re=function(a){xa(qe,function(b,c){oe.set(b,c);J(La(b,void 0),pe);J(La(b,
|
||||
c),pe);a&&delete qe[b]})},we=function(a,b){var c,d=1!==(void 0===b?2:b)?ue(a):oe.get(a);"array"===vb(d)||"object"===vb(d)?c=J(d):c=d;return c};var xe,ye=!1,ze=function(a){if(!ye){ye=!0;xe=xe||{}}return xe[a]};var Ae=function(a){if(G.hidden)return!0;var b=a.getBoundingClientRect();if(b.top==b.bottom||b.left==b.right||!A.getComputedStyle)return!0;var c=A.getComputedStyle(a,null);if("hidden"===c.visibility)return!0;for(var d=a,e=c;d;){if("none"===e.display)return!0;var f=e.opacity,g=e.filter;if(g){var l=g.indexOf("opacity(");0<=l&&(g=g.substring(l+8,g.indexOf(")",l)),"%"==g.charAt(g.length-1)&&(g=g.substring(0,g.length-1)),f=Math.min(g,f))}if(void 0!==f&&0>=f)return!0;(d=d.parentElement)&&(e=A.getComputedStyle(d,
|
||||
null))}return!1};var Je=/:[0-9]+$/,Ke=function(a,b,c){for(var d=a.split("&"),e=0;e<d.length;e++){var f=d[e].split("=");if(decodeURIComponent(f[0]).replace(/\+/g," ")===b){var g=f.slice(1).join("=");return c?g:decodeURIComponent(g).replace(/\+/g," ")}}},Ne=function(a,b,c,d,e){b&&(b=String(b).toLowerCase());if("protocol"===b||"port"===b)a.protocol=Le(a.protocol)||Le(A.location.protocol);"port"===b?a.port=String(Number(a.hostname?a.port:A.location.port)||("http"===a.protocol?80:"https"===a.protocol?443:"")):"host"===
|
||||
b&&(a.hostname=(a.hostname||A.location.hostname).replace(Je,"").toLowerCase());return Me(a,b,c,d,e)},Me=function(a,b,c,d,e){var f,g=Le(a.protocol);b&&(b=String(b).toLowerCase());switch(b){case "url_no_fragment":f=Oe(a);break;case "protocol":f=g;break;case "host":f=a.hostname.replace(Je,"").toLowerCase();if(c){var l=/^www\d*\./.exec(f);l&&l[0]&&(f=f.substr(l[0].length))}break;case "port":f=String(Number(a.port)||("http"===g?80:"https"===g?443:""));break;case "path":a.pathname||a.hostname||Sc("TAGGING",
|
||||
1);f="/"===a.pathname.substr(0,1)?a.pathname:"/"+a.pathname;var m=f.split("/");0<=(d||[]).indexOf(m[m.length-1])&&(m[m.length-1]="");f=m.join("/");break;case "query":f=a.search.replace("?","");e&&(f=Ke(f,e,void 0));break;case "extension":var n=a.pathname.split(".");f=1<n.length?n[n.length-1]:"";f=f.split("/")[0];break;case "fragment":f=a.hash.replace("#","");break;default:f=a&&a.href}return f},Le=function(a){return a?a.replace(":","").toLowerCase():""},Oe=function(a){var b="";if(a&&a.href){var c=
|
||||
a.href.indexOf("#");b=0>c?a.href:a.href.substr(0,c)}return b},Pe=function(a){var b=G.createElement("a");a&&(b.href=a);var c=b.pathname;"/"!==c[0]&&(a||Sc("TAGGING",1),c="/"+c);var d=b.hostname.replace(Je,"");return{href:b.href,protocol:b.protocol,host:b.host,hostname:d,pathname:c,search:b.search,hash:b.hash,port:b.port}},Qe=function(a){function b(n){var p=n.split("=")[0];return 0>d.indexOf(p)?n:p+"=0"}function c(n){return n.split("&").map(b).filter(function(p){return void 0!==p}).join("&")}var d=
|
||||
"gclid dclid gbraid wbraid gclaw gcldc gclha gclgf gclgb _gl".split(" "),e=Pe(a),f=a.split(/[?#]/)[0],g=e.search,l=e.hash;"?"===g[0]&&(g=g.substring(1));"#"===l[0]&&(l=l.substring(1));g=c(g);l=c(l);""!==g&&(g="?"+g);""!==l&&(l="#"+l);var m=""+f+g+l;"/"===m[m.length-1]&&(m=m.substring(0,m.length-1));return m};var Re={};var hf={},jf=function(a,b){if(A._gtmexpgrp&&A._gtmexpgrp.hasOwnProperty(a))return A._gtmexpgrp[a];void 0===hf[a]&&(hf[a]=Math.floor(Math.random()*b));return hf[a]};var kf=function(a){var b=1,c,d,e;if(a)for(b=0,d=a.length-1;0<=d;d--)e=a.charCodeAt(d),b=(b<<6&268435455)+e+(e<<14),c=b&266338304,b=0!==c?b^c>>21:b;return b};var lf=function(a,b,c){for(var d=[],e=b.split(";"),f=0;f<e.length;f++){var g=e[f].split("="),l=g[0].replace(/^\s*|\s*$/g,"");if(l&&l==a){var m=g.slice(1).join("=").replace(/^\s*|\s*$/g,"");m&&c&&(m=decodeURIComponent(m));d.push(m)}}return d};var mf=function(a,b){var c=function(){};c.prototype=a.prototype;var d=new c;a.apply(d,Array.prototype.slice.call(arguments,1));return d},nf=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};function of(a){return"null"!==a.origin};var rf=function(a,b,c,d){return pf(d)?lf(a,String(b||qf()),c):[]},uf=function(a,b,c,d,e){if(pf(e)){var f=sf(a,d,e);if(1===f.length)return f[0].id;if(0!==f.length){f=tf(f,function(g){return g.Bd},b);if(1===f.length)return f[0].id;f=tf(f,function(g){return g.Mc},c);return f[0]?f[0].id:void 0}}};function vf(a,b,c,d){var e=qf(),f=window;of(f)&&(f.document.cookie=a);var g=qf();return e!=g||void 0!=c&&0<=rf(b,g,!1,d).indexOf(c)}
|
||||
var zf=function(a,b,c){function d(u,t,v){if(null==v)return delete g[t],u;g[t]=v;return u+"; "+t+"="+v}function e(u,t){if(null==t)return delete g[t],u;g[t]=!0;return u+"; "+t}if(!pf(c.Ua))return 2;var f;void 0==b?f=a+"=deleted; expires="+(new Date(0)).toUTCString():(c.encode&&(b=encodeURIComponent(b)),b=wf(b),f=a+"="+b);var g={};f=d(f,"path",c.path);var l;c.expires instanceof Date?l=c.expires.toUTCString():null!=c.expires&&(l=""+c.expires);f=d(f,"expires",l);f=d(f,"max-age",c.Rj);f=d(f,"samesite",
|
||||
c.Tj);c.Uj&&(f=e(f,"secure"));var m=c.domain;if(m&&"auto"===m.toLowerCase()){for(var n=xf(),p=0;p<n.length;++p){var q="none"!==n[p]?n[p]:void 0,r=d(f,"domain",q);r=e(r,c.flags);if(!yf(q,c.path)&&vf(r,a,b,c.Ua))return 0}return 1}m&&"none"!==m.toLowerCase()&&(f=d(f,"domain",m));f=e(f,c.flags);return yf(m,c.path)?1:vf(f,a,b,c.Ua)?0:1},Af=function(a,b,c){null==c.path&&(c.path="/");c.domain||(c.domain="auto");return zf(a,b,c)};
|
||||
function tf(a,b,c){for(var d=[],e=[],f,g=0;g<a.length;g++){var l=a[g],m=b(l);m===c?d.push(l):void 0===f||m<f?(e=[l],f=m):m===f&&e.push(l)}return 0<d.length?d:e}function sf(a,b,c){for(var d=[],e=rf(a,void 0,void 0,c),f=0;f<e.length;f++){var g=e[f].split("."),l=g.shift();if(!b||-1!==b.indexOf(l)){var m=g.shift();m&&(m=m.split("-"),d.push({id:g.join("."),Bd:1*m[0]||1,Mc:1*m[1]||1}))}}return d}
|
||||
var wf=function(a){a&&1200<a.length&&(a=a.substring(0,1200));return a},Bf=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,Cf=/(^|\.)doubleclick\.net$/i,yf=function(a,b){return Cf.test(window.document.location.hostname)||"/"===b&&Bf.test(a)},qf=function(){return of(window)?window.document.cookie:""},xf=function(){var a=[],b=window.document.location.hostname.split(".");if(4===b.length){var c=b[b.length-1];if(parseInt(c,10).toString()===c)return["none"]}for(var d=b.length-2;0<=d;d--)a.push(b.slice(d).join("."));
|
||||
var e=window.document.location.hostname;Cf.test(e)||Bf.test(e)||a.push("none");return a},pf=function(a){if(!Xc().m()||!a||!hd())return!0;if(!gd(a))return!1;var b=ed(a);return null==b?!0:!!b};var Df=function(a){var b=Math.round(2147483647*Math.random());return a?String(b^kf(a)&2147483647):String(b)},Ef=function(a){return[Df(a),Math.round(Ea()/1E3)].join(".")},Hf=function(a,b,c,d,e){var f=Ff(b);return uf(a,f,Gf(c),d,e)},If=function(a,b,c,d){var e=""+Ff(c),f=Gf(d);1<f&&(e+="-"+f);return[b,e,a].join(".")},Ff=function(a){if(!a)return 1;a=0===a.indexOf(".")?a.substr(1):a;return a.split(".").length},Gf=function(a){if(!a||"/"===a)return 1;"/"!==a[0]&&(a="/"+a);"/"!==a[a.length-1]&&(a+="/");return a.split("/").length-
|
||||
1};function Jf(a,b,c){var d,e=Number(null!=a.yb?a.yb:void 0);0!==e&&(d=new Date((b||Ea())+1E3*(e||7776E3)));return{path:a.path,domain:a.domain,flags:a.flags,encode:!!c,expires:d}};var Kf=["1"],Lf={},Mf={},Qf=function(a,b){b=void 0===b?!0:b;var c=Nf(a.prefix);if(!Lf[c]&&!Of(c,a.path,a.domain)&&b){var d=Nf(a.prefix),e=Ef();if(0===Pf(d,e,a)){var f=bb("google_tag_data",{});f._gcl_au?Sc("GTM",57):f._gcl_au=e}Of(c,a.path,a.domain)}};function Pf(a,b,c,d){var e=If(b,"1",c.domain,c.path),f=Jf(c,d);f.Ua="ad_storage";return Af(a,e,f)}
|
||||
function Of(a,b,c){var d=Hf(a,b,c,Kf,"ad_storage");if(!d)return!1;var e=d.split(".");5===e.length?(Lf[a]=e.slice(0,2).join("."),Mf[a]={id:e.slice(2,4).join("."),Fg:Number(e[4])||0}):3===e.length?Mf[a]={id:e.slice(0,2).join("."),Fg:Number(e[2])||0}:Lf[a]=d;return!0}function Nf(a){return(a||"_gcl")+"_au"};var Rf=function(a){for(var b=[],c=G.cookie.split(";"),d=new RegExp("^\\s*"+(a||"_gac")+"_(UA-\\d+-\\d+)=\\s*(.+?)\\s*$"),e=0;e<c.length;e++){var f=c[e].match(d);f&&b.push({ff:f[1],value:f[2],timestamp:Number(f[2].split(".")[1])||0})}b.sort(function(g,l){return l.timestamp-g.timestamp});return b};
|
||||
function Sf(a,b){var c=Rf(a),d={};if(!c||!c.length)return d;for(var e=0;e<c.length;e++){var f=c[e].value.split(".");if(!("1"!==f[0]||b&&3>f.length||!b&&3!==f.length)&&Number(f[1])){d[c[e].ff]||(d[c[e].ff]=[]);var g={version:f[0],timestamp:1E3*Number(f[1]),xa:f[2]};b&&3<f.length&&(g.labels=f.slice(3));d[c[e].ff].push(g)}}return d};function Tf(){for(var a=Uf,b={},c=0;c<a.length;++c)b[a[c]]=c;return b}function Vf(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a+=a.toLowerCase()+"0123456789-_";return a+"."}var Uf,dg;
|
||||
function eg(a){function b(m){for(;d<a.length;){var n=a.charAt(d++),p=dg[n];if(null!=p)return p;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n);}return m}Uf=Uf||Vf();dg=dg||Tf();for(var c="",d=0;;){var e=b(-1),f=b(0),g=b(64),l=b(64);if(64===l&&-1===e)return c;c+=String.fromCharCode(e<<2|f>>4);64!=g&&(c+=String.fromCharCode(f<<4&240|g>>2),64!=l&&(c+=String.fromCharCode(g<<6&192|l)))}};var fg;var jg=function(){var a=gg,b=hg,c=ig(),d=function(g){a(g.target||g.srcElement||{})},e=function(g){b(g.target||g.srcElement||{})};if(!c.init){lb(G,"mousedown",d);lb(G,"keyup",d);lb(G,"submit",e);var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){b(this);f.call(this)};c.init=!0}},kg=function(a,b,c,d,e){var f={callback:a,domains:b,fragment:2===c,placement:c,forms:d,sameHost:e};ig().decorators.push(f)},lg=function(a,b,c){for(var d=ig().decorators,e={},f=0;f<d.length;++f){var g=
|
||||
d[f],l;if(l=!c||g.forms)a:{var m=g.domains,n=a,p=!!g.sameHost;if(m&&(p||n!==G.location.hostname))for(var q=0;q<m.length;q++)if(m[q]instanceof RegExp){if(m[q].test(n)){l=!0;break a}}else if(0<=n.indexOf(m[q])||p&&0<=m[q].indexOf(n)){l=!0;break a}l=!1}if(l){var r=g.placement;void 0==r&&(r=g.fragment?2:1);r===b&&Ia(e,g.callback())}}return e};function ig(){var a=bb("google_tag_data",{}),b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var mg=/(.*?)\*(.*?)\*(.*)/,ng=/^https?:\/\/([^\/]*?)\.?cdn\.ampproject\.org\/?(.*)/,og=/^(?:www\.|m\.|amp\.)+/,pg=/([^?#]+)(\?[^#]*)?(#.*)?/;function qg(a){return new RegExp("(.*?)(^|&)"+a+"=([^&]*)&?(.*)")}
|
||||
var sg=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(void 0!==d&&d===d&&null!==d&&"[object Object]"!==d.toString()){b.push(c);var e=b,f=e.push,g,l=String(d);Uf=Uf||Vf();dg=dg||Tf();for(var m=[],n=0;n<l.length;n+=3){var p=n+1<l.length,q=n+2<l.length,r=l.charCodeAt(n),u=p?l.charCodeAt(n+1):0,t=q?l.charCodeAt(n+2):0,v=r>>2,y=(r&3)<<4|u>>4,x=(u&15)<<2|t>>6,w=t&63;q||(w=64,p||(x=64));m.push(Uf[v],Uf[y],Uf[x],Uf[w])}g=m.join("");f.call(e,g)}}var B=b.join("*");return["1",rg(B),
|
||||
B].join("*")};function rg(a,b){var c=[A.navigator.userAgent,(new Date).getTimezoneOffset(),$a.userLanguage||$a.language,Math.floor(Ea()/60/1E3)-(void 0===b?0:b),a].join("*"),d;if(!(d=fg)){for(var e=Array(256),f=0;256>f;f++){for(var g=f,l=0;8>l;l++)g=g&1?g>>>1^3988292384:g>>>1;e[f]=g}d=e}fg=d;for(var m=4294967295,n=0;n<c.length;n++)m=m>>>8^fg[(m^c.charCodeAt(n))&255];return((m^-1)>>>0).toString(36)}
|
||||
function tg(){return function(a){var b=Pe(A.location.href),c=b.search.replace("?",""),d=Ke(c,"_gl",!0)||"";a.query=ug(d)||{};var e=Ne(b,"fragment").match(qg("_gl"));a.fragment=ug(e&&e[3]||"")||{}}}function vg(a,b){var c=qg(a).exec(b),d=b;if(c){var e=c[2],f=c[4];d=c[1];f&&(d=d+e+f)}return d}
|
||||
var wg=function(a,b){b||(b="_gl");var c=pg.exec(a);if(!c)return"";var d=c[1],e=vg(b,(c[2]||"").slice(1)),f=vg(b,(c[3]||"").slice(1));e.length&&(e="?"+e);f.length&&(f="#"+f);return""+d+e+f},xg=function(a){var b=tg(),c=ig();c.data||(c.data={query:{},fragment:{}},b(c.data));var d={},e=c.data;e&&(Ia(d,e.query),a&&Ia(d,e.fragment));return d},ug=function(a){try{var b=yg(a,3);if(void 0!==b){for(var c={},d=b?b.split("*"):[],e=0;e+1<d.length;e+=2){var f=d[e],g=eg(d[e+1]);c[f]=g}Sc("TAGGING",6);return c}}catch(l){Sc("TAGGING",
|
||||
8)}};function yg(a,b){if(a){var c;a:{for(var d=a,e=0;3>e;++e){var f=mg.exec(d);if(f){c=f;break a}d=decodeURIComponent(d)}c=void 0}var g=c;if(g&&"1"===g[1]){var l=g[3],m;a:{for(var n=g[2],p=0;p<b;++p)if(n===rg(l,p)){m=!0;break a}m=!1}if(m)return l;Sc("TAGGING",7)}}}
|
||||
function zg(a,b,c,d){function e(p){p=vg(a,p);var q=p.charAt(p.length-1);p&&"&"!==q&&(p+="&");return p+n}d=void 0===d?!1:d;var f=pg.exec(c);if(!f)return"";var g=f[1],l=f[2]||"",m=f[3]||"",n=a+"="+b;d?m="#"+e(m.substring(1)):l="?"+e(l.substring(1));return""+g+l+m}
|
||||
function Ag(a,b){var c="FORM"===(a.tagName||"").toUpperCase(),d=lg(b,1,c),e=lg(b,2,c),f=lg(b,3,c);if(Ja(d)){var g=sg(d);c?Bg("_gl",g,a):Cg("_gl",g,a,!1)}if(!c&&Ja(e)){var l=sg(e);Cg("_gl",l,a,!0)}for(var m in f)if(f.hasOwnProperty(m))a:{var n=m,p=f[m],q=a;if(q.tagName){if("a"===q.tagName.toLowerCase()){Cg(n,p,q,void 0);break a}if("form"===q.tagName.toLowerCase()){Bg(n,p,q);break a}}"string"==typeof q&&zg(n,p,q,void 0)}}
|
||||
function Cg(a,b,c,d){if(c.href){var e=zg(a,b,c.href,void 0===d?!1:d);Sa.test(e)&&(c.href=e)}}
|
||||
function Bg(a,b,c){if(c&&c.action){var d=(c.method||"").toLowerCase();if("get"===d){for(var e=c.childNodes||[],f=!1,g=0;g<e.length;g++){var l=e[g];if(l.name===a){l.setAttribute("value",b);f=!0;break}}if(!f){var m=G.createElement("input");m.setAttribute("type","hidden");m.setAttribute("name",a);m.setAttribute("value",b);c.appendChild(m)}}else if("post"===d){var n=zg(a,b,c.action);Sa.test(n)&&(c.action=n)}}}
|
||||
function gg(a){try{var b;a:{for(var c=a,d=100;c&&0<d;){if(c.href&&c.nodeName.match(/^a(?:rea)?$/i)){b=c;break a}c=c.parentNode;d--}b=null}var e=b;if(e){var f=e.protocol;"http:"!==f&&"https:"!==f||Ag(e,e.hostname)}}catch(g){}}function hg(a){try{if(a.action){var b=Ne(Pe(a.action),"host");Ag(a,b)}}catch(c){}}
|
||||
var Dg=function(a,b,c,d){jg();kg(a,b,"fragment"===c?2:1,!!d,!1)},Eg=function(a,b){jg();kg(a,[Me(A.location,"host",!0)],b,!0,!0)},Fg=function(){var a=G.location.hostname,b=ng.exec(G.referrer);if(!b)return!1;var c=b[2],d=b[1],e="";if(c){var f=c.split("/"),g=f[1];e="s"===g?decodeURIComponent(f[2]):decodeURIComponent(g)}else if(d){if(0===d.indexOf("xn--"))return!1;e=d.replace(/-/g,".").replace(/\.\./g,"-")}var l=a.replace(og,""),m=e.replace(og,""),n;if(!(n=l===m)){var p="."+m;n=l.substring(l.length-p.length,
|
||||
l.length)===p}return n},Gg=function(a,b){return!1===a?!1:a||b||Fg()};var Hg={};var Ig=/^\w+$/,Jg=/^[\w-]+$/,Kg={aw:"_aw",dc:"_dc",gf:"_gf",ha:"_ha",gp:"_gp",gb:"_gb"},Lg=function(){if(!Xc().m()||!hd())return!0;var a=ed("ad_storage");return null==a?!0:!!a},Mg=function(a,b){gd("ad_storage")?Lg()?a():md(a,"ad_storage"):b?Sc("TAGGING",3):ld(function(){Mg(a,!0)},["ad_storage"])},Og=function(a){return Ng(a).map(function(b){return b.xa})},Ng=function(a){var b=[];if(!of(A)||!G.cookie)return b;var c=rf(a,G.cookie,void 0,"ad_storage");if(!c||0==c.length)return b;for(var d={},e=0;e<c.length;d=
|
||||
{Vc:d.Vc},e++){var f=Pg(c[e]);if(null!=f){var g=f,l=g.version;d.Vc=g.xa;var m=g.timestamp,n=g.labels,p=sa(b,function(q){return function(r){return r.xa===q.Vc}}(d));p?(p.timestamp=Math.max(p.timestamp,m),p.labels=Qg(p.labels,n||[])):b.push({version:l,xa:d.Vc,timestamp:m,labels:n})}}b.sort(function(q,r){return r.timestamp-q.timestamp});return Rg(b)};function Qg(a,b){for(var c={},d=[],e=0;e<a.length;e++)c[a[e]]=!0,d.push(a[e]);for(var f=0;f<b.length;f++)c[b[f]]||d.push(b[f]);return d}
|
||||
function Sg(a){return a&&"string"==typeof a&&a.match(Ig)?a:"_gcl"}
|
||||
var Ug=function(){var a=Pe(A.location.href),b=Ne(a,"query",!1,void 0,"gclid"),c=Ne(a,"query",!1,void 0,"gclsrc"),d=Ne(a,"query",!1,void 0,"wbraid"),e=Ne(a,"query",!1,void 0,"dclid");if(!b||!c||!d){var f=a.hash.replace("#","");b=b||Ke(f,"gclid",void 0);c=c||Ke(f,"gclsrc",void 0);d=d||Ke(f,"wbraid",void 0)}return Tg(b,c,e,d)},Tg=function(a,b,c,d){var e={},f=function(g,l){e[l]||(e[l]=[]);e[l].push(g)};e.gclid=a;e.gclsrc=b;e.dclid=c;void 0!==d&&Jg.test(d)&&(e.gbraid=d,f(d,"gb"));if(void 0!==a&&a.match(Jg))switch(b){case void 0:f(a,
|
||||
"aw");break;case "aw.ds":f(a,"aw");f(a,"dc");break;case "ds":f(a,"dc");break;case "3p.ds":f(a,"dc");break;case "gf":f(a,"gf");break;case "ha":f(a,"ha")}c&&f(c,"dc");return e},Wg=function(a){var b=Ug();Mg(function(){Vg(b,!1,a)})};
|
||||
function Vg(a,b,c,d,e){function f(y,x){var w=Xg(y,g);w&&(Af(w,x,l),m=!0)}c=c||{};e=e||[];var g=Sg(c.prefix);d=d||Ea();var l=Jf(c,d,!0);l.Ua="ad_storage";var m=!1,n=Math.round(d/1E3),p=function(y){var x=["GCL",n,y];0<e.length&&x.push(e.join("."));return x.join(".")};a.aw&&f("aw",p(a.aw[0]));a.dc&&f("dc",p(a.dc[0]));a.gf&&f("gf",p(a.gf[0]));a.ha&&f("ha",p(a.ha[0]));a.gp&&f("gp",p(a.gp[0]));if((void 0==Hg.enable_gbraid_cookie_write?0:Hg.enable_gbraid_cookie_write)&&!m&&a.gb){var q=a.gb[0],r=Xg("gb",
|
||||
g),u=!1;if(!b)for(var t=Ng(r),v=0;v<t.length;v++)t[v].xa===q&&t[v].labels&&0<t[v].labels.length&&(u=!0);u||f("gb",p(q))}}
|
||||
var Zg=function(a,b){var c=xg(!0);Mg(function(){for(var d=Sg(b.prefix),e=0;e<a.length;++e){var f=a[e];if(void 0!==Kg[f]){var g=Xg(f,d),l=c[g];if(l){var m=Math.min(Yg(l),Ea()),n;b:{var p=m;if(of(A))for(var q=rf(g,G.cookie,void 0,"ad_storage"),r=0;r<q.length;++r)if(Yg(q[r])>p){n=!0;break b}n=!1}if(!n){var u=Jf(b,m,!0);u.Ua="ad_storage";Af(g,l,u)}}}}Vg(Tg(c.gclid,c.gclsrc),!1,b)})},Xg=function(a,b){var c=Kg[a];if(void 0!==c)return b+c},Yg=function(a){return 0!==$g(a.split(".")).length?1E3*(Number(a.split(".")[1])||
|
||||
0):0};function Pg(a){var b=$g(a.split("."));return 0===b.length?null:{version:b[0],xa:b[2],timestamp:1E3*(Number(b[1])||0),labels:b.slice(3)}}function $g(a){return 3>a.length||"GCL"!==a[0]&&"1"!==a[0]||!/^\d+$/.test(a[1])||!Jg.test(a[2])?[]:a}
|
||||
var ah=function(a,b,c,d,e){if(qa(b)&&of(A)){var f=Sg(e),g=function(){for(var l={},m=0;m<a.length;++m){var n=Xg(a[m],f);if(n){var p=rf(n,G.cookie,void 0,"ad_storage");p.length&&(l[n]=p.sort()[p.length-1])}}return l};Mg(function(){Dg(g,b,c,d)})}},Rg=function(a){return a.filter(function(b){return Jg.test(b.xa)})},bh=function(a,b){if(of(A)){for(var c=Sg(b.prefix),d={},e=0;e<a.length;e++)Kg[a[e]]&&(d[a[e]]=Kg[a[e]]);Mg(function(){xa(d,function(f,g){var l=rf(c+g,G.cookie,void 0,"ad_storage");l.sort(function(u,
|
||||
t){return Yg(t)-Yg(u)});if(l.length){var m=l[0],n=Yg(m),p=0!==$g(m.split(".")).length?m.split(".").slice(3):[],q={},r;r=0!==$g(m.split(".")).length?m.split(".")[2]:void 0;q[f]=[r];Vg(q,!0,b,n,p)}})})}};function ch(a,b){for(var c=0;c<b.length;++c)if(a[b[c]])return!0;return!1}
|
||||
var dh=function(a){function b(e,f,g){g&&(e[f]=g)}if(hd()){var c=Ug();if(ch(c,a)){var d={};b(d,"gclid",c.gclid);b(d,"dclid",c.dclid);b(d,"gclsrc",c.gclsrc);b(d,"wbraid",c.gbraid);Eg(function(){return d},3);Eg(function(){var e={};return e._up="1",e},1)}}};function eh(a,b){var c=Sg(b),d=Xg(a,c);if(!d)return 0;for(var e=Ng(d),f=0,g=0;g<e.length;g++)f=Math.max(f,e[g].timestamp);return f}
|
||||
function fh(a){var b=0,c;for(c in a)for(var d=a[c],e=0;e<d.length;e++)b=Math.max(b,Number(d[e].timestamp));return b};var zh=new RegExp(/^(.*\.)?(google|youtube|blogger|withgoogle)(\.com?)?(\.[a-z]{2})?\.?$/),Ah={cl:["ecl"],customPixels:["nonGooglePixels"],ecl:["cl"],ehl:["hl"],hl:["ehl"],html:["customScripts","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],customScripts:["html","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],nonGooglePixels:[],nonGoogleScripts:["nonGooglePixels"],nonGoogleIframes:["nonGooglePixels"]},Bh={cl:["ecl"],customPixels:["customScripts","html"],
|
||||
ecl:["cl"],ehl:["hl"],hl:["ehl"],html:["customScripts"],customScripts:["html"],nonGooglePixels:["customPixels","customScripts","html","nonGoogleScripts","nonGoogleIframes"],nonGoogleScripts:["customScripts","html"],nonGoogleIframes:["customScripts","html","nonGoogleScripts"]},Ch="google customPixels customScripts html nonGooglePixels nonGoogleScripts nonGoogleIframes".split(" ");
|
||||
var Dh=function(){var a=!1;a=!0;return a},Fh=function(a){var b=se("gtm.allowlist")||se("gtm.whitelist");b&&Q(9);Dh()&&(b="google gtagfl lcl zone oid op".split(" "));var c=b&&Ka(Ba(b),Ah),d=se("gtm.blocklist")||
|
||||
se("gtm.blacklist");d||(d=se("tagTypeBlacklist"))&&Q(3);d?Q(8):d=[];Eh()&&(d=Ba(d),d.push("nonGooglePixels","nonGoogleScripts","sandboxedScripts"));0<=Ba(d).indexOf("google")&&Q(2);var e=d&&Ka(Ba(d),Bh),f={};return function(g){var l=g&&g[zb.sb];if(!l||"string"!=typeof l)return!0;l=l.replace(/^_*/,"");if(void 0!==f[l])return f[l];var m=le[l]||[],n=a(l,m);if(b){var p;
|
||||
if(p=n)a:{if(0>c.indexOf(l))if(m&&0<m.length)for(var q=0;q<m.length;q++){if(0>c.indexOf(m[q])){Q(11);p=!1;break a}}else{p=!1;break a}p=!0}n=p}var r=!1;if(d){var u=0<=e.indexOf(l);if(u)r=u;else{var t=wa(e,m||[]);t&&Q(10);r=t}}var v=!n||r;v||!(0<=m.indexOf("sandboxedScripts"))||c&&-1!==c.indexOf("sandboxedScripts")||(v=wa(e,Ch));return f[l]=v}},Eh=function(){return zh.test(A.location&&A.location.hostname)};var Gh=!1,Hh=0,Ih=[];function Jh(a){if(!Gh){var b=G.createEventObject,c="complete"==G.readyState,d="interactive"==G.readyState;if(!a||"readystatechange"!=a.type||c||!b&&d){Gh=!0;for(var e=0;e<Ih.length;e++)H(Ih[e])}Ih.push=function(){for(var f=0;f<arguments.length;f++)H(arguments[f]);return 0}}}function Kh(){if(!Gh&&140>Hh){Hh++;try{G.documentElement.doScroll("left"),Jh()}catch(a){A.setTimeout(Kh,50)}}}var Lh=function(a){Gh?a():Ih.push(a)};var Nh=function(a,b){this.m=!1;this.C=[];this.J={tags:[]};this.U=!1;this.o=this.s=0;Mh(this,a,b)},Oh=function(a,b,c,d){if($d.hasOwnProperty(b)||"__zone"===b)return-1;var e={};xb(d)&&(e=J(d,e));e.id=c;e.status="timeout";return a.J.tags.push(e)-1},Ph=function(a,b,c,d){var e=a.J.tags[b];e&&(e.status=c,e.executionTime=d)},Qh=function(a){if(!a.m){for(var b=a.C,c=0;c<b.length;c++)b[c]();a.m=!0;a.C.length=0}},Mh=function(a,b,c){void 0!==b&&Rh(a,b);c&&A.setTimeout(function(){return Qh(a)},Number(c))},Rh=
|
||||
function(a,b){var c=Ha(function(){return H(function(){b(S.H,a.J)})});a.m?c():a.C.push(c)},Sh=function(a){a.s++;return Ha(function(){a.o++;a.U&&a.o>=a.s&&Qh(a)})};var Th=function(){function a(d){return!oa(d)||0>d?0:d}if(!U._li&&A.performance&&A.performance.timing){var b=A.performance.timing.navigationStart,c=oa(te.get("gtm.start"))?te.get("gtm.start"):0;U._li={cst:a(c-b),cbt:a(fe-b)}}},Uh=function(a){A.performance&&A.performance.mark(S.H+"_"+a+"_start")},Vh=function(a){if(A.performance){var b=S.H+"_"+a+"_start",c=S.H+"_"+a+"_duration";A.performance.measure(c,b);var d=A.performance.getEntriesByName(c)[0];A.performance.clearMarks(b);A.performance.clearMeasures(c);
|
||||
var e=U._p||{};void 0===e[a]&&(e[a]=d.duration,U._p=e);return d.duration}},Wh=function(){if(A.performance&&A.performance.now){var a=U._p||{};a.PAGEVIEW=A.performance.now();U._p=a}};var Xh={},Yh=function(){return A.GoogleAnalyticsObject&&A[A.GoogleAnalyticsObject]},Zh=!1;var $h=function(a){A.GoogleAnalyticsObject||(A.GoogleAnalyticsObject=a||"ga");var b=A.GoogleAnalyticsObject;if(A[b])A.hasOwnProperty(b)||Q(12);else{var c=function(){c.q=c.q||[];c.q.push(arguments)};c.l=Number(Da());A[b]=c}Th();return A[b]},ai=function(a){if(hd()){var b=Yh();b(a+"require","linker");b(a+"linker:passthrough",!0)}};
|
||||
function bi(){return A.GoogleAnalyticsObject||"ga"}
|
||||
var ci=function(a){},di=function(a,b){return function(){var c=Yh(),d=c&&c.getByName&&c.getByName(a);if(d){var e=d.get("sendHitTask");d.set("sendHitTask",function(f){var g=f.get("hitPayload"),l=f.get("hitCallback"),m=0>g.indexOf("&tid="+b);m&&(f.set("hitPayload",g.replace(/&tid=UA-[0-9]+-[0-9]+/,"&tid="+b),!0),f.set("hitCallback",void 0,!0));e(f);m&&(f.set("hitPayload",
|
||||
g,!0),f.set("hitCallback",l,!0),f.set("_x_19",void 0,!0),e(f))})}}};
|
||||
var ki=function(a){},oi=function(a){},pi=
|
||||
function(){return"&tc="+Zb.filter(function(a){return a}).length},si=function(){2022<=qi().length&&ri()},ti=function(a){return 0===a.indexOf("gtm.")?encodeURIComponent(a):"*"},vi=function(){ui||(ui=A.setTimeout(ri,500))},ri=function(){ui&&(A.clearTimeout(ui),ui=void 0);if(void 0!==wi&&(!xi[wi]||yi||zi))if(Ai[wi]||Bi.Ti()||0>=Ci--)Q(1),Ai[wi]=!0;else{Bi.oj();var a=qi(!0);kb(a);
|
||||
xi[wi]=!0;Ei=Di=Gi=Hi=Ii=zi=yi="";Fi=[]}},qi=function(a){var b=wi;if(void 0===b)return"";var c=Tc("GTM"),d=Tc("TAGGING");return[Ji,xi[b]?"":"&es=1",Ki[b],ki(b),c?"&u="+c:"",d?"&ut="+d:"",pi(),yi,zi,Ii,Hi,oi(a),Gi,Di,Ei?"&dl="+encodeURIComponent(Ei):"",0<Fi.length?"&tdp="+Fi.join("."):"","&z=0"].join("")},Mi=function(){Ji=Li()},Li=function(){return[ge,"&v=3&t=t","&pid="+ua(),"&rv="+S.ud].join("")},ni=["L","S","Y"],ji=["S","E"],Ni={sampleRate:"0.005000",eh:"",
|
||||
dh:Number("5")},Oi=0<=G.location.search.indexOf("?gtm_latency=")||0<=G.location.search.indexOf(">m_latency="),Pi;if(!(Pi=Oi)){var Qi=Math.random(),Ri=Ni.sampleRate;Pi=Qi<Ri}var Si=Pi,Ti={label:S.H+" Container",children:[{label:"Initialization",children:[]}]},Ji=Li(),xi={},yi="",zi="",Gi="",Hi="",Di="",Fi=[],Ei="",
|
||||
mi={},li=!1,ii={},Ui={},Ii="",wi=void 0,Ki={},Ai={},ui=void 0,Vi=5;0<Ni.dh&&(Vi=Ni.dh);var Bi=function(a,b){for(var c=0,d=[],e=0;e<a;++e)d.push(0);return{Ti:function(){return c<a?!1:Ea()-d[c%a]<b},oj:function(){var f=c++%a;d[f]=Ea()}}}(Vi,1E3),Ci=1E3,Xi=function(a,b){if(Si&&!Ai[a]&&wi!==a){ri();wi=a;Gi=yi="";Ki[a]="&e="+ti(b)+"&eid="+a;vi();}},nj=function(a,b,c,d){if(Si&&b){var e,f=String(b[zb.sb]||"").replace(/_/g,"");0===f.indexOf("cvt")&&(f="cvt");e=f;var g=c+e;if(!Ai[a]){a!==
|
||||
wi&&(ri(),wi=a);yi=yi?yi+"."+g:"&tr="+g;var l=b["function"];if(!l)throw Error("Error: No function name given for function call.");var m=(bc[l]?"1":"2")+e;Gi=Gi?Gi+"."+m:"&ti="+m;vi();si()}}};var uj=
|
||||
function(a,b,c){if(Si&&!Ai[a]){a!==wi&&(ri(),wi=a);var d=c+b;zi=zi?zi+"."+d:"&epr="+d;vi();si()}},vj=function(a,b,c){};function wj(a,b,c,d){var e=Zb[a],f=xj(a,b,c,d);if(!f)return null;var g=gc(e[zb.Yf],c,[]);if(g&&g.length){var l=g[0];f=wj(l.index,{onSuccess:f,onFailure:1===l.vg?b.terminate:f,terminate:b.terminate},c,d)}return f}
|
||||
function xj(a,b,c,d){function e(){if(f[zb.Xh])l();else{var y=hc(f,c,[]);var x=y[zb.ih];if(null!=x)for(var w=0;w<x.length;w++)if(!wd(x[w])){l();return}var B=Oh(c.Sb,String(f[zb.sb]),Number(f[zb.Zf]),y[zb.Yh]),z=!1;y.vtp_gtmOnSuccess=function(){if(!z){z=!0;var E=Ea()-D;nj(c.id,Zb[a],"5",E);Ph(c.Sb,B,"success",
|
||||
E);g()}};y.vtp_gtmOnFailure=function(){if(!z){z=!0;var E=Ea()-D;nj(c.id,Zb[a],"6",E);Ph(c.Sb,B,"failure",E);l()}};y.vtp_gtmTagId=f.tag_id;y.vtp_gtmEventId=c.id;nj(c.id,f,"1");var C=function(){var E=Ea()-D;nj(c.id,f,"7",E);Ph(c.Sb,B,"exception",E);z||(z=!0,l())};var D=Ea();try{fc(y,{event:c,index:a,type:1})}catch(E){C(E)}}}var f=Zb[a],g=b.onSuccess,l=b.onFailure,m=b.terminate;if(c.Te(f))return null;var n=gc(f[zb.$f],c,[]);if(n&&n.length){var p=n[0],q=wj(p.index,{onSuccess:g,onFailure:l,terminate:m},c,d);if(!q)return null;g=q;l=2===p.vg?m:q}if(f[zb.Uf]||f[zb.bi]){var r=
|
||||
f[zb.Uf]?ac:c.zj,u=g,t=l;if(!r[a]){e=Ha(e);var v=yj(a,r,e);g=v.onSuccess;l=v.onFailure}return function(){r[a](u,t)}}return e}function yj(a,b,c){var d=[],e=[];b[a]=zj(d,e,c);return{onSuccess:function(){b[a]=Aj;for(var f=0;f<d.length;f++)d[f]()},onFailure:function(){b[a]=Bj;for(var f=0;f<e.length;f++)e[f]()}}}function zj(a,b,c){return function(d,e){a.push(d);b.push(e);c()}}function Aj(a){a()}function Bj(a,b){b()};function Cj(a,b){if(a){var c=""+a;0!==c.indexOf("http://")&&0!==c.indexOf("https://")&&(c="https://"+c);"/"===c[c.length-1]&&(c=c.substring(0,c.length-1));return Pe(""+c+b).href}}function Dj(a,b){return Ej()?Cj(a,b):void 0}function Ej(){var a=!1;return a}
|
||||
function Fj(){return!!S.Dc&&"SGTM_TOKEN"!==S.Dc.replaceAll("@@","")};var Gj=function(){var a=!1;return a};var Ij=function(a,b,c,d){return(2===Hj()||d||"http:"!=A.location.protocol?a:b)+c},Hj=function(){var a=ib(),b;if(1===a)a:{var c=be;c=c.toLowerCase();for(var d="https://"+c,e="http://"+c,f=1,g=G.getElementsByTagName("script"),l=0;l<g.length&&100>l;l++){var m=g[l].src;if(m){m=m.toLowerCase();if(0===m.indexOf(e)){b=3;break a}1===f&&0===m.indexOf(d)&&(f=2)}}b=f}else b=a;return b};var Jj=!1;var Lj={initialized:11,complete:12,interactive:13},Mj={},Nj=Object.freeze((Mj[O.rb]=!0,Mj[O.Ec]=!0,Mj)),Oj={},Pj=Object.freeze((Oj[O.sa]=!0,Oj)),Qj={},Rj=0<=G.location.search.indexOf("?gtm_diagnostics=")||0<=G.location.search.indexOf(">m_diagnostics="),Tj=function(a,b,c){},Uj=function(a){};
|
||||
function Vj(a,b){var c={},d;for(d in b)b.hasOwnProperty(d)&&(c[d]=!0);for(var e in a)a.hasOwnProperty(e)&&(c[e]=!0);return c}function Sj(a,b,c,d){c=void 0===c?{}:c;d=void 0===d?"":d;if(a===b)return[];var e=function(q,r){var u=r[q];return void 0===u?Pj[q]:u},f;for(f in Vj(a,b))if(!Nj[f]){var g=(d?d+".":"")+f,l=e(f,a),m=e(f,b),n="object"===vb(l)||"array"===vb(l),p="object"===vb(m)||"array"===vb(m);if(n&&p)Sj(l,m,c,g);else if(n||p||l!==m)c[g]=!0}return Object.keys(c)}var Wj=function(){this.eventModel={};this.targetConfig={};this.containerConfig={};this.globalConfig={};this.dataLayerConfig={};this.remoteConfig={};this.onSuccess=function(){};this.onFailure=function(){};this.setContainerTypeLoaded=function(){};this.getContainerTypeLoaded=function(){};this.eventId=void 0;this.isGtmEvent=!1},Xj=function(a){var b=new Wj;b.eventModel=a;return b},Yj=function(a,b){a.targetConfig=b;return a},Zj=function(a,b){a.containerConfig=b;return a},ak=function(a,b){a.globalConfig=
|
||||
b;return a},bk=function(a,b){a.dataLayerConfig=b;return a},ck=function(a,b){a.remoteConfig=b;return a},dk=function(a,b){a.onSuccess=b;return a},ek=function(a,b){a.setContainerTypeLoaded=b;return a},fk=function(a,b){a.getContainerTypeLoaded=b;return a},gk=function(a,b){a.onFailure=b;return a};h=Wj.prototype;
|
||||
h.getWithConfig=function(a){if(void 0!==this.eventModel[a])return this.eventModel[a];if(void 0!==this.targetConfig[a])return this.targetConfig[a];if(void 0!==this.containerConfig[a])return this.containerConfig[a];if(void 0!==this.globalConfig[a])return this.globalConfig[a];
|
||||
if(void 0!==this.remoteConfig[a])return this.remoteConfig[a]};
|
||||
h.getTopLevelKeys=function(){function a(e){for(var f=Object.keys(e),g=0;g<f.length;++g)b[f[g]]=1}var b={};a(this.eventModel);a(this.targetConfig);a(this.containerConfig);a(this.globalConfig);return Object.keys(b)};
|
||||
h.getMergedValues=function(a,b){function c(l){xb(l)&&xa(l,function(m,n){e=!0;d[m]=n})}var d={},e=!1;b&&1!==b||(c(this.remoteConfig[a]),c(this.globalConfig[a]),c(this.containerConfig[a]),c(this.targetConfig[a]));b&&2!==b||c(this.eventModel[a]);return e?d:void 0};
|
||||
h.getKeysFromFirstOfAnyScope=function(a){var b={},c=!1,d=function(g){for(var l=0;l<a.length;l++)void 0!==g[a[l]]&&(b[a[l]]=g[a[l]],c=!0);return c};if(d(this.eventModel)||d(this.targetConfig)||d(this.containerConfig))return b;d(this.globalConfig);
|
||||
if(c)return b;d(this.remoteConfig);return b};h.getEventModelKeys=function(){var a=[],b;for(b in this.eventModel)b!==O.rb&&this.eventModel.hasOwnProperty(b)&&void 0!==this.eventModel[b]&&a.push(b);return a};
|
||||
var hk=function(a,b,c){
|
||||
return!1};function ik(){U.dedupe_gclid||(U.dedupe_gclid=""+Ef());return U.dedupe_gclid};var jk;if(3===S.ud.length)jk="g";else{var kk="G";kk="g";jk=kk}
|
||||
var lk={"":"n",UA:"u",AW:"a",DC:"d",G:"e",GF:"f",HA:"h",GTM:jk,OPT:"o"},mk=function(a){var b=S.H.split("-"),c=b[0].toUpperCase(),d=lk[c]||"i",e=a&&"GTM"===c?b[1]:"OPT"===c?b[1]:"",f;if(3===S.ud.length){var g="w";g=Gj()?"s":"o";f="2"+g}else f="";return f+d+S.ud+e};function nk(a,b){if(""===a)return b;var c=Number(a);return isNaN(c)?b:c};var ok=function(a,b){a.addEventListener&&a.addEventListener.call(a,"message",b,!1)};function pk(){return Ua("iPhone")&&!Ua("iPod")&&!Ua("iPad")};Ua("Opera");Ua("Trident")||Ua("MSIE");Ua("Edge");!Ua("Gecko")||-1!=Ta().toLowerCase().indexOf("webkit")&&!Ua("Edge")||Ua("Trident")||Ua("MSIE")||Ua("Edge");-1!=Ta().toLowerCase().indexOf("webkit")&&!Ua("Edge")&&Ua("Mobile");Ua("Macintosh");Ua("Windows");Ua("Linux")||Ua("CrOS");var qk=ka.navigator||null;qk&&(qk.appVersion||"").indexOf("X11");Ua("Android");pk();Ua("iPad");Ua("iPod");pk()||Ua("iPad")||Ua("iPod");Ta().toLowerCase().indexOf("kaios");var rk=function(a){if(!a||!G.head)return null;var b,c;c=void 0===c?document:c;b=c.createElement("meta");G.head.appendChild(b);b.httpEquiv="origin-trial";b.content=a;return b};var sk=function(){};var tk=function(a){void 0!==a.addtlConsent&&"string"!==typeof a.addtlConsent&&(a.addtlConsent=void 0);void 0!==a.gdprApplies&&"boolean"!==typeof a.gdprApplies&&(a.gdprApplies=void 0);return void 0!==a.tcString&&"string"!==typeof a.tcString||void 0!==a.listenerId&&"number"!==typeof a.listenerId?2:a.cmpStatus&&"error"!==a.cmpStatus?0:3},uk=function(a,b){this.o=a;this.m=null;this.C={};this.U=0;this.J=void 0===b?500:b;this.s=null};ja(uk,sk);
|
||||
uk.prototype.addEventListener=function(a){var b={},c=nf(function(){return a(b)}),d=0;-1!==this.J&&(d=setTimeout(function(){b.tcString="tcunavailable";b.internalErrorState=1;c()},this.J));var e=function(f,g){clearTimeout(d);f?(b=f,b.internalErrorState=tk(b),g&&0===b.internalErrorState||(b.tcString="tcunavailable",g||(b.internalErrorState=3))):(b.tcString="tcunavailable",b.internalErrorState=3);a(b)};try{vk(this,"addEventListener",e)}catch(f){b.tcString="tcunavailable",b.internalErrorState=3,d&&(clearTimeout(d),
|
||||
d=0),c()}};uk.prototype.removeEventListener=function(a){a&&a.listenerId&&vk(this,"removeEventListener",null,a.listenerId)};
|
||||
var xk=function(a,b,c){var d;d=void 0===d?"755":d;var e;a:{if(a.publisher&&a.publisher.restrictions){var f=a.publisher.restrictions[b];if(void 0!==f){e=f[void 0===d?"755":d];break a}}e=void 0}var g=e;if(0===g)return!1;var l=c;2===c?(l=0,2===g&&(l=1)):3===c&&(l=1,1===g&&(l=0));var m;if(0===l)if(a.purpose&&a.vendor){var n=wk(a.vendor.consents,void 0===d?"755":d);m=n&&"1"===b&&a.purposeOneTreatment&&"CH"===a.publisherCC?!0:n&&wk(a.purpose.consents,b)}else m=!0;else m=1===l?a.purpose&&a.vendor?wk(a.purpose.legitimateInterests,
|
||||
b)&&wk(a.vendor.legitimateInterests,void 0===d?"755":d):!0:!0;return m},wk=function(a,b){return!(!a||!a[b])},vk=function(a,b,c,d){c||(c=function(){});if("function"===typeof a.o.__tcfapi){var e=a.o.__tcfapi;e(b,2,c,d)}else if(yk(a)){zk(a);var f=++a.U;a.C[f]=c;if(a.m){var g={};a.m.postMessage((g.__tcfapiCall={command:b,version:2,callId:f,parameter:d},g),"*")}}else c({},!1)},yk=function(a){if(a.m)return a.m;var b;a:{for(var c=a.o,d=0;50>d;++d){var e;try{e=!(!c.frames||!c.frames.__tcfapiLocator)}catch(l){e=
|
||||
!1}if(e){b=c;break a}var f;b:{try{var g=c.parent;if(g&&g!=c){f=g;break b}}catch(l){}f=null}if(!(c=f))break}b=null}a.m=b;return a.m},zk=function(a){a.s||(a.s=function(b){try{var c;c=("string"===typeof b.data?JSON.parse(b.data):b.data).__tcfapiReturn;a.C[c.callId](c.returnValue,c.success)}catch(d){}},ok(a.o,a.s))};var Ak=!0;Ak=!1;var Bk={1:0,3:0,4:0,7:3,9:3,10:3},Ck=nk("",550),Dk=nk("",500);function Ek(){var a=U.tcf||{};return U.tcf=a}
|
||||
var Jk=function(){var a=Ek(),b=new uk(A,Ak?3E3:-1);if(!0===A.gtag_enable_tcf_support&&!a.active&&("function"===typeof A.__tcfapi||"function"===typeof b.o.__tcfapi||null!=yk(b))){a.active=!0;a.Oc={};Fk();var c=null;Ak?c=A.setTimeout(function(){Gk(a);Hk(a);c=null},Dk):a.tcString="tcunavailable";try{b.addEventListener(function(d){c&&(clearTimeout(c),c=null);if(0!==d.internalErrorState)Gk(a),Hk(a);else{var e;a.gdprApplies=d.gdprApplies;if(!1===d.gdprApplies)e=Ik(),b.removeEventListener(d);else if("tcloaded"===
|
||||
d.eventStatus||"useractioncomplete"===d.eventStatus||"cmpuishown"===d.eventStatus){var f={},g;for(g in Bk)if(Bk.hasOwnProperty(g))if("1"===g){var l=d,m=!0;m=void 0===m?!1:m;var n;var p=l;!1===p.gdprApplies?n=!0:(void 0===p.internalErrorState&&(p.internalErrorState=tk(p)),n="error"===p.cmpStatus||0!==p.internalErrorState||"loaded"===p.cmpStatus&&("tcloaded"===p.eventStatus||"useractioncomplete"===p.eventStatus)?!0:!1);f["1"]=n?!1===l.gdprApplies||"tcunavailable"===l.tcString||void 0===l.gdprApplies&&
|
||||
!m||"string"!==typeof l.tcString||!l.tcString.length?!0:xk(l,"1",0):!1}else f[g]=xk(d,g,Bk[g]);e=f}e&&(a.tcString=d.tcString||"tcempty",a.Oc=e,Hk(a))}})}catch(d){c&&(clearTimeout(c),c=null),Gk(a),Hk(a)}}};function Gk(a){a.type="e";a.tcString="tcunavailable";Ak&&(a.Oc=Ik())}function Fk(){var a={},b=(a.ad_storage="denied",a.wait_for_update=Ck,a);td(b)}function Ik(){var a={},b;for(b in Bk)Bk.hasOwnProperty(b)&&(a[b]=!0);return a}
|
||||
function Hk(a){var b={},c=(b.ad_storage=a.Oc["1"]?"granted":"denied",b);vd(c,0,{gdprApplies:a?a.gdprApplies:void 0,tcString:Kk()})}var Kk=function(){var a=Ek();return a.active?a.tcString||"":""},Lk=function(){var a=Ek();return a.active&&void 0!==a.gdprApplies?a.gdprApplies?"1":"0":""},Mk=function(a){if(!Bk.hasOwnProperty(String(a)))return!0;var b=Ek();return b.active&&b.Oc?!!b.Oc[String(a)]:!0};var Tk=!1;var Uk=function(){this.m={}},Vk=function(a,b,c){null!=c&&(a.m[b]=c)},Wk=function(a){return Object.keys(a.m).map(function(b){return encodeURIComponent(b)+"="+encodeURIComponent(a.m[b])}).join("&")},Yk=function(a,b,c,d,e){};
|
||||
var $k=/[A-Z]+/,al=/\s/,bl=function(a){if(k(a)){a=Ca(a);var b=a.indexOf("-");if(!(0>b)){var c=a.substring(0,b);if($k.test(c)){for(var d=a.substring(b+1).split("/"),e=0;e<d.length;e++)if(!d[e]||al.test(d[e])&&("AW"!==c||1!==e))return;return{id:a,prefix:c,containerId:c+"-"+d[0],K:d}}}}},dl=function(a){for(var b={},c=0;c<a.length;++c){var d=bl(a[c]);d&&(b[d.id]=d)}cl(b);var e=[];xa(b,function(f,g){e.push(g)});return e};
|
||||
function cl(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];"AW"===d.prefix&&d.K[1]&&b.push(d.containerId)}for(var e=0;e<b.length;++e)delete a[b[e]]};
|
||||
var fl=function(a,b,c){if(A[a.functionName])return b.Ye&&H(b.Ye),A[a.functionName];var d=el();A[a.functionName]=d;if(a.xd)for(var e=0;e<a.xd.length;e++)A[a.xd[e]]=A[a.xd[e]]||el();a.Id&&void 0===A[a.Id]&&(A[a.Id]=c);gb(Ij("https://","http://",a.ef),b.Ye,b.bj);return d},el=function(){var a=function(){a.q=a.q||[];a.q.push(arguments)};return a},gl={functionName:"_googWcmImpl",Id:"_googWcmAk",ef:"www.gstatic.com/wcm/loader.js"},hl={functionName:"_gaPhoneImpl",Id:"ga_wpid",ef:"www.gstatic.com/gaphone/loader.js"},
|
||||
il={hh:"",di:"5"},jl={functionName:"_googCallTrackingImpl",xd:[hl.functionName,gl.functionName],ef:"www.gstatic.com/call-tracking/call-tracking_"+(il.hh||il.di)+".js"},kl={},ll=function(a,b,c,d){Q(22);if(c){d=d||{};var e=fl(gl,d,a),f={ak:a,cl:b};void 0===d.Ta&&(f.autoreplace=c);e(2,d.Ta,f,c,0,Da(),d.options)}},ml=function(a,b,c,d){Q(21);if(b&&c){d=d||{};for(var e={countryNameCode:c,destinationNumber:b,retrievalTime:Da()},f=0;f<a.length;f++){var g=a[f];kl[g.id]||
|
||||
(g&&"AW"===g.prefix&&!e.adData&&2<=g.K.length?(e.adData={ak:g.K[0],cl:g.K[1]},kl[g.id]=!0):g&&"UA"===g.prefix&&!e.gaData&&(e.gaData={gaWpid:g.containerId},kl[g.id]=!0))}(e.gaData||e.adData)&&fl(jl,d)(d.Ta,e,d.options)}},nl=function(){var a=!1;return a},ol=function(a,b){if(a)if(Gj()){}else{if(k(a)){var c=
|
||||
bl(a);if(!c)return;a=c}var d=void 0,e=!1,f=b.getWithConfig(O.Kh);if(f&&qa(f)){d=[];for(var g=0;g<f.length;g++){var l=bl(f[g]);l&&(d.push(l),(a.id===l.id||a.id===a.containerId&&a.containerId===l.containerId)&&(e=!0))}}if(!d||e){var m=b.getWithConfig(O.Jf),n;if(m){qa(m)?n=m:n=[m];var p=b.getWithConfig(O.Hf),q=b.getWithConfig(O.If),r=b.getWithConfig(O.Kf),u=b.getWithConfig(O.Jh),t=p||q,v=1;"UA"!==a.prefix||d||(v=5);for(var y=0;y<n.length;y++)if(y<v)if(d)ml(d,n[y],u,{Ta:t,options:r});else if("AW"===a.prefix&&
|
||||
a.K[1])nl()?ml([a],n[y],u||"US",{Ta:t,options:r}):ll(a.K[0],a.K[1],n[y],{Ta:t,options:r});else if("UA"===a.prefix)if(nl())ml([a],n[y],u||"US",{Ta:t});else{var x=a.containerId,w=n[y],B={Ta:t};Q(23);if(w){B=B||{};var z=fl(hl,B,x),C={};void 0!==B.Ta?C.receiver=B.Ta:C.replace=w;C.ga_wpid=x;C.destination=w;z(2,Da(),C)}}}}}};var wl=!1;function xl(){if(na($a.joinAdInterestGroup))return!0;wl||(rk(''),wl=!0);return na($a.joinAdInterestGroup)}
|
||||
function yl(a,b){var c=void 0;try{c=G.querySelector('iframe[data-tagging-id="'+b+'"]')}catch(e){}if(c){var d=Number(c.dataset.loadTime);if(d&&6E4>Ea()-d){Sc("TAGGING",9);return}}else try{if(50<=G.querySelectorAll('iframe[allow="join-ad-interest-group"][data-tagging-id*="-"]').length){Sc("TAGGING",10);return}}catch(e){}jb(a,void 0,{allow:"join-ad-interest-group"},{taggingId:b,loadTime:Ea()},c)};var hm=function(a,b,c){this.s=a;this.eventName=b;this.m=c;this.o={};this.metadata={};this.J=!1},im=function(a,b,c){var d=a.m.getWithConfig(b);void 0!==d?a.o[b]=d:void 0!==c&&(a.o[b]=c)},jm=function(a,b,c){var d=ze(a.s);return d&&d.hasOwnProperty(b)?d[b]:c};function km(a){return{getDestinationId:function(){return a.s},getEventName:function(){return a.eventName},setEventName:function(b){return void(a.eventName=b)},getHitData:function(b){return a.o[b]},setHitData:function(b,c){return void(a.o[b]=c)},setHitDataIfNotDefined:function(b,c){void 0===a.o[b]&&(a.o[b]=c)},copyToHitData:function(b,c){im(a,b,c)},getMetadata:function(b){return a.metadata[b]},setMetadata:function(b,c){return void(a.metadata[b]=c)},abort:function(){return void(a.J=!0)},getProcessedEvent:function(){return a}}}
|
||||
;var Im=function(){var a=!0;Mk(7)&&Mk(9)&&Mk(10)||(a=!1);return a},Jm=function(){var a=!0;Mk(3)&&Mk(4)||(a=!1);return a};
|
||||
var Nm=function(a,b){var c=b.getWithConfig(O.Ra),d=b.getWithConfig(O.ab),e=b.getWithConfig(c);if(void 0===e){var f=void 0;Km.hasOwnProperty(c)?f=Km[c]:Lm.hasOwnProperty(c)&&(f=Lm[c]);1===f&&(f=Mm(c));k(f)?Yh()(function(){var g=Yh().getByName(a).get(f);d(g)}):d(void 0)}else d(e);},Om=function(a,b){var c=a[O.vc],d=b+".",e=a[O.N]||"",f=void 0===c?!!a.use_anchor:"fragment"===c,g=!!a[O.Mb];e=String(e).replace(/\s+/g,"").split(",");var l=Yh();l(d+
|
||||
"require","linker");l(d+"linker:autoLink",e,f,g)},Sm=function(a,b,c){if(hd()&&(!c.isGtmEvent||!Pm[a])){var d=!wd(O.M),e=function(f){var g,l,m=Yh(),n=Qm(b,"",c),p,q=n.createOnlyFields._useUp;if(c.isGtmEvent||Rm(b,n.createOnlyFields)){c.isGtmEvent&&(g="gtm"+me(),l=n.createOnlyFields,n.gtmTrackerName&&(l.name=g));m(function(){var u=m.getByName(b);u&&(p=u.get("clientId"));c.isGtmEvent||m.remove(b)});m("create",a,c.isGtmEvent?l:n.createOnlyFields);d&&wd(O.M)&&(d=!1,m(function(){var u=Yh().getByName(c.isGtmEvent?g:b);!u||u.get("clientId")==p&&q||(c.isGtmEvent?(n.fieldsToSet["&gcu"]="1",n.fieldsToSet["&gcut"]=O.Sd[f]):(n.fieldsToSend["&gcu"]="1",n.fieldsToSend["&gcut"]=O.Sd[f]),u.set(n.fieldsToSet),c.isGtmEvent?u.send("pageview"):u.send("pageview",n.fieldsToSend))}));c.isGtmEvent&&m(function(){m.remove(g)})}};yd(function(){return e(O.M)},
|
||||
O.M);yd(function(){return e(O.D)},O.D);c.isGtmEvent&&(Pm[a]=!0)}},Tm=function(a,b){Fj()&&b&&(a[O.pb]=b)},bn=function(a,b,c){function d(){var I=c.getWithConfig(O.nc);l(function(){if(!c.isGtmEvent&&xb(I)){var M=t.fieldsToSend,N=m().getByName(n),L;for(L in I)if(I.hasOwnProperty(L)&&/^(dimension|metric)\d+$/.test(L)&&void 0!=I[L]){var K=N.get(Mm(I[L]));Um(M,L,K)}}})}function e(){if(t.displayfeatures){var I="_dc_gtm_"+f.replace(/[^A-Za-z0-9-]/g,"");p("require","displayfeatures",void 0,{cookieName:I})}}
|
||||
var f=a,g="https://www.google-analytics.com/analytics.js",l=c.isGtmEvent?$h(c.getWithConfig("gaFunctionName")):$h();if(na(l)){var m=Yh,n;c.isGtmEvent?n=c.getWithConfig("name")||c.getWithConfig("gtmTrackerName"):n="gtag_"+f.split("-").join("_");var p=function(I){var M=[].slice.call(arguments,0);M[0]=n?n+"."+M[0]:""+M[0];l.apply(window,M)},q=function(I){var M=function(R,ia){for(var ra=0;ia&&ra<ia.length;ra++)p(R,ia[ra])},N=c.isGtmEvent,L=N?Vm(t):Wm(b,c);if(L){var K={};Tm(K,I);p("require","ec","ec.js",
|
||||
K);N&&L.Ke&&p("set","&cu",L.Ke);var W=L.action;if(N||"impressions"===W)if(M("ec:addImpression",L.Eg),!N)return;if("promo_click"===W||"promo_view"===W||N&&L.Nc){var T=L.Nc;M("ec:addPromo",T);if(T&&0<T.length&&"promo_click"===W){N?p("ec:setAction",W,L.ib):p("ec:setAction",W);return}if(!N)return}"promo_view"!==W&&"impressions"!==W&&(M("ec:addProduct",L.zb),p("ec:setAction",W,L.ib))}},r=function(I){if(I){var M={};if(xb(I))for(var N in Xm)Xm.hasOwnProperty(N)&&Ym(Xm[N],N,I[N],M);
|
||||
Tm(M,x);p("require","linkid",M)}},u=function(){if(Gj()){}else{var I=c.getWithConfig(O.Ih);I&&(p("require",I,{dataLayer:S.V}),p("require","render"))}},t=Qm(n,b,c),v=function(I,M,N){N&&(M=""+M);t.fieldsToSend[I]=M};!c.isGtmEvent&&Rm(n,t.createOnlyFields)&&(l(function(){m()&&m().remove(n)}),Zm[n]=!1);l("create",f,t.createOnlyFields);if(t.createOnlyFields[O.pb]&&
|
||||
!c.isGtmEvent){var y=Dj(t.createOnlyFields[O.pb],"/analytics.js");y&&(g=y)}var x=c.isGtmEvent?t.fieldsToSet[O.pb]:t.createOnlyFields[O.pb];if(x){var w=c.isGtmEvent?t.fieldsToSet[O.ed]:t.createOnlyFields[O.ed];w&&!Zm[n]&&(Zm[n]=!0,l(di(n,w)))}c.isGtmEvent?t.enableRecaptcha&&p("require","recaptcha","recaptcha.js"):(d(),r(t.linkAttribution));var B=t[O.ja];B&&B[O.N]&&Om(B,n);p("set",t.fieldsToSet);if(c.isGtmEvent){if(t.enableLinkId){var z={};
|
||||
Tm(z,x);p("require","linkid","linkid.js",z)}hd()&&Sm(f,n,c)}if(b===O.bc)if(c.isGtmEvent){e();if(t.remarketingLists){var C="_dc_gtm_"+f.replace(/[^A-Za-z0-9-]/g,"");p("require","adfeatures",{cookieName:C})}q(x);p("send","pageview");t.createOnlyFields._useUp&&ai(n+".")}else u(),p("send","pageview",t.fieldsToSend);else b===O.Aa?(u(),ol(f,c),c.getWithConfig(O.hb)&&(dh(["aw","dc"]),ai(n+".")),0!=t.sendPageView&&p("send","pageview",t.fieldsToSend),
|
||||
Sm(f,n,c),!c.isGtmEvent&&0<c.getEventModelKeys().length&&(Q(68),1<U.configCount&&Q(69))):b===O.Ia?Nm(n,c):"screen_view"===b?p("send","screenview",t.fieldsToSend):"timing_complete"===b?(t.fieldsToSend.hitType="timing",v("timingCategory",t.eventCategory,!0),c.isGtmEvent?v("timingVar",t.timingVar,!0):v("timingVar",t.name,!0),v("timingValue",za(t.value)),void 0!==t.eventLabel&&v("timingLabel",t.eventLabel,!0),p("send",t.fieldsToSend)):"exception"===b?p("send","exception",t.fieldsToSend):""===b&&c.isGtmEvent||
|
||||
("track_social"===b&&c.isGtmEvent?(t.fieldsToSend.hitType="social",v("socialNetwork",t.socialNetwork,!0),v("socialAction",t.socialAction,!0),v("socialTarget",t.socialTarget,!0)):((c.isGtmEvent||$m[b])&&q(x),c.isGtmEvent&&e(),t.fieldsToSend.hitType="event",v("eventCategory",t.eventCategory,!0),v("eventAction",t.eventAction||b,!0),void 0!==t.eventLabel&&v("eventLabel",t.eventLabel,!0),void 0!==t.value&&v("eventValue",za(t.value))),p("send",t.fieldsToSend));var D=!1;var E=an;D&&(E=c.getContainerTypeLoaded("UA"));if(!E&&!c.isGtmEvent){an=!0;D&&c.setContainerTypeLoaded("UA",!0);Th();var F=function(){D&&c.setContainerTypeLoaded("UA",!1);c.onFailure()},P=function(){m().loaded||F()};Gj()?H(P):gb(g,P,F)}}else H(c.onFailure)},cn=function(a,b,c,d){zd(function(){bn(a,b,d)},[O.M,O.D])},en=function(a,b){function c(f){function g(p,q){for(var r=0;r<q.length;r++){var u=q[r];if(f[u]){m[p]=f[u];break}}}
|
||||
function l(){if(f.category)m.category=f.category;else{for(var p="",q=0;q<dn.length;q++)void 0!==f[dn[q]]&&(p&&(p+="/"),p+=f[dn[q]]);p&&(m.category=p)}}var m=J(f),n=!1;if(n||b)g("id",["id","item_id","promotion_id"]),g("name",["name","item_name","promotion_name"]),g("brand",["brand","item_brand"]),g("variant",["variant","item_variant"]),g("list",["list_name","item_list_name"]),
|
||||
g("position",["list_position","creative_slot","index"]),l();g("listPosition",["list_position"]);g("creative",["creative_name"]);g("list",["list_name"]);g("position",["list_position","creative_slot"]);return m}b=void 0===b?!1:b;for(var d=[],e=0;a&&e<a.length;e++)a[e]&&xb(a[e])&&d.push(c(a[e]));return d.length?d:void 0},fn=function(a){return wd(a)},gn=!1;var an,Zm={},Pm={},hn={},Km=Object.freeze((hn.client_storage=
|
||||
"storage",hn.sample_rate=1,hn.site_speed_sample_rate=1,hn.store_gac=1,hn.use_amp_client_id=1,hn[O.Ba]=1,hn[O.qa]="storeGac",hn[O.ia]=1,hn[O.ra]=1,hn[O.Ka]=1,hn[O.Ib]=1,hn[O.Za]=1,hn[O.Jb]=1,hn)),jn={},kn=Object.freeze((jn._cs=1,jn._useUp=1,jn.allowAnchor=1,jn.allowLinker=1,jn.alwaysSendReferrer=1,jn.clientId=1,jn.cookieDomain=1,jn.cookieExpires=1,jn.cookieFlags=1,jn.cookieName=1,jn.cookiePath=1,jn.cookieUpdate=1,jn.legacyCookieDomain=1,jn.legacyHistoryImport=1,jn.name=1,jn.sampleRate=1,jn.siteSpeedSampleRate=
|
||||
1,jn.storage=1,jn.storeGac=1,jn.useAmpClientId=1,jn._cd2l=1,jn)),ln=Object.freeze({anonymize_ip:1}),mn={},Lm=Object.freeze((mn.campaign={content:"campaignContent",id:"campaignId",medium:"campaignMedium",name:"campaignName",source:"campaignSource",term:"campaignKeyword"},mn.app_id=1,mn.app_installer_id=1,mn.app_name=1,mn.app_version=1,mn.description="exDescription",mn.fatal="exFatal",mn.language=1,mn.page_hostname="hostname",mn.transport_type="transport",mn[O.ca]="currencyCode",mn[O.Ff]=1,mn[O.Sa]=
|
||||
"location",mn[O.pe]="page",mn[O.La]="referrer",mn[O.wc]="title",mn[O.Nf]=1,mn[O.Da]=1,mn)),nn={},on=Object.freeze((nn.content_id=1,nn.event_action=1,nn.event_category=1,nn.event_label=1,nn.link_attribution=1,nn.name=1,nn[O.ja]=1,nn[O.Ef]=1,nn[O.sa]=1,nn[O.fa]=1,nn)),pn=Object.freeze({displayfeatures:1,enableLinkId:1,enableRecaptcha:1,eventAction:1,eventCategory:1,eventLabel:1,gaFunctionName:1,gtmEcommerceData:1,gtmTrackerName:1,linker:1,remarketingLists:1,socialAction:1,socialNetwork:1,socialTarget:1,
|
||||
timingVar:1,value:1}),dn=Object.freeze(["item_category","item_category2","item_category3","item_category4","item_category5"]),qn={},Xm=Object.freeze((qn.levels=1,qn[O.ra]="duration",qn[O.Ib]=1,qn)),rn={},sn=Object.freeze((rn.anonymize_ip=1,rn.fatal=1,rn.send_page_view=1,rn.store_gac=1,rn.use_amp_client_id=1,rn[O.qa]=1,rn[O.Ff]=1,rn)),Ym=function(a,b,c,d){if(void 0!==c)if(sn[b]&&(c=Aa(c)),"anonymize_ip"!==b||c||(c=void 0),1===a)d[Mm(b)]=c;else if(k(a))d[a]=c;else for(var e in a)a.hasOwnProperty(e)&&
|
||||
void 0!==c[e]&&(d[a[e]]=c[e])},Mm=function(a){return a&&k(a)?a.replace(/(_[a-z])/g,function(b){return b[1].toUpperCase()}):a},tn={},$m=Object.freeze((tn.checkout_progress=1,tn.select_content=1,tn.set_checkout_option=1,tn[O.Eb]=1,tn[O.Fb]=1,tn[O.lb]=1,tn[O.nb]=1,tn[O.Gb]=1,tn[O.ma]=1,tn[O.Hb]=1,tn[O.na]=1,tn)),un={},vn=Object.freeze((un.checkout_progress=1,un.set_checkout_option=1,un[O.tf]=1,un[O.Eb]=1,un[O.Fb]=1,un[O.lb]=1,un[O.ma]=1,un[O.Hb]=1,un[O.uf]=1,un)),wn={},xn=Object.freeze((wn.generate_lead=
|
||||
1,wn.login=1,wn.search=1,wn.select_content=1,wn.share=1,wn.sign_up=1,wn.view_search_results=1,wn[O.nb]=1,wn[O.Gb]=1,wn[O.na]=1,wn)),yn=function(a){var b="general";vn[a]?b="ecommerce":xn[a]?b="engagement":"exception"===a&&(b="error");return b},zn={},An=Object.freeze((zn.view_search_results=1,zn[O.nb]=1,zn[O.Gb]=1,zn[O.na]=1,zn)),Um=function(a,b,c){a.hasOwnProperty(b)||(a[b]=c)},Bn=function(a){if(qa(a)){for(var b=[],c=0;c<a.length;c++){var d=a[c];if(void 0!=d){var e=d.id,f=d.variant;void 0!=e&&void 0!=
|
||||
f&&b.push(String(e)+"."+String(f))}}return 0<b.length?b.join("!"):void 0}},Qm=function(a,b,c){var d=function(P){return c.getWithConfig(P)},e={},f={},g={},l={},m=Bn(d(O.Hh));!c.isGtmEvent&&m&&Um(f,"exp",m);g[">m"]=mk(!0);hd()&&(l._cs=fn);var n=d(O.nc);if(!c.isGtmEvent&&xb(n))for(var p in n)if(n.hasOwnProperty(p)&&/^(dimension|metric)\d+$/.test(p)&&void 0!=n[p]){var q=d(String(n[p]));void 0!==q&&Um(f,p,q)}for(var r=c.getTopLevelKeys(),u=0;u<r.length;++u){var t=r[u];if(c.isGtmEvent){var v=d(t);pn.hasOwnProperty(t)?
|
||||
e[t]=v:kn.hasOwnProperty(t)?l[t]=v:g[t]=v}else{var y=void 0;y=t!==O.T?d(t):c.getMergedValues(t);if(on.hasOwnProperty(t))Ym(on[t],t,y,e);else if(ln.hasOwnProperty(t))Ym(ln[t],t,y,g);else if(Lm.hasOwnProperty(t))Ym(Lm[t],t,y,f);else if(Km.hasOwnProperty(t))Ym(Km[t],t,y,l);else if(/^(dimension|metric|content_group)\d+$/.test(t))Ym(1,t,y,f);else if(t===O.T){if(!gn){var x=Na(y);x&&(f["&did"]=x)}var w=void 0,B=void 0;b===O.Aa?w=Na(c.getMergedValues(t),"."):(w=Na(c.getMergedValues(t,1),"."),B=Na(c.getMergedValues(t,
|
||||
2),"."));w&&(f["&gdid"]=w);B&&(f["&edid"]=B)}else t===O.Ca&&0>r.indexOf(O.Ib)&&(l.cookieName=y+"_ga")}}!1!==d(O.xh)&&!1!==d(O.cc)&&Im()||(g.allowAdFeatures=!1);!1!==d(O.W)&&Jm()||(g.allowAdPersonalizationSignals=!1);!c.isGtmEvent&&d(O.hb)&&(l._useUp=!0);if(c.isGtmEvent){l.name=l.name||e.gtmTrackerName;var z=g.hitCallback;g.hitCallback=function(){na(z)&&z();c.onSuccess()}}else{Um(l,"cookieDomain","auto");Um(g,"forceSSL",!0);Um(e,"eventCategory",yn(b));An[b]&&Um(f,"nonInteraction",!0);"login"===b||
|
||||
"sign_up"===b||"share"===b?Um(e,"eventLabel",d(O.Ef)):"search"===b||"view_search_results"===b?Um(e,"eventLabel",d(O.Oh)):"select_content"===b&&Um(e,"eventLabel",d(O.Bh));var C=e[O.ja]||{},D=C[O.Lb];D||0!=D&&C[O.N]?l.allowLinker=!0:!1===D&&Um(l,"useAmpClientId",!1);f.hitCallback=c.onSuccess;l.name=a}hd()&&(g["&gcs"]=xd(),wd(O.M)||(l.storage="none"),wd(O.D)||(g.allowAdFeatures=!1,l.storeGac=!1));var E=d(O.va)||d(O.pb),F=d(O.ed);E&&(c.isGtmEvent||(l[O.pb]=E),l._cd2l=!0);F&&!c.isGtmEvent&&(l[O.ed]=F);
|
||||
e.fieldsToSend=f;e.fieldsToSet=g;e.createOnlyFields=l;return e},Vm=function(a){var b=a.gtmEcommerceData;if(!b)return null;var c={};b.currencyCode&&(c.Ke=b.currencyCode);if(b.impressions){c.action="impressions";var d=b.impressions;c.Eg="impressions"===b.translateIfKeyEquals?en(d,!0):d}if(b.promoView){c.action="promo_view";var e=b.promoView.promotions;c.Nc="promoView"===b.translateIfKeyEquals?en(e,!0):e}if(b.promoClick){c.action="promo_click";var f=b.promoClick.promotions;c.Nc="promoClick"===b.translateIfKeyEquals?
|
||||
en(f,!0):f;c.ib=b.promoClick.actionField;return c}for(var g in b)if(b.hasOwnProperty(g)&&"translateIfKeyEquals"!==g&&"impressions"!==g&&"promoView"!==g&&"promoClick"!==g&&"currencyCode"!==g){c.action=g;var l=b[g].products;c.zb="products"===b.translateIfKeyEquals?en(l,!0):l;c.ib=b[g].actionField;break}return Object.keys(c).length?c:null},Wm=function(a,b){function c(u){return{id:d(O.fb),affiliation:d(O.Eh),revenue:d(O.fa),tax:d(O.yf),shipping:d(O.he),coupon:d(O.Fh),list:d(O.fe)||u}}for(var d=function(u){return b.getWithConfig(u)},
|
||||
e=d(O.X),f,g=0;e&&g<e.length&&!(f=e[g][O.fe]);g++);var l=d(O.nc);if(xb(l))for(var m=0;e&&m<e.length;++m){var n=e[m],p;for(p in l)l.hasOwnProperty(p)&&/^(dimension|metric)\d+$/.test(p)&&void 0!=l[p]&&Um(n,p,n[l[p]])}var q=null,r=d(O.Gh);a===O.ma||a===O.Hb?q={action:a,ib:c(),zb:en(e)}:a===O.Eb?q={action:"add",zb:en(e)}:a===O.Fb?q={action:"remove",zb:en(e)}:a===O.na?q={action:"detail",ib:c(f),zb:en(e)}:a===O.nb?q={action:"impressions",Eg:en(e)}:"view_promotion"===a?q={action:"promo_view",Nc:en(r)}:"select_content"===
|
||||
a&&r&&0<r.length?q={action:"promo_click",Nc:en(r)}:"select_content"===a?q={action:"click",ib:{list:d(O.fe)||f},zb:en(e)}:a===O.lb||"checkout_progress"===a?q={action:"checkout",zb:en(e),ib:{step:a===O.lb?1:d(O.xf),option:d(O.wf)}}:"set_checkout_option"===a&&(q={action:"checkout_option",ib:{step:d(O.xf),option:d(O.wf)}});q&&(q.Ke=d(O.ca));return q},Cn={},Rm=function(a,b){var c=Cn[a];Cn[a]=J(b);if(!c)return!1;for(var d in b)if(b.hasOwnProperty(d)&&b[d]!==c[d])return!0;for(var e in c)if(c.hasOwnProperty(e)&&
|
||||
c[e]!==b[e])return!0;return!1};function Dn(){return U.gcq=U.gcq||new En}
|
||||
var Fn=function(a,b,c){Dn().register(a,b,c)},Gn=function(a,b,c,d){Dn().push("event",[b,a],c,d)},Hn=function(a,b){Dn().push("config",[a],b)},In=function(a,b,c,d){Dn().push("get",[a,b],c,d)},Jn={},Kn=function(){this.status=1;this.containerConfig={};this.targetConfig={};this.remoteConfig={};this.o={};this.s=null;this.claimed=this.m=!1},Ln=function(a,b,c,d,e){this.type=a;this.s=b;this.O=c||"";this.m=d;this.o=e},En=function(){this.o={};this.s={};this.m=[];this.C={AW:!1,UA:!1}},Mn=function(a,b){var c=bl(b);
|
||||
return a.o[c.containerId]=a.o[c.containerId]||new Kn},Nn=function(a,b,c){if(b){var d=bl(b);if(d&&1===Mn(a,b).status){Mn(a,b).status=2;var e={};Si&&(e.timeoutId=A.setTimeout(function(){Q(38);vi()},3E3));a.push("require",[e],d.containerId);Jn[d.containerId]=Ea();if(Gj()){}else if(Jj)Kj(d.containerId,
|
||||
c,!0);else{var g="/gtag/js?id="+encodeURIComponent(d.containerId)+"&l="+S.V+"&cx=c";Fj()&&(g+="&sign="+S.Dc);var l=("http:"!=A.location.protocol?"https:":"http:")+("//www.googletagmanager.com"+g),m=Dj(c,g)||l;gb(m)}}}},On=function(a,b,c,d){if(d.O){var e=Mn(a,d.O),f=e.s;if(f){var g=J(c),l=J(e.targetConfig[d.O]),m=J(e.containerConfig),n=J(e.remoteConfig),p=J(a.s),q={};
|
||||
var r=se("gtm.uniqueEventId"),u=bl(d.O).prefix,t=Ha(function(){var y=g[O.Kb];y&&H(y)}),v=fk(ek(gk(dk(bk(ak(ck(Zj(Yj(Xj(g),l),m),n),p),q),function(){uj(r,u,"2");t()}),function(){uj(r,u,"3");t()}),function(y,x){a.C[y]=x}),function(y){return a.C[y]});try{uj(r,u,"1"),Tj(d.type,d.O,v),"config"===
|
||||
d.type&&Uj(d.O);f(d.O,b,d.s,v)}catch(y){uj(r,u,"4");}}}};h=En.prototype;
|
||||
h.register=function(a,b,c){var d=Mn(this,a);if(3!==d.status){d.s=b;d.status=3;c&&(J(d.remoteConfig,c),d.remoteConfig=c);var e=bl(a),f=Jn[e.containerId];if(void 0!==f){var g=U[e.containerId].bootstrap,l=e.prefix.toUpperCase();U[e.containerId]._spx&&(l=l.toLowerCase());var m=se("gtm.uniqueEventId"),n=l,p=Ea()-g;if(Si&&!Ai[m]){m!==wi&&(ri(),wi=m);var q=n+"."+Math.floor(g-f)+"."+Math.floor(p);Hi=Hi?Hi+","+q:"&cl="+q}delete Jn[e.containerId]}this.flush()}};
|
||||
h.notifyContainerLoaded=function(a,b){var c=this,d=function(f){if(bl(f)){var g=Mn(c,f);g.status=3;g.claimed=!0}};d(a);for(var e=0;e<b.length;e++)d(b[e]);this.flush()};h.push=function(a,b,c,d){if(void 0!==c){if(!bl(c))return;Nn(this,c,b[0][O.va]||this.s[O.va]);Mn(this,c).m&&(d=!1)}this.m.push(new Ln(a,Math.floor(Ea()/1E3),c,b,d));d||this.flush()};h.insert=function(a,b,c){var d=Math.floor(Ea()/1E3);0<this.m.length?this.m.splice(1,0,new Ln(a,d,c,b,!1)):this.m.push(new Ln(a,d,c,b,!1))};
|
||||
h.flush=function(a){for(var b=this,c=[],d=!1,e={};this.m.length;){var f=this.m[0];if(f.o)!f.O||Mn(this,f.O).m?(f.o=!1,this.m.push(f)):c.push(f),this.m.shift();else{var g=void 0;switch(f.type){case "require":g=Mn(this,f.O);if(3!==g.status&&!a){this.m.push.apply(this.m,c);return}Si&&A.clearTimeout(f.m[0].timeoutId);break;case "set":xa(f.m[0],function(r,u){J(La(r,u),b.s)});break;case "config":g=Mn(this,f.O);if(g.claimed)break;
|
||||
e.Pa={};xa(f.m[0],function(r){return function(u,t){J(La(u,t),r.Pa)}}(e));var l=!!e.Pa[O.ld];delete e.Pa[O.ld];var m=bl(f.O),n=m.containerId===m.id;l||(n?g.containerConfig={}:g.targetConfig[f.O]={});g.m&&l||On(this,O.Aa,e.Pa,f);g.m=!0;delete e.Pa[O.rb];n?J(e.Pa,g.containerConfig):(J(e.Pa,g.targetConfig[f.O]),Q(70));d=!0;break;case "event":if(g=Mn(this,f.O),g.claimed)break;
|
||||
e.Uc={};xa(f.m[0],function(r){return function(u,t){J(La(u,t),r.Uc)}}(e));On(this,f.m[1],e.Uc,f);break;case "get":if(g=Mn(this,f.O),g.claimed)break;var p={},q=(p[O.Ra]=f.m[0],p[O.ab]=f.m[1],p);On(this,O.Ia,q,f)}this.m.shift();Pn(this,f)}e={Pa:e.Pa,Uc:e.Uc}}this.m.push.apply(this.m,c);d&&this.flush()};
|
||||
var Pn=function(a,b){if("require"!==b.type)if(b.O)for(var c=a.getCommandListeners(b.O)[b.type]||[],d=0;d<c.length;d++)c[d]();else for(var e in a.o)if(a.o.hasOwnProperty(e)){var f=a.o[e];if(f&&f.o)for(var g=f.o[b.type]||[],l=0;l<g.length;l++)g[l]()}};En.prototype.getRemoteConfig=function(a){return Mn(this,a).remoteConfig};En.prototype.getCommandListeners=function(a){return Mn(this,a).o};var Qn=!1;var Rn=!1;var Sn=function(a,b){U.addDestinationToContainer?U.addDestinationToContainer(a,b):(U.pendingDestinationIds=U.pendingDestinationIds||[],U.pendingDestinationIds.push([a,b]))};
|
||||
var Tn={},Un={},Vn=function(a){U.addTargetToGroup?U.addTargetToGroup(a):(U.pendingDefaultTargets=U.pendingDefaultTargets||[],U.pendingDefaultTargets.push(a))},Wn=function(a,b){var c=Un[b]||[];c.push(a);Un[b]=c},Yn=function(){U.addTargetToGroup=function(e){Xn(e,"default")};U.addDestinationToContainer=function(e,f){Wn(e,f)};var a=U.pendingDefaultTargets;delete U.pendingDefaultTargets;if(Array.isArray(a))for(var b=0;b<a.length;++b)Xn(a[b],"default");var c=U.pendingDestinationIds;delete U.pendingDestinationIds;
|
||||
if(Array.isArray(c))for(var d=0;d<c.length;++d)Wn(c[d][0],c[d][1])},Xn=function(a,b){b=b.toString().split(",");for(var c=0;c<b.length;c++){var d=Tn[b[c]]||[];Tn[b[c]]=d;0>d.indexOf(a)&&d.push(a)}},Zn=function(a){xa(Tn,function(b,c){var d=c.indexOf(a);0<=d&&c.splice(d,1)})};var jo=function(a){var b=U.zones;return b?b.getIsAllowedFn(S.H,a):function(){return!0}},ko=function(a){var b=U.zones;return b?b.isActive(S.H,a):!0};var no=function(a,b){for(var c=[],d=0;d<Zb.length;d++)if(a[d]){var e=Zb[d];var f=Sh(b.Sb);try{var g=wj(d,{onSuccess:f,onFailure:f,terminate:f},b,d);if(g){var l=c,m=l.push,n=d,p=e["function"];if(!p)throw"Error: No function name given for function call.";var q=bc[p];m.call(l,{Wg:n,Ng:q?q.priorityOverride||0:0,execute:g})}else lo(d,b),f()}catch(t){f()}}var r=b.Sb;r.U=!0;r.o>=r.s&&Qh(r);c.sort(mo);for(var u=0;u<c.length;u++)c[u].execute();
|
||||
return 0<c.length};function mo(a,b){var c,d=b.Ng,e=a.Ng;c=d>e?1:d<e?-1:0;var f;if(0!==c)f=c;else{var g=a.Wg,l=b.Wg;f=g>l?1:g<l?-1:0}return f}function lo(a,b){if(!Si)return;var c=function(d){var e=b.Te(Zb[d])?"3":"4",f=gc(Zb[d][zb.Yf],b,[]);f&&f.length&&c(f[0].index);nj(b.id,Zb[d],e);var g=gc(Zb[d][zb.$f],b,[]);g&&g.length&&c(g[0].index)};c(a);}var oo=!1;
|
||||
var to=function(a){var b=Ea(),c=a["gtm.uniqueEventId"],d=a.event;if("gtm.js"===d){if(oo)return!1;oo=!0;}var g,l=!1;if(ko(c))g=jo(c);else{if("gtm.js"!==d&&"gtm.init"!==d&&"gtm.init_consent"!==d)return!1;l=!0;g=jo(Number.MAX_SAFE_INTEGER)}
|
||||
Xi(c,d);var m=a.eventCallback,n=a.eventTimeout,p=m;var q={id:c,name:d,Te:Fh(g),zj:[],Hg:function(){Q(6)},ng:po(),og:qo(c),Sb:new Nh(p,n)},r=lc(q);l&&(r=
|
||||
ro(r));var u=no(r,q);"gtm.js"!==d&&"gtm.sync"!==d||ci(S.H);return so(r,u)};function qo(a){return function(b){Si&&(yb(b)||vj(a,"input",b))}}
|
||||
function po(){var a={};a.event=we("event",1);a.ecommerce=we("ecommerce",1);a.gtm=we("gtm");a.eventModel=we("eventModel");return a}function ro(a){for(var b=[],c=0;c<a.length;c++)a[c]&&(Zd[String(Zb[c][zb.sb])]&&(b[c]=!0),void 0!==Zb[c][zb.ci]&&(b[c]=!0));return b}function so(a,b){if(!b)return b;for(var c=0;c<a.length;c++)if(a[c]&&Zb[c]&&!$d[String(Zb[c][zb.sb])])return!0;return!1}var uo="HA GF G UA AW DC".split(" "),vo=!1,wo=!1,xo=0;function yo(a){a.hasOwnProperty("gtm.uniqueEventId")||Object.defineProperty(a,"gtm.uniqueEventId",{value:me()});return a["gtm.uniqueEventId"]}function zo(){vo||U.gtagRegistered||(vo=U.gtagRegistered=!0,Yn());return vo}
|
||||
var Ao={config:function(a){yo(a);if(2>a.length||!k(a[1]))return;var b={};if(2<a.length){if(void 0!=a[2]&&!xb(a[2])||3<a.length)return;b=a[2]}var c=bl(a[1]);if(!c)return;var d=zo();Zn(c.id);Xn(c.id,b[O.me]||"default");delete b[O.me];wo||Q(43);if(d&&-1!==uo.indexOf(c.prefix)){"G"===c.prefix&&(b[O.rb]=!0);delete b[O.Kb];c.id===c.containerId&&(U.configCount=++xo);Hn(b,c.id);return}ve("gtag.targets."+c.id,void 0);ve("gtag.targets."+c.id,J(b));},
|
||||
consent:function(a,b){if(3===a.length){Q(39);var c=me(),d=a[1];"default"===d?td(a[2]):"update"===d&&vd(a[2],c,b)}},event:function(a){var b=a[1];if(!(2>a.length)&&k(b)){var c;if(2<a.length){if(!xb(a[2])&&void 0!=a[2]||3<a.length)return;c=a[2]}var d=c,e={},f=(e.event=b,e);d&&(f.eventModel=J(d),d[O.Kb]&&(f.eventCallback=d[O.Kb]),d[O.dd]&&(f.eventTimeout=d[O.dd]));var g=yo(a);f["gtm.uniqueEventId"]=g;if("optimize.callback"===b)return f.eventModel=f.eventModel||{},f;var l;
|
||||
var m=c&&c[O.Nb];void 0===m&&(m=se(O.Nb,2),void 0===m&&(m="default"));if(k(m)||qa(m)){for(var n=m.toString().replace(/\s+/g,"").split(","),p=[],q=0;q<n.length;q++)if(0<=n[q].indexOf("-"))Qn&&Rn?-1<(Un[S.H]||[]).indexOf(n[q])&&p.push(n[q]):p.push(n[q]);else{var r=Tn[n[q]]||[];if(Qn)if(Rn){if(-1<r.indexOf(S.H)){var u=Un[S.H];u&&u.length&&(p=p.concat(u))}}else for(var t=0;t<r.length;t++){var v=Un[r[t]];v&&v.length&&(p=p.concat(v))}else r&&r.length&&(p=p.concat(r))}l=dl(p)}else l=void 0;var y=l;if(!y)return;
|
||||
for(var x=zo(),w=[],B=0;x&&B<y.length;B++){var z=y[B];if(-1!==uo.indexOf(z.prefix)){var C=J(c);"G"===z.prefix&&(C[O.rb]=!0);delete C[O.Kb];Gn(b,C,z.id)}w.push(z.id)}f.eventModel=f.eventModel||{};0<y.length?f.eventModel[O.Nb]=w.join():delete f.eventModel[O.Nb];wo||Q(43);return f}},get:function(a){Q(53);if(4!==a.length||!k(a[1])||!k(a[2])||!na(a[3]))return;var b=bl(a[1]),c=String(a[2]),d=a[3];if(!b)return;wo||Q(43);if(!zo()||-1===uo.indexOf(b.prefix))return;
|
||||
me();var e={};nd(J((e[O.Ra]=c,e[O.ab]=d,e)));In(c,function(f){H(function(){return d(f)})},b.id);},js:function(a){if(2==a.length&&a[1].getTime){wo=!0;zo();var b={};return b.event="gtm.js",b["gtm.start"]=a[1].getTime(),b["gtm.uniqueEventId"]=yo(a),b}},policy:function(){},set:function(a){var b;2==a.length&&xb(a[1])?b=J(a[1]):3==a.length&&k(a[1])&&(b={},xb(a[2])||qa(a[2])?b[a[1]]=J(a[2]):b[a[1]]=a[2]);if(b){if(me(),J(b),zo()){var c=J(b);Dn().push("set",
|
||||
[c])}b._clear=!0;return b}}},To={policy:!0};var Vo=function(a){if(Uo(a))return a;this.m=a};Vo.prototype.getUntrustedMessageValue=function(){return this.m};var Uo=function(a){return!a||"object"!==vb(a)||xb(a)?!1:"getUntrustedMessageValue"in a};Vo.prototype.getUntrustedMessageValue=Vo.prototype.getUntrustedMessageValue;var ap=function(a){var b=A[S.V].hide;if(b&&void 0!==b[a]&&b.end){b[a]=!1;var c=!0,d;for(d in b)if(b.hasOwnProperty(d)&&!0===b[d]){c=!1;break}c&&(b.end(),b.end=null)}},bp=function(a){var b=A[S.V],c=b&&b.hide;c&&c.end&&(c[a]=!0)};var cp=!1,dp=[];function ep(){if(!cp){cp=!0;for(var a=0;a<dp.length;a++)H(dp[a])}}var fp=function(a){cp?H(a):dp.push(a)};var vp=0,wp={},xp=[],yp=[],zp=!1,Ap=!1,Bp=function(a){return A[S.V].push(a)},Cp=function(a,b){var c=U[S.V],d=c?c.subscribers:1,e=0,f=!1,g=void 0;b&&(g=A.setTimeout(function(){f||(f=!0,a());g=void 0},b));return function(){++e===d&&(g&&(A.clearTimeout(g),g=void 0),f||(a(),f=!0))}};
|
||||
function Dp(a){var b=a._clear;xa(a,function(d,e){"_clear"!==d&&(b&&ve(d,void 0),ve(d,e))});ee||(ee=a["gtm.start"]);var c=a["gtm.uniqueEventId"];if(!a.event)return!1;c||(c=me(),a["gtm.uniqueEventId"]=c,ve("gtm.uniqueEventId",c));return to(a)}function Ep(a){if(null==a||"object"!==typeof a)return!1;if(a.event)return!0;if(ya(a)){var b=a[0];if("config"===b||"event"===b||"js"===b)return!0}return!1}
|
||||
function Fp(){for(var a=!1;!Ap&&(0<xp.length||0<yp.length);){if(!zp&&Ep(xp[0])){var b={},c=(b.event="gtm.init_consent",b),d={},e=(d.event="gtm.init",d),f=xp[0]["gtm.uniqueEventId"];f&&(c["gtm.uniqueEventId"]=f-2,e["gtm.uniqueEventId"]=f-1);xp.unshift(c,e);zp=!0}Ap=!0;delete pe.eventModel;re();var g=null,l=void 0;null==g&&(g=xp.shift());if(null!=g){var n=Uo(g);if(n){var p=g;g=Uo(p)?p.getUntrustedMessageValue():void 0;for(var q=["gtm.allowlist","gtm.blocklist","gtm.whitelist","gtm.blacklist","tagTypeBlacklist"],r=0;r<q.length;r++){var u=q[r],t=se(u,1);if(qa(t)||xb(t))t=J(t);qe[u]=t}}try{if(na(g))try{g.call(te)}catch(F){}else if(qa(g)){var v=g;if(k(v[0])){var y=v[0].split("."),x=y.pop(),w=v.slice(1),B=se(y.join("."),
|
||||
2);if(null!=B)try{B[x].apply(B,w)}catch(F){}}}else{if(ya(g)){a:{var z=g,C=l;if(z.length&&k(z[0])){var D=Ao[z[0]];if(D&&(!n||!To[z[0]])){g=D(z,C);break a}}g=void 0}if(!g){Ap=!1;continue}}a=Dp(g)||a;}}finally{n&&re(!0)}}Ap=!1}
|
||||
return!a}function Hp(){var b=Fp();try{ap(S.H)}catch(c){}return b}
|
||||
var Jp=function(){var a=bb(S.V,[]),b=bb("google_tag_manager",{});b=b[S.V]=b[S.V]||{};Lh(function(){if(!b.gtmDom){b.gtmDom=!0;var e={};a.push((e.event="gtm.dom",e))}});fp(function(){if(!b.gtmLoad){b.gtmLoad=!0;var e={};a.push((e.event="gtm.load",e))}});b.subscribers=(b.subscribers||0)+1;var c=a.push;a.push=function(){var e;if(0<U.SANDBOXED_JS_SEMAPHORE){e=[];
|
||||
for(var f=0;f<arguments.length;f++)e[f]=new Vo(arguments[f])}else e=[].slice.call(arguments,0);xp.push.apply(xp,e);var g=c.apply(a,e);if(300<this.length)for(Q(4);300<this.length;)this.shift();var l="boolean"!==typeof g||g;return Fp()&&l};var d=a.slice(0);xp.push.apply(xp,d);if(Ip()){
|
||||
H(Hp)}},Ip=function(){var a=!0;return a};function Kp(a){if(null==a||0===a.length)return!1;var b=Number(a),c=Ea();return b<c+3E5&&b>c-9E5};var Lp={Lg:"UA-131016147-4"};var Mp={};Mp.od=new String("undefined");var mq=A.clearTimeout,nq=A.setTimeout,V=function(a,b,c,d){if(Gj()){b&&H(b)}else return gb(a,b,c,d)},oq=function(){return new Date},pq=function(){return A.location.href},qq=function(a){return Ne(Pe(a),"fragment")},rq=function(a){return Oe(Pe(a))},sq=function(a,b){return se(a,b||2)},tq=function(a,b,c){var d;b?(a.eventCallback=b,c&&(a.eventTimeout=c),d=Bp(a)):d=Bp(a);return d},uq=function(a,b){A[a]=b},X=function(a,b,
|
||||
c){b&&(void 0===A[a]||c&&!A[a])&&(A[a]=b);return A[a]},vq=function(a,b,c){return rf(a,b,void 0===c?!0:!!c)},wq=function(a,b,c){return 0===Af(a,b,c)},xq=function(a,b){if(Gj()){b&&H(b)}else jb(a,b)},yq=function(a){return!!Tp(a,"init",!1)},zq=function(a){Rp(a,"init",!0)},Aq=function(a,b,c){Si&&(yb(a)||vj(c,b,a))};
|
||||
|
||||
var Yq=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];function Zq(a,b){a=String(a);b=String(b);var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)===c}var $q=new va;function ar(a,b,c){var d=c?"i":void 0;try{var e=String(b)+d,f=$q.get(e);f||(f=new RegExp(b,d),$q.set(e,f));return f.test(a)}catch(g){return!1}}
|
||||
function br(a,b){function c(g){var l=Pe(g),m=Ne(l,"protocol"),n=Ne(l,"host",!0),p=Ne(l,"port"),q=Ne(l,"path").toLowerCase().replace(/\/$/,"");if(void 0===m||"http"===m&&"80"===p||"https"===m&&"443"===p)m="web",p="default";return[m,n,p,q]}for(var d=c(String(a)),e=c(String(b)),f=0;f<d.length;f++)if(d[f]!==e[f])return!1;return!0}
|
||||
function cr(a){return dr(a)?1:0}
|
||||
function dr(a){var b=a.arg0,c=a.arg1;if(a.any_of&&Array.isArray(c)){for(var d=0;d<c.length;d++){var e=J(a,{});J({arg1:c[d],any_of:void 0},e);if(cr(e))return!0}return!1}switch(a["function"]){case "_cn":return 0<=String(b).indexOf(String(c));case "_css":var f;a:{if(b)try{for(var g=0;g<Yq.length;g++){var l=Yq[g];if(b[l]){f=b[l](c);break a}}}catch(m){}f=!1}return f;case "_ew":return Zq(b,c);case "_eq":return String(b)===String(c);case "_ge":return Number(b)>=Number(c);case "_gt":return Number(b)>Number(c);
|
||||
case "_lc":return 0<=String(b).split(",").indexOf(String(c));case "_le":return Number(b)<=Number(c);case "_lt":return Number(b)<Number(c);case "_re":return ar(b,c,a.ignore_case);case "_sw":return 0===String(b).indexOf(String(c));case "_um":return br(b,c)}return!1};Object.freeze({dl:1,id:1});Object.freeze(["config","event","get","set"]);var ir=encodeURI,Y=encodeURIComponent,jr=kb;var kr=function(a,b){if(!a)return!1;var c=Ne(Pe(a),"host");if(!c)return!1;for(var d=0;b&&d<b.length;d++){var e=b[d]&&b[d].toLowerCase();if(e){var f=c.length-e.length;0<f&&"."!=e.charAt(0)&&(f--,e="."+e);if(0<=f&&c.indexOf(e,f)==f)return!0}}return!1};
|
||||
var lr=function(a,b,c){for(var d={},e=!1,f=0;a&&f<a.length;f++)a[f]&&a[f].hasOwnProperty(b)&&a[f].hasOwnProperty(c)&&(d[a[f][b]]=a[f][c],e=!0);return e?d:null};function Is(){return A.gaGlobal=A.gaGlobal||{}}var Js=function(){var a=Is();a.hid=a.hid||ua();return a.hid},Ks=function(a,b){var c=Is();if(void 0==c.vid||b&&!c.from_cookie)c.vid=a,c.from_cookie=b};var pt=function(){if(na(A.__uspapi)){var a="";try{A.__uspapi("getUSPData",1,function(b,c){if(c&&b){var d=b.uspString;d&&RegExp("^[\\da-zA-Z-]{1,20}$").test(d)&&(a=d)}})}catch(b){}return a}};var Ut=window,Vt=document,Wt=function(a){var b=Ut._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===Ut["ga-disable-"+a])return!0;try{var c=Ut.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(f){}for(var d=lf("AMP_TOKEN",String(Vt.cookie),!0),e=0;e<d.length;e++)if("$OPT_OUT"==d[e])return!0;return Vt.getElementById("__gaOptOutExtension")?!0:!1};var Xt={};function gu(a){delete a.eventModel[O.rb];nu(a.eventModel)}var nu=function(a){xa(a,function(c){"_"===c.charAt(0)&&delete a[c]});var b=a[O.Ea]||{};xa(b,function(c){"_"===c.charAt(0)&&delete b[c]})};var Fu=function(a,b,c){Gn(b,c,a)},Gu=function(a,b,c){Gn(b,c,a,!0)},Iu=function(a,b){};function Hu(a,b){}var Z={g:{}};
|
||||
|
||||
|
||||
|
||||
|
||||
Z.g.e=["google"],function(){(function(a){Z.__e=a;Z.__e.h="e";Z.__e.isVendorTemplate=!0;Z.__e.priorityOverride=0})(function(a){return String(a.vtp_gtmCachedValues.event)})}();
|
||||
|
||||
Z.g.v=["google"],function(){(function(a){Z.__v=a;Z.__v.h="v";Z.__v.isVendorTemplate=!0;Z.__v.priorityOverride=0})(function(a){var b=a.vtp_name;if(!b||!b.replace)return!1;var c=sq(b.replace(/\\\./g,"."),a.vtp_dataLayerVersion||1),d=void 0!==c?c:a.vtp_defaultValue;Aq(d,"v",a.vtp_gtmEventId);return d})}();
|
||||
Z.g.rep=["google"],function(){var a=!1;(function(b){Z.__rep=b;Z.__rep.h="rep";Z.__rep.isVendorTemplate=!0;Z.__rep.priorityOverride=0})(function(b){var c=bl(b.vtp_containerId),d;switch(c.prefix){case "AW":d=Ul;break;case "DC":d=gm;break;case "GF":d=zm;break;case "HA":d=Em;break;case "UA":d=cn;break;default:H(b.vtp_gtmOnFailure);return}H(b.vtp_gtmOnSuccess);if(a){var e=
|
||||
c.containerId,f=Un[e]||[];Dn().notifyContainerLoaded(e,f)}Fn(b.vtp_containerId,d,b.vtp_remoteConfig||{})});}();
|
||||
|
||||
Z.g.cid=["google"],function(){(function(a){Z.__cid=a;Z.__cid.h="cid";Z.__cid.isVendorTemplate=!0;Z.__cid.priorityOverride=0})(function(){return S.H})}();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Z.g.get=["google"],function(){(function(a){Z.__get=a;Z.__get.h="get";Z.__get.isVendorTemplate=!0;Z.__get.priorityOverride=0})(function(a){var b=a.vtp_settings;(a.vtp_deferrable?Gu:Fu)(String(b.streamId),String(a.vtp_eventName),b.eventParameters||{});a.vtp_gtmOnSuccess()})}();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Ju={};Ju.dataLayer=te;Ju.callback=function(a){he.hasOwnProperty(a)&&na(he[a])&&he[a]();delete he[a]};Ju.bootstrap=0;Ju._spx=!1;
|
||||
(function(a){if(!A["__TAGGY_INSTALLED"]){var b=!1;if(G.referrer){var c=Pe(G.referrer);b="cct.google"===Me(c,"host")}if(!b){var d=rf("googTaggyReferrer");b=d.length&&d[0].length}b&&(A["__TAGGY_INSTALLED"]=!0,gb("https://cct.google/taggy/agent.js"))}
|
||||
var f=function(q){var r="GTM",u="GTM";r="OGT",u="GTAG";var t=A["google.tagmanager.debugui2.queue"];t||(t=[],A["google.tagmanager.debugui2.queue"]=t,gb("https://"+S.Zc+"/debug/bootstrap?id="+S.H+"&src="+u+"&cond="+q+">m="+mk()));var v={messageType:"CONTAINER_STARTING",data:{scriptSource:ab,containerProduct:r,debug:!1,id:S.H}};v.data.resume=function(){a()};S.kh&&(v.data.initialPublish=
|
||||
!0);t.push(v)},g=void 0,l=Ne(A.location,"query",!1,void 0,"gtm_debug");Kp(l)&&(g=2);if(!g&&G.referrer){var m=Pe(G.referrer);"tagassistant.google.com"===Me(m,"host")&&(g=3)}if(!g){var n=rf("__TAG_ASSISTANT");n.length&&n[0].length&&(g=4)}if(!g){var p=G.documentElement.getAttribute("data-tag-assistant-present");Kp(p)&&(g=5)}g&&ab?f(g):a()})(function(){var a=!1;
|
||||
a&&Uh("INIT");Xc().o();Jk();Hg.enable_gbraid_cookie_write=!0;var b=!!U[S.H];if(b){var c=U.zones;c&&c.unregisterChild(S.H);}else{for(var g=data.resource||{},l=g.macros||[],m=0;m<l.length;m++)Wb.push(l[m]);for(var n=g.tags||[],p=0;p<n.length;p++)Zb.push(n[p]);for(var q=g.predicates||[],r=0;r<q.length;r++)Yb.push(q[r]);for(var u=g.rules||[],t=0;t<u.length;t++){for(var v=
|
||||
u[t],y={},x=0;x<v.length;x++)y[v[x][0]]=Array.prototype.slice.call(v[x],1);Xb.push(y)}bc=Z;cc=cr;U[S.H]=Ju;Ia(le,Z.g);ec=mc;Jp();Gh=!1;Hh=0;if("interactive"==G.readyState&&!G.createEventObject||"complete"==G.readyState)Jh();else{lb(G,"DOMContentLoaded",
|
||||
Jh);lb(G,"readystatechange",Jh);if(G.createEventObject&&G.documentElement.doScroll){var w=!0;try{w=!A.frameElement}catch(E){}w&&Kh()}lb(A,"load",Jh)}cp=!1;"complete"===G.readyState?ep():lb(A,"load",ep);Si&&A.setInterval(Mi,864E5);fe=Ea();Ju.bootstrap=fe;if(a){var D=Vh("INIT");
|
||||
}}});
|
||||
|
||||
})()
|
||||
2
public/frontend/web/scripts/map/lazysizes.min.js
vendored
Executable file
2
public/frontend/web/scripts/map/lazysizes.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
2
public/frontend/web/scripts/map/ls.bgset.min.js
vendored
Executable file
2
public/frontend/web/scripts/map/ls.bgset.min.js
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
/*! lazysizes - v4.0.1 */
|
||||
!function(a,b){var c=function(){b(a.lazySizes),a.removeEventListener("lazyunveilread",c,!0)};b=b.bind(null,a,a.document),"object"==typeof module&&module.exports?b(require("lazysizes")):a.lazySizes?c():a.addEventListener("lazyunveilread",c,!0)}(window,function(a,b,c){"use strict";if(a.addEventListener){var d=/\s+/g,e=/\s*\|\s+|\s+\|\s*/g,f=/^(.+?)(?:\s+\[\s*(.+?)\s*\])?$/,g=/\(|\)|'/,h={contain:1,cover:1},i=function(a){var b=c.gW(a,a.parentNode);return(!a._lazysizesWidth||b>a._lazysizesWidth)&&(a._lazysizesWidth=b),a._lazysizesWidth},j=function(a){var b;return b=(getComputedStyle(a)||{getPropertyValue:function(){}}).getPropertyValue("background-size"),!h[b]&&h[a.style.backgroundSize]&&(b=a.style.backgroundSize),b},k=function(a,c,g){var h=b.createElement("picture"),i=c.getAttribute(lazySizesConfig.sizesAttr),j=c.getAttribute("data-ratio"),k=c.getAttribute("data-optimumx");c._lazybgset&&c._lazybgset.parentNode==c&&c.removeChild(c._lazybgset),Object.defineProperty(g,"_lazybgset",{value:c,writable:!0}),Object.defineProperty(c,"_lazybgset",{value:h,writable:!0}),a=a.replace(d," ").split(e),h.style.display="none",g.className=lazySizesConfig.lazyClass,1!=a.length||i||(i="auto"),a.forEach(function(a){var c=b.createElement("source");i&&"auto"!=i&&c.setAttribute("sizes",i),a.match(f)&&(c.setAttribute(lazySizesConfig.srcsetAttr,RegExp.$1),RegExp.$2&&c.setAttribute("media",lazySizesConfig.customMedia[RegExp.$2]||RegExp.$2)),h.appendChild(c)}),i&&(g.setAttribute(lazySizesConfig.sizesAttr,i),c.removeAttribute(lazySizesConfig.sizesAttr),c.removeAttribute("sizes")),k&&g.setAttribute("data-optimumx",k),j&&g.setAttribute("data-ratio",j),h.appendChild(g),c.appendChild(h)},l=function(a){if(a.target._lazybgset){var b=a.target,d=b._lazybgset,e=b.currentSrc||b.src;e&&(d.style.backgroundImage="url("+(g.test(e)?JSON.stringify(e):e)+")"),b._lazybgsetLoading&&(c.fire(d,"_lazyloaded",{},!1,!0),delete b._lazybgsetLoading)}};addEventListener("lazybeforeunveil",function(a){var d,e,f;!a.defaultPrevented&&(d=a.target.getAttribute("data-bgset"))&&(f=a.target,e=b.createElement("img"),e.alt="",e._lazybgsetLoading=!0,a.detail.firesLoad=!0,k(d,f,e),setTimeout(function(){c.loader.unveil(e),c.rAF(function(){c.fire(e,"_lazyloaded",{},!0,!0),e.complete&&l({target:e})})}))}),b.addEventListener("load",l,!0),a.addEventListener("lazybeforesizes",function(a){if(a.detail.instance==c&&a.target._lazybgset&&a.detail.dataAttr){var b=a.target._lazybgset,d=j(b);h[d]&&(a.target._lazysizesParentFit=d,c.rAF(function(){a.target.setAttribute("data-parent-fit",d),a.target._lazysizesParentFit&&delete a.target._lazysizesParentFit}))}},!0),b.documentElement.addEventListener("lazybeforesizes",function(a){!a.defaultPrevented&&a.target._lazybgset&&a.detail.instance==c&&(a.detail.width=i(a.target._lazybgset))})}});
|
||||
2
public/frontend/web/scripts/map/ls.rias.min.js
vendored
Executable file
2
public/frontend/web/scripts/map/ls.rias.min.js
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
/*! lazysizes - v4.0.1 */
|
||||
!function(a,b){var c=function(){b(a.lazySizes),a.removeEventListener("lazyunveilread",c,!0)};b=b.bind(null,a,a.document),"object"==typeof module&&module.exports?b(require("lazysizes")):a.lazySizes?c():a.addEventListener("lazyunveilread",c,!0)}(window,function(a,b,c){"use strict";function d(b,c){var d,e,f,g,h=a.getComputedStyle(b);e=b.parentNode,g={isPicture:!(!e||!m.test(e.nodeName||""))},f=function(a,c){var d=b.getAttribute("data-"+a);if(!d){var e=h.getPropertyValue("--ls-"+a);e&&(d=e.trim())}if(d){if("true"==d)d=!0;else if("false"==d)d=!1;else if(l.test(d))d=parseFloat(d);else if("function"==typeof j[a])d=j[a](b,d);else if(q.test(d))try{d=JSON.parse(d)}catch(f){}g[a]=d}else a in j&&"function"!=typeof j[a]?g[a]=j[a]:c&&"function"==typeof j[a]&&(g[a]=j[a](b,d))};for(d in j)f(d);return c.replace(p,function(a,b){b in g||f(b,!0)}),g}function e(a,b){var c=[],d=function(a,c){return k[typeof b[c]]?b[c]:a};return c.srcset=[],b.absUrl&&(s.setAttribute("href",a),a=s.href),a=((b.prefix||"")+a+(b.postfix||"")).replace(p,d),b.widths.forEach(function(d){var e=b.widthmap[d]||d,f={u:a.replace(n,e).replace(o,b.ratio?Math.round(d*b.ratio):""),w:d};c.push(f),c.srcset.push(f.c=f.u+" "+d+"w")}),c}function f(a,c,d){var f=0,g=0,h=d;if(a){if("container"===c.ratio){for(f=h.scrollWidth,g=h.scrollHeight;!(f&&g||h===b);)h=h.parentNode,f=h.scrollWidth,g=h.scrollHeight;f&&g&&(c.ratio=g/f)}a=e(a,c),a.isPicture=c.isPicture,u&&"IMG"==d.nodeName.toUpperCase()?d.removeAttribute(i.srcsetAttr):d.setAttribute(i.srcsetAttr,a.srcset.join(", ")),Object.defineProperty(d,"_lazyrias",{value:a,writable:!0})}}function g(a,b){var e=d(a,b);return j.modifyOptions.call(a,{target:a,details:e,detail:e}),c.fire(a,"lazyriasmodifyoptions",e),e}function h(a){return a.getAttribute(a.getAttribute("data-srcattr")||j.srcAttr)||a.getAttribute(i.srcsetAttr)||a.getAttribute(i.srcAttr)||a.getAttribute("data-pfsrcset")||""}var i,j,k={string:1,number:1},l=/^\-*\+*\d+\.*\d*$/,m=/^picture$/i,n=/\s*\{\s*width\s*\}\s*/i,o=/\s*\{\s*height\s*\}\s*/i,p=/\s*\{\s*([a-z0-9]+)\s*\}\s*/gi,q=/^\[.*\]|\{.*\}$/,r=/^(?:auto|\d+(px)?)$/,s=b.createElement("a"),t=b.createElement("img"),u="srcset"in t&&!("sizes"in t),v=!!a.HTMLPictureElement&&!u;!function(){var b,d=function(){},e={prefix:"",postfix:"",srcAttr:"data-src",absUrl:!1,modifyOptions:d,widthmap:{},ratio:!1};i=c&&c.cfg||a.lazySizesConfig,i||(i={},a.lazySizesConfig=i),i.supportsType||(i.supportsType=function(a){return!a}),i.rias||(i.rias={}),j=i.rias,"widths"in j||(j.widths=[],function(a){for(var b,c=0;!b||3e3>b;)c+=5,c>30&&(c+=1),b=36*c,a.push(b)}(j.widths));for(b in e)b in j||(j[b]=e[b])}(),addEventListener("lazybeforesizes",function(a){if(a.detail.instance==c){var b,d,e,k,l,m,o,p,q,s,t,u,x;if(b=a.target,a.detail.dataAttr&&!a.defaultPrevented&&!j.disabled&&(q=b.getAttribute(i.sizesAttr)||b.getAttribute("sizes"))&&r.test(q)){if(d=h(b),e=g(b,d),t=n.test(e.prefix)||n.test(e.postfix),e.isPicture&&(k=b.parentNode))for(l=k.getElementsByTagName("source"),m=0,o=l.length;o>m;m++)(t||n.test(p=h(l[m])))&&(f(p,e,l[m]),u=!0);t||n.test(d)?(f(d,e,b),u=!0):u&&(x=[],x.srcset=[],x.isPicture=!0,Object.defineProperty(b,"_lazyrias",{value:x,writable:!0})),u&&(v?b.removeAttribute(i.srcAttr):"auto"!=q&&(s={width:parseInt(q,10)},w({target:b,detail:s})))}}},!0);var w=function(){var d=function(a,b){return a.w-b.w},e=function(a){var b,c,d=a.length,e=a[d-1],f=0;for(f;d>f;f++)if(e=a[f],e.d=e.w/a.w,e.d>=a.d){!e.cached&&(b=a[f-1])&&b.d>a.d-.13*Math.pow(a.d,2.2)&&(c=Math.pow(b.d-.6,1.6),b.cached&&(b.d+=.15*c),b.d+(e.d-a.d)*c>a.d&&(e=b));break}return e},f=function(a,b){var d;return!a._lazyrias&&c.pWS&&(d=c.pWS(a.getAttribute(i.srcsetAttr||""))).length&&(Object.defineProperty(a,"_lazyrias",{value:d,writable:!0}),b&&a.parentNode&&(d.isPicture="PICTURE"==a.parentNode.nodeName.toUpperCase())),a._lazyrias},g=function(b){var d=a.devicePixelRatio||1,e=c.getX&&c.getX(b);return Math.min(e||d,2.4,d)},h=function(b,c){var h,i,j,k,l,m;if(l=b._lazyrias,l.isPicture&&a.matchMedia)for(i=0,h=b.parentNode.getElementsByTagName("source"),j=h.length;j>i;i++)if(f(h[i])&&!h[i].getAttribute("type")&&(!(k=h[i].getAttribute("media"))||(matchMedia(k)||{}).matches)){l=h[i]._lazyrias;break}return(!l.w||l.w<c)&&(l.w=c,l.d=g(b),m=e(l.sort(d))),m},j=function(d){if(d.detail.instance==c){var e,g=d.target;return!u&&(a.respimage||a.picturefill||lazySizesConfig.pf)?void b.removeEventListener("lazybeforesizes",j):void(("_lazyrias"in g||d.detail.dataAttr&&f(g,!0))&&(e=h(g,d.detail.width),e&&e.u&&g._lazyrias.cur!=e.u&&(g._lazyrias.cur=e.u,e.cached=!0,c.rAF(function(){g.setAttribute(i.srcAttr,e.u),g.setAttribute("src",e.u)}))))}};return v?j=function(){}:addEventListener("lazybeforesizes",j),j}()});
|
||||
File diff suppressed because one or more lines are too long
1251
public/frontend/web/scripts/map/theme.js
Executable file
1251
public/frontend/web/scripts/map/theme.js
Executable file
File diff suppressed because one or more lines are too long
7
public/frontend/web/scripts/owl.carousel.min.js
vendored
Executable file
7
public/frontend/web/scripts/owl.carousel.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
480
public/frontend/web/scripts/slider.js
Executable file
480
public/frontend/web/scripts/slider.js
Executable file
@@ -0,0 +1,480 @@
|
||||
(function($) {
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Helpers methods
|
||||
*/
|
||||
|
||||
function supportCSS3(prop) {
|
||||
var prefix = ['-webkit-', '-moz-', ''];
|
||||
var root = document.documentElement;
|
||||
|
||||
function camelCase(str) {
|
||||
return str.replace(/\-([a-z])/gi, function(match, $1) {
|
||||
return $1.toUpperCase();
|
||||
});
|
||||
}
|
||||
for (var i = prefix.length - 1; i >= 0; i--) {
|
||||
var css3prop = camelCase(prefix[i] + prop);
|
||||
if (css3prop in root.style) {
|
||||
return css3prop;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function transitionEnd() {
|
||||
var transitions = {
|
||||
'transition': 'transitionend',
|
||||
'WebkitTransition': 'webkitTransitionEnd',
|
||||
'MozTransition': 'mozTransitionEnd'
|
||||
};
|
||||
var root = document.documentElement;
|
||||
for (var name in transitions) {
|
||||
if (root.style[name] !== undefined) {
|
||||
return transitions[name];
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function support3d() {
|
||||
if (!window.getComputedStyle) {
|
||||
return false;
|
||||
}
|
||||
var el = document.createElement('div'),
|
||||
has3d,
|
||||
transform = supportCSS3('transform');
|
||||
|
||||
document.body.insertBefore(el, null);
|
||||
|
||||
el.style[transform] = 'translate3d(1px,1px,1px)';
|
||||
has3d = getComputedStyle(el)[transform];
|
||||
|
||||
document.body.removeChild(el);
|
||||
|
||||
return (has3d !== undefined && has3d.length > 0 && has3d !== "none");
|
||||
}
|
||||
|
||||
var Touch = {
|
||||
hasTouch: !!(("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch),
|
||||
event: function() {
|
||||
return {
|
||||
start: (this.hasTouch) ? 'touchstart' : 'mousedown',
|
||||
move: (this.hasTouch) ? 'touchmove' : 'mousemove',
|
||||
end: (this.hasTouch) ? 'touchend' : 'mouseup',
|
||||
leave: (this.hasTouch) ? 'touchleave' : 'mouseout'
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
function throttle(func, wait, options) {
|
||||
var context, args, result;
|
||||
var timeout = null;
|
||||
var previous = 0;
|
||||
if (!options) options = {};
|
||||
var later = function () {
|
||||
previous = options.leading === false ? 0 : Date.now();
|
||||
timeout = null;
|
||||
result = func.apply(context, args);
|
||||
if (!timeout) context = args = null;
|
||||
};
|
||||
return function () {
|
||||
var now = Date.now();
|
||||
if (!previous && options.leading === false) previous = now;
|
||||
var remaining = wait - (now - previous);
|
||||
context = this;
|
||||
args = arguments;
|
||||
if (remaining <= 0 || remaining > wait) {
|
||||
if (timeout) {
|
||||
clearTimeout(timeout);
|
||||
timeout = null;
|
||||
}
|
||||
previous = now;
|
||||
result = func.apply(context, args);
|
||||
if (!timeout) context = args = null;
|
||||
} else if (!timeout && options.trailing !== false) {
|
||||
timeout = setTimeout(later, remaining);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
var PLUGIN = 'ikSlider';
|
||||
|
||||
var ikSlider = function(el, options) {
|
||||
|
||||
var settings = $.extend({
|
||||
touch: true,
|
||||
infinite: false,
|
||||
autoPlay: true,
|
||||
pauseOnHover: true,
|
||||
delay: 10000,
|
||||
responsive: true,
|
||||
controls: true,
|
||||
arrows: true,
|
||||
caption: true,
|
||||
speed: 300,
|
||||
cssEase: 'ease-out'
|
||||
}, options || {});
|
||||
|
||||
var $container = el;
|
||||
var $slider = $container.find('.slider');
|
||||
var $arrows = $container.find('.slider__switch');
|
||||
var $caption = $slider.find('.slider__caption');
|
||||
var $slide = $slider.find('.slider__item');
|
||||
var sliderStyle = $slider.get(0).style;
|
||||
var slideLen = $slide.length;
|
||||
var slideWidth = $container.outerWidth();
|
||||
var sliderWidth = slideLen * slideWidth;
|
||||
var current = 0;
|
||||
var offset = 0;
|
||||
var busy = false;
|
||||
var touchFlag = false;
|
||||
var $controlPanel;
|
||||
var $navControl;
|
||||
var timer;
|
||||
|
||||
var transformProperty = supportCSS3('transform');
|
||||
var transitionProperty = supportCSS3('transition');
|
||||
var has3d = support3d();
|
||||
|
||||
function init() {
|
||||
|
||||
// Calculate dimensions
|
||||
_dimmensions();
|
||||
|
||||
if (settings.responsive) {
|
||||
$(window).on('resize.' + PLUGIN, throttle(_responsive, 50));
|
||||
}
|
||||
|
||||
// If caption false, hide caption
|
||||
!settings.caption && $caption.attr('disabled', true);
|
||||
|
||||
// Create nav controls
|
||||
settings.controls && _controls();
|
||||
|
||||
if (settings.touch) {
|
||||
// if the image img tag set attribute graggable false
|
||||
$slide.find('img').attr('draggable', false);
|
||||
// Binding touch events
|
||||
_touchEnable();
|
||||
}
|
||||
|
||||
if (settings.autoPlay) {
|
||||
_autoPlay();
|
||||
if (settings.pauseOnHover) {
|
||||
$container.on('mouseenter.' + PLUGIN, function() {
|
||||
clearInterval(timer);
|
||||
});
|
||||
$container.on('mouseleave.' + PLUGIN, _autoPlay);
|
||||
}
|
||||
}
|
||||
|
||||
if (settings.arrows) {
|
||||
|
||||
// if infinite setting false hide arrows
|
||||
!settings.infinite && _stopinfinite('prev');
|
||||
|
||||
$arrows.on('click.' + PLUGIN, function(e) {
|
||||
e.preventDefault();
|
||||
if (this.getAttribute('data-ikslider-dir') === 'next') {
|
||||
show(current + 1);
|
||||
} else {
|
||||
show(current - 1);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$arrows.attr('disabled', true);
|
||||
}
|
||||
}
|
||||
|
||||
function _controls() {
|
||||
$controlPanel = $('<div/>', {
|
||||
'class': 'slider-nav'
|
||||
})
|
||||
.appendTo($container);
|
||||
|
||||
var links = [];
|
||||
|
||||
for (var i = 0; slideLen > i; i++) {
|
||||
var act = (current === i) ? 'is-active' : '';
|
||||
links.push('<a class="slider-nav__control ' + act + '" data-ikslider-control="' + i + '"></a>');
|
||||
}
|
||||
$controlPanel.html(links.join(''));
|
||||
$navControl = $controlPanel.find('.slider-nav__control');
|
||||
$controlPanel.on('click.' + PLUGIN, '.slider-nav__control', function(e) {
|
||||
e.preventDefault();
|
||||
if ($(this).hasClass('is-active')) return;
|
||||
show(parseInt(this.getAttribute('data-ikslider-control'), 10));
|
||||
});
|
||||
}
|
||||
|
||||
function _touchEnable() {
|
||||
$slider.addClass('has-touch');
|
||||
var touchX;
|
||||
var touchY;
|
||||
var delta;
|
||||
var target;
|
||||
|
||||
$slider.on(Touch.event().start + '.' + PLUGIN, function(e) {
|
||||
if (touchFlag || busy) return;
|
||||
|
||||
var touch;
|
||||
if (e.originalEvent.targetTouches) {
|
||||
target = e.originalEvent.targetTouches[0].target;
|
||||
touch = e.originalEvent.targetTouches[0];
|
||||
} else {
|
||||
touch = e.originalEvent;
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
delta = 0;
|
||||
touchX = touch.pageX || touch.clientX;
|
||||
touchY = touch.pageY || touch.clientY;
|
||||
touchFlag = true;
|
||||
|
||||
});
|
||||
$slider.on(Touch.event().move + '.' + PLUGIN, function(e) {
|
||||
if (!touchFlag) return;
|
||||
|
||||
var touch;
|
||||
if (e.originalEvent.targetTouches) {
|
||||
if (e.originalEvent.targetTouches.length > 1 || target !== e.originalEvent.targetTouches[0].target) {
|
||||
return;
|
||||
}
|
||||
touch = e.originalEvent.targetTouches[0];
|
||||
} else {
|
||||
e.preventDefault();
|
||||
touch = e.originalEvent;
|
||||
}
|
||||
|
||||
var currentX = touch.pageX || touch.clientX;
|
||||
var currentY = touch.pageY || touch.clientY;
|
||||
|
||||
if (Math.abs(touchX - currentX) >= Math.abs(touchY - currentY)) {
|
||||
delta = touchX - currentX;
|
||||
_move(parseInt(offset, 10) - delta);
|
||||
}
|
||||
});
|
||||
$slider.on(Touch.event().end + '.' + PLUGIN, function(e) {
|
||||
if (!touchFlag) return;
|
||||
var swipeTo = delta < 0 ? current - 1 : current + 1;
|
||||
|
||||
if (Math.abs(delta) < 50 || (!settings.infinite && (swipeTo > slideLen - 1 || swipeTo < 0))) {
|
||||
touchFlag = false;
|
||||
_move(offset, true);
|
||||
return;
|
||||
}
|
||||
touchFlag = false;
|
||||
target = null;
|
||||
show(swipeTo);
|
||||
});
|
||||
$slider.on(Touch.event().leave + '.' + PLUGIN, function() {
|
||||
if (touchFlag) {
|
||||
_move(offset, true);
|
||||
touchFlag = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function show(slide) {
|
||||
if (busy) return;
|
||||
if (slide === current) return;
|
||||
current = (slide > slideLen - 1) ? 0 : slide;
|
||||
if (slide < 0) {
|
||||
current = slideLen - 1;
|
||||
}
|
||||
|
||||
if (!settings.infinite) {
|
||||
|
||||
$arrows.attr('disabled', false);
|
||||
if (slide === slideLen - 1) {
|
||||
_stopinfinite('next');
|
||||
}
|
||||
|
||||
if (current === 0) {
|
||||
_stopinfinite('prev');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
offset = -(slideWidth * (current));
|
||||
|
||||
if (settings.controls) {
|
||||
$navControl.removeClass('is-active')
|
||||
.eq(current)
|
||||
.addClass('is-active');
|
||||
}
|
||||
busy = true;
|
||||
_move(offset, true);
|
||||
|
||||
_triggerChange();
|
||||
}
|
||||
|
||||
function _move(value, hasAnimate) {
|
||||
|
||||
if (transitionProperty && transformProperty) {
|
||||
|
||||
(hasAnimate) ?
|
||||
sliderStyle[transitionProperty] = transformProperty + ' ' + settings.speed + 'ms ' + settings.cssEase: sliderStyle[transitionProperty] = "none";
|
||||
|
||||
(has3d) ?
|
||||
sliderStyle[transformProperty] = 'translate3d(' + value + 'px, 0, 0)': sliderStyle[transformProperty] = 'translateX(' + value + 'px)';
|
||||
|
||||
if (hasAnimate) {
|
||||
$slider.one(transitionEnd(), function(e) {
|
||||
busy = false;
|
||||
});
|
||||
} else {
|
||||
busy = false;
|
||||
}
|
||||
} else {
|
||||
if (hasAnimate) {
|
||||
$slider.animate({
|
||||
'margin-left': value
|
||||
}, settings.speed, 'linear', function() {
|
||||
busy = false;
|
||||
});
|
||||
} else {
|
||||
$slider.css('margin-left', value);
|
||||
busy = false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// Change event trigger
|
||||
function _triggerChange() {
|
||||
var eventSlide = $.Event('changeSlide.' + PLUGIN, {
|
||||
currentSlide: current
|
||||
});
|
||||
$container.trigger(eventSlide);
|
||||
}
|
||||
|
||||
function _autoPlay() {
|
||||
if (timer) clearInterval(timer);
|
||||
timer = setInterval(function() {
|
||||
if (!touchFlag) {
|
||||
show(current + 1);
|
||||
}
|
||||
}, settings.delay);
|
||||
}
|
||||
|
||||
function _stopinfinite(direction) {
|
||||
$container.find('.slider__switch--' + direction).attr('disabled', true);
|
||||
}
|
||||
|
||||
function _dimmensions() {
|
||||
slideWidth = $container.outerWidth();
|
||||
sliderWidth = slideLen * slideWidth;
|
||||
|
||||
$slide.css('width', slideWidth);
|
||||
sliderStyle['width'] = sliderWidth + 'px';
|
||||
}
|
||||
|
||||
function _responsive() {
|
||||
|
||||
if (timer) clearInterval(timer);
|
||||
_dimmensions();
|
||||
|
||||
offset = -(slideWidth * current);
|
||||
_move(offset);
|
||||
|
||||
settings.autoPlay && _autoPlay();
|
||||
}
|
||||
|
||||
function destroy() {
|
||||
sliderStyle['width'] = '';
|
||||
sliderStyle[transformProperty] = '';
|
||||
sliderStyle[transitionProperty] = '';
|
||||
$slide.css('width', '');
|
||||
if (settings.autoPlay) {
|
||||
if (timer) clearInterval(timer);
|
||||
$container.off('mouseenter.' + PLUGIN);
|
||||
$container.off('mouseleave.' + PLUGIN);
|
||||
}
|
||||
if (settings.arrows) {
|
||||
$arrows.off('click.' + PLUGIN);
|
||||
$arrows.attr('disabled', false);
|
||||
}
|
||||
if (settings.controls) {
|
||||
$controlPanel.off('click.' + PLUGIN).remove();
|
||||
}
|
||||
|
||||
$caption.attr('disabled', false);
|
||||
|
||||
if (settings.touch) {
|
||||
$slider
|
||||
.removeClass('has-touch')
|
||||
.off(Touch.event().start + '.' + PLUGIN)
|
||||
.off(Touch.event().move + '.' + PLUGIN)
|
||||
.off(Touch.event().end + '.' + PLUGIN)
|
||||
.off(Touch.event().leave + '.' + PLUGIN);
|
||||
touchFlag = false;
|
||||
}
|
||||
if (settings.responsive) {
|
||||
$(window).off('resize.' + PLUGIN);
|
||||
}
|
||||
$container.removeData(PLUGIN);
|
||||
$container = null;
|
||||
$slider = null;
|
||||
$arrows = null;
|
||||
$caption = null;
|
||||
$slide = null;
|
||||
$controlPanel = null;
|
||||
$navControl = null;
|
||||
sliderStyle = null;
|
||||
slideLen = null;
|
||||
slideWidth = null;
|
||||
sliderWidth = null;
|
||||
current = null;
|
||||
offset = null;
|
||||
busy = null;
|
||||
timer = null;
|
||||
has3d = null;
|
||||
busy = false;
|
||||
transformProperty = null;
|
||||
transitionProperty = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {methods} [Public slider methods API]
|
||||
*/
|
||||
return {
|
||||
init: init,
|
||||
show: show,
|
||||
destroy: destroy
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
$.fn[PLUGIN] = function(opt) {
|
||||
var _this = this;
|
||||
this.each(function() {
|
||||
var $this = $(this);
|
||||
var slider = $this.data(PLUGIN);
|
||||
var options = typeof opt === 'object' && opt;
|
||||
if (!slider && /(destroy|\d+)/.test(opt)) return;
|
||||
if (!slider) {
|
||||
slider = new ikSlider($this, options);
|
||||
$this.data('ikSlider', slider);
|
||||
slider.init();
|
||||
}
|
||||
if (typeof opt === 'string' || typeof opt === 'number' && opt !== 'init') {
|
||||
if (typeof opt === 'number') {
|
||||
_this = slider.show(opt);
|
||||
} else {
|
||||
if(slider[opt]) {
|
||||
_this = slider[opt]();
|
||||
} else {
|
||||
throw new Error('Error:: ikSlider has no method: ' + opt);
|
||||
}
|
||||
}
|
||||
}
|
||||
return _this;
|
||||
});
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
18
public/frontend/web/scripts/swiper-3.4.2.jquery.min.js
vendored
Executable file
18
public/frontend/web/scripts/swiper-3.4.2.jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
13
public/frontend/web/scripts/swiper.min.js
vendored
Executable file
13
public/frontend/web/scripts/swiper.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
292
public/frontend/web/scripts/swiperTab/css/aa.css
Executable file
292
public/frontend/web/scripts/swiperTab/css/aa.css
Executable file
@@ -0,0 +1,292 @@
|
||||
@charset "utf-8";html,body,div,p,form,label,ul,li,dl,dt,dd,ol,img,button,b,em,strong,small,h1,h2,h3,h4,h5,h6 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
list-style: none;
|
||||
font-style: normal;
|
||||
}
|
||||
body {
|
||||
font-family: SimHei, 'Helvetica Neue', Arial, 'Droid Sans', sans-serif;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
background: #f2f2f2;
|
||||
}
|
||||
a,a.link {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
a,a.link:hover {
|
||||
color: #666;
|
||||
|
||||
h1,h2,h3,h4,h5,h6 {
|
||||
font-weight: normal;
|
||||
}
|
||||
/*头部开始*/
|
||||
.header {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 44px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
.header a {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
display: block;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
}
|
||||
.header a.back {
|
||||
left: 0px;
|
||||
}
|
||||
.header a.back span {
|
||||
display: inline-block;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
margin: 10px 5px;
|
||||
background: url("../images/icon/icon-back.png") no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
.header .home {}
|
||||
/*头部结束*/
|
||||
/*input[type="checkbox"]{-webkit-appearance:none;outline: none;}*/
|
||||
input.check {
|
||||
background: url(../images/icon/icon_radio3.png) no-repeat center left;
|
||||
background-size: 20px 20px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 10px;
|
||||
margin-top: -18px;
|
||||
width: 20px;
|
||||
height: 35px;
|
||||
}
|
||||
input.check:checked {
|
||||
background: url(../images/icon/icon_radio4.png) no-repeat center left;
|
||||
background-size: 20px 20px;
|
||||
}
|
||||
input.goodsCheck:checked {
|
||||
background: url(../images/icon/icon_radio4.png) no-repeat center left;
|
||||
background-size: 20px 20px;
|
||||
}
|
||||
input.check:checked {
|
||||
background: url(../images/icon/icon_radio4.png) no-repeat center left;
|
||||
background-size: 20px 20px;
|
||||
}
|
||||
.checked {
|
||||
background: url(../images/icon/icon_radio4.png) no-repeat left center;
|
||||
background-size: 20px 20px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 15px;
|
||||
margin-top: -18px;
|
||||
width: 20px;
|
||||
height: 35px;
|
||||
}
|
||||
@charset "utf-8";
|
||||
/* CSS Document */
|
||||
/*购物车*/
|
||||
.shopping {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
height: auto;
|
||||
padding-bottom: 60px;
|
||||
}
|
||||
.shop-group-item {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.shop-group-item ul li {
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
.shop-group-item ul li:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
.shop-name {
|
||||
background: #fff;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
padding: 0 15px;
|
||||
position: relative;
|
||||
}
|
||||
.shop-name h4 {
|
||||
float: left;
|
||||
font-size: 14px;
|
||||
background: url(../images/icon/icon-kin.png) no-repeat left center;
|
||||
background-size: 20px 20px;
|
||||
padding-left: 25px;
|
||||
margin-left: 28px;
|
||||
}
|
||||
.shop-name .coupons {
|
||||
float: right;
|
||||
}
|
||||
.shop-name .coupons span {
|
||||
display: inline-block;
|
||||
padding: 0 5px;
|
||||
}
|
||||
.shop-name .coupons em {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
.shop-info {
|
||||
background: #f5f5f5;
|
||||
height: 120px;
|
||||
padding: 0 15px;
|
||||
position: relative;
|
||||
}
|
||||
.shop-info .checkbox {
|
||||
background: url(../images/icon/icon_radio3.png) no-repeat left center;
|
||||
background-size: 20px 20px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 15px;
|
||||
margin-top: -60px;
|
||||
width: 20px;
|
||||
height: 120px;
|
||||
}
|
||||
.shop-info .checkbox1 {
|
||||
background: url(../images/icon/icon_radio4.png) no-repeat left center;
|
||||
background-size: 20px 20px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 15px;
|
||||
margin-top: -60px;
|
||||
width: 20px;
|
||||
height: 120px;
|
||||
}
|
||||
.shop-info .shop-info-img {
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 45px;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
.shop-info .shop-info-img img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.shop-info .shop-info-text {
|
||||
margin-left: 130px;
|
||||
padding: 15px 0;
|
||||
}
|
||||
.shop-info .shop-info-text h4 {
|
||||
font-size: 14px;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-brief {
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
font-size: 12px;
|
||||
color: #81838e;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-brief span {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-price {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
position: relative;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-price .shop-pices {
|
||||
color: red;
|
||||
font-size: 16px;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-arithmetic {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
top: 0;
|
||||
width: 84px;
|
||||
box-sizing: border-box;
|
||||
white-space: nowrap;
|
||||
height: 100%;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-arithmetic a {
|
||||
display: inline-block;
|
||||
width: 23px;
|
||||
height: 22px;
|
||||
line-height: 22px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
font-size: 16px;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-arithmetic .minus {
|
||||
border-right: 1px solid #e0e0e0;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-arithmetic .failed {
|
||||
color: #d1d1d1;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-arithmetic .plus {
|
||||
border-left: 1px solid #e0e0e0;
|
||||
}
|
||||
.shop-info .shop-info-text .shop-arithmetic .num {
|
||||
width: 32px;
|
||||
text-align: center;
|
||||
border: none;
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
vertical-align: top;
|
||||
margin: 0 -6px;
|
||||
}
|
||||
.shopPrice {
|
||||
background: #fff;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
padding: 0 15px;
|
||||
text-align: right;
|
||||
}
|
||||
.shopPrice span {
|
||||
color: #f00;
|
||||
}
|
||||
.payment-bar {
|
||||
clear: both;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 49px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
background: #fff;
|
||||
}
|
||||
.payment-bar .all-checkbox {
|
||||
float: left;
|
||||
line-height: 49px;
|
||||
padding-left: 40px;
|
||||
}
|
||||
.payment-bar .shop-total {
|
||||
float: left;
|
||||
-webkit-box-flex: 1.0;
|
||||
box-flex: 1.0;
|
||||
margin: 9px 20px 9px 35px;
|
||||
}
|
||||
.payment-bar .shop-total strong {
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
}
|
||||
.payment-bar .shop-total span {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
}
|
||||
.payment-bar .settlement {
|
||||
display: inline-block;
|
||||
float: right;
|
||||
width: 100px;
|
||||
height: 49px;
|
||||
line-height: 49px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
background: #f23030;
|
||||
}
|
||||
5615
public/frontend/web/scripts/swiperTab/css/mui.css
Executable file
5615
public/frontend/web/scripts/swiperTab/css/mui.css
Executable file
File diff suppressed because it is too large
Load Diff
5
public/frontend/web/scripts/swiperTab/css/mui.min.css
vendored
Executable file
5
public/frontend/web/scripts/swiperTab/css/mui.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
409
public/frontend/web/scripts/swiperTab/css/swiper-3.2.7.min.css
vendored
Executable file
409
public/frontend/web/scripts/swiperTab/css/swiper-3.2.7.min.css
vendored
Executable file
@@ -0,0 +1,409 @@
|
||||
/**
|
||||
* Swiper 3.2.7
|
||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||
*
|
||||
* http://www.idangero.us/swiper/
|
||||
*
|
||||
* Copyright 2015, Vladimir Kharlampidi
|
||||
* The iDangero.us
|
||||
* http://www.idangero.us/
|
||||
*
|
||||
* Licensed under MIT
|
||||
*
|
||||
* Released on: December 7, 2015
|
||||
*/
|
||||
.swiper-container {
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
z-index: 1
|
||||
}
|
||||
.swiper-container-no-flexbox .swiper-slide {
|
||||
float: left
|
||||
}
|
||||
.swiper-container-vertical>.swiper-wrapper {
|
||||
-webkit-box-orient: vertical;
|
||||
-moz-box-orient: vertical;
|
||||
-ms-flex-direction: column;
|
||||
-webkit-flex-direction: column;
|
||||
flex-direction: column
|
||||
}
|
||||
.swiper-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
display: -webkit-box;
|
||||
display: -moz-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-transition-property: -webkit-transform;
|
||||
-moz-transition-property: -moz-transform;
|
||||
-o-transition-property: -o-transform;
|
||||
-ms-transition-property: -ms-transform;
|
||||
transition-property: transform;
|
||||
-webkit-box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box
|
||||
}
|
||||
.swiper-container-android .swiper-slide, .swiper-wrapper {
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
-o-transform: translate(0, 0);
|
||||
-ms-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0)
|
||||
}
|
||||
.swiper-container-multirow>.swiper-wrapper {
|
||||
-webkit-box-lines: multiple;
|
||||
-moz-box-lines: multiple;
|
||||
-ms-flex-wrap: wrap;
|
||||
-webkit-flex-wrap: wrap;
|
||||
flex-wrap: wrap
|
||||
}
|
||||
.swiper-container-free-mode>.swiper-wrapper {
|
||||
-webkit-transition-timing-function: ease-out;
|
||||
-moz-transition-timing-function: ease-out;
|
||||
-ms-transition-timing-function: ease-out;
|
||||
-o-transition-timing-function: ease-out;
|
||||
transition-timing-function: ease-out;
|
||||
margin: 0 auto
|
||||
}
|
||||
.swiper-slide {
|
||||
-webkit-flex-shrink: 0;
|
||||
-ms-flex: 0 0 auto;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative
|
||||
}
|
||||
.swiper-container-autoheight, .swiper-container-autoheight .swiper-slide {
|
||||
height: auto
|
||||
}
|
||||
.swiper-container-autoheight .swiper-wrapper {
|
||||
-webkit-box-align: start;
|
||||
-ms-flex-align: start;
|
||||
-webkit-align-items: flex-start;
|
||||
align-items: flex-start;
|
||||
-webkit-transition-property: -webkit-transform, height;
|
||||
-moz-transition-property: -moz-transform;
|
||||
-o-transition-property: -o-transform;
|
||||
-ms-transition-property: -ms-transform;
|
||||
transition-property: transform, height
|
||||
}
|
||||
.swiper-container .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000
|
||||
}
|
||||
.swiper-wp8-horizontal {
|
||||
-ms-touch-action: pan-y;
|
||||
touch-action: pan-y
|
||||
}
|
||||
.swiper-wp8-vertical {
|
||||
-ms-touch-action: pan-x;
|
||||
touch-action: pan-x
|
||||
}
|
||||
.swiper-button-next, .swiper-button-prev {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 27px;
|
||||
height: 44px;
|
||||
margin-top: -22px;
|
||||
z-index: 10;
|
||||
cursor: pointer;
|
||||
-moz-background-size: 27px 44px;
|
||||
-webkit-background-size: 27px 44px;
|
||||
background-size: 27px 44px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat
|
||||
}
|
||||
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
|
||||
opacity: .35;
|
||||
cursor: auto;
|
||||
pointer-events: none
|
||||
}
|
||||
.swiper-button-prev, .swiper-container-rtl .swiper-button-next {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
|
||||
left: 10px;
|
||||
right: auto
|
||||
}
|
||||
.swiper-button-prev.swiper-button-black, .swiper-container-rtl .swiper-button-next.swiper-button-black {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")
|
||||
}
|
||||
.swiper-button-prev.swiper-button-white, .swiper-container-rtl .swiper-button-next.swiper-button-white {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")
|
||||
}
|
||||
.swiper-button-next, .swiper-container-rtl .swiper-button-prev {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23007aff'%2F%3E%3C%2Fsvg%3E");
|
||||
right: 10px;
|
||||
left: auto
|
||||
}
|
||||
.swiper-button-next.swiper-button-black, .swiper-container-rtl .swiper-button-prev.swiper-button-black {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23000000'%2F%3E%3C%2Fsvg%3E")
|
||||
}
|
||||
.swiper-button-next.swiper-button-white, .swiper-container-rtl .swiper-button-prev.swiper-button-white {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2027%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23ffffff'%2F%3E%3C%2Fsvg%3E")
|
||||
}
|
||||
.swiper-pagination {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
-webkit-transition: .3s;
|
||||
-moz-transition: .3s;
|
||||
-o-transition: .3s;
|
||||
transition: .3s;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-ms-transform: translate3d(0, 0, 0);
|
||||
-o-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
z-index: 10
|
||||
}
|
||||
.swiper-pagination.swiper-pagination-hidden {
|
||||
opacity: 0
|
||||
}
|
||||
.swiper-pagination-bullet {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
display: inline-block;
|
||||
border-radius: 100%;
|
||||
background: #000;
|
||||
opacity: .2
|
||||
}
|
||||
button.swiper-pagination-bullet {
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
-moz-appearance: none;
|
||||
-ms-appearance: none;
|
||||
-webkit-appearance: none;
|
||||
appearance: none
|
||||
}
|
||||
.swiper-pagination-clickable .swiper-pagination-bullet {
|
||||
cursor: pointer
|
||||
}
|
||||
.swiper-pagination-white .swiper-pagination-bullet {
|
||||
background: #fff
|
||||
}
|
||||
.swiper-pagination-bullet-active {
|
||||
opacity: 1;
|
||||
background: #007aff
|
||||
}
|
||||
.swiper-pagination-white .swiper-pagination-bullet-active {
|
||||
background: #fff
|
||||
}
|
||||
.swiper-pagination-black .swiper-pagination-bullet-active {
|
||||
background: #000
|
||||
}
|
||||
.swiper-container-vertical>.swiper-pagination {
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
-webkit-transform: translate3d(0, -50%, 0);
|
||||
-moz-transform: translate3d(0, -50%, 0);
|
||||
-o-transform: translate(0, -50%);
|
||||
-ms-transform: translate3d(0, -50%, 0);
|
||||
transform: translate3d(0, -50%, 0)
|
||||
}
|
||||
.swiper-container-vertical>.swiper-pagination .swiper-pagination-bullet {
|
||||
margin: 5px 0;
|
||||
display: block
|
||||
}
|
||||
.swiper-container-horizontal>.swiper-pagination {
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
width: 100%
|
||||
}
|
||||
.swiper-container-horizontal>.swiper-pagination .swiper-pagination-bullet {
|
||||
margin: 0 5px
|
||||
}
|
||||
.swiper-container-3d {
|
||||
-webkit-perspective: 1200px;
|
||||
-moz-perspective: 1200px;
|
||||
-o-perspective: 1200px;
|
||||
perspective: 1200px
|
||||
}
|
||||
.swiper-container-3d .swiper-cube-shadow, .swiper-container-3d .swiper-slide, .swiper-container-3d .swiper-slide-shadow-bottom, .swiper-container-3d .swiper-slide-shadow-left, .swiper-container-3d .swiper-slide-shadow-right, .swiper-container-3d .swiper-slide-shadow-top, .swiper-container-3d .swiper-wrapper {
|
||||
-webkit-transform-style: preserve-3d;
|
||||
-moz-transform-style: preserve-3d;
|
||||
-ms-transform-style: preserve-3d;
|
||||
transform-style: preserve-3d
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-bottom, .swiper-container-3d .swiper-slide-shadow-left, .swiper-container-3d .swiper-slide-shadow-right, .swiper-container-3d .swiper-slide-shadow-top {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 10
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-left {
|
||||
background-image: -webkit-gradient(linear, left top, right top, from(rgba(0,0,0,.5)), to(rgba(0,0,0,0)));
|
||||
background-image: -webkit-linear-gradient(right, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -moz-linear-gradient(right, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -o-linear-gradient(right, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: linear-gradient(to left, rgba(0,0,0,.5), rgba(0,0,0,0))
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-right {
|
||||
background-image: -webkit-gradient(linear, right top, left top, from(rgba(0,0,0,.5)), to(rgba(0,0,0,0)));
|
||||
background-image: -webkit-linear-gradient(left, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -moz-linear-gradient(left, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -o-linear-gradient(left, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,0))
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-top {
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,.5)), to(rgba(0,0,0,0)));
|
||||
background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -o-linear-gradient(bottom, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0))
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-bottom {
|
||||
background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,.5)), to(rgba(0,0,0,0)));
|
||||
background-image: -webkit-linear-gradient(top, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -moz-linear-gradient(top, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: -o-linear-gradient(top, rgba(0,0,0,.5), rgba(0,0,0,0));
|
||||
background-image: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0))
|
||||
}
|
||||
.swiper-container-coverflow .swiper-wrapper {
|
||||
-ms-perspective: 1200px
|
||||
}
|
||||
.swiper-container-fade.swiper-container-free-mode .swiper-slide {
|
||||
-webkit-transition-timing-function: ease-out;
|
||||
-moz-transition-timing-function: ease-out;
|
||||
-ms-transition-timing-function: ease-out;
|
||||
-o-transition-timing-function: ease-out;
|
||||
transition-timing-function: ease-out
|
||||
}
|
||||
.swiper-container-fade .swiper-slide {
|
||||
pointer-events: none
|
||||
}
|
||||
.swiper-container-fade .swiper-slide .swiper-slide {
|
||||
pointer-events: none
|
||||
}
|
||||
.swiper-container-fade .swiper-slide-active, .swiper-container-fade .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto
|
||||
}
|
||||
.swiper-container-cube {
|
||||
overflow: visible
|
||||
}
|
||||
.swiper-container-cube .swiper-slide {
|
||||
pointer-events: none;
|
||||
visibility: hidden;
|
||||
-webkit-transform-origin: 0 0;
|
||||
-moz-transform-origin: 0 0;
|
||||
-ms-transform-origin: 0 0;
|
||||
transform-origin: 0 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
-moz-backface-visibility: hidden;
|
||||
-ms-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1
|
||||
}
|
||||
.swiper-container-cube.swiper-container-rtl .swiper-slide {
|
||||
-webkit-transform-origin: 100% 0;
|
||||
-moz-transform-origin: 100% 0;
|
||||
-ms-transform-origin: 100% 0;
|
||||
transform-origin: 100% 0
|
||||
}
|
||||
.swiper-container-cube .swiper-slide-active, .swiper-container-cube .swiper-slide-next, .swiper-container-cube .swiper-slide-next+.swiper-slide, .swiper-container-cube .swiper-slide-prev {
|
||||
pointer-events: auto;
|
||||
visibility: visible
|
||||
}
|
||||
.swiper-container-cube .swiper-slide-shadow-bottom, .swiper-container-cube .swiper-slide-shadow-left, .swiper-container-cube .swiper-slide-shadow-right, .swiper-container-cube .swiper-slide-shadow-top {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
-moz-backface-visibility: hidden;
|
||||
-ms-backface-visibility: hidden;
|
||||
backface-visibility: hidden
|
||||
}
|
||||
.swiper-container-cube .swiper-cube-shadow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
opacity: .6;
|
||||
-webkit-filter: blur(50px);
|
||||
filter: blur(50px);
|
||||
z-index: 0
|
||||
}
|
||||
.swiper-scrollbar {
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
-ms-touch-action: none;
|
||||
background: rgba(0,0,0,.1)
|
||||
}
|
||||
.swiper-container-horizontal>.swiper-scrollbar {
|
||||
position: absolute;
|
||||
left: 1%;
|
||||
bottom: 3px;
|
||||
z-index: 50;
|
||||
height: 5px;
|
||||
width: 98%
|
||||
}
|
||||
.swiper-container-vertical>.swiper-scrollbar {
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 1%;
|
||||
z-index: 50;
|
||||
width: 5px;
|
||||
height: 98%
|
||||
}
|
||||
.swiper-scrollbar-drag {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
background: rgba(0,0,0,.5);
|
||||
border-radius: 10px;
|
||||
left: 0;
|
||||
top: 0
|
||||
}
|
||||
.swiper-scrollbar-cursor-drag {
|
||||
cursor: move
|
||||
}
|
||||
.swiper-lazy-preloader {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -21px;
|
||||
margin-top: -21px;
|
||||
z-index: 10;
|
||||
-webkit-transform-origin: 50%;
|
||||
-moz-transform-origin: 50%;
|
||||
transform-origin: 50%;
|
||||
-webkit-animation: swiper-preloader-spin 1s steps(12, end) infinite;
|
||||
-moz-animation: swiper-preloader-spin 1s steps(12, end) infinite;
|
||||
animation: swiper-preloader-spin 1s steps(12, end) infinite
|
||||
}
|
||||
.swiper-lazy-preloader:after {
|
||||
display: block;
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%236c6c6c'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
|
||||
background-position: 50%;
|
||||
-webkit-background-size: 100%;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat
|
||||
}
|
||||
.swiper-lazy-preloader-white:after {
|
||||
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23fff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
|
||||
}
|
||||
@-webkit-keyframes swiper-preloader-spin {
|
||||
100% {
|
||||
-webkit-transform:rotate(360deg)
|
||||
}
|
||||
}
|
||||
@keyframes swiper-preloader-spin {
|
||||
100% {
|
||||
transform:rotate(360deg)
|
||||
}
|
||||
}
|
||||
151
public/frontend/web/scripts/swiperTab/index.html
Executable file
151
public/frontend/web/scripts/swiperTab/index.html
Executable file
@@ -0,0 +1,151 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>使用Swiper制作webapp菜单栏切换</title>
|
||||
<meta name="viewport" content="width=100%; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
|
||||
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
|
||||
<!--<script src="//cdn.bootcss.com/Swiper/3.3.1/js/swiper.jquery.min.js"></script>-->
|
||||
<script type="text/javascript" src="js/swiper-3.4.0.jquery.min.js" ></script>
|
||||
<!--<link rel="stylesheet" type="text/css" href="//cdn.bootcss.com/Swiper/3.3.1/css/swiper.min.css">-->
|
||||
<link rel="stylesheet" href="css/swiper-3.2.7.min.css" />
|
||||
<style>
|
||||
body {
|
||||
min-width: 320px;
|
||||
max-width: 640px;
|
||||
margin: 0 auto;
|
||||
color: #333;
|
||||
padding: 0;
|
||||
font-family: "Microsoft Yahei";
|
||||
text-align: center;
|
||||
}
|
||||
.container {
|
||||
/*width: 100%;*/
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
.swiper1 {
|
||||
width: 100%;
|
||||
}
|
||||
.swiper1 .selected {
|
||||
color: #ec5566;
|
||||
border-bottom: 2px solid #ec5566;
|
||||
}
|
||||
.swiper1 .swiper-slide {
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
height: 50px;
|
||||
/* Center slide text vertically */
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
-webkit-align-items: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.swiper2 {
|
||||
width: 100%;
|
||||
}
|
||||
.swiper2 .swiper-slide {
|
||||
height: calc(100vh - 50px);
|
||||
background-color: #ccc;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
box-sizing: border-box !important;
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="swiper-container swiper1">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide selected">推荐</div>
|
||||
<div class="swiper-slide">菜单 2</div>
|
||||
<div class="swiper-slide">菜单 3</div>
|
||||
<div class="swiper-slide">菜单 4</div>
|
||||
<div class="swiper-slide">菜单 5</div>
|
||||
<div class="swiper-slide">菜单 6</div>
|
||||
<div class="swiper-slide">菜单 7</div>
|
||||
<div class="swiper-slide">菜单 8</div>
|
||||
<div class="swiper-slide">菜单 9</div>
|
||||
<div class="swiper-slide">菜单 10</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- swiper2 -->
|
||||
<div class="swiper-container swiper2">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide swiper-no-swiping">
|
||||
<div style="width: 100%;height: 100%;background-color: gainsboro;">上面导航栏可以滑动</div>
|
||||
</div>
|
||||
<div class="swiper-slide swiper-no-swiping">上面导航栏可以滑动2222</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 213213123</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 ressssssss</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 ffffffffffff</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 bbbbbbbbbbbbbbbbbvb</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 bvcccccccccccbvb</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 sdasdssssss</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 oiouiouioiuoiuo</div>
|
||||
<div class="swiper-slide swiper-no-swiping">内容 m,jnkjhkhgjghjugh</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
function setCurrentSlide(ele, index) {
|
||||
$(".swiper1 .swiper-slide").removeClass("selected");
|
||||
ele.addClass("selected");
|
||||
//swiper1.initialSlide=index;
|
||||
}
|
||||
|
||||
var swiper1 = new Swiper('.swiper1', {
|
||||
// 设置slider容器能够同时显示的slides数量(carousel模式)。
|
||||
// 可以设置为number或者 'auto'则自动根据slides的宽度来设定数量。
|
||||
// loop模式下如果设置为'auto'还需要设置另外一个参数loopedSlides。
|
||||
slidesPerView: 5.5,
|
||||
paginationClickable: true,//此参数设置为true时,点击分页器的指示点分页器会控制Swiper切换。
|
||||
spaceBetween: 10,//slide之间的距离(单位px)。
|
||||
freeMode: true,//默认为false,普通模式:slide滑动时只滑动一格,并自动贴合wrapper,设置为true则变为free模式,slide会根据惯性滑动且不会贴合。
|
||||
loop: false,//是否可循环
|
||||
onTab: function(swiper) {
|
||||
var n = swiper1.clickedIndex;
|
||||
}
|
||||
});
|
||||
swiper1.slides.each(function(index, val) {
|
||||
var ele = $(this);
|
||||
ele.on("click", function() {
|
||||
setCurrentSlide(ele, index);
|
||||
swiper2.slideTo(index, 500, false);
|
||||
//mySwiper.initialSlide=index;
|
||||
});
|
||||
});
|
||||
|
||||
var swiper2 = new Swiper('.swiper2', {
|
||||
//freeModeSticky 设置为true 滑动会自动贴合
|
||||
direction: 'horizontal',//Slides的滑动方向,可设置水平(horizontal)或垂直(vertical)。
|
||||
loop: false,
|
||||
// effect : 'fade',//淡入
|
||||
//effect : 'cube',//方块
|
||||
//effect : 'coverflow',//3D流
|
||||
// effect : 'flip',//3D翻转
|
||||
autoHeight: true,//自动高度。设置为true时,wrapper和container会随着当前slide的高度而发生变化。
|
||||
onSlideChangeEnd: function(swiper) { //回调函数,swiper从一个slide过渡到另一个slide结束时执行。
|
||||
var n = swiper.activeIndex;
|
||||
setCurrentSlide($(".swiper1 .swiper-slide").eq(n), n);
|
||||
swiper1.slideTo(n, 500, false);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
6
public/frontend/web/scripts/swiperTab/jquery插件库.url
Executable file
6
public/frontend/web/scripts/swiperTab/jquery插件库.url
Executable file
@@ -0,0 +1,6 @@
|
||||
[{000214A0-0000-0000-C000-000000000046}]
|
||||
Prop3=19,2
|
||||
[InternetShortcut]
|
||||
URL=http://www.jq22.com/
|
||||
IDList=
|
||||
HotKey=0
|
||||
32
public/frontend/web/scripts/swiperTab/js/app.min.js
vendored
Executable file
32
public/frontend/web/scripts/swiperTab/js/app.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
4
public/frontend/web/scripts/swiperTab/js/jquery.min.js
vendored
Executable file
4
public/frontend/web/scripts/swiperTab/js/jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
9
public/frontend/web/scripts/swiperTab/js/mui.min.js
vendored
Executable file
9
public/frontend/web/scripts/swiperTab/js/mui.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
18
public/frontend/web/scripts/swiperTab/js/swiper-3.4.0.jquery.min.js
vendored
Executable file
18
public/frontend/web/scripts/swiperTab/js/swiper-3.4.0.jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
18
public/frontend/web/scripts/swiperTab/js/swiper.jquery.min.js
vendored
Executable file
18
public/frontend/web/scripts/swiperTab/js/swiper.jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
8
public/frontend/web/scripts/swiperTab/js/vue.min.js
vendored
Executable file
8
public/frontend/web/scripts/swiperTab/js/vue.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
7
public/frontend/web/scripts/swiperTab/www.jq22.com.txt
Executable file
7
public/frontend/web/scripts/swiperTab/www.jq22.com.txt
Executable file
@@ -0,0 +1,7 @@
|
||||
|
||||
jQuery<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
http://www.jq22.com
|
||||
|
||||
<20>ҵĸ<D2B5><C4B8>٣<EFBFBD><D9A3><EFBFBD><EFBFBD>ĸ<EFBFBD><C4B8>࣡ jQuery<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻΪ<D6BB><CEAA><EFBFBD>ṩ<EFBFBD><E1B9A9><EFBFBD>õģ<C3B5>
|
||||
|
||||
54
public/frontend/web/scripts/table_special.js
Executable file
54
public/frontend/web/scripts/table_special.js
Executable file
@@ -0,0 +1,54 @@
|
||||
$(document).ready(function(){
|
||||
var nDiv = document.getElementById('t-divN');
|
||||
var hei = nDiv.clientHeight || nDiv.offsetHeight;
|
||||
$('.t-up').css({
|
||||
'height' : hei
|
||||
});
|
||||
|
||||
var divLen = $('#table-box').children();
|
||||
$(divLen[0]).find('div').css({
|
||||
'display' : 'block'
|
||||
});
|
||||
|
||||
for (var i = 0; i < divLen.length; i++) {
|
||||
divLen[i].index = i;
|
||||
}
|
||||
|
||||
var dq = divLen[0];
|
||||
|
||||
for (var i = 0; i < divLen.length; i++) {
|
||||
$(divLen[i]).mouseenter(function(){
|
||||
|
||||
$(dq).find('div').css({
|
||||
'display' : 'none'
|
||||
})
|
||||
if($(this).index == $(dq).index){
|
||||
$(this).find('div').css({
|
||||
'display' : 'block'
|
||||
});
|
||||
}
|
||||
dq = this;
|
||||
});
|
||||
|
||||
|
||||
$(divLen[i]).mouseleave(function(){
|
||||
if($(this).index == $(dq).index){
|
||||
$(this).find('div').css({
|
||||
'display' : 'block'
|
||||
});
|
||||
|
||||
}else{
|
||||
$(this).find('div').css({
|
||||
'display' : 'none'
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
window.onresize = function(){
|
||||
var hei = nDiv.clientHeight || nDiv.offsetHeight;
|
||||
$('.t-up').css({
|
||||
'height' : hei
|
||||
});
|
||||
}
|
||||
});
|
||||
287
public/frontend/web/scripts/tipso.min.js
vendored
Executable file
287
public/frontend/web/scripts/tipso.min.js
vendored
Executable file
@@ -0,0 +1,287 @@
|
||||
/*!
|
||||
* tipso - A Lightweight Responsive jQuery Tooltip Plugin v1.0.1
|
||||
* Copyright (c) 2014 Bojan Petkovski
|
||||
* /tipso.object505.com
|
||||
* Licensed under the MIT license
|
||||
* /object505.mit-license.org/
|
||||
*/
|
||||
!(function (t, o, s, e) {
|
||||
function r(o, s) {
|
||||
;(this.element = t(o)),
|
||||
(this.settings = t.extend({}, l, s)),
|
||||
(this._defaults = l),
|
||||
(this._name = d),
|
||||
(this._title = this.element.attr('title')),
|
||||
(this.mode = 'hide'),
|
||||
this.init()
|
||||
}
|
||||
function i() {
|
||||
var t = o.navigator.msMaxTouchPoints,
|
||||
e = 'ontouchstart' in s.createElement('div')
|
||||
return t || e ? !0 : !1
|
||||
}
|
||||
function n(o) {
|
||||
var s = o.clone()
|
||||
s.css('visibility', 'hidden'), t('body').append(s)
|
||||
var e = s.outerHeight()
|
||||
return s.remove(), e
|
||||
}
|
||||
function a(s) {
|
||||
var e,
|
||||
r,
|
||||
i,
|
||||
a = s.tooltip(),
|
||||
d = s.element,
|
||||
l = s,
|
||||
f = t(o),
|
||||
p = 10
|
||||
switch (l.settings.position) {
|
||||
case 'top':
|
||||
;(r = d.offset().left + d.outerWidth() / 2 - a.outerWidth() / 2),
|
||||
(e = d.offset().top - n(a) - p),
|
||||
a.find('.tipso_arrow').css({ marginLeft: -8 }),
|
||||
e < f.scrollTop()
|
||||
? ((e = d.offset().top + d.outerHeight() + p),
|
||||
a.find('.tipso_arrow').css({ 'border-bottom-color': l.settings.background, 'border-top-color': 'transparent' }),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('bottom'))
|
||||
: (a.find('.tipso_arrow').css({ 'border-top-color': l.settings.background, 'border-bottom-color': 'transparent' }),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('top'))
|
||||
break
|
||||
case 'bottom':
|
||||
;(r = d.offset().left + d.outerWidth() / 2 - a.outerWidth() / 2),
|
||||
(e = d.offset().top + d.outerHeight() + p),
|
||||
a.find('.tipso_arrow').css({ marginLeft: -8 }),
|
||||
e + n(a) > f.scrollTop() + f.outerHeight()
|
||||
? ((e = d.offset().top - n(a) - p),
|
||||
a.find('.tipso_arrow').css({ 'border-top-color': l.settings.background, 'border-bottom-color': 'transparent' }),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('top'))
|
||||
: (a.find('.tipso_arrow').css({ 'border-bottom-color': l.settings.background, 'border-top-color': 'transparent' }),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass(l.settings.position))
|
||||
break
|
||||
case 'left':
|
||||
;(r = d.offset().left - a.outerWidth() - p),
|
||||
(e = d.offset().top + d.outerHeight() / 2 - n(a) / 2),
|
||||
a.find('.tipso_arrow').css({ marginTop: -8, marginLeft: '' }),
|
||||
r < f.scrollLeft()
|
||||
? ((r = d.offset().left + d.outerWidth() + p),
|
||||
a.find('.tipso_arrow').css({
|
||||
'border-right-color': l.settings.background,
|
||||
'border-left-color': 'transparent',
|
||||
'border-top-color': 'transparent',
|
||||
'border-bottom-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('right'))
|
||||
: (a.find('.tipso_arrow').css({
|
||||
'border-left-color': l.settings.background,
|
||||
'border-right-color': 'transparent',
|
||||
'border-top-color': 'transparent',
|
||||
'border-bottom-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass(l.settings.position))
|
||||
break
|
||||
case 'right':
|
||||
;(r = d.offset().left + d.outerWidth() + p),
|
||||
(e = d.offset().top + d.outerHeight() / 2 - n(a) / 2),
|
||||
a.find('.tipso_arrow').css({ marginTop: -8, marginLeft: '' }),
|
||||
r + p + l.settings.width > f.scrollLeft() + f.outerWidth()
|
||||
? ((r = d.offset().left - a.outerWidth() - p),
|
||||
a.find('.tipso_arrow').css({
|
||||
'border-left-color': l.settings.background,
|
||||
'border-right-color': 'transparent',
|
||||
'border-top-color': 'transparent',
|
||||
'border-bottom-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('left'))
|
||||
: (a.find('.tipso_arrow').css({
|
||||
'border-right-color': l.settings.background,
|
||||
'border-left-color': 'transparent',
|
||||
'border-top-color': 'transparent',
|
||||
'border-bottom-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass(l.settings.position))
|
||||
}
|
||||
r < f.scrollLeft() &&
|
||||
('bottom' == l.settings.position || 'top' == l.settings.position) &&
|
||||
(a.find('.tipso_arrow').css({ marginLeft: r - 8 }), (r = 0)),
|
||||
r + l.settings.width > f.outerWidth() &&
|
||||
('bottom' == l.settings.position || 'top' == l.settings.position) &&
|
||||
((i = f.outerWidth() - (r + l.settings.width)), a.find('.tipso_arrow').css({ marginLeft: -i - 8, marginTop: '' }), (r += i)),
|
||||
r < f.scrollLeft() &&
|
||||
('left' == l.settings.position || 'right' == l.settings.position) &&
|
||||
((r = d.offset().left + d.outerWidth() / 2 - a.outerWidth() / 2),
|
||||
a.find('.tipso_arrow').css({ marginLeft: -8, marginTop: '' }),
|
||||
(e = d.offset().top - n(a) - p),
|
||||
e < f.scrollTop()
|
||||
? ((e = d.offset().top + d.outerHeight() + p),
|
||||
a.find('.tipso_arrow').css({
|
||||
'border-bottom-color': l.settings.background,
|
||||
'border-top-color': 'transparent',
|
||||
'border-left-color': 'transparent',
|
||||
'border-right-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('bottom'))
|
||||
: (a.find('.tipso_arrow').css({
|
||||
'border-top-color': l.settings.background,
|
||||
'border-bottom-color': 'transparent',
|
||||
'border-left-color': 'transparent',
|
||||
'border-right-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('top')),
|
||||
r + l.settings.width > f.outerWidth() &&
|
||||
((i = f.outerWidth() - (r + l.settings.width)), a.find('.tipso_arrow').css({ marginLeft: -i - 8, marginTop: '' }), (r += i)),
|
||||
r < f.scrollLeft() && (a.find('.tipso_arrow').css({ marginLeft: r - 8 }), (r = 0))),
|
||||
r + l.settings.width > f.outerWidth() &&
|
||||
('left' == l.settings.position || 'right' == l.settings.position) &&
|
||||
((r = d.offset().left + d.outerWidth() / 2 - a.outerWidth() / 2),
|
||||
a.find('.tipso_arrow').css({ marginLeft: -8, marginTop: '' }),
|
||||
(e = d.offset().top - n(a) - p),
|
||||
e < f.scrollTop()
|
||||
? ((e = d.offset().top + d.outerHeight() + p),
|
||||
a.find('.tipso_arrow').css({
|
||||
'border-bottom-color': l.settings.background,
|
||||
'border-top-color': 'transparent',
|
||||
'border-left-color': 'transparent',
|
||||
'border-right-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('bottom'))
|
||||
: (a.find('.tipso_arrow').css({
|
||||
'border-top-color': l.settings.background,
|
||||
'border-bottom-color': 'transparent',
|
||||
'border-left-color': 'transparent',
|
||||
'border-right-color': 'transparent'
|
||||
}),
|
||||
a.removeClass('top bottom left right'),
|
||||
a.addClass('top')),
|
||||
r + l.settings.width > f.outerWidth() &&
|
||||
((i = f.outerWidth() - (r + l.settings.width)), a.find('.tipso_arrow').css({ marginLeft: -i - 8, marginTop: '' }), (r += i)),
|
||||
r < f.scrollLeft() && (a.find('.tipso_arrow').css({ marginLeft: r - 8 }), (r = 0))),
|
||||
a.css({ left: r + l.settings.offsetX, top: e + l.settings.offsetY })
|
||||
}
|
||||
var d = 'tipso',
|
||||
l = {
|
||||
speed: 400,
|
||||
background: '#fff',
|
||||
color: '#333',
|
||||
position: 'top',
|
||||
width: 100,
|
||||
delay: 200,
|
||||
offsetX: 0,
|
||||
offsetY: 0,
|
||||
content: null,
|
||||
ajaxContentUrl: null,
|
||||
useTitle: !0,
|
||||
onBeforeShow: null,
|
||||
onShow: null,
|
||||
onHide: null
|
||||
}
|
||||
t.extend(r.prototype, {
|
||||
init: function () {
|
||||
var o = this,
|
||||
e = this.element
|
||||
e.addClass('tipso_style').removeAttr('title'),
|
||||
i()
|
||||
? (e.on('click.' + d, function (t) {
|
||||
'hide' == o.mode ? o.show() : o.hide(), t.stopPropagation()
|
||||
}),
|
||||
t(s).on('click', function () {
|
||||
'show' == o.mode && o.hide()
|
||||
}))
|
||||
: (e.on('mouseover.' + d, function () {
|
||||
o.show()
|
||||
}),
|
||||
e.on('mouseout.' + d, function () {
|
||||
o.hide()
|
||||
}))
|
||||
},
|
||||
tooltip: function () {
|
||||
return (
|
||||
this.tipso_bubble ||
|
||||
(this.tipso_bubble = t('<div class="tipso_bubble"><div class="tipso_content"></div><div class="tipso_arrow"></div></div>')),
|
||||
this.tipso_bubble
|
||||
)
|
||||
},
|
||||
show: function () {
|
||||
var s = this.tooltip(),
|
||||
e = this,
|
||||
r = t(o)
|
||||
t.isFunction(e.settings.onBeforeShow) && e.settings.onBeforeShow(t(this)),
|
||||
s.css({ background: e.settings.background, color: e.settings.color, width: e.settings.width }).hide(),
|
||||
s.find('.tipso_content').html(e.content()),
|
||||
a(e),
|
||||
r.resize(function () {
|
||||
a(e)
|
||||
}),
|
||||
(e.timeout = o.setTimeout(function () {
|
||||
s.appendTo('body')
|
||||
.stop(!0, !0)
|
||||
.fadeIn(e.settings.speed, function () {
|
||||
;(e.mode = 'show'), t.isFunction(e.settings.onShow) && e.settings.onShow(t(this))
|
||||
})
|
||||
}, e.settings.delay))
|
||||
},
|
||||
hide: function () {
|
||||
var s = this,
|
||||
e = this.tooltip()
|
||||
o.clearTimeout(s.timeout),
|
||||
(s.timeout = null),
|
||||
e.stop(!0, !0).fadeOut(s.settings.speed, function () {
|
||||
t(this).remove(), t.isFunction(s.settings.onHide) && 'show' == s.mode && s.settings.onHide(t(this)), (s.mode = 'hide')
|
||||
})
|
||||
},
|
||||
destroy: function () {
|
||||
var t = this.element
|
||||
t.off('.' + d), t.removeData(d), t.removeClass('tipso_style').attr('title', this._title)
|
||||
},
|
||||
content: function () {
|
||||
var o,
|
||||
s = this.element,
|
||||
e = this,
|
||||
r = this._title
|
||||
return (o = e.settings.ajaxContentUrl
|
||||
? t.ajax({ type: 'GET', url: e.settings.ajaxContentUrl, async: !1 }).responseText
|
||||
: e.settings.content
|
||||
? e.settings.content
|
||||
: e.settings.useTitle === !0
|
||||
? r
|
||||
: s.data('tipso'))
|
||||
},
|
||||
update: function (t, o) {
|
||||
var s = this
|
||||
return o ? void (s.settings[t] = o) : s.settings[t]
|
||||
}
|
||||
}),
|
||||
(t[d] = t.fn[d] =
|
||||
function (o) {
|
||||
var s = arguments
|
||||
if (o === e || 'object' == typeof o)
|
||||
return (
|
||||
this instanceof t || t.extend(l, o),
|
||||
this.each(function () {
|
||||
t.data(this, 'plugin_' + d) || t.data(this, 'plugin_' + d, new r(this, o))
|
||||
})
|
||||
)
|
||||
if ('string' == typeof o && '_' !== o[0] && 'init' !== o) {
|
||||
var i
|
||||
return (
|
||||
this.each(function () {
|
||||
var e = t.data(this, 'plugin_' + d)
|
||||
e || (e = t.data(this, 'plugin_' + d, new r(this, o))),
|
||||
e instanceof r && 'function' == typeof e[o] && (i = e[o].apply(e, Array.prototype.slice.call(s, 1))),
|
||||
'destroy' === o && t.data(this, 'plugin_' + d, null)
|
||||
}),
|
||||
i !== e ? i : this
|
||||
)
|
||||
}
|
||||
})
|
||||
})(jQuery, window, document)
|
||||
2
public/frontend/web/scripts/wow.min.js
vendored
Executable file
2
public/frontend/web/scripts/wow.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user