init
This commit is contained in:
193
public/frontend/webid/scripts/bxslider/jquery.bxslider.css
Executable file
193
public/frontend/webid/scripts/bxslider/jquery.bxslider.css
Executable file
@@ -0,0 +1,193 @@
|
||||
/**
|
||||
* 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: #fff;
|
||||
}
|
||||
|
||||
.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: 9999;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
10
public/frontend/webid/scripts/bxslider/jquery.bxslider.min.js
vendored
Executable file
10
public/frontend/webid/scripts/bxslider/jquery.bxslider.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
11
public/frontend/webid/scripts/common.js
Executable file
11
public/frontend/webid/scripts/common.js
Executable file
@@ -0,0 +1,11 @@
|
||||
var _pattern = "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos"
|
||||
var _regex = new RegExp(_pattern, "ig");
|
||||
var _UA = navigator.userAgent;
|
||||
|
||||
var domainUrl = window.location.href;
|
||||
var pathUrl = window.location.pathname;
|
||||
|
||||
if(_regex.test(_UA) && pathUrl.search("/us/") != -1){
|
||||
|
||||
location.href=domainUrl.replace('/us/', '/usmobile/');
|
||||
}
|
||||
4
public/frontend/webid/scripts/html5shiv.v3.72.min.js
vendored
Executable file
4
public/frontend/webid/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/webid/scripts/jquery-1.8.3.min.js
vendored
Executable file
2
public/frontend/webid/scripts/jquery-1.8.3.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
2
public/frontend/webid/scripts/jquery-1.8.3.min.js 20181016
Executable file
2
public/frontend/webid/scripts/jquery-1.8.3.min.js 20181016
Executable file
File diff suppressed because one or more lines are too long
16
public/frontend/webid/scripts/jquery.SuperSlide.2.1.1.js
Executable file
16
public/frontend/webid/scripts/jquery.SuperSlide.2.1.1.js
Executable file
File diff suppressed because one or more lines are too long
4
public/frontend/webid/scripts/jquery.mCustomScrollbar.concat.min.js
vendored
Executable file
4
public/frontend/webid/scripts/jquery.mCustomScrollbar.concat.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
3184
public/frontend/webid/scripts/jquery.nicescroll.js
Executable file
3184
public/frontend/webid/scripts/jquery.nicescroll.js
Executable file
File diff suppressed because it is too large
Load Diff
9
public/frontend/webid/scripts/jquery.sliderPro.min.js
vendored
Executable file
9
public/frontend/webid/scripts/jquery.sliderPro.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
152
public/frontend/webid/scripts/large-20181025.js
Executable file
152
public/frontend/webid/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/webid/scripts/large.js
Executable file
191
public/frontend/webid/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/webid/scripts/large20181013.js
Executable file
152
public/frontend/webid/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 };
|
||||
}
|
||||
});
|
||||
7
public/frontend/webid/scripts/owl.carousel.min.js
vendored
Executable file
7
public/frontend/webid/scripts/owl.carousel.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
13
public/frontend/webid/scripts/swiper.min.js
vendored
Executable file
13
public/frontend/webid/scripts/swiper.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
292
public/frontend/webid/scripts/swiperTab/css/aa.css
Executable file
292
public/frontend/webid/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/webid/scripts/swiperTab/css/mui.css
Executable file
5615
public/frontend/webid/scripts/swiperTab/css/mui.css
Executable file
File diff suppressed because it is too large
Load Diff
5
public/frontend/webid/scripts/swiperTab/css/mui.min.css
vendored
Executable file
5
public/frontend/webid/scripts/swiperTab/css/mui.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
409
public/frontend/webid/scripts/swiperTab/css/swiper-3.2.7.min.css
vendored
Executable file
409
public/frontend/webid/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/webid/scripts/swiperTab/index.html
Executable file
151
public/frontend/webid/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/webid/scripts/swiperTab/jquery插件库.url
Executable file
6
public/frontend/webid/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/webid/scripts/swiperTab/js/app.min.js
vendored
Executable file
32
public/frontend/webid/scripts/swiperTab/js/app.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
4
public/frontend/webid/scripts/swiperTab/js/jquery.min.js
vendored
Executable file
4
public/frontend/webid/scripts/swiperTab/js/jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
9
public/frontend/webid/scripts/swiperTab/js/mui.min.js
vendored
Executable file
9
public/frontend/webid/scripts/swiperTab/js/mui.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
18
public/frontend/webid/scripts/swiperTab/js/swiper-3.4.0.jquery.min.js
vendored
Executable file
18
public/frontend/webid/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/webid/scripts/swiperTab/js/swiper.jquery.min.js
vendored
Executable file
18
public/frontend/webid/scripts/swiperTab/js/swiper.jquery.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
8
public/frontend/webid/scripts/swiperTab/js/vue.min.js
vendored
Executable file
8
public/frontend/webid/scripts/swiperTab/js/vue.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
7
public/frontend/webid/scripts/swiperTab/www.jq22.com.txt
Executable file
7
public/frontend/webid/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/webid/scripts/table_special.js
Executable file
54
public/frontend/webid/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
|
||||
});
|
||||
}
|
||||
});
|
||||
2
public/frontend/webid/scripts/wow.min.js
vendored
Executable file
2
public/frontend/webid/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