Initial commit
|
After Width: | Height: | Size: 80 KiB |
@@ -0,0 +1,353 @@
|
||||
.navigation-is-open .mo_top .moxl{ left:0;}
|
||||
.navigation-is-open{ overflow:hidden}
|
||||
|
||||
.cd-nav-trigger {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top:10%;
|
||||
height: 35px;
|
||||
width: 35px;
|
||||
border-radius: 50%;
|
||||
/* image replacement */
|
||||
overflow: hidden;
|
||||
right:2%;
|
||||
text-indent: 100%;
|
||||
white-space: nowrap;
|
||||
-webkit-transition: -webkit-transform 0.5s;
|
||||
-moz-transition: -moz-transform 0.5s;
|
||||
transition: transform 0.5s;
|
||||
}
|
||||
.cd-nav-trigger .cd-nav-icon {
|
||||
/* icon created in CSS */
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
bottom: auto;
|
||||
right: auto;
|
||||
-webkit-transform: translateX(-50%) translateY(-50%);
|
||||
-moz-transform: translateX(-50%) translateY(-50%);
|
||||
-ms-transform: translateX(-50%) translateY(-50%);
|
||||
-o-transform: translateX(-50%) translateY(-50%);
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
width: 22px;
|
||||
height: 2px;
|
||||
background: #a60c1f;
|
||||
}
|
||||
.cd-nav-trigger .cd-nav-icon::before, .cd-nav-trigger .cd-nav-icon:after {
|
||||
/* upper and lower lines of the menu icon */
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: inherit;
|
||||
/* Force Hardware Acceleration in WebKit */
|
||||
-webkit-transform: translateZ(0);
|
||||
-moz-transform: translateZ(0);
|
||||
-ms-transform: translateZ(0);
|
||||
-o-transform: translateZ(0);
|
||||
transform: translateZ(0);
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
-webkit-transition: -webkit-transform 0.5s, width 0.5s, top 0.3s;
|
||||
-moz-transition: -moz-transform 0.5s, width 0.5s, top 0.3s;
|
||||
transition: transform 0.5s, width 0.5s, top 0.3s;
|
||||
}
|
||||
.cd-nav-trigger .cd-nav-icon::before {
|
||||
-webkit-transform-origin: right top;
|
||||
-moz-transform-origin: right top;
|
||||
-ms-transform-origin: right top;
|
||||
-o-transform-origin: right top;
|
||||
transform-origin: right top;
|
||||
-webkit-transform: translateY(-6px);
|
||||
-moz-transform: translateY(-6px);
|
||||
-ms-transform: translateY(-6px);
|
||||
-o-transform: translateY(-6px);
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
.cd-nav-trigger .cd-nav-icon::after {
|
||||
-webkit-transform-origin: right bottom;
|
||||
-moz-transform-origin: right bottom;
|
||||
-ms-transform-origin: right bottom;
|
||||
-o-transform-origin: right bottom;
|
||||
transform-origin: right bottom;
|
||||
-webkit-transform: translateY(6px);
|
||||
-moz-transform: translateY(6px);
|
||||
-ms-transform: translateY(6px);
|
||||
-o-transform: translateY(6px);
|
||||
transform: translateY(6px);
|
||||
}
|
||||
.no-touch .cd-nav-trigger:hover .cd-nav-icon::after {
|
||||
top: 2px;
|
||||
}
|
||||
.no-touch .cd-nav-trigger:hover .cd-nav-icon::before {
|
||||
top: -2px;
|
||||
}
|
||||
.cd-nav-trigger svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.cd-nav-trigger circle {
|
||||
/* circle border animation */
|
||||
-webkit-transition: stroke-dashoffset 0.4s 0s;
|
||||
-moz-transition: stroke-dashoffset 0.4s 0s;
|
||||
transition: stroke-dashoffset 0.4s 0s;
|
||||
}
|
||||
.navigation-is-open .cd-nav-trigger {
|
||||
/* rotate trigger when navigation becomes visible */
|
||||
-webkit-transform: rotate(180deg);
|
||||
-moz-transform: rotate(180deg);
|
||||
-ms-transform: rotate(180deg);
|
||||
-o-transform: rotate(180deg);
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.navigation-is-open .cd-nav-trigger .cd-nav-icon::after,
|
||||
.navigation-is-open .cd-nav-trigger .cd-nav-icon::before {
|
||||
/* animate arrow --> from hamburger to arrow */
|
||||
width: 50%;
|
||||
-webkit-transition: -webkit-transform 0.5s, width 0.5s;
|
||||
-moz-transition: -moz-transform 0.5s, width 0.5s;
|
||||
transition: transform 0.5s, width 0.5s;
|
||||
}
|
||||
.navigation-is-open .cd-nav-trigger .cd-nav-icon::before {
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.navigation-is-open .cd-nav-trigger .cd-nav-icon::after {
|
||||
-webkit-transform: rotate(-45deg);
|
||||
-moz-transform: rotate(-45deg);
|
||||
-ms-transform: rotate(-45deg);
|
||||
-o-transform: rotate(-45deg);
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
.no-touch .navigation-is-open .cd-nav-trigger:hover .cd-nav-icon::after, .no-touch .navigation-is-open .cd-nav-trigger:hover .cd-nav-icon::before {
|
||||
top: 0;
|
||||
}
|
||||
.navigation-is-open .cd-nav-trigger circle {
|
||||
stroke-dashoffset: 0;
|
||||
-webkit-transition: stroke-dashoffset 0.4s 0.3s;
|
||||
-moz-transition: stroke-dashoffset 0.4s 0.3s;
|
||||
transition: stroke-dashoffset 0.4s 0.3s;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.ma-infinitypush-wrapper .ma-infinitypush > ul, .ma-infinitypush-wrapper .ma-infinitypush > ol{ border-bottom:0px}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li{ border-bottom:1px solid #fff}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li a{ padding: 0px 8%;}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li a i{ display:inline-block; width:20px; height:20px; border-radius:100%; text-align:center; line-height:20px; border:1px solid #fff}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
min-width: 20rem;
|
||||
}
|
||||
|
||||
/*****************************************************************
|
||||
* Header
|
||||
*****************************************************************/
|
||||
#header {
|
||||
background-color: #3498db;
|
||||
height: 2.5rem;
|
||||
}
|
||||
@media screen and (max-width: 1200px) {
|
||||
#header {
|
||||
background-color: #393939;
|
||||
height: 3.75rem;
|
||||
}
|
||||
}
|
||||
#header .header-main {
|
||||
max-width: 75rem;
|
||||
height: 2.5rem;
|
||||
margin: 0 auto;
|
||||
padding: 0 0.625rem;
|
||||
}
|
||||
@media screen and (max-width: 1200px) {
|
||||
#header .header-main {
|
||||
height: 3.75rem;
|
||||
padding: 0 0.625rem;
|
||||
}
|
||||
}
|
||||
#header .header-main .site-title {
|
||||
position: relative;
|
||||
float: left;
|
||||
width: 3.5625rem;
|
||||
height: 100%;
|
||||
margin: 0 1.25rem 0 0.9375rem;
|
||||
}
|
||||
#header .header-main .site-title a {
|
||||
position: absolute;
|
||||
display: block;
|
||||
background: transparent url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMTk4LjkgNzAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE5OC45IDcwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGc+Cgk8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjE5OC45LDcwIDE1OC41LDAgMTMyLjYsNDQuOSAxNDcuMSw3MCAJIi8+Cgk8cG9seWdvbiBmaWxsPSIjRkZGRkZGIiBwb2ludHM9IjExMi43LDcwIDE1My4xLDAgMTAxLjMsMCA2MC45LDcwIAkiLz4KCTxwb2x5Z29uIGZpbGw9IiNGRkZGRkYiIHBvaW50cz0iNTEuOCw3MCA5Mi4yLDAgNDAuNCwwIDAsNzAgCSIvPgo8L2c+Cjwvc3ZnPg==) no-repeat 0 0;
|
||||
text-indent: -9999px;
|
||||
width: 3.5625rem;
|
||||
height: 1.25rem;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
/*****************************************************************
|
||||
* Site Navigation
|
||||
*****************************************************************/
|
||||
.desktop #mo_nav{
|
||||
position: static;
|
||||
background-color: #393939;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
right: -12.5rem;
|
||||
float: left;
|
||||
}
|
||||
.desktop #mo_nav ul {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
float: left;
|
||||
}
|
||||
.desktop #mo_nav ul:before, .desktop #mo_nav ul:after {
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
.desktop #mo_nav ul:after {
|
||||
clear: both;
|
||||
}
|
||||
.desktop #mo_nav ul li {
|
||||
padding: 0;
|
||||
float: left;
|
||||
height: 3.75rem;
|
||||
}
|
||||
.desktop #mo_nav ul li a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: #3498db;
|
||||
padding: 0 1.25rem;
|
||||
-webkit-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
|
||||
-moz-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
|
||||
-o-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
|
||||
-ms-transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
|
||||
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
|
||||
line-height: 3.75rem;
|
||||
height: 3.75rem;
|
||||
}
|
||||
.desktop #mo_nav ul li a:hover {
|
||||
border-top: 0.0625rem solid #dddddd;
|
||||
border-bottom: 0.0625rem solid #dddddd;
|
||||
color: white;
|
||||
border: none;
|
||||
background-color: #3498db;
|
||||
line-height: 3.75rem;
|
||||
}
|
||||
.desktop #mo_nav ul li ul {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*****************************************************************
|
||||
* Main
|
||||
*****************************************************************/
|
||||
#main {
|
||||
padding: 1.25rem;
|
||||
clear: both;
|
||||
min-width: 20rem;
|
||||
}
|
||||
#main h1 {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 1.5rem;
|
||||
color: white;
|
||||
letter-spacing: 0.0375rem;
|
||||
text-align: center;
|
||||
margin: 1.875rem 0 0 0;
|
||||
}
|
||||
#main h2 {
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 1.125rem;
|
||||
color: white;
|
||||
letter-spacing: 0.0375rem;
|
||||
text-align: center;
|
||||
margin: 1.875rem 0;
|
||||
}
|
||||
#main nav {
|
||||
display: block;
|
||||
margin: 1.875rem 0;
|
||||
text-align: center;
|
||||
}
|
||||
#main nav a {
|
||||
display: inline-block;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 0.9375rem;
|
||||
color: #1e6fa4;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
letter-spacing: 0.0375rem;
|
||||
padding: 0.625rem 0.9375rem;
|
||||
}
|
||||
#main nav a:hover {
|
||||
color: #125480;
|
||||
}
|
||||
#main nav a.active {
|
||||
color: white;
|
||||
}
|
||||
#main p.blindtext {
|
||||
font-family: "BLOKKRegular", sans-serif;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
#main button {
|
||||
display: block;
|
||||
font-family: "Open Sans", sans-serif;
|
||||
font-size: 0.9375rem;
|
||||
color: white;
|
||||
letter-spacing: 0.0375rem;
|
||||
background-color: transparent;
|
||||
border: 0.125rem solid white;
|
||||
padding: 0.625rem 2.5rem;
|
||||
margin: 0 auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/*****************************************************************
|
||||
* Footer
|
||||
*****************************************************************/
|
||||
#footer {
|
||||
width: 100%;
|
||||
}
|
||||
#footer .footer-main {
|
||||
max-width: 75rem;
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
padding: 0.625rem 0.625rem 1.875rem 0.625rem;
|
||||
overflow: hidden;
|
||||
}
|
||||
#footer .footer-main > p {
|
||||
text-align: center;
|
||||
font-size: 0.625rem;
|
||||
margin: 0;
|
||||
}
|
||||
#footer .footer-main > p a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
/*****************************************************************
|
||||
* Infinity Push
|
||||
*****************************************************************/
|
||||
.ma-infinitypush-open {
|
||||
display: block;
|
||||
position: fixed;
|
||||
overflow: hidden;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.ma-infinitypush-wrapper {
|
||||
background:rgba(166, 12, 31,.6);
|
||||
position: fixed;
|
||||
height: 100%;
|
||||
width:100%;
|
||||
z-index: 90;
|
||||
margin-top:50px;
|
||||
left:-1920px;transition: all 0.3s ease;
|
||||
-webkit-transform: all 0.3s ease;
|
||||
}
|
||||
.ma-infinitypush-wrapper.on{ left:0px;transition: all 0.3s ease;
|
||||
-webkit-transform: all 0.3s ease; }
|
||||
.ma-infinitypush-wrapper.ma-infinitypush-active-button{
|
||||
position: absolute;
|
||||
left:-255px !important;transition: all 0.3s ease;
|
||||
-webkit-transform: all 0.3s ease;
|
||||
}
|
||||
.ma-infinitypush-wrapper.ma-infinitypush-active-button.on{ left:0px !important;transition: all 0.3s ease;
|
||||
-webkit-transform: all 0.3s ease;}
|
||||
.ma-infinitypush-wrapper.ma-infinitypush-active-button.ma-infinitypush-button-left .ma-infinitypush-button {
|
||||
margin: 0 0 0 22px;
|
||||
right: -44px;
|
||||
}
|
||||
.ma-infinitypush-wrapper.ma-infinitypush-active-button.ma-infinitypush-button-right .ma-infinitypush-button {
|
||||
margin: 0 22px 0 0;
|
||||
left: -44px;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush-button {
|
||||
display: block;
|
||||
box-shadow: inset 0 4px #3498db, inset 0 6px white, inset 0 9px #3498db, inset 0 11px white, inset 0 14px #3498db, inset 0 16px white;
|
||||
position: absolute;
|
||||
text-indent: -9999px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
top: 13px;
|
||||
cursor: pointer;
|
||||
z-index: 100;
|
||||
}
|
||||
.ma-infinitypush-wrapper.ma-infinitypush-left .ma-infinitypush ul li ul, .ma-infinitypush-wrapper.ma-infinitypush-left .ma-infinitypush ul li ol, .ma-infinitypush-wrapper.ma-infinitypush-left .ma-infinitypush ol li ul, .ma-infinitypush-wrapper.ma-infinitypush-left .ma-infinitypush ol li ol {
|
||||
border-left: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.ma-infinitypush-wrapper.ma-infinitypush-right .ma-infinitypush ul li ul, .ma-infinitypush-wrapper.ma-infinitypush-right .ma-infinitypush ul li ol, .ma-infinitypush-wrapper.ma-infinitypush-right .ma-infinitypush ol li ul, .ma-infinitypush-wrapper.ma-infinitypush-right .ma-infinitypush ol li ol {
|
||||
border-right: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush {
|
||||
background:#a60c1f;
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width:250px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
z-index: 5000;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul, .ma-infinitypush-wrapper .ma-infinitypush ol {
|
||||
background-color: #a60c1f;
|
||||
list-style-type: none;
|
||||
width: 250px;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li, .ma-infinitypush-wrapper .ma-infinitypush ol li {
|
||||
height: 45px;
|
||||
width: 100%;
|
||||
background:#a60c1f;
|
||||
line-height:45px;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li a, .ma-infinitypush-wrapper .ma-infinitypush ol li a {
|
||||
color: #fff;
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
text-transform: uppercase;
|
||||
text-decoration: none;
|
||||
letter-spacing: 1px;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li ul, .ma-infinitypush-wrapper .ma-infinitypush ul li ol, .ma-infinitypush-wrapper .ma-infinitypush ol li ul, .ma-infinitypush-wrapper .ma-infinitypush ol li ol {
|
||||
display: none;
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
background:#267bbc
|
||||
overflow-y: auto;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li.ma-infinitypush-active-item, .ma-infinitypush-wrapper .ma-infinitypush ol li.ma-infinitypush-active-item {
|
||||
background-color: #830000;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush ul li.ma-infinitypush-active-item > a, .ma-infinitypush-wrapper .ma-infinitypush ol li.ma-infinitypush-active-item > a {
|
||||
color: #fff !important;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush.ma-infinitypush-sub-open {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush .ma-infinitypush-inactive {
|
||||
border-right: none !important;
|
||||
border-left: none !important;
|
||||
overflow-y: hidden !important;
|
||||
}
|
||||
.ma-infinitypush-wrapper .ma-infinitypush .ma-infinitypush-close-subnav {
|
||||
position: absolute;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
width: 250px;
|
||||
height: 100% !important;
|
||||
top: 0;
|
||||
left: 0;
|
||||
padding: 0 !important;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
/* Slider */
|
||||
.slick-slider { position: relative; display: block;}
|
||||
|
||||
.slick-list { position: relative; overflow: hidden; display: block; margin: 0; padding: 0; }
|
||||
.slick-list:focus { outline: none; }
|
||||
.slick-list.dragging { cursor: pointer; cursor: hand; }
|
||||
|
||||
.slick-slider .slick-list, .slick-track, .slick-slide, .slick-slide img { -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
|
||||
|
||||
.slick-track { position: relative; left: 0; top: 0; display: block; zoom: 1; }
|
||||
.slick-track:before, .slick-track:after { content: ""; display: table; }
|
||||
.slick-track:after { clear: both; }
|
||||
.slick-loading .slick-track { visibility: hidden; }
|
||||
|
||||
.slick-slide { float: left; height: 100%; min-height: 1px; display: none; }
|
||||
.slick-slide.slick-loading img { display: none; }
|
||||
.slick-slide.dragging img { pointer-events: none; }
|
||||
.slick-initialized .slick-slide { display: block; }
|
||||
.slick-loading .slick-slide { visibility: hidden; }
|
||||
.slick-vertical .slick-slide { display: block; height: auto; border: 1px solid transparent; }
|
||||
|
||||
|
||||
/* Arrows */
|
||||
.slick-prev, .slick-next { position: absolute; display: block; height: 20px; width: 20px; line-height: 0; font-size: 0; cursor: pointer; background: transparent; color: transparent; top: 50%; margin-top: -10px; padding: 0; border: none; outline: none; }
|
||||
.slick-prev:focus, .slick-next:focus { outline: none; }
|
||||
.slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { opacity: 0.25; }
|
||||
|
||||
.slick-prev:before, .slick-next:before { font-family: "FontAwesome" !important; font-size: 20px; line-height: 1; color: #000000; opacity: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
||||
|
||||
.slick-prev { left: -25px; }
|
||||
.slick-prev:before { content: "\f104"; }
|
||||
|
||||
.slick-next { right: -25px; }
|
||||
.slick-next:before { content: "\f105"; }
|
||||
|
||||
/* Dots */
|
||||
.slick-slider { margin-bottom: 30px; }
|
||||
|
||||
.slick-dots { position: absolute; bottom: 4%; list-style: none; display: block; text-align: center; padding: 0px; width: 100%; }
|
||||
.slick-dots li { position: relative; display: inline-block; height: 20px; width: 20px; margin: 0px 2px; padding: 0px; cursor: pointer; }
|
||||
.slick-dots li button { border: 0; background: transparent; display: block; height: 20px; width: 20px; outline: none; line-height: 0; font-size: 0; color: transparent; padding: 5px; cursor: pointer; outline: none; }
|
||||
.slick-dots li button:focus { outline: none; }
|
||||
.slick-dots li button:before { position: absolute; top: 0; left: 0; content: "\2022"; width: 20px; height: 20px; font-family: "slick"; font-size: 30px; line-height: 20px; text-align: center; color: #b8182c; opacity: 0.25; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
|
||||
.slick-dots li.slick-active button:before { opacity: 1; }
|
||||
|
After Width: | Height: | Size: 434 KiB |
@@ -0,0 +1,142 @@
|
||||
{
|
||||
"id": "1470869",
|
||||
"name": "集锦",
|
||||
"font_family": "iconfont",
|
||||
"css_prefix_text": "icon-",
|
||||
"description": "",
|
||||
"glyphs": [
|
||||
{
|
||||
"icon_id": "22066",
|
||||
"name": "模板",
|
||||
"font_class": "moban",
|
||||
"unicode": "e600",
|
||||
"unicode_decimal": 58880
|
||||
},
|
||||
{
|
||||
"icon_id": "548014",
|
||||
"name": "相册",
|
||||
"font_class": "iconfontxiangce",
|
||||
"unicode": "e67a",
|
||||
"unicode_decimal": 59002
|
||||
},
|
||||
{
|
||||
"icon_id": "742824",
|
||||
"name": "home",
|
||||
"font_class": "home",
|
||||
"unicode": "e608",
|
||||
"unicode_decimal": 58888
|
||||
},
|
||||
{
|
||||
"icon_id": "1025326",
|
||||
"name": "缓存",
|
||||
"font_class": "huancun",
|
||||
"unicode": "e650",
|
||||
"unicode_decimal": 58960
|
||||
},
|
||||
{
|
||||
"icon_id": "2917335",
|
||||
"name": "栏目更新",
|
||||
"font_class": "lanmugengxin",
|
||||
"unicode": "e604",
|
||||
"unicode_decimal": 58884
|
||||
},
|
||||
{
|
||||
"icon_id": "2990177",
|
||||
"name": "栏目",
|
||||
"font_class": "lanmu",
|
||||
"unicode": "e655",
|
||||
"unicode_decimal": 58965
|
||||
},
|
||||
{
|
||||
"icon_id": "3303133",
|
||||
"name": "清理缓存",
|
||||
"font_class": "qinglihuancun",
|
||||
"unicode": "e617",
|
||||
"unicode_decimal": 58903
|
||||
},
|
||||
{
|
||||
"icon_id": "3720150",
|
||||
"name": "表单",
|
||||
"font_class": "biaodan",
|
||||
"unicode": "e63e",
|
||||
"unicode_decimal": 58942
|
||||
},
|
||||
{
|
||||
"icon_id": "5114435",
|
||||
"name": "search close",
|
||||
"font_class": "close",
|
||||
"unicode": "e602",
|
||||
"unicode_decimal": 58882
|
||||
},
|
||||
{
|
||||
"icon_id": "6513380",
|
||||
"name": "新闻",
|
||||
"font_class": "quanbuxinwen",
|
||||
"unicode": "e601",
|
||||
"unicode_decimal": 58881
|
||||
},
|
||||
{
|
||||
"icon_id": "6628574",
|
||||
"name": "栏目",
|
||||
"font_class": "lanmu1",
|
||||
"unicode": "e84a",
|
||||
"unicode_decimal": 59466
|
||||
},
|
||||
{
|
||||
"icon_id": "8133073",
|
||||
"name": "产品",
|
||||
"font_class": "chanpin",
|
||||
"unicode": "e88d",
|
||||
"unicode_decimal": 59533
|
||||
},
|
||||
{
|
||||
"icon_id": "8516001",
|
||||
"name": "模型",
|
||||
"font_class": "moxing",
|
||||
"unicode": "e613",
|
||||
"unicode_decimal": 58899
|
||||
},
|
||||
{
|
||||
"icon_id": "9282136",
|
||||
"name": "文件夹",
|
||||
"font_class": "wenjianjia",
|
||||
"unicode": "e638",
|
||||
"unicode_decimal": 58936
|
||||
},
|
||||
{
|
||||
"icon_id": "9297903",
|
||||
"name": "单页",
|
||||
"font_class": "danye",
|
||||
"unicode": "e62d",
|
||||
"unicode_decimal": 58925
|
||||
},
|
||||
{
|
||||
"icon_id": "9716701",
|
||||
"name": "反馈",
|
||||
"font_class": "fankui",
|
||||
"unicode": "e63a",
|
||||
"unicode_decimal": 58938
|
||||
},
|
||||
{
|
||||
"icon_id": "9833661",
|
||||
"name": "*列表页-横向展示形式*",
|
||||
"font_class": "liebiaoye-hengxiangzhanshixingshi",
|
||||
"unicode": "e661",
|
||||
"unicode_decimal": 58977
|
||||
},
|
||||
{
|
||||
"icon_id": "10291857",
|
||||
"name": "内容",
|
||||
"font_class": "neirong",
|
||||
"unicode": "e60b",
|
||||
"unicode_decimal": 58891
|
||||
},
|
||||
{
|
||||
"icon_id": "10589225",
|
||||
"name": "自定义页面",
|
||||
"font_class": "zidingyiyemian",
|
||||
"unicode": "e607",
|
||||
"unicode_decimal": 58887
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
<?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" >
|
||||
<!--
|
||||
2013-9-30: Created.
|
||||
-->
|
||||
<svg>
|
||||
<metadata>
|
||||
Created by iconfont
|
||||
</metadata>
|
||||
<defs>
|
||||
|
||||
<font id="iconfont" horiz-adv-x="1024" >
|
||||
<font-face
|
||||
font-family="iconfont"
|
||||
font-weight="500"
|
||||
font-stretch="normal"
|
||||
units-per-em="1024"
|
||||
ascent="896"
|
||||
descent="-128"
|
||||
/>
|
||||
<missing-glyph />
|
||||
|
||||
<glyph glyph-name="moban" unicode="" d="M64.004096 747.935488l0-256.016384 384.023552 0L448.027648 747.935488 64.004096 747.935488zM384.024576 555.924224 128.007168 555.924224 128.007168 683.931392l256.017408 0L384.024576 555.924224zM64.003072 427.916032l0-192.012288 384.023552 0L448.026624 427.916032 64.003072 427.916032zM384.024576 299.906816 128.007168 299.906816l0 64.004096 256.017408 0L384.024576 299.906816zM512.032768 747.935488l0-512.031744 448.027648 0L960.060416 747.935488 512.032768 747.935488zM896.05632 299.90784l-320.02048 0L576.03584 683.931392l320.02048 0L896.05632 299.90784zM64.003072 171.899648l0-320.02048 896.055296 0 0 320.02048L64.003072 171.899648zM896.054272-84.116736 128.007168-84.116736 128.007168 107.895552 896.054272 107.895552 896.054272-84.116736z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="iconfontxiangce" unicode="" d="M456.628518 477.57538c63.585432 0 115.316974 51.736702 115.316974 115.330735 0 63.585432-51.731541 115.316974-115.316974 115.316974-63.583712 0-115.313533-51.731541-115.313533-115.316974C341.314985 529.312082 393.044806 477.57538 456.628518 477.57538zM456.628518 656.615401c35.129902 0 63.711007-28.581105 63.711007-63.711007 0-35.138503-28.581105-63.724768-63.711007-63.724768-35.128182 0-63.707566 28.586265-63.707566 63.724768C392.920951 628.034296 421.500336 656.615401 456.628518 656.615401zM1067.410939 185.408198l0 136.084935c0 5.260368-1.608386 10.393442-4.606693 14.714581l-174.553743 251.458675c-4.692703 6.758661-12.325225 10.875097-20.549496 11.079801-8.21395 0.227066-16.054616-3.521247-21.079317-10.03564l-122.335385-158.631582-48.046875 51.409864c-5.01782 5.368741-12.077516 8.325763-19.434807 8.177826-7.346969-0.165139-14.27421-3.4576-19.044322-9.046526l-161.275527-188.998253-53.511947 48.917296c-5.305093 4.849241-12.394033 7.257519-19.551781 6.669211-7.161188-0.596909-13.74955-4.15256-18.179062-9.812015l-106.495794-136.084935c-6.082623-7.771859-7.199032-18.33216-2.874452-27.203225 4.32286-8.871066 13.326381-14.501277 23.195162-14.501277l742.541056 0C1055.858084 159.605214 1067.410939 171.15807 1067.410939 185.408198zM1015.804972 211.211181 352.023223 211.211181l56.690875 72.441016 52.657008-48.132885c5.164037-4.718506 12.02419-7.133665 19.006478-6.708776 6.982287 0.43349 13.4898 3.684666 18.031125 9.005241l159.852923 187.32794 49.056632-52.491869c5.169198-5.53216 12.512727-8.496062 20.073001-8.155463 7.561994 0.359522 14.585566 4.021825 19.211181 10.016718l119.356001 154.766295 149.844806-215.864319L1015.803252 211.211181zM1147.259132 185.886413 1147.259132 672.454993c0 60.611208-45.549147 109.92071-101.53646 109.92071L299.349012 782.375702c-55.987314 0-101.53474-49.309501-101.53474-109.92071l0-486.568579c0-60.611208 45.547426-109.92071 101.53474-109.92071l746.373659 0C1101.709985 75.965704 1147.259132 125.276925 1147.259132 185.886413zM249.901895 185.886413 249.901895 672.454993c0 31.889047 22.181965 57.833087 49.447117 57.833087l746.373659 0c27.266873 0 49.448838-25.94404 49.448838-57.833087l0-486.568579c0-31.889047-22.181965-57.833087-49.448838-57.833087L299.349012 128.053326C272.08386 128.053326 249.901895 153.997366 249.901895 185.886413zM1185.666013 670.435479l0.111813-67.414595c7.059696-9.992635 9.098132-19.498455 9.098132-33.444107l0-486.566859c0-31.889047-22.181965-57.833087-49.448838-57.833087L399.053461 25.176831c-16.211154 0-23.676818 2.293025-34.106384 16.028813-13.940492-0.34232-45.564628 0.051606-59.747668 0.00172 12.880849-46.292273 49.288859-68.118156 93.854052-68.118156L1145.42884-26.910792c55.987314 0 101.53646 49.311222 101.53646 109.92071L1246.9653 569.576777C1246.9653 615.590378 1222.808547 654.086709 1185.666013 670.435479z" horiz-adv-x="1449" />
|
||||
|
||||
|
||||
<glyph glyph-name="home" unicode="" d="M607.601-29.363h-290.209c-85.506 0-155.468 69.962-155.468 155.468v229.314h-86.801c-10.365 0-20.731 6.479-24.615 16.842s-1.294 22.026 6.479 28.502l456.037 404.214c10.365 9.068 24.615 9.068 34.981 0l456.037-404.214c7.773-7.773 10.365-18.139 6.479-28.502s-12.955-16.842-24.615-16.842h-86.801v-229.314c0-54.414-27.204-102.352-72.553-132.146-11.662-7.773-28.502-3.888-36.274 7.773-7.773 11.662-3.888 28.502 7.773 36.274 29.798 19.435 47.936 51.826 47.936 88.098v255.227c0 14.253 11.662 25.908 25.908 25.908h45.342l-388.67 343.325-388.67-343.325h45.342c14.253 0 25.908-11.662 25.908-25.908v-255.227c0-57.005 46.64-103.645 103.645-103.645h290.209c14.253 0 25.908-11.662 25.908-25.908s-9.068-25.908-23.323-25.908zM607.601-29.363c-14.253 0-25.908 11.662-25.908 25.908s11.662 25.908 25.908 25.908c22.026 0 38.866 16.842 38.866 38.866v187.856c0 22.026-16.842 38.866-38.866 38.866h-151.582c-22.026 0-38.866-16.842-38.866-38.866v-120.49c0-14.253-11.662-25.908-25.908-25.908s-25.908 11.662-25.908 25.908v120.49c0 50.528 40.161 90.691 90.691 90.691h151.582c50.528 0 90.691-40.161 90.691-90.691v-187.856c0-49.23-40.161-90.691-90.691-90.691z" horiz-adv-x="1040" />
|
||||
|
||||
|
||||
<glyph glyph-name="huancun" unicode="" d="M523.6 194.8l-22.4 0c-16.4 0-30-13.2-30-30L471.2 52c0-16.4 13.2-30 30-30l22.4 0c16.4 0 30 13.6 30 30l0 113.2C553.2 181.2 540 194.8 523.6 194.8zM523.6 738.4l-22.4 0c-16.4 0-30-13.2-30-30l0-113.2c0-16.4 13.2-30 30-30l22.4 0c16.4 0 30 13.2 30 30L553.6 708.4C553.2 724.8 540 738.4 523.6 738.4zM326.8 368.8l0 22.4c0 16.4-13.2 30-30 30L184 421.2c-16.4 0-30-13.2-30-30l0-22.4c0-16.4 13.2-30 30-30l113.2 0C313.6 338.8 326.8 352.4 326.8 368.8zM840.4 421.2l-113.2 0c-16.4 0-30-13.2-30-30l0-22.4c0-16.4 13.2-30 30-30l113.2 0c16.4 0 30 13.2 30 30l0 22.4C870.4 408 856.8 421.2 840.4 421.2zM373.2 256.8c-11.6 11.6-30.8 11.6-42.4 0l-80-80c-11.6-11.6-11.6-30.4 0-42.4l16-16c11.6-11.6 30.4-11.6 42.4 0l80 80c11.6 11.6 11.6 30.8 0 42.4L373.2 256.8zM651.2 503.2c11.6-11.6 30.4-11.6 42.4 0l80 80c11.6 11.6 11.6 30.8 0 42.4l-16 16c-11.6 11.6-30.8 11.6-42.4 0l-80-80c-11.6-11.6-11.6-30.8 0-42.4L651.2 503.2zM309.2 641.2c-11.6 11.6-30.4 11.6-42.4 0l-16-16c-11.6-11.6-11.6-30.4 0-42.4l80-80c11.6-11.6 30.4-11.6 42.4 0l16 16c11.6 11.6 11.6 30.4 0 42.4L309.2 641.2zM693.6 256.8c-11.6 11.6-30.4 11.6-42.4 0l-16-16c-11.6-11.6-11.6-30.4 0-42.4l80-80c11.6-11.6 30.4-11.6 42.4 0l16 16c11.6 11.6 11.6 30.8 0 42.4L693.6 256.8z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="lanmugengxin" unicode="" d="M758.84 759.28C553 895.93 275.52 840.15 138.45 634.79l-0.16-0.23-15.49-23.33a25 25 0 0 1 41.08-28.48l0.85-0.56q6.93 12.19 14.74 24a397.86 397.86 0 0 0 721.7-141.35 399.71 399.71 0 0 0 7.76-67.66l-81.8 54.58a25.57 25.57 0 0 1-35.35-7.14 25.57 25.57 0 0 1 7.14-35.35l107.27-71.49 2.17-1.44 43.81-29.09c30.34 170.33-40.01 350.24-193.33 452.03zM265.16 8.720000000000027C471-127.92999999999995 748.48-72.14999999999998 885.55 133.21000000000004l0.16 0.23 15.49 23.32a25 25 0 0 1-41.08 28.48l-0.85 0.56q-6.93-12.19-14.74-24a397.86 397.86 0 0 0-721.7 141.35 399.71 399.71 0 0 0-7.76 67.66l88.8-56.58a25.57 25.57 0 0 1 35.35 7.14 25.57 25.57 0 0 1-7.14 35.35l-114.27 73.5-2.17 1.44-43.81 29.08c-30.34-170.32 40.01-350.23 193.33-452.02zM298.74 559.51l60.94 0 0-60.94-60.94 0 0 60.94ZM408.37 559.51l316.89 0 0-60.94-316.89 0 0 60.94ZM298.74 413.2l60.94 0 0-60.94-60.94 0 0 60.94ZM408.37 413.2l316.89 0 0-60.94-316.89 0 0 60.94ZM298.74 269.42999999999995l60.94 0 0-60.94-60.94 0 0 60.94ZM408.37 269.42999999999995l316.89 0 0-60.94-316.89 0 0 60.94Z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="lanmu" unicode="" d="M753.5 413.1c115.4 0 209.3 93.9 209.3 209.3S868.9 831.7 753.5 831.7s-209.3-93.9-209.3-209.4c0-1.1 0-2.1 0.1-3.2v-0.8l-0.1-205.4h209.3z m0 367.8c87.4 0 158.5-71.1 158.5-158.5S840.8 464 753.5 464H595l0.1 155.1-0.1 3.5c0 87.2 71.1 158.3 158.5 158.3z m0-426.7H544.1l0.1-204.9v-1c0-1.1-0.1-2.3-0.1-3.4 0-115.4 93.9-209.3 209.3-209.3s209.3 93.9 209.3 209.3c0.1 115.4-93.8 209.3-209.2 209.3z m0-367.8c-87.3 0-158.4 71.1-158.5 158.3l0.1 3.9-0.1 154.7h158.4c87.4 0 158.5-71.1 158.5-158.5 0-87.3-71.1-158.4-158.4-158.4z m-477.6 369c-115.4 0-209.3-93.9-209.3-209.3s93.9-209.3 209.3-209.3S485.2 30.6 485.2 146c0 1.1 0 2.2-0.1 3.3v0.6l0.1 205.4H275.9z m0-367.8c-87.4 0-158.5 71.1-158.5 158.5s71.1 158.5 158.5 158.5h158.4l-0.1-155.1 0.1-3.4c0-87.5-71.1-158.5-158.4-158.5z m209.3 631.6c0 1.1 0.1 2.1 0.1 3.2 0 115.4-93.9 209.3-209.3 209.3S66.7 737.8 66.7 622.4 160.6 413.1 276 413.1h209.4l-0.1 205.1-0.1 1zM434.3 464H275.9c-87.4 0-158.5 71.1-158.5 158.5S188.5 781 275.9 781c87.3 0 158.4-71.1 158.5-158.3l-0.1-3.9V464z m0 0" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="qinglihuancun" unicode="" d="M870.717056-128h-110.3872c15.5136 20.48 34.5088 141.6448 44.8512 199.68-18.9696-92.16-84.5056-184.32-96.5888-199.68h-110.3872c15.5136 20.48 34.4832 141.6448 44.8512 199.68-18.9952-92.16-84.5312-184.32-96.5888-199.68h-110.4128c15.5392 20.48 34.5088 141.6448 44.8512 199.68-18.9696-92.16-84.5056-184.32-96.5888-199.68H298.070656c15.5392 20.48 34.5088 141.6448 44.8512 199.68-18.9696-92.16-84.5056-184.32-96.5888-199.68H125.603456c-58.6496 30.72-86.2464 107.52-3.456 177.4848 58.6496 51.2 60.3648 134.8352 56.9088 206.5152h707.2c22.4-88.7296 27.5712-155.3152 44.8256-274.7648C943.165056-102.4 870.717056-128 870.717056-128z m51.7376 424.96H154.915456c-25.8816 0-37.9392 18.7648-25.8816 40.96l89.7024 191.1552c10.368 22.1696 39.68 40.96 65.536 40.96h163.8656V848.2048C448.137856 875.52 470.563456 896 494.704256 896h93.1584c25.856 0 46.5664-20.48 46.5664-46.08v-278.1952h158.6944c25.856 0 55.168-18.7648 65.536-40.96l91.392-191.1296c10.368-23.9104-1.7152-42.6752-27.5968-42.6752z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="biaodan" unicode="" d="M898.104 727h-111.52a21.848 21.848 0 0 1-21.832-21.952 21.856 21.856 0 0 1 21.832-21.952h111.512v-737.168H124.68V683.16h113.216a21.96 21.96 0 0 1 21.952 21.952A21.896 21.896 0 0 1 237.896 727H124.68a43.88 43.88 0 0 1-43.84-43.84v-737.168a43.864 43.864 0 0 1 43.84-43.784h773.472a43.856 43.856 0 0 1 43.784 43.784V683.16c-0.056 24.184-19.712 43.84-43.832 43.84z m-560.752-45.192h348.024c12.12 0 21.944 9.832 21.944 21.888s-9.832 21.952-21.944 21.952h-67.2c0.288 2.944 0.768 5.88 0.768 8.888 0 59.32-48.256 107.568-107.576 107.568-59.264 0-107.576-48.256-107.576-107.568 0-3.064 0.472-5.944 0.824-8.888h-67.264c-12.12 0-21.952-9.832-21.952-21.952s9.832-21.888 21.952-21.888z m110.28 52.728c0 35.128 28.6 63.728 63.728 63.728 35.184 0 63.664-28.6 63.664-63.728 0-3.12-0.704-5.944-1.12-8.888h-125.04c-0.472 2.944-1.232 5.768-1.232 8.888zM291.04 467.368h440.752a21.936 21.936 0 0 1 21.888 21.952 21.88 21.88 0 0 1-21.888 21.888H291.04a21.896 21.896 0 0 1-21.952-21.888 21.952 21.952 0 0 1 21.952-21.952z m0-188.424h440.752a21.968 21.968 0 0 1 21.888 21.944 21.976 21.976 0 0 1-21.888 21.952H291.04a21.944 21.944 0 1 1 0-43.896z m0-188.368h440.752c12.064 0 21.888 9.888 21.888 21.952s-9.832 21.944-21.888 21.944H291.04a21.944 21.944 0 1 1 0-43.896z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="close" unicode="" d="M521.693867 446.702933L111.4112 856.9856a51.2 51.2 0 1 1-72.430933-72.362667l410.282666-410.3168-410.282666-410.3168a51.2 51.2 0 1 1 72.3968-72.3968l410.3168 410.282667 410.3168-410.282667a51.2 51.2 0 1 1 72.3968 72.362667l-410.282667 410.350933 410.282667 410.282667a51.2 51.2 0 1 1-72.3968 72.3968l-410.282667-410.282667z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="quanbuxinwen" unicode="" d="M512 832a448 448 0 1 1 0-896A448 448 0 0 1 512 832z m324.672-228.8a388.288 388.288 0 0 0 66.24-191.168h-224.128a1081.088 1081.088 0 0 1-14.08 151.424c60.672 8.512 118.4 21.888 171.968 39.744z m-38.528 48.32c-45.76-14.464-94.016-25.472-144.32-32.896a919.04 919.04 0 0 1-45.696 145.024 392.704 392.704 0 0 0 190.016-112.128z m-396.8-239.552c1.472 49.344 5.952 97.792 14.4 144.384 31.488-2.752 63.552-4.352 96.256-4.352s64.768 1.6 96.256 4.352c8.512-46.592 12.992-95.04 14.464-144.384H401.344z m221.312-56a965.504 965.504 0 0 0-14.4-144.384A1079.296 1079.296 0 0 1 512 216c-32.704 0-64.768-1.6-96.256-4.352a973.12 973.12 0 0 0-14.4 144.32h221.312zM484.8 774.656c9.024 0.576 17.984 1.344 27.2 1.344s18.176-0.768 27.2-1.344c23.808-49.664 43.136-104.896 57.408-163.456-27.84-2.432-56.064-3.904-84.608-3.904s-56.768 1.472-84.608 3.904c14.272 58.56 33.6 113.792 57.408 163.456z m-68.928-11.008c-18.688-45.056-33.92-93.696-45.632-145.024a920.704 920.704 0 0 0-144.384 32.896 392.96 392.96 0 0 0 190.016 112.128zM187.328 603.2c53.632-17.792 111.296-31.168 171.968-39.744-8.32-48.576-12.672-99.392-14.08-151.488H121.088a388.288 388.288 0 0 0 66.24 191.232z m0-438.4a388.288 388.288 0 0 0-66.24 191.168h224.128c1.408-52.032 5.76-102.848 14.016-151.424-60.608-8.576-118.272-21.888-171.904-39.744z m38.528-48.32a934.528 934.528 0 0 0 144.32 32.896c11.712-51.264 27.008-100.032 45.632-145.024a393.088 393.088 0 0 0-189.952 112.128z m313.344-123.136c-9.024-0.576-17.984-1.344-27.2-1.344s-18.176 0.768-27.2 1.344a832.192 832.192 0 0 0-57.408 163.456c27.84 2.432 56.064 3.904 84.608 3.904s56.768-1.408 84.608-3.904a837.888 837.888 0 0 0-57.408-163.456z m68.928 11.008c18.624 44.992 33.92 93.76 45.696 145.024 50.304-7.424 98.56-18.432 144.32-32.896a392.704 392.704 0 0 0-190.016-112.128z m228.544 160.448a988.992 988.992 0 0 1-171.968 39.744c8.256 48.576 12.608 99.392 14.08 151.424h224.128a388.288 388.288 0 0 0-66.24-191.168z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="lanmu1" unicode="" d="M956.194192-127.999007H617.172104c-37.411985 0-67.804815 30.409715-67.804815 67.804815V278.827896c0 37.3951 30.39283 67.804815 67.804815 67.804815h339.022088c37.411985 0 67.804815-30.409715 67.804815-67.804815v-339.022088c0-37.3951-30.39283-67.804815-67.804815-67.804815zM617.172104 295.779348c-9.33636 0-16.951452-7.598208-16.951452-16.951452v-339.022088c0-9.353244 7.615092-16.951452 16.951452-16.951452h339.022088c9.33636 0 16.951452 7.598208 16.951452 16.951452V278.827896c0 9.353244-7.615092 16.951452-16.951452 16.951452H617.172104z m-203.414444-423.778355H74.735572c-37.411985 0-67.804815 30.409715-67.804815 67.804815V278.827896c0 37.3951 30.39283 67.804815 67.804815 67.804815h339.022088c37.411985 0 67.804815-30.409715 67.804815-67.804815v-339.022088c0-37.3951-30.39283-67.804815-67.804815-67.804815zM74.735572 295.779348c-9.33636 0-16.951452-7.598208-16.951452-16.951452v-339.022088c0-9.353244 7.615092-16.951452 16.951452-16.951452h339.022088c9.33636 0 16.951452 7.598208 16.951452 16.951452V278.827896c0 9.353244-7.615092 16.951452-16.951452 16.951452H74.735572z m881.45862 118.658177H617.172104c-37.411985 0-67.804815 30.409715-67.804815 67.804815V821.264428c0 37.3951 30.39283 67.804815 67.804815 67.804815h339.022088c37.411985 0 67.804815-30.409715 67.804815-67.804815v-339.022088c0-37.396093-30.39283-67.804815-67.804815-67.804815zM617.172104 838.214887c-9.33636 0-16.951452-7.598208-16.951452-16.951452v-339.022088c0-9.353244 7.615092-16.951452 16.951452-16.951452h339.022088c9.33636 0 16.951452 7.598208 16.951452 16.951452V821.264428c0 9.353244-7.615092 16.951452-16.951452 16.951452H617.172104zM413.75766 414.437525H74.735572c-37.411985 0-67.804815 30.409715-67.804815 67.804815V821.264428c0 37.3951 30.39283 67.804815 67.804815 67.804815h339.022088c37.411985 0 67.804815-30.409715 67.804815-67.804815v-339.022088c0-37.396093-30.39283-67.804815-67.804815-67.804815zM74.735572 838.214887c-9.33636 0-16.951452-7.598208-16.951452-16.951452v-339.022088c0-9.353244 7.615092-16.951452 16.951452-16.951452h339.022088c9.33636 0 16.951452 7.598208 16.951452 16.951452V821.264428c0 9.353244-7.615092 16.951452-16.951452 16.951452H74.735572z" horiz-adv-x="1030" />
|
||||
|
||||
|
||||
<glyph glyph-name="chanpin" unicode="" d="M541 367.4l-0.5-314.5c0-15.5-12.6-28-28-28-15.5 0-28 12.6-28 28l0.5 314.6-281.9 157.3c-13.5 7.5-18.3 24.6-10.8 38.1s24.6 18.3 38.1 10.8L513.1 416l287.3 157.8c13.6 7.4 30.6 2.5 38-11.1s2.5-30.6-11.1-38L541 367.4z m241.8 271.3c-15.3 8.8-20.6 28.4-11.7 43.7 8.8 15.3 28.4 20.6 43.7 11.7l80.2-46.3c22.9-13.2 37-37.6 37-64.1v-399.5c0-26.4-14.1-50.8-36.9-64L550-79.5c-22.9-13.2-51.1-13.3-74-0.1L129.1 120.2c-23 13.2-37.1 37.6-37.1 64.1V583.8c0 26.4 14.1 50.9 37 64.1L475 847.6c22.9 13.2 51.1 13.2 74 0l76.7-44.3c15.3-8.8 20.6-28.4 11.7-43.7-8.8-15.3-28.4-20.6-43.7-11.7L517 792.2c-3.1 1.8-6.9 1.8-10 0L161 592.4c-3.1-1.8-5-5.1-5-8.7v-399.5c0-3.6 1.9-6.9 5-8.7l347-199.7c3.1-1.8 6.9-1.8 10 0l345 199.8c3.1 1.8 5 5.1 5 8.7V583.8c0 3.6-1.9 6.9-5 8.7l-80.2 46.2z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="moxing" unicode="" d="M437.76 386.56L153.6 540.16c-5.632 3.072-12.288 4.608-17.92 4.608-20.48 0-39.936-17.92-39.936-43.008v-300.032c0-31.232 15.872-59.392 42.496-73.728l284.16-153.6c5.632-3.072 12.288-5.12 17.92-5.12 20.48 0 39.936 18.432 39.936 43.52v300.032c0 30.72-16.384 59.392-42.496 73.728z m-21.504-335.872L168.448 184.32c-4.096 2.56-8.192 8.192-8.192 17.408V463.872l247.808-133.632c5.12-3.072 8.192-10.24 8.192-17.408v-262.144z m472.064 494.08c-5.632 0-12.288-1.536-17.92-4.608l-284.16-154.112c-26.112-14.336-42.496-43.008-42.496-74.24v-299.008c0-25.088 19.456-43.52 39.936-43.52 5.632 0 12.288 1.536 17.92 4.608L885.76 128c25.6 14.336 42.496 42.496 42.496 73.728V501.76c0 25.088-19.456 43.008-39.936 43.008z m-24.064-342.528c0-9.216-4.608-15.36-8.192-17.408l-247.808-134.656v261.12c0 9.216 4.608 15.36 8.192 17.408l247.808 135.168v-261.632z m-19.968 408.064c13.312 7.168 19.968 19.456 18.432 30.72 1.536 12.288-5.12 23.552-18.432 30.72l-289.28 151.04c-12.8 7.168-27.648 10.24-43.008 10.24s-30.208-3.072-43.52-10.24L178.688 672.768c-13.312-7.168-19.456-19.456-18.432-31.232-0.512-11.776 5.12-23.552 18.432-30.72l289.28-150.528c12.8-7.168 28.16-10.24 43.52-10.24h1.536c15.36 0 30.208 3.072 43.52 10.24l287.744 150.016z m-332.8-96.256c-5.12 0-10.24 1.536-14.336 3.072L258.048 641.024l239.104 124.928c4.096 2.048 9.216 3.072 14.848 3.072 5.12 0 10.24-1.536 14.336-3.072l239.104-124.928L525.312 517.12c-3.072-2.048-8.192-3.072-13.824-3.072z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="wenjianjia" unicode="" d="M98.4 510.8h25.7V737.4c0 19.1 15.9 34.3 34.5 34.3H417c10.3 0 20.1-4.7 26.4-12.5l119.4-128.7h302.3c19.3 0 34.5-15.4 34.5-34.3v-85.4h25.9c19.1 0 34.8-15.2 34.8-34.3 0-2-0.5-3.9-0.5-5.4l-55.3-440.3c-1-10.5-6.8-19.3-15.2-24.7-6.4-6.4-14.9-9.8-24.2-9.8H158.6c-9.3 0-17.6 3.4-23.8 9.3-8.5 5.9-14.9 15.4-15.9 26.4l-55 440.4c-2.2 18.6 11.5 36 30.1 37.9l4.4 0.5z m94.7 0h637.5v50.9H548c-9.1 0-18.4 3.7-25.2 11L402.4 702.9H193.1v-192.1zM886.5 442H137l46.7-372.7h656.1L886.5 442z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="danye" unicode="" d="M566.958763 895.676481H133.702114A63.032957 63.032957 0 0 1 64.593692 839.098707v-911.319856a63.032957 63.032957 0 0 1 69.108422-55.438625h756.015765a63.032957 63.032957 0 0 1 69.108422 56.577774V492.797162z m344.782679-438.192964v-536.919282H111.678551V847.452472l362.62936 3.797166v-389.968955z m-368.325109 389.968955l356.174177-345.162395v3.417449h-377.05859v341.744946z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="fankui" unicode="" d="M960.875 496.921a25.2809 25.2809 0 0 1-50.5617 0v-436.517a73.0336 73.0336 0 0 0-73.0336-72.4718H186.159A73.0336 73.0336 0 0 0 112.562 59.28099999999995V709.841A73.0336 73.0336 0 0 0 186.159 782.313H623.798a25.8427 25.8427 0 0 1 0 51.6853H186.159A123.595 123.595 0 0 1 62.001 709.841v-650.561a123.595 123.595 0 0 1 124.157-124.157h650.561A123.595 123.595 0 0 1 960.875 59.28099999999995V496.921ZM307.507 232.31399999999996a38.2022 38.2022 0 0 1 7.30336-36.5168 33.1461 33.1461 0 0 1 24.1572-8.98875 56.1797 56.1797 0 0 1 12.3595 0l138.763 36.5168 441.572 437.641a80.3369 80.3369 0 0 1 1e-8 112.359l-30.8989 33.7078a82.0223 82.0223 0 0 1-115.73 0L342.899 369.39300000000003Zm76.9662 96.0675l64.0448-63.483-85.9549-21.9101Zm30.337 41.0112l344.944 342.134 74.1572-73.5953-344.382-343.258Zm449.438 402.809l30.337-30.337a30.337 30.337 0 0 0 0-43.2583l-25.2809-25.2809-73.5953 73.0336 25.2809 25.2809a31.4606 31.4606 0 0 0 43.8202 0Zm0 0" horiz-adv-x="1026" />
|
||||
|
||||
|
||||
<glyph glyph-name="liebiaoye-hengxiangzhanshixingshi" unicode="" d="M378.666667 784H229.333333c-64.64 0-117.333333-52.586667-117.333333-117.333333v-149.333334c0-64.746667 52.693333-117.333333 117.333333-117.333333h149.333334c64.64 0 117.333333 52.586667 117.333333 117.333333V666.666667c0 64.746667-52.693333 117.333333-117.333333 117.333333z m53.333333-266.666667c0-29.44-23.893333-53.333333-53.333333-53.333333H229.333333c-29.44 0-53.333333 23.893333-53.333333 53.333333V666.666667c0 29.44 23.893333 53.333333 53.333333 53.333333h149.333334c29.44 0 53.333333-23.893333 53.333333-53.333333v-149.333334zM378.666667 368H229.333333c-64.64 0-117.333333-52.693333-117.333333-117.333333v-149.333334c0-64.64 52.693333-117.333333 117.333333-117.333333h149.333334c64.64 0 117.333333 52.693333 117.333333 117.333333V250.666667c0 64.64-52.693333 117.333333-117.333333 117.333333z m53.333333-266.666667c0-29.44-23.893333-53.333333-53.333333-53.333333H229.333333c-29.44 0-53.333333 23.893333-53.333333 53.333333V250.666667c0 29.44 23.893333 53.333333 53.333333 53.333333h149.333334c29.44 0 53.333333-23.893333 53.333333-53.333333v-149.333334zM576 640h304c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32H576c-17.706667 0-32-14.293333-32-32s14.293333-32 32-32zM880 544H576c-17.706667 0-32-14.293333-32-32s14.293333-32 32-32h304c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32zM880 272H576c-17.706667 0-32-14.293333-32-32s14.293333-32 32-32h304c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32zM880 112H576c-17.706667 0-32-14.293333-32-32s14.293333-32 32-32h304c17.706667 0 32 14.293333 32 32s-14.293333 32-32 32z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="neirong" unicode="" d="M512 559.91H307.455v-57.274H512V559.91zM307.455 330.817h409.09v57.273h-409.09v-57.273z m0-171.818h409.09v57.273h-409.09V159zM872 604.91l-196.364 180c-4.09 4.09-12.272 8.18-16.363 8.18H172.455c-16.364 0-28.637-12.272-28.637-28.635v-760.91c0-16.363 12.273-28.636 28.637-28.636h683.181c16.364 0 28.637 12.273 28.637 28.636v580.91c-4.091 4.09-8.182 12.272-12.273 20.454zM671.545 715.363l147.273-139.091H671.545v139.09zM822.91 32.182H201.091V735.818h413.182v-188.182c0-16.363 12.272-28.636 28.636-28.636H827v-486.818z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
<glyph glyph-name="zidingyiyemian" unicode="" d="M1015.116 441.998l-142.35 142.35c-5.191 5.19-12.079 7.986-19.366 7.986s-14.175-2.795-19.366-7.986L461.988 212.302a27.63 27.63 0 0 1-6.988-11.88l-55.502-195.855c-2.696-9.483-0.1-19.665 6.888-26.653 5.09-5.191 12.178-8.086 19.465-8.086 2.396 0 4.792 0.3 7.088 0.898l197.852 53.506c4.592 1.298 8.785 3.694 12.179 7.088l372.146 372.046c5.19 5.19 7.986 12.079 7.986 19.366 0 7.287-2.895 14.075-7.986 19.266zM506.21 146.718l70.876-70.876-98.527-26.653 27.651 97.528z m126.178-35.738l-90.64 90.64L853.4 513.374l90.64-90.641L632.389 110.98zM863.382 36.012c-17.669 0-31.944-14.275-31.944-31.944 0-37.634-30.546-68.18-68.18-68.18H64.786V832.012h489.64l191.862-193.06c12.478-12.478 32.643-12.578 45.22-0.1 12.479 12.478 12.579 32.643 0.1 45.22L580.979 896H0.899v-1024h762.36c72.772 0 132.068 59.196 132.068 132.068 0 17.669-14.275 31.944-31.944 31.944zM416.168 702.24h-255.55c-17.67 0-31.944-14.274-31.944-31.943s14.275-31.944 31.944-31.944h255.55c17.67 0 31.944 14.275 31.944 31.944s-14.275 31.944-31.944 31.944zM416.168 510.577h-255.55c-17.67 0-31.944-14.274-31.944-31.943s14.275-31.944 31.944-31.944h255.55c17.67 0 31.944 14.275 31.944 31.944s-14.275 31.943-31.944 31.943zM416.168 318.914h-255.55c-17.67 0-31.944-14.274-31.944-31.943s14.275-31.944 31.944-31.944h255.55c17.67 0 31.944 14.275 31.944 31.944s-14.275 31.943-31.944 31.943z" horiz-adv-x="1024" />
|
||||
|
||||
|
||||
|
||||
|
||||
</font>
|
||||
</defs></svg>
|
||||
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 9.9 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 5.1 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 279 B |
|
After Width: | Height: | Size: 976 B |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 289 B |
@@ -0,0 +1,248 @@
|
||||
/*!
|
||||
* Distpicker v1.0.4
|
||||
* https://github.com/fengyuanchen/distpicker
|
||||
*
|
||||
* Copyright (c) 2014-2016 Fengyuan Chen
|
||||
* Released under the MIT license
|
||||
*
|
||||
* Date: 2016-06-01T15:05:52.606Z
|
||||
*/
|
||||
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as anonymous module.
|
||||
define(['jquery', 'ChineseDistricts'], factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node / CommonJS
|
||||
factory(require('jquery'), require('ChineseDistricts'));
|
||||
} else {
|
||||
// Browser globals.
|
||||
factory(jQuery, ChineseDistricts);
|
||||
}
|
||||
})(function ($, ChineseDistricts) {
|
||||
|
||||
'use strict';
|
||||
|
||||
if (typeof ChineseDistricts === 'undefined') {
|
||||
throw new Error('The file "distpicker.data.js" must be included first!');
|
||||
}
|
||||
|
||||
var NAMESPACE = 'distpicker';
|
||||
var EVENT_CHANGE = 'change.' + NAMESPACE;
|
||||
var PROVINCE = 'province';
|
||||
var CIRY = 'city';
|
||||
var DISTRICT = 'district';
|
||||
|
||||
function Distpicker(element, options) {
|
||||
this.$element = $(element);
|
||||
this.options = $.extend({}, Distpicker.DEFAULTS, $.isPlainObject(options) && options);
|
||||
this.placeholders = $.extend({}, Distpicker.DEFAULTS);
|
||||
this.active = false;
|
||||
this.init();
|
||||
}
|
||||
|
||||
Distpicker.prototype = {
|
||||
constructor: Distpicker,
|
||||
|
||||
init: function () {
|
||||
var options = this.options;
|
||||
var $select = this.$element.find('select');
|
||||
var length = $select.length;
|
||||
var data = {};
|
||||
|
||||
$select.each(function () {
|
||||
$.extend(data, $(this).data());
|
||||
});
|
||||
|
||||
$.each([PROVINCE, CIRY, DISTRICT], $.proxy(function (i, type) {
|
||||
if (data[type]) {
|
||||
options[type] = data[type];
|
||||
this['$' + type] = $select.filter('[data-' + type + ']');
|
||||
} else {
|
||||
this['$' + type] = length > i ? $select.eq(i) : null;
|
||||
}
|
||||
}, this));
|
||||
|
||||
this.bind();
|
||||
|
||||
// Reset all the selects (after event binding)
|
||||
this.reset();
|
||||
|
||||
this.active = true;
|
||||
},
|
||||
|
||||
bind: function () {
|
||||
if (this.$province) {
|
||||
this.$province.on(EVENT_CHANGE, (this._changeProvince = $.proxy(function () {
|
||||
this.output(CIRY);
|
||||
this.output(DISTRICT);
|
||||
}, this)));
|
||||
}
|
||||
|
||||
if (this.$city) {
|
||||
this.$city.on(EVENT_CHANGE, (this._changeCity = $.proxy(function () {
|
||||
this.output(DISTRICT);
|
||||
}, this)));
|
||||
}
|
||||
},
|
||||
|
||||
unbind: function () {
|
||||
if (this.$province) {
|
||||
this.$province.off(EVENT_CHANGE, this._changeProvince);
|
||||
}
|
||||
|
||||
if (this.$city) {
|
||||
this.$city.off(EVENT_CHANGE, this._changeCity);
|
||||
}
|
||||
},
|
||||
|
||||
output: function (type) {
|
||||
var options = this.options;
|
||||
var placeholders = this.placeholders;
|
||||
var $select = this['$' + type];
|
||||
var districts = {};
|
||||
var data = [];
|
||||
var code;
|
||||
var matched;
|
||||
var value;
|
||||
|
||||
if (!$select || !$select.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
value = options[type];
|
||||
|
||||
code = (
|
||||
type === PROVINCE ? 86 :
|
||||
type === CIRY ? this.$province && this.$province.find(':selected').data('code') :
|
||||
type === DISTRICT ? this.$city && this.$city.find(':selected').data('code') : code
|
||||
);
|
||||
|
||||
districts = $.isNumeric(code) ? ChineseDistricts[code] : null;
|
||||
|
||||
if ($.isPlainObject(districts)) {
|
||||
$.each(districts, function (code, address) {
|
||||
var selected = address === value;
|
||||
|
||||
if (selected) {
|
||||
matched = true;
|
||||
}
|
||||
|
||||
data.push({
|
||||
code: code,
|
||||
address: address,
|
||||
selected: selected
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (!matched) {
|
||||
if (data.length && (options.autoSelect || options.autoselect)) {
|
||||
data[0].selected = true;
|
||||
}
|
||||
|
||||
// Save the unmatched value as a placeholder at the first output
|
||||
if (!this.active && value) {
|
||||
placeholders[type] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Add placeholder option
|
||||
if (options.placeholder) {
|
||||
data.unshift({
|
||||
code: '',
|
||||
address: placeholders[type],
|
||||
selected: false
|
||||
});
|
||||
}
|
||||
|
||||
$select.html(this.getList(data));
|
||||
},
|
||||
|
||||
getList: function (data) {
|
||||
var list = [];
|
||||
|
||||
$.each(data, function (i, n) {
|
||||
list.push(
|
||||
'<option' +
|
||||
' value="' + (n.address && n.code ? n.address : '') + '"' +
|
||||
' data-code="' + (n.code || '') + '"' +
|
||||
(n.selected ? ' selected' : '') +
|
||||
'>' +
|
||||
(n.address || '') +
|
||||
'</option>'
|
||||
);
|
||||
});
|
||||
|
||||
return list.join('');
|
||||
},
|
||||
|
||||
reset: function (deep) {
|
||||
if (!deep) {
|
||||
this.output(PROVINCE);
|
||||
this.output(CIRY);
|
||||
this.output(DISTRICT);
|
||||
} else if (this.$province) {
|
||||
this.$province.find(':first').prop('selected', true).trigger(EVENT_CHANGE);
|
||||
}
|
||||
},
|
||||
|
||||
destroy: function () {
|
||||
this.unbind();
|
||||
this.$element.removeData(NAMESPACE);
|
||||
}
|
||||
};
|
||||
|
||||
Distpicker.DEFAULTS = {
|
||||
autoSelect: true,
|
||||
placeholder: true,
|
||||
province: '—— 省 ——',
|
||||
city: '—— 市 ——',
|
||||
district: '—— 区 ——'
|
||||
};
|
||||
|
||||
Distpicker.setDefaults = function (options) {
|
||||
$.extend(Distpicker.DEFAULTS, options);
|
||||
};
|
||||
|
||||
// Save the other distpicker
|
||||
Distpicker.other = $.fn.distpicker;
|
||||
|
||||
// Register as jQuery plugin
|
||||
$.fn.distpicker = function (option) {
|
||||
var args = [].slice.call(arguments, 1);
|
||||
|
||||
return this.each(function () {
|
||||
var $this = $(this);
|
||||
var data = $this.data(NAMESPACE);
|
||||
var options;
|
||||
var fn;
|
||||
|
||||
if (!data) {
|
||||
if (/destroy/.test(option)) {
|
||||
return;
|
||||
}
|
||||
|
||||
options = $.extend({}, $this.data(), $.isPlainObject(option) && option);
|
||||
$this.data(NAMESPACE, (data = new Distpicker(this, options)));
|
||||
}
|
||||
|
||||
if (typeof option === 'string' && $.isFunction(fn = data[option])) {
|
||||
fn.apply(data, args);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
$.fn.distpicker.Constructor = Distpicker;
|
||||
$.fn.distpicker.setDefaults = Distpicker.setDefaults;
|
||||
|
||||
// No conflict
|
||||
$.fn.distpicker.noConflict = function () {
|
||||
$.fn.distpicker = Distpicker.other;
|
||||
return this;
|
||||
};
|
||||
|
||||
$(function () {
|
||||
$('[data-toggle="distpicker"]').distpicker();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,300 @@
|
||||
function check_search(){
|
||||
var keywords=$("#global_search").val();
|
||||
if(!keywords){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$(document).ready(function($){
|
||||
|
||||
|
||||
//判断产品详情型号
|
||||
var xtsize = $(".xtProduct .xtProduct_title .xtProduct_title_list").length
|
||||
if( xtsize == 6){
|
||||
$(".xtProduct").addClass("xtProduct_content6");
|
||||
}
|
||||
if( xtsize == 7){
|
||||
$(".xtProduct").addClass("xtProduct_content7");
|
||||
}
|
||||
if( xtsize == 8){
|
||||
$(".xtProduct").addClass("xtProduct_content8");
|
||||
}
|
||||
if( xtsize == 9){
|
||||
$(".xtProduct").addClass("xtProduct_content9");
|
||||
}
|
||||
if( xtsize == 11){
|
||||
$(".xtProduct").addClass("xtProduct_content11");
|
||||
}
|
||||
if( xtsize == 12){
|
||||
$(".xtProduct").addClass("xtProduct_content12");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$(".MyOrder .MyOrder_content .MyOrder_content_bottom .content_bottom_txt .bottom_txt_list").each(function() {
|
||||
var h_1 = $(this).find(".list_body_product").height();
|
||||
$(this).find(".body_product_li").height(h_1);
|
||||
});
|
||||
|
||||
|
||||
|
||||
//视频播放
|
||||
$(".click_video").click(function() {
|
||||
$(".content_list_video").show();
|
||||
$(".content_list_video").show();
|
||||
$(".content_list_video .list_video_content video").trigger('play');
|
||||
});
|
||||
|
||||
$(".list_video_bg").click(function(){
|
||||
$(".content_list_video").hide();
|
||||
$(".content_list_video .list_video_content video").trigger('pause');
|
||||
});
|
||||
|
||||
$(".fa-close").click(function(){
|
||||
$(".content_list_video").hide();
|
||||
$(".content_list_video .list_video_content video").trigger('pause');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$(".MyOrder .MyOrder_content .MyOrder_content_bottom .content_bottom_txt .bottom_txt_list").each(function() {
|
||||
var h_1 = $(this).find(".list_body_product").height();
|
||||
$(this).find(".body_product_li").height(h_1);
|
||||
});
|
||||
|
||||
|
||||
|
||||
//视频播放
|
||||
$(".click_video").click(function() {
|
||||
$(".content_list_video").show();
|
||||
$(".content_list_video").show();
|
||||
$(".content_list_video .list_video_content video").trigger('play');
|
||||
});
|
||||
|
||||
$(".list_video_bg").click(function(){
|
||||
$(".content_list_video").hide();
|
||||
$(".content_list_video .list_video_content video").trigger('pause');
|
||||
});
|
||||
|
||||
$(".fa-close").click(function(){
|
||||
$(".content_list_video").hide();
|
||||
$(".content_list_video .list_video_content video").trigger('pause');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//销售合同
|
||||
$(".agree").click(function(){
|
||||
$("#fwtk").show();
|
||||
})
|
||||
$(".fa-close").click(function(){
|
||||
$("#fwtk").hide();
|
||||
})
|
||||
|
||||
|
||||
|
||||
var h = $(".UserCenter .UserCenter_right").height();
|
||||
$(".UserCenter .UserCenter_left").height(h + 40);
|
||||
|
||||
|
||||
//地址弹窗
|
||||
|
||||
$(".new_address").click(function(){
|
||||
$(".NewAddress").fadeIn();
|
||||
})
|
||||
$(".address_edit").click(function(){
|
||||
$(".NewAddress").fadeIn();
|
||||
$(".NewAddress_bg").show();
|
||||
})
|
||||
|
||||
$(".NewAddress_close").click(function(){
|
||||
$(".NewAddress").fadeOut();
|
||||
$(".NewAddress_bg").hide();
|
||||
})
|
||||
|
||||
//发票弹窗
|
||||
$(".InvoiceSetting").click(function(){
|
||||
|
||||
})
|
||||
$(".new_Invoice").click(function(){
|
||||
$(".NewInvoice").fadeIn();
|
||||
})
|
||||
$(".Invoice_edit").click(function(){
|
||||
$(".NewInvoice").fadeIn();
|
||||
$(".NewAddress_bg").show();
|
||||
})
|
||||
$(".SelectInvoice_close").click(function(){
|
||||
$(".SelectInvoice").fadeOut();
|
||||
$(".bg").hide();
|
||||
})
|
||||
$(".NewInvoice_close,.NewAddress_submit_cancel").click(function(){
|
||||
$(".NewInvoice").fadeOut();
|
||||
$(".NewAddress_bg").hide();
|
||||
})
|
||||
|
||||
//商品增减
|
||||
$(".bottom_content_list").each(function(){
|
||||
var t = $(this).find(".quantity");
|
||||
$(this).find(".add").click(function(){
|
||||
t.val(parseInt(t.val())+1);
|
||||
$(this).prevAll(".min").removeAttr("disabled");
|
||||
$(this).prevAll(".min").css("cursor","pointer");
|
||||
$(this).prevAll(".min").css("color","#333"); //当按加1时,解除$("#min")不可读状态
|
||||
})
|
||||
$(this).find(".min").click(function(){
|
||||
if (parseInt(t.val())>1) { //判断数量值大于1时才可以减少
|
||||
t.val(parseInt(t.val())-1)
|
||||
}else{
|
||||
$(this).attr("disabled","disabled");
|
||||
$(this).css("cursor","not-allowed");
|
||||
$(this).css("color","#cccccc"); //当$("#min")为1时,$("#min")不可读状态
|
||||
}
|
||||
if( t.val() == 1 ){
|
||||
$(this).attr("disabled","disabled");
|
||||
$(this).css("cursor","not-allowed");
|
||||
$(this).css("color","#cccccc");
|
||||
}
|
||||
})
|
||||
if( t.val() == 1 ){
|
||||
$(this).find(".min").attr("disabled","disabled");
|
||||
$(this).find(".min").css("cursor","not-allowed");
|
||||
$(this).find(".min").css("color","#cccccc");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//商品增减
|
||||
$(".xtProduct_contentList").each(function(){
|
||||
var t = $(this).find(".quantity");
|
||||
$(this).find(".add").click(function(){
|
||||
t.val(parseInt(t.val())+1);
|
||||
$(this).nextAll(".min").removeAttr("disabled");
|
||||
$(this).nextAll(".min").css("cursor","pointer");
|
||||
$(this).nextAll(".min").css("color","#333"); //当按加1时,解除$("#min")不可读状态
|
||||
})
|
||||
$(this).find(".min").click(function(){
|
||||
if (parseInt(t.val())>1) { //判断数量值大于1时才可以减少
|
||||
t.val(parseInt(t.val())-1)
|
||||
}else{
|
||||
$(this).attr("disabled","disabled");
|
||||
$(this).css("cursor","not-allowed");
|
||||
$(this).css("color","#cccccc"); //当$("#min")为1时,$("#min")不可读状态
|
||||
}
|
||||
if( t.val() == 1 ){
|
||||
$(this).attr("disabled","disabled");
|
||||
$(this).css("cursor","not-allowed");
|
||||
$(this).css("color","#cccccc");
|
||||
}
|
||||
})
|
||||
if( t.val() == 1 ){
|
||||
$(this).find(".min").attr("disabled","disabled");
|
||||
$(this).find(".min").css("cursor","not-allowed");
|
||||
$(this).find(".min").css("color","#cccccc");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//获取收件地址的个数
|
||||
function address_s(){
|
||||
var size = $(".AddressDetails .AddressDetails_content .AddressDetails_content_list").length
|
||||
$(".address_size").text(size);
|
||||
}
|
||||
address_s();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//手机端禁止滑动屏幕
|
||||
function touchmove(){//自定义函数
|
||||
$("body").on("touchmove",function(event){
|
||||
event.preventDefault;
|
||||
}, false)
|
||||
|
||||
}
|
||||
|
||||
function touchmove2(){//自定义函数
|
||||
$("body").off("touchmove");
|
||||
}
|
||||
var flag=true;
|
||||
$('.cd-nav-trigger').on('click', function () {
|
||||
if(flag){
|
||||
flag=false;
|
||||
touchmove();
|
||||
} else{
|
||||
flag=true;
|
||||
touchmove2();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//手机端导航
|
||||
function responsive() {
|
||||
if($(window).width() <= 1200){
|
||||
console.log('mobile navigation');
|
||||
|
||||
$('#mo_nav').infinitypush();
|
||||
|
||||
$('body').removeClass('desktop');
|
||||
} else {
|
||||
console.log('desktop navigation');
|
||||
|
||||
$('#mo_nav').infinitypush({
|
||||
destroy:true
|
||||
});
|
||||
|
||||
$('body').addClass('desktop');
|
||||
}
|
||||
}
|
||||
function windowResize(){
|
||||
$(window).resize(function(){
|
||||
responsive();
|
||||
});
|
||||
}
|
||||
responsive();
|
||||
windowResize();
|
||||
|
||||
|
||||
|
||||
var isLateralNavAnimating = false;
|
||||
|
||||
//open/close lateral navigation
|
||||
$('.cd-nav-trigger').on('click', function(event){
|
||||
event.preventDefault();
|
||||
if( !isLateralNavAnimating ) {
|
||||
if($(this).parents('.csstransitions').length > 0 ) isLateralNavAnimating = true;
|
||||
|
||||
$('body').toggleClass('navigation-is-open');
|
||||
$('.ma-infinitypush-wrapper').toggleClass('on');
|
||||
$('.cd-navigation-wrapper').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(){
|
||||
//animation is over
|
||||
isLateralNavAnimating = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,524 @@
|
||||
|
||||
|
||||
;(function($){
|
||||
|
||||
$.fn.infinitypush = function(options){
|
||||
|
||||
/**
|
||||
* Default options
|
||||
*/
|
||||
|
||||
var defaults = {
|
||||
offcanvas : true,
|
||||
offcanvasspeed : 400,
|
||||
offcanvasleft : true,
|
||||
openingspeed : 400,
|
||||
closingspeed : 400,
|
||||
spacing : 90,
|
||||
pushdirectionleft : true,
|
||||
autoScroll : true,
|
||||
scrollSpeed : 300,
|
||||
destroy : false
|
||||
};
|
||||
|
||||
var infinityPushWrapper = this;
|
||||
|
||||
var opts = $.extend( {}, defaults, options );
|
||||
|
||||
/**
|
||||
* Start Navigation functions
|
||||
*/
|
||||
|
||||
return this.each(function() {
|
||||
|
||||
var oldposition = $(this).data('oldposition') || $('body'),
|
||||
navWrapper = 'ma-infinitypush-wrapper',
|
||||
navWrapperDiv = '<div class="' + navWrapper + '"></div>',
|
||||
navButtonActive = 'ma-infinitypush-active-button',
|
||||
navButton = 'ma-infinitypush-button',
|
||||
navButtonDiv = '<div class="' + navButton + '"></div>',
|
||||
infinityPush = 'ma-infinitypush',
|
||||
infinityPushOpen = 'ma-infinitypush-open';
|
||||
|
||||
function destroy(){
|
||||
$('.' + navButton).unbind();
|
||||
$('.' + infinityPush).unbind();
|
||||
$('body').removeClass(infinityPushOpen);
|
||||
$('.' + navWrapper).next().removeAttr('style');
|
||||
$('.' + navWrapper).find('.ma-infinitypush-inactive').removeClass('ma-infinitypush-inactive');
|
||||
$('.' + navWrapper).find('.ma-infinitypush-active-item').removeClass('ma-infinitypush-active-item');
|
||||
$('.' + navWrapper).find('.ma-infinitypush-close-subnav').remove();
|
||||
$('.' + navWrapper).find('ul').removeAttr('style');
|
||||
infinityPushWrapper.prependTo(oldposition);
|
||||
infinityPushWrapper.removeClass('ma-infinitypush ma-infinitypush-sub-open');
|
||||
$('.' + navWrapper).remove();
|
||||
$(this).removeClass(infinityPush);
|
||||
infinityPushWrapper.stop().removeAttr('style');
|
||||
}
|
||||
|
||||
if(opts.destroy){
|
||||
if($(this).hasClass(infinityPush))
|
||||
destroy();
|
||||
return;
|
||||
}
|
||||
|
||||
// Start navigation toggle function
|
||||
function infinityPushToggle() {
|
||||
|
||||
$('.' + navButton).on('click', function(){
|
||||
|
||||
if($('body').hasClass(infinityPushOpen)){
|
||||
closingAnimation();
|
||||
}
|
||||
else {
|
||||
openingAnimation();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if(!$(this).hasClass(infinityPush)){
|
||||
|
||||
$(this).data('oldposition', $(this).parent());
|
||||
|
||||
// Move navigation after body
|
||||
if(!$(this).parent().is('body')) {
|
||||
$('body').prepend($(this));
|
||||
}
|
||||
|
||||
// Wrapping the element & add new class name
|
||||
$(this).before(navWrapperDiv).addClass(infinityPush).appendTo('.' + navWrapper);
|
||||
|
||||
var navWidth = $('.' + navWrapper).width();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Start closing animation function
|
||||
function closingAnimation() {
|
||||
|
||||
if(opts.offcanvasleft == true) {
|
||||
$('.' + navWrapper).stop().animate({
|
||||
left: '-' + navWidth + 'px'
|
||||
}, opts.offcanvasspeed);
|
||||
} else {
|
||||
$('.' + navWrapper).stop().animate({
|
||||
right: '-' + navWidth + 'px'
|
||||
}, opts.offcanvasspeed);
|
||||
}
|
||||
|
||||
$('.' + infinityPush).stop().animate({
|
||||
opacity: 'hide'
|
||||
}, opts.offcanvasspeed);
|
||||
|
||||
if(opts.offcanvasleft == true) {
|
||||
$('.' + navWrapper).next().stop().animate({
|
||||
left: 0
|
||||
}, opts.offcanvasspeed);
|
||||
} else {
|
||||
$('.' + navWrapper).next().stop().animate({
|
||||
right: 0
|
||||
}, opts.offcanvasspeed);
|
||||
}
|
||||
|
||||
$('body').removeClass(infinityPushOpen);
|
||||
|
||||
}
|
||||
|
||||
// Start opening animation
|
||||
function openingAnimation() {
|
||||
|
||||
$('body').addClass(infinityPushOpen);
|
||||
|
||||
if(opts.offcanvasleft == true) {
|
||||
$('.' + navWrapper).stop().animate({
|
||||
left: 0
|
||||
}, opts.offcanvasspeed);
|
||||
} else {
|
||||
$('.' + navWrapper).stop().animate({
|
||||
right: 0
|
||||
}, opts.offcanvasspeed);
|
||||
}
|
||||
|
||||
$('.' + infinityPush).stop().animate({
|
||||
opacity: 'show'
|
||||
}, opts.offcanvasspeed);
|
||||
|
||||
if(opts.offcanvasleft == true) {
|
||||
$('.' + navWrapper).next().stop().animate({
|
||||
left: navWidth + 'px'
|
||||
}, opts.offcanvasspeed);
|
||||
} else {
|
||||
$('.' + navWrapper).next().stop().animate({
|
||||
right: navWidth + 'px'
|
||||
}, opts.offcanvasspeed);
|
||||
}
|
||||
|
||||
clickOutside();
|
||||
|
||||
}
|
||||
|
||||
// Start closing function by clicking outside the infinity navigation
|
||||
function clickOutside() {
|
||||
|
||||
$('.' + infinityPushOpen).on("mousedown touchstart", function (e) {
|
||||
|
||||
if($('.' + infinityPushOpen).length) {
|
||||
if (!$('.' + navWrapper).is(e.target) // if the target of the click isn't the container...
|
||||
&& $('.' + navWrapper).has(e.target).length === 0) // ... nor a descendant of the container
|
||||
{
|
||||
closingAnimation();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// Start infinity push function
|
||||
$('.' + infinityPush).on('click', 'a', function(){
|
||||
|
||||
// General settings
|
||||
var navWidth = $(infinityPushWrapper).width(),
|
||||
headParentUL = $(this).parents(infinityPushWrapper).children('ul'),
|
||||
directParentUL = $(this).closest('ul'),
|
||||
subUL = $(this).parent().find('ul').first(),
|
||||
closeSubName = 'ma-infinitypush-close-subnav',
|
||||
closeSubLink = '<a href="#" class="' + closeSubName +'"></a>',
|
||||
inactiveList = 'ma-infinitypush-inactive',
|
||||
inactiveItem = 'ma-infinitypush-active-item',
|
||||
subOpen = 'ma-infinitypush-sub-open';
|
||||
|
||||
if ( headParentUL.hasClass(inactiveList) && headParentUL.siblings().not(inactiveList) ) {
|
||||
// Top UL has the class name & the siblings has not the class name
|
||||
|
||||
/**
|
||||
* If statement for closing or opening the menu list
|
||||
*/
|
||||
|
||||
if( directParentUL.hasClass(inactiveList) ){
|
||||
// Parent UL has the class name, close the sub menu
|
||||
|
||||
// Closing animation
|
||||
if(opts.pushdirectionleft == true) {
|
||||
directParentUL.find('ul').animate({
|
||||
right: -(navWidth - opts.spacing),
|
||||
opacity: 'hide'
|
||||
}, opts.closingspeed);
|
||||
} else {
|
||||
directParentUL.find('ul').animate({
|
||||
left: -(navWidth - opts.spacing),
|
||||
opacity: 'hide'
|
||||
}, opts.closingspeed);
|
||||
}
|
||||
|
||||
// Removing the class name
|
||||
if( $(this).parent().parent().parent().hasClass(subOpen) ) {
|
||||
$(infinityPushWrapper).removeClass(subOpen);
|
||||
} else {
|
||||
// reset the directParentUL width
|
||||
directParentUL.animate({
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.closingspeed);
|
||||
}
|
||||
directParentUL.removeClass(inactiveList);
|
||||
directParentUL.find('ul').removeClass(inactiveList);
|
||||
directParentUL.siblings().removeClass(inactiveList);
|
||||
directParentUL.find('li').removeClass(inactiveItem);
|
||||
|
||||
// Removing the close link
|
||||
directParentUL.find('.' + closeSubName).animate({
|
||||
opacity: 'hide'
|
||||
}, opts.closingspeed,
|
||||
function() {
|
||||
$(this).remove();
|
||||
}
|
||||
);
|
||||
|
||||
return false;
|
||||
|
||||
} else {
|
||||
// Parent UL has not the class name, open the sub menu if exist or open the link
|
||||
|
||||
if ( ( subUL.length > 0 ) && ( !subUL.is(':visible') ) ) {
|
||||
// If sub UL exist & is visible
|
||||
|
||||
var getScrollPosition = directParentUL.scrollTop();
|
||||
|
||||
// Adding the class names
|
||||
$(this).parent().addClass(inactiveItem);
|
||||
directParentUL.addClass(inactiveList);
|
||||
|
||||
// Scrolling up function
|
||||
if(opts.autoScroll == true) {
|
||||
// Check if scroll position is not 0px
|
||||
if(getScrollPosition >= 1) {
|
||||
directParentUL.animate({ scrollTop: 0 }, opts.scrollSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding the close link
|
||||
if(opts.autoScroll == true) {
|
||||
// Check if scroll position is not 0px
|
||||
if(getScrollPosition >= 1) {
|
||||
$(closeSubLink).delay(opts.scrollSpeed).insertAfter($(this)).css('display', 'none').animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
$(closeSubLink).insertAfter($(this)).css('display', 'none').animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
} else {
|
||||
if(getScrollPosition >= 1) {
|
||||
$(closeSubLink).insertAfter($(this)).css({
|
||||
display: 'none',
|
||||
top: getScrollPosition
|
||||
}).animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
$(closeSubLink).insertAfter($(this)).css({
|
||||
display: 'none',
|
||||
top: 0
|
||||
}).animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
}
|
||||
|
||||
// Opening animation
|
||||
if(opts.pushdirectionleft == true) {
|
||||
if(opts.autoScroll == true) {
|
||||
// Check if scroll position is not 0px
|
||||
if(getScrollPosition >= 1) {
|
||||
subUL.delay(opts.scrollSpeed).css({
|
||||
right: -(navWidth - opts.spacing)
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
subUL.css({
|
||||
right: -(navWidth - opts.spacing)
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
} else {
|
||||
if(getScrollPosition >= 1) {
|
||||
subUL.css({
|
||||
right: -(navWidth - opts.spacing),
|
||||
top: getScrollPosition
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
subUL.css({
|
||||
right: -(navWidth - opts.spacing),
|
||||
top: 0
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
if(opts.autoScroll == true) {
|
||||
subUL.delay(opts.scrollSpeed).css({
|
||||
left: -(navWidth - opts.spacing)
|
||||
}).animate({
|
||||
left: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
if(getScrollPosition >= 1) {
|
||||
subUL.css({
|
||||
left: -(navWidth - opts.spacing),
|
||||
top: getScrollPosition
|
||||
}).animate({
|
||||
left: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
subUL.css({
|
||||
left: -(navWidth - opts.spacing),
|
||||
top: 0
|
||||
}).animate({
|
||||
left: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Changing the directParentUL width
|
||||
directParentUL.animate({
|
||||
width: navWidth
|
||||
}, opts.openingspeed);
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
// Top UL has not the class name & the siblings has not the class name
|
||||
|
||||
if ( ( subUL.length > 0 ) && ( !subUL.is(':visible') ) ) {
|
||||
// If sub UL exist & is visible
|
||||
|
||||
var getScrollPosition = $('.' + infinityPush).scrollTop();
|
||||
|
||||
// Adding the class names
|
||||
$(this).parent().addClass(inactiveItem);
|
||||
directParentUL.addClass(inactiveList);
|
||||
directParentUL.siblings().addClass(inactiveList);
|
||||
if( $(infinityPushWrapper).find('ul').is(':visible') ) {
|
||||
$(infinityPushWrapper).addClass(subOpen);
|
||||
}
|
||||
|
||||
// Scrolling up function
|
||||
if(opts.autoScroll == true) {
|
||||
// Check if scroll position is not 0px
|
||||
if(getScrollPosition >= 1) {
|
||||
$('.' + infinityPush).animate({ scrollTop: 0 }, opts.scrollSpeed);
|
||||
}
|
||||
}
|
||||
|
||||
// Adding the close link
|
||||
if(opts.autoScroll == true) {
|
||||
// Check if scroll position is not 0px
|
||||
if(getScrollPosition >= 1) {
|
||||
$(closeSubLink).delay(opts.scrollSpeed).insertAfter($(this)).css('display', 'none').animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
$(closeSubLink).insertAfter($(this)).css('display', 'none').animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
} else {
|
||||
if(getScrollPosition >= 1) {
|
||||
$(closeSubLink).insertAfter($(this)).css({
|
||||
display: 'none',
|
||||
top: getScrollPosition
|
||||
}).animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
$(closeSubLink).insertAfter($(this)).css({
|
||||
display: 'none',
|
||||
top: 0
|
||||
}).animate({
|
||||
opacity: 'show'
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
}
|
||||
|
||||
// Opening animation
|
||||
if(opts.pushdirectionleft == true) {
|
||||
// Check if autoscroll is enabled
|
||||
if(opts.autoScroll == true) {
|
||||
// Check if scroll position is not 0px
|
||||
if(getScrollPosition >= 1) {
|
||||
subUL.delay(opts.scrollSpeed).css({
|
||||
right: -(navWidth - opts.spacing)
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
subUL.css({
|
||||
right: -(navWidth - opts.spacing)
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
} else {
|
||||
if(getScrollPosition >= 1) {
|
||||
subUL.css({
|
||||
right: -(navWidth - opts.spacing),
|
||||
top: getScrollPosition
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
subUL.css({
|
||||
right: -(navWidth - opts.spacing),
|
||||
top: 0
|
||||
}).animate({
|
||||
right: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(opts.autoScroll == true) {
|
||||
subUL.delay(opts.scrollSpeed).css({
|
||||
left: -(navWidth - opts.spacing)
|
||||
}).animate({
|
||||
left: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
if(getScrollPosition >= 1) {
|
||||
subUL.css({
|
||||
left: -(navWidth - opts.spacing),
|
||||
top: getScrollPosition
|
||||
}).animate({
|
||||
left: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
} else {
|
||||
subUL.css({
|
||||
left: -(navWidth - opts.spacing),
|
||||
top: 0
|
||||
}).animate({
|
||||
left: 0,
|
||||
opacity: 'show',
|
||||
width: navWidth - opts.spacing
|
||||
}, opts.openingspeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
|
||||
|
||||