linaro-jekyll-theme 0.2.0 → 0.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -19
- data/_data/authors.yml +7 -0
- data/_data/company.yml +29 -0
- data/_data/footer.yml +1 -0
- data/_data/members_db.yaml +115 -0
- data/_data/nav.yml +62 -0
- data/_data/news.yaml +230 -0
- data/_data/sub-nav-stacked.yml +67 -0
- data/_data/sub-nav.yml +61 -0
- data/_includes/_theme-includes/_blog/pagination.html +1 -1
- data/_includes/_theme-includes/_footer/footer.html +56 -27
- data/_includes/_theme-includes/_head/head.html +15 -7
- data/_includes/_theme-includes/_navigation/nav.html +62 -16
- data/_includes/_theme-includes/_navigation/stacked-nav.html +20 -0
- data/_includes/_theme-includes/_navigation/tabbed-nav.html +35 -0
- data/_includes/_theme-includes/_page-structure/breadcrumb.html +77 -27
- data/_includes/_theme-includes/_page-structure/home-hero-shape.html +34 -0
- data/_includes/_theme-includes/_page-structure/home-hero.html +23 -0
- data/_includes/_theme-includes/_page-structure/shape-divider.html +12 -0
- data/_includes/_theme-includes/_script-includes/css.html +40 -3
- data/_includes/_theme-includes/_script-includes/google-analytics/script.html +10 -0
- data/_includes/_theme-includes/_script-includes/gtm/gtm-noscript.html +2 -1
- data/_includes/_theme-includes/_script-includes/gtm/gtm-script.html +9 -7
- data/_includes/_theme-includes/_script-includes/javascript.html +50 -2
- data/_includes/_theme-includes/_third-party/disqus.html +1 -1
- data/_includes/_theme-includes/_third-party/mailchimp-homepage.html +1 -6
- data/_includes/_theme-includes/members.html +3 -3
- data/_includes/image.html +6 -1
- data/_includes/media.html +9 -1
- data/_includes/youtube.html +7 -0
- data/{assets/vendor.js → _layouts/about.html} +0 -0
- data/_layouts/accessory-display-page.html +88 -0
- data/_layouts/blog-breadcrumbless.html +49 -0
- data/_layouts/blog.html +56 -0
- data/_layouts/contact.html +10 -0
- data/_layouts/default-empty.html +11 -0
- data/_layouts/default-no-sub-nav.html +15 -0
- data/_layouts/default-plain.html +16 -0
- data/_layouts/default-stacked-breadcrumb.html +23 -0
- data/_layouts/default-stacked.html +22 -0
- data/_layouts/default.html +20 -0
- data/_layouts/empty.html +10 -0
- data/_layouts/{plain-page.html → fluid-no-sub-nav.html} +2 -2
- data/_layouts/fluid.html +15 -0
- data/_layouts/home-shape.html +18 -0
- data/_layouts/home.html +18 -0
- data/_layouts/post.html +146 -0
- data/_layouts/product-display-page.html +262 -0
- data/_layouts/project-display-page.html +28 -0
- data/_sass/bootstrap/_variables.scss +28 -5
- data/_sass/core/blog.scss +36 -25
- data/_sass/core/breadcrumb.scss +20 -1
- data/_sass/core/carousel-styles.scss +3 -0
- data/_sass/core/cookieconsent.scss +31 -2
- data/_sass/core/custom.scss +3 -0
- data/_sass/core/fa.scss +7 -2
- data/_sass/core/footer.scss +55 -13
- data/_sass/core/homepage.scss +25 -1
- data/_sass/core/nav.scss +136 -15
- data/_sass/core/owl.carousel.min.scss +1 -1
- data/_sass/core/products.scss +1 -1
- data/_sass/core/tables.scss +38 -0
- data/_sass/core/theme.scss +310 -16
- data/_sass/custom.scss +0 -0
- data/assets/css/main-blog.scss +19 -0
- data/assets/css/main-home.scss +16 -0
- data/{_sass/main.scss → assets/css/main-lightbox.scss} +5 -0
- data/assets/css/main-openhours.scss +19 -0
- data/assets/css/main-products.scss +20 -0
- data/assets/css/main-projects.scss +20 -0
- data/assets/css/main.scss +3 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/fonts/fontello.eot +0 -0
- data/assets/fonts/fontello.svg +44 -0
- data/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/assets/fonts/lato-regular/LICENSE.txt +93 -0
- data/assets/fonts/lato-regular/Lato-regular.eot +0 -0
- data/assets/fonts/lato-regular/Lato-regular.svg +435 -0
- data/assets/fonts/lato-regular/Lato-regular.ttf +0 -0
- data/assets/fonts/lato-regular/Lato-regular.woff +0 -0
- data/assets/fonts/lato-regular/Lato-regular.woff2 +0 -0
- data/assets/images/avatar-placeholder.png +0 -0
- data/assets/images/background-image.jpg +0 -0
- data/assets/images/banner.jpg +0 -0
- data/assets/images/close.png +0 -0
- data/assets/images/css3.png +0 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/images/favicon.png +0 -0
- data/assets/images/html5.png +0 -0
- data/assets/images/jekyll.svg +1 -0
- data/assets/images/js.jpeg +0 -0
- data/assets/images/loading.gif +0 -0
- data/assets/images/next.png +0 -0
- data/assets/images/owl.video.play.png +0 -0
- data/assets/images/placeholder.png +0 -0
- data/assets/images/prev.png +0 -0
- data/assets/images/social-media-image.png +0 -0
- data/assets/js/app/{96boards.js → main.js} +5 -29
- data/assets/js/app/{search-page.js → search.js} +1 -1
- data/assets/js/app/{sticky-navbar.js → sticky.js} +0 -0
- data/assets/js/app/tables.js +8 -0
- data/assets/js/vendor/cognito-forms.js +150 -0
- data/assets/js/vendor/cookieconsent.min.js +2 -9
- data/assets/js/vendor/flipclock.min.js +33 -0
- data/assets/js/vendor/lightbox.min.js +14 -0
- data/robots.txt +9 -0
- metadata +144 -171
- data/_includes/_theme-includes/_footer/backup.html +0 -71
- data/_includes/_theme-includes/_head/ascii-art.html +0 -11
- data/_includes/_theme-includes/_navigation/_sub-navigation/tabbed-nav.html +0 -150
- data/_includes/_theme-includes/_page-structure/old-breadcrumb.html +0 -139
- data/_includes/_theme-includes/_third-party/mailchimp-sub-footer.html +0 -40
- data/_layouts/empty-container-page.html +0 -10
- data/_sass/blog-pages.scss +0 -5
- data/_sass/core/critical.scss +0 -991
- data/_sass/core/members-sprite.scss +0 -425
- data/_sass/documentation-pages.scss +0 -3
- data/_sass/home-page.scss +0 -3
- data/_sass/openhours-page.scss +0 -4
- data/_sass/products-pages.scss +0 -5
- data/_sass/projects-pages.scss +0 -5
- data/assets/css/_bootstrap-compass.scss +0 -9
- data/assets/css/_bootstrap-mincer.scss +0 -19
- data/assets/css/_bootstrap-sprockets.scss +0 -9
- data/assets/css/_bootstrap.scss +0 -56
- data/assets/css/blog-pages.scss +0 -5
- data/assets/css/bootstrap/_alerts.scss +0 -73
- data/assets/css/bootstrap/_badges.scss +0 -68
- data/assets/css/bootstrap/_breadcrumbs.scss +0 -28
- data/assets/css/bootstrap/_button-groups.scss +0 -244
- data/assets/css/bootstrap/_buttons.scss +0 -168
- data/assets/css/bootstrap/_carousel.scss +0 -270
- data/assets/css/bootstrap/_close.scss +0 -36
- data/assets/css/bootstrap/_code.scss +0 -69
- data/assets/css/bootstrap/_component-animations.scss +0 -37
- data/assets/css/bootstrap/_dropdowns.scss +0 -216
- data/assets/css/bootstrap/_forms.scss +0 -617
- data/assets/css/bootstrap/_glyphicons.scss +0 -307
- data/assets/css/bootstrap/_grid.scss +0 -84
- data/assets/css/bootstrap/_input-groups.scss +0 -171
- data/assets/css/bootstrap/_jumbotron.scss +0 -54
- data/assets/css/bootstrap/_labels.scss +0 -66
- data/assets/css/bootstrap/_list-group.scss +0 -130
- data/assets/css/bootstrap/_media.scss +0 -66
- data/assets/css/bootstrap/_mixins.scss +0 -40
- data/assets/css/bootstrap/_modals.scss +0 -150
- data/assets/css/bootstrap/_navbar.scss +0 -662
- data/assets/css/bootstrap/_navs.scss +0 -242
- data/assets/css/bootstrap/_normalize.scss +0 -424
- data/assets/css/bootstrap/_pager.scss +0 -54
- data/assets/css/bootstrap/_pagination.scss +0 -89
- data/assets/css/bootstrap/_panels.scss +0 -271
- data/assets/css/bootstrap/_popovers.scss +0 -131
- data/assets/css/bootstrap/_print.scss +0 -101
- data/assets/css/bootstrap/_progress-bars.scss +0 -87
- data/assets/css/bootstrap/_responsive-embed.scss +0 -35
- data/assets/css/bootstrap/_responsive-utilities.scss +0 -179
- data/assets/css/bootstrap/_scaffolding.scss +0 -161
- data/assets/css/bootstrap/_tables.scss +0 -234
- data/assets/css/bootstrap/_theme.scss +0 -291
- data/assets/css/bootstrap/_thumbnails.scss +0 -38
- data/assets/css/bootstrap/_tooltip.scss +0 -101
- data/assets/css/bootstrap/_type.scss +0 -298
- data/assets/css/bootstrap/_utilities.scss +0 -55
- data/assets/css/bootstrap/_variables.scss +0 -874
- data/assets/css/bootstrap/_wells.scss +0 -29
- data/assets/css/bootstrap/mixins/_alerts.scss +0 -14
- data/assets/css/bootstrap/mixins/_background-variant.scss +0 -12
- data/assets/css/bootstrap/mixins/_border-radius.scss +0 -18
- data/assets/css/bootstrap/mixins/_buttons.scss +0 -65
- data/assets/css/bootstrap/mixins/_center-block.scss +0 -7
- data/assets/css/bootstrap/mixins/_clearfix.scss +0 -22
- data/assets/css/bootstrap/mixins/_forms.scss +0 -88
- data/assets/css/bootstrap/mixins/_gradients.scss +0 -58
- data/assets/css/bootstrap/mixins/_grid-framework.scss +0 -81
- data/assets/css/bootstrap/mixins/_grid.scss +0 -122
- data/assets/css/bootstrap/mixins/_hide-text.scss +0 -21
- data/assets/css/bootstrap/mixins/_image.scss +0 -33
- data/assets/css/bootstrap/mixins/_labels.scss +0 -12
- data/assets/css/bootstrap/mixins/_list-group.scss +0 -32
- data/assets/css/bootstrap/mixins/_nav-divider.scss +0 -10
- data/assets/css/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/assets/css/bootstrap/mixins/_opacity.scss +0 -8
- data/assets/css/bootstrap/mixins/_pagination.scss +0 -24
- data/assets/css/bootstrap/mixins/_panels.scss +0 -24
- data/assets/css/bootstrap/mixins/_progress-bar.scss +0 -10
- data/assets/css/bootstrap/mixins/_reset-filter.scss +0 -8
- data/assets/css/bootstrap/mixins/_reset-text.scss +0 -18
- data/assets/css/bootstrap/mixins/_resize.scss +0 -6
- data/assets/css/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/assets/css/bootstrap/mixins/_size.scss +0 -10
- data/assets/css/bootstrap/mixins/_tab-focus.scss +0 -9
- data/assets/css/bootstrap/mixins/_table-row.scss +0 -28
- data/assets/css/bootstrap/mixins/_text-emphasis.scss +0 -12
- data/assets/css/bootstrap/mixins/_text-overflow.scss +0 -8
- data/assets/css/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/assets/css/core/animations.scss +0 -125
- data/assets/css/core/blog.scss +0 -206
- data/assets/css/core/breadcrumb.scss +0 -48
- data/assets/css/core/carousel.scss +0 -136
- data/assets/css/core/cookieconsent.scss +0 -13
- data/assets/css/core/critical.scss +0 -991
- data/assets/css/core/fa.scss +0 -2331
- data/assets/css/core/flipclock.scss +0 -435
- data/assets/css/core/font-awesome.min.scss +0 -4
- data/assets/css/core/fonts.scss +0 -7
- data/assets/css/core/footer.scss +0 -79
- data/assets/css/core/homepage.scss +0 -16
- data/assets/css/core/lightbox.scss +0 -213
- data/assets/css/core/members-sprite.scss +0 -425
- data/assets/css/core/nav.scss +0 -536
- data/assets/css/core/openhours.scss +0 -51
- data/assets/css/core/owl.carousel.min.scss +0 -6
- data/assets/css/core/owl.theme.default.min.scss +0 -6
- data/assets/css/core/products.scss +0 -221
- data/assets/css/core/projects.scss +0 -32
- data/assets/css/core/social-media-icons.scss +0 -71
- data/assets/css/core/syntax.scss +0 -65
- data/assets/css/core/tables.scss +0 -87
- data/assets/css/core/theme.scss +0 -244
- data/assets/css/documentation-pages.scss +0 -3
- data/assets/css/home-page.scss +0 -3
- data/assets/css/openhours-page.scss +0 -4
- data/assets/css/products-pages.scss +0 -5
- data/assets/css/projects-pages.scss +0 -5
- data/assets/js/app.js +0 -2
- data/assets/js/app/app.js +0 -5
- data/assets/js/app/mixitup.js +0 -23
- data/assets/js/sticky-navbar.js +0 -65
- data/assets/js/vendor.js +0 -7
- data/assets/js/vendor/filtrify.js +0 -11
- data/assets/js/vendor/lightbox.js +0 -519
- data/assets/js/vendor/loadCSS.js +0 -35
- data/assets/js/vendor/loadCSS.min.js +0 -2
- data/assets/js/vendor/picturefill.min.js +0 -5
- data/assets/js/vendor/shuffle.js +0 -2004
- data/assets/js/vendor/vendor.js +0 -6
data/assets/css/core/tables.scss
DELETED
@@ -1,87 +0,0 @@
|
|
1
|
-
/*** Table Styles **/
|
2
|
-
|
3
|
-
table {
|
4
|
-
background: white;
|
5
|
-
border-radius:0px;
|
6
|
-
border-collapse: collapse;
|
7
|
-
// height: 320px;
|
8
|
-
margin: auto;
|
9
|
-
padding:5px;
|
10
|
-
width: 100%;
|
11
|
-
animation: float 5s infinite;
|
12
|
-
-webkit-font-smoothing: antialiased;
|
13
|
-
letter-spacing: 0.5px;
|
14
|
-
border-bottom: 5px $brand-primary solid;
|
15
|
-
margin-bottom: 40px;
|
16
|
-
//overflow-x:scroll;
|
17
|
-
}
|
18
|
-
|
19
|
-
th {
|
20
|
-
color:#FFF;
|
21
|
-
background-color: $brand-primary;
|
22
|
-
border-bottom:4px solid #9ea7af;
|
23
|
-
border-right: 1px solid #343a45;
|
24
|
-
font-size:18px;
|
25
|
-
font-weight: 400;
|
26
|
-
padding:15px;
|
27
|
-
text-align:left !important;
|
28
|
-
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
29
|
-
vertical-align:middle;
|
30
|
-
}
|
31
|
-
|
32
|
-
th a {
|
33
|
-
color: #FFF;
|
34
|
-
}
|
35
|
-
|
36
|
-
|
37
|
-
th:first-child {
|
38
|
-
border-top-left-radius:3px;
|
39
|
-
}
|
40
|
-
|
41
|
-
th:last-child {
|
42
|
-
border-top-right-radius:3px;
|
43
|
-
border-right:none;
|
44
|
-
}
|
45
|
-
|
46
|
-
tr {
|
47
|
-
border-top: 1px solid #C1C3D1;
|
48
|
-
border-bottom: 1px solid #C1C3D1;
|
49
|
-
color:#000000;
|
50
|
-
font-size:16px;
|
51
|
-
font-weight:normal;
|
52
|
-
text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
|
53
|
-
}
|
54
|
-
|
55
|
-
tr:first-child {
|
56
|
-
border-top:none;
|
57
|
-
}
|
58
|
-
|
59
|
-
tr:last-child {
|
60
|
-
border-bottom:none;
|
61
|
-
}
|
62
|
-
|
63
|
-
tr:nth-child(even) td {
|
64
|
-
background:#f7f7f7;
|
65
|
-
}
|
66
|
-
|
67
|
-
tr:last-child td:first-child {
|
68
|
-
border-bottom-left-radius:3px;
|
69
|
-
}
|
70
|
-
|
71
|
-
tr:last-child td:last-child {
|
72
|
-
border-bottom-right-radius:3px;
|
73
|
-
}
|
74
|
-
|
75
|
-
td {
|
76
|
-
background:#FFFFFF;
|
77
|
-
padding: 20px;
|
78
|
-
text-align:left;
|
79
|
-
vertical-align:middle;
|
80
|
-
font-weight:300;
|
81
|
-
font-size:16px;
|
82
|
-
border-right: 1px solid #C1C3D1;
|
83
|
-
}
|
84
|
-
|
85
|
-
td:last-child {
|
86
|
-
border-right: 0px;
|
87
|
-
}
|
data/assets/css/core/theme.scss
DELETED
@@ -1,244 +0,0 @@
|
|
1
|
-
//Body
|
2
|
-
body {
|
3
|
-
background:transparent;
|
4
|
-
letter-spacing: 0.5px;
|
5
|
-
overflow-x: hidden;
|
6
|
-
font-weight: 300;
|
7
|
-
height : 100%;
|
8
|
-
overflow: auto;
|
9
|
-
font-family: 'LatoWeb', HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
|
10
|
-
-webkit-font-smoothing: antialiased;
|
11
|
-
}
|
12
|
-
|
13
|
-
html.ios7 body {height: 100%;position: fixed;width: 100%;}
|
14
|
-
|
15
|
-
html {
|
16
|
-
height : 100%;
|
17
|
-
// overflow: hidden; Will break the sticky navbar - be warned
|
18
|
-
}
|
19
|
-
|
20
|
-
.members-img {
|
21
|
-
width: auto;
|
22
|
-
max-height: 100px;
|
23
|
-
}
|
24
|
-
|
25
|
-
//Selection for Highlighting Text on Web Page.
|
26
|
-
::-webkit-selection,
|
27
|
-
::-moz-selection,
|
28
|
-
::selection {
|
29
|
-
background-color: #19947B;
|
30
|
-
color: #fff;
|
31
|
-
}
|
32
|
-
//Search Dropdown input focus
|
33
|
-
#searchDropdown input:focus {
|
34
|
-
outline: none;
|
35
|
-
}
|
36
|
-
//Headings
|
37
|
-
h1, h2, h3, h4, h5, h6 {
|
38
|
-
font-family: 'LatoWeb', HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
|
39
|
-
font-weight: bold;
|
40
|
-
line-height: 1.1;
|
41
|
-
color: inherit;
|
42
|
-
}
|
43
|
-
|
44
|
-
//Horizontal Rule Styling
|
45
|
-
hr {
|
46
|
-
border-top: 2px solid $gray-light;
|
47
|
-
}
|
48
|
-
|
49
|
-
//Paragraphs
|
50
|
-
p{
|
51
|
-
font-size: 20px;
|
52
|
-
font-weight:300;
|
53
|
-
color: #000000;
|
54
|
-
line-height: 1.66em;
|
55
|
-
word-wrap: break-word;
|
56
|
-
}
|
57
|
-
//Padded Paragraph
|
58
|
-
.padded-para{
|
59
|
-
padding:20px;
|
60
|
-
}
|
61
|
-
|
62
|
-
#spaced-para{
|
63
|
-
font-size: 18px;
|
64
|
-
line-height: 40px;
|
65
|
-
}
|
66
|
-
|
67
|
-
// Paragraphs that are justified.
|
68
|
-
p .justified{
|
69
|
-
text-align: justify;
|
70
|
-
text-justify: inter-word;
|
71
|
-
}
|
72
|
-
|
73
|
-
// Tab Content paragraph
|
74
|
-
#content-container p {
|
75
|
-
font-size: 20px;
|
76
|
-
color: black;
|
77
|
-
line-height: 1.66em;
|
78
|
-
}
|
79
|
-
//Main Container Style margin accounts for Nav
|
80
|
-
#main-container{
|
81
|
-
margin-top:80px;
|
82
|
-
overflow-x: hidden;
|
83
|
-
}
|
84
|
-
|
85
|
-
//Content Container
|
86
|
-
.row.content-container{ margin-top:20px;}
|
87
|
-
|
88
|
-
//Content Container block elements
|
89
|
-
.content-container p {
|
90
|
-
font-size: 20px;
|
91
|
-
color: black;
|
92
|
-
line-height: 1.66em;
|
93
|
-
}
|
94
|
-
.content-container ul { font-size:18px; }
|
95
|
-
.content-container ol { font-size: 18px;}
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
//Homepage Sub Tag
|
100
|
-
p.sub-tag {
|
101
|
-
width: 65%;
|
102
|
-
margin-bottom: 30px;
|
103
|
-
margin-top: 20px;
|
104
|
-
font-size: 21px;
|
105
|
-
color: #FFF;
|
106
|
-
font-weight: 200;
|
107
|
-
}
|
108
|
-
|
109
|
-
// Buttons
|
110
|
-
#buttons > a
|
111
|
-
{
|
112
|
-
-webkit-border-radius: 20px !important;
|
113
|
-
-moz-border-radius: 20px !important;
|
114
|
-
border-radius: 20px !important;
|
115
|
-
padding: 10px 16px;
|
116
|
-
font-size: 18px;
|
117
|
-
line-height: 1.3333333;
|
118
|
-
}
|
119
|
-
|
120
|
-
//Partners Panel Styling.
|
121
|
-
.partners-panel img {
|
122
|
-
margin-bottom: 60px;
|
123
|
-
height:25%;
|
124
|
-
width:80%;
|
125
|
-
}
|
126
|
-
.partners-panel{
|
127
|
-
height:500px;
|
128
|
-
margin-top: 40px;
|
129
|
-
}
|
130
|
-
//Bottom Border Five Pixels.
|
131
|
-
.bottom-border-five{ margin-bottom: 5px; }
|
132
|
-
|
133
|
-
//Alternate row for theme
|
134
|
-
.row .alternate-row {
|
135
|
-
background-color: #E5E5E5;
|
136
|
-
padding: 40px 0;
|
137
|
-
}
|
138
|
-
.small-img{
|
139
|
-
height:100px;
|
140
|
-
width:auto;
|
141
|
-
}
|
142
|
-
@media (min-width: $screen-md) {
|
143
|
-
.partners-panel {
|
144
|
-
margin-top:80px;
|
145
|
-
}
|
146
|
-
.margin-image {
|
147
|
-
padding:40px;
|
148
|
-
}
|
149
|
-
|
150
|
-
}
|
151
|
-
.members-panel { margin-top:50px; }
|
152
|
-
|
153
|
-
.margin-top { margin-top: 40px;}
|
154
|
-
|
155
|
-
.panel-body.members-panel-body {
|
156
|
-
margin-top: -55px;
|
157
|
-
border: 0;
|
158
|
-
}
|
159
|
-
.new-panel .panel-primary > .panel-heading {
|
160
|
-
color: #000000;
|
161
|
-
font-weight: bold;
|
162
|
-
background-color: transparent;
|
163
|
-
border:0;
|
164
|
-
}
|
165
|
-
|
166
|
-
// Iframe for Search page.
|
167
|
-
#searchIframe {
|
168
|
-
border:none;
|
169
|
-
}
|
170
|
-
|
171
|
-
//Vertical Center
|
172
|
-
.vcenter {
|
173
|
-
display: inline-block;
|
174
|
-
vertical-align: middle;
|
175
|
-
float: none;
|
176
|
-
}
|
177
|
-
|
178
|
-
//Contact Hero Banner
|
179
|
-
.contact-hero{
|
180
|
-
height:200px;
|
181
|
-
line-height: 200px;
|
182
|
-
text-align: center;
|
183
|
-
font-size:18px;
|
184
|
-
color: #fff;
|
185
|
-
background: url() repeat;
|
186
|
-
}
|
187
|
-
|
188
|
-
//----------BOOTSTRAP STYLES ----------------
|
189
|
-
|
190
|
-
.panel-primary {
|
191
|
-
border:0;
|
192
|
-
}
|
193
|
-
|
194
|
-
//Bootstrap Glyphicon Override.
|
195
|
-
.glyphicon {
|
196
|
-
width: 14px;
|
197
|
-
height: 14px;
|
198
|
-
}
|
199
|
-
//Remove button focus
|
200
|
-
.btn:focus,.btn:active:focus,.btn.active:focus,
|
201
|
-
.btn.focus,.btn:active.focus,.btn.active.focus {
|
202
|
-
outline: none;
|
203
|
-
}
|
204
|
-
|
205
|
-
//Jumbotron Custom Styling
|
206
|
-
.jumbotron{
|
207
|
-
margin-bottom: 0;
|
208
|
-
margin-top:0;
|
209
|
-
background: #FFF; /* Old browsers */
|
210
|
-
background: -moz-linear-gradient(top, #2a4b41 0%, #000000 100%); /* FF3.6-15 */
|
211
|
-
background: -webkit-linear-gradient(top, #2a4b41 0%,#000000 100%); /* Chrome10-25,Safari5.1-6 */
|
212
|
-
background: linear-gradient(to bottom, #2a4b41 0%, #000000 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
|
213
|
-
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#2a4b41, endColorstr='#000000',GradientType=0 ); /* IE6-9 */
|
214
|
-
}
|
215
|
-
.container .jumbotron, .container-fluid .jumbotron {
|
216
|
-
border-radius: 0px;
|
217
|
-
}
|
218
|
-
|
219
|
-
@media(max-width:991px){
|
220
|
-
.partners-panel {
|
221
|
-
height: auto;
|
222
|
-
}
|
223
|
-
}
|
224
|
-
|
225
|
-
|
226
|
-
.blog-read-more-btn{
|
227
|
-
background-color: white;
|
228
|
-
border: 2px solid black;
|
229
|
-
border-radius: 0px;
|
230
|
-
font-weight: normal;
|
231
|
-
color: $gray-base;
|
232
|
-
transition: all 1s ease;
|
233
|
-
padding: 6px;
|
234
|
-
}
|
235
|
-
.blog-read-more-btn:hover{
|
236
|
-
background-color: $brand-primary;
|
237
|
-
color: white;
|
238
|
-
transition: all 1s ease;
|
239
|
-
}
|
240
|
-
.blog-read-more-btn:active, .blog-read-more-btn:focus{
|
241
|
-
background-color: $brand-primary;
|
242
|
-
color: white;
|
243
|
-
transition: all 1s ease;
|
244
|
-
}
|
data/assets/css/home-page.scss
DELETED
data/assets/js/app.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
function getAllUrlParams(t){var e=t?t.split("?")[1]:window.location.search.slice(1),i={};if(e){e=e.split("#")[0];for(var a=e.split("&"),n=0;n<a.length;n++){var r=a[n].split("="),s=undefined,o=r[0].replace(/\[\d*\]/,function(t){return s=t.slice(1,-1),""}),l="undefined"==typeof r[1]||r[1];o=o.toLowerCase(),l=l.toLowerCase(),i[o]?("string"==typeof i[o]&&(i[o]=[i[o]]),void 0===s?i[o].push(l):i[o][s]=l):i[o]=l}}return i}$(document).ready(function(){function t(t){var e=new Date;return e.setDate(e.getDate()+(t+(7-e.getDay()))%7),e}navigator.userAgent.match(/.*CPU.*OS 7_\d/i)&&$("html").addClass("ios7");var e=t(4),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),16,0,0)),a=new Date,n=i.getTime()/1e3-a.getTime()/1e3,r=new Date(Date.UTC(1996,e.getMonth(),e.getDate(),16,0,0)),s=new Date,o=r.getTime()/1e3-s.getTime()/1e3;$(".open-hours-clock").FlipClock(n,{clockFace:"DailyCounter",countdown:!0}),$(".expired-clock").FlipClock(o,{clockFace:"DailyCounter",countdown:!0});$("#closeForm").click(function(){$("#searchDropdown").dropdown("toggle")}),$(".main-navbar ul.dropdown-menu [data-toggle=dropdown]").on("click",function(t){t.preventDefault(),t.stopPropagation(),$(this).parent().addClass("open");var e=$(this).parent().find("ul");if(e.offset().left+e.width()+30>$(window).width())var i=-e.width();else var i=$(this).parent().width();e.css({left:i})}),$("#searchDropdown").click(function(){$("#dlDropDown").dropdown("toggle")}),$("body").css("zoom",""),$("a").each(function(){new RegExp("/"+window.location.host+"/").test(this.href)||$(this).attr("target","_blank")}),$("#searchform").show()}),$(".main-navbar > nav").removeClass("no-js-navbar"),$(function(){function t(){var t=$('.navbar-collapse form[role="search"].active');t.removeClass("active"),t.trigger("reset")}$(document).on("click",'.navbar-collapse form[role="search"]:not(.active) button[type="submit"]',function(t){t.preventDefault();var e=$(this).closest("form"),i=e.find("input");$(this).closest('.navbar-collapse form[role="search"]:not(.active) button[type="reset"]');e.addClass("active"),i.focus()}),$(document).on("click",'.navbar-collapse form[role="search"].active button[type="submit"]',function(e){e.preventDefault();var i=$(this).closest("form"),a=i.find("input");$("input[type='hidden']").attr("value","96Boards"),0!==a.val().length&&(i.submit(),t())}),$(document).on("click",'.navbar-collapse form[role="search"].active button[type="reset"]',function(){t()})}),$(document).ready(function(){function t(){var t=$("#tabbed-nav-bar ul.nav-tabs li.active").text();$("#sub-navigation-header").text(t),$("#sub-navigation-header").hide(),$(window).scrollTop()>i?($("#tabbed-nav-bar").addClass("sticky-nav"),$("nav#main-navigation").hide(),$("#main-container").css("margin-top","160px"),$(window).width()<1200?($("#tabbed-nav-bar nav").removeClass("navbar-default"),$("#tabbed-nav-bar nav").addClass("navbar-inverse"),$("#tabbed-nav-bar ul.nav-tabs").addClass("nav-stacked"),$("#sub-navigation-header").show()):($("#tabbed-nav-bar nav").addClass("navbar-default"),$("#tabbed-nav-bar nav").removeClass("navbar-inverse"),$("#tabbed-nav-bar ul.nav-tabs").removeClass("nav-stacked"),$("#sub-navigation-header").hide())):($("#tabbed-nav-bar").removeClass("sticky-nav"),$("#main-container").css("margin-top","80px"),$("nav#main-navigation").show(),$("#tabbed-nav-bar nav").addClass("navbar-default"),$("#tabbed-nav-bar nav").removeClass("navbar-inverse"),$(window).width()<1200?($("#tabbed-nav-bar ul.nav-tabs").addClass("nav-stacked"),$("#sub-navigation-header").show()):($("#tabbed-nav-bar ul.nav-tabs").removeClass("nav-stacked"),$("#sub-navigation-header").hide()))}var e=$("#tabbed-nav-bar");if(e.length){var i=e.offset().top,a=($("nav#main-navigation").height,$("#tabbed-nav-bar ul.nav-tabs li.active").text());$("#sub-navigation-header").text(a),t(),$(window).scroll(function(){t()}),$(window).resize(t)}});var searchQuery=getAllUrlParams().q;$("#searchIframe").attr("src","https://search.linaro.org/search/?fields.label=96Boards&q="+searchQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(t){"use strict";function e(e){var i=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).ajaxSubmit(i))}function i(e){var i=e.target,a=t(i);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;i=n[0]}var r=this;if(r.clk=i,"image"==i.type)if(void 0!==e.offsetX)r.clk_x=e.offsetX,r.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=a.offset();r.clk_x=e.pageX-s.left,r.clk_y=e.pageY-s.top}else r.clk_x=e.pageX-i.offsetLeft,r.clk_y=e.pageY-i.offsetTop;setTimeout(function(){r.clk=r.clk_x=r.clk_y=null},100)}function a(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}var n={};n.fileapi=void 0!==t("<input type='file'/>").get(0).files,n.formdata=void 0!==window.FormData;var r=!!t.fn.prop;t.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e){function i(i){var a,n,r=t.param(i,e.traditional).split("&"),s=r.length,o=[];for(a=0;s>a;a++)r[a]=r[a].replace(/\+/g," "),n=r[a].split("="),o.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return o}function s(a){for(var n=new FormData,r=0;r<a.length;r++)n.append(a[r].name,a[r].value);if(e.extraData){var s=i(e.extraData);for(r=0;r<s.length;r++)s[r]&&n.append(s[r][0],s[r][1])}e.data=null;var o=t.extend(!0,{},t.ajaxSettings,e,{contentType:!1,processData:!1,cache:!1,type:l||"POST"});e.uploadProgress&&(o.xhr=function(){var i=t.ajaxSettings.xhr();return i.upload&&i.upload.addEventListener("progress",function(t){var i=0,a=t.loaded||t.position,n=t.total;t.lengthComputable&&(i=Math.ceil(a/n*100)),e.uploadProgress(t,a,n,i)},!1),i}),o.data=null;var d=o.beforeSend;return o.beforeSend=function(t,i){i.data=e.formData?e.formData:n,d&&d.call(this,t,i)},t.ajax(o)}function o(i){function n(t){var e=null;try{t.contentWindow&&(e=t.contentWindow.document)}catch(t){a("cannot get iframe.contentWindow document: "+t)}if(e)return e;try{e=t.contentDocument?t.contentDocument:t.document}catch(i){a("cannot get iframe.contentDocument: "+i),e=t.document}return e}function s(){function e(){try{var t=n(v).readyState;a("state = "+t),t&&"uninitialized"==t.toLowerCase()&&setTimeout(e,50)}catch(t){a("Server abort: ",t," (",t.name,")"),o(k),F&&clearTimeout(F),F=void 0}}var i=c.attr2("target"),r=c.attr2("action"),s="multipart/form-data",d=c.attr("enctype")||c.attr("encoding")||s;C.setAttribute("target",f),(!l||/post/i.test(l))&&C.setAttribute("method","POST"),r!=h.url&&C.setAttribute("action",h.url),h.skipEncodingOverride||l&&!/post/i.test(l)||c.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),h.timeout&&(F=setTimeout(function(){w=!0,o($)},h.timeout));var u=[];try{if(h.extraData)for(var m in h.extraData)h.extraData.hasOwnProperty(m)&&u.push(t.isPlainObject(h.extraData[m])&&h.extraData[m].hasOwnProperty("name")&&h.extraData[m].hasOwnProperty("value")?t('<input type="hidden" name="'+h.extraData[m].name+'">').val(h.extraData[m].value).appendTo(C)[0]:t('<input type="hidden" name="'+m+'">').val(h.extraData[m]).appendTo(C)[0]);h.iframeTarget||g.appendTo("body"),v.attachEvent?v.attachEvent("onload",o):v.addEventListener("load",o,!1),setTimeout(e,15);try{C.submit()}catch(t){var p=document.createElement("form").submit;p.apply(C)}}finally{C.setAttribute("action",r),C.setAttribute("enctype",d),i?C.setAttribute("target",i):c.removeAttr("target"),t(u).remove()}}function o(e){if(!b.aborted&&!j){if(S=n(v),S||(a("cannot access response document"),e=k),e===$&&b)return b.abort("timeout"),void D.reject(b,"timeout");if(e==k&&b)return b.abort("server abort"),void D.reject(b,"error","server abort");if(S&&S.location.href!=h.iframeSrc||w){v.detachEvent?v.detachEvent("onload",o):v.removeEventListener("load",o,!1);var i,r="success";try{if(w)throw"timeout";var s="xml"==h.dataType||S.XMLDocument||t.isXMLDoc(S);if(a("isXml="+s),!s&&window.opera&&(null===S.body||!S.body.innerHTML)&&--E)return a("requeing onLoad callback, DOM not available"),void setTimeout(o,250);var l=S.body?S.body:S.documentElement;b.responseText=l?l.innerHTML:null,b.responseXML=S.XMLDocument?S.XMLDocument:S,s&&(h.dataType="xml"),b.getResponseHeader=function(t){return{"content-type":h.dataType}[t.toLowerCase()]},l&&(b.status=+l.getAttribute("status")||b.status,b.statusText=l.getAttribute("statusText")||b.statusText);var d=(h.dataType||"").toLowerCase(),u=/(json|script|text)/.test(d);if(u||h.textarea){var c=S.getElementsByTagName("textarea")[0];if(c)b.responseText=c.value,b.status=+c.getAttribute("status")||b.status,b.statusText=c.getAttribute("statusText")||b.statusText;else if(u){var f=S.getElementsByTagName("pre")[0],p=S.getElementsByTagName("body")[0];f?b.responseText=f.textContent?f.textContent:f.innerText:p&&(b.responseText=p.textContent?p.textContent:p.innerText)}}else"xml"==d&&!b.responseXML&&b.responseText&&(b.responseXML=L(b.responseText));try{T=P(b,d,h)}catch(t){r="parsererror",b.error=i=t||r}}catch(t){a("error caught: ",t),r="error",b.error=i=t||r}b.aborted&&(a("upload aborted"),r=null),b.status&&(r=b.status>=200&&b.status<300||304===b.status?"success":"error"),"success"===r?(h.success&&h.success.call(h.context,T,"success",b),D.resolve(b.responseText,"success",b),m&&t.event.trigger("ajaxSuccess",[b,h])):r&&(void 0===i&&(i=b.statusText),h.error&&h.error.call(h.context,b,r,i),D.reject(b,"error",i),m&&t.event.trigger("ajaxError",[b,h,i])),m&&t.event.trigger("ajaxComplete",[b,h]),m&&!--t.active&&t.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,b,r),j=!0,h.timeout&&clearTimeout(F),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),b.responseXML=null},100)}}}var d,u,h,m,f,g,v,b,y,x,w,F,C=c[0],D=t.Deferred();if(D.abort=function(t){b.abort(t)},i)for(u=0;u<p.length;u++)d=t(p[u]),r?d.prop("disabled",!1):d.removeAttr("disabled");if(h=t.extend(!0,{},t.ajaxSettings,e),h.context=h.context||h,f="jqFormIO"+(new Date).getTime(),h.iframeTarget?(g=t(h.iframeTarget),x=g.attr2("name"),x?f=x:g.attr2("name",f)):(g=t('<iframe name="'+f+'" src="'+h.iframeSrc+'" />'),g.css({position:"absolute",top:"-1000px",left:"-1000px"})),v=g[0],b={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var i="timeout"===e?"timeout":"aborted";a("aborting upload... "+i),this.aborted=1;try{v.contentWindow.document.execCommand&&v.contentWindow.document.execCommand("Stop")}catch(t){}g.attr("src",h.iframeSrc),b.error=i,h.error&&h.error.call(h.context,b,i,e),m&&t.event.trigger("ajaxError",[b,h,i]),h.complete&&h.complete.call(h.context,b,i)}},m=h.global,m&&0==t.active++&&t.event.trigger("ajaxStart"),m&&t.event.trigger("ajaxSend",[b,h]),h.beforeSend&&!1===h.beforeSend.call(h.context,b,h))return h.global&&t.active--,D.reject(),D;if(b.aborted)return D.reject(),D;(y=C.clk)&&(x=y.name)&&!y.disabled&&(h.extraData=h.extraData||{},h.extraData[x]=y.value,"image"==y.type&&(h.extraData[x+".x"]=C.clk_x,h.extraData[x+".y"]=C.clk_y));var $=1,k=2,I=t("meta[name=csrf-token]").attr("content"),A=t("meta[name=csrf-param]").attr("content");A&&I&&(h.extraData=h.extraData||{},h.extraData[A]=I),h.forceSync?s():setTimeout(s,10);var T,S,j,E=50,L=t.parseXML||function(t,e){return window.ActiveXObject?(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!=e.documentElement.nodeName?e:null},_=t.parseJSON||function(t){return window.eval("("+t+")")},P=function(e,i,a){var n=e.getResponseHeader("content-type")||"",r="xml"===i||!i&&n.indexOf("xml")>=0,s=r?e.responseXML:e.responseText;return r&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),a&&a.dataFilter&&(s=a.dataFilter(s,i)),"string"==typeof s&&("json"===i||!i&&n.indexOf("json")>=0?s=_(s):("script"===i||!i&&n.indexOf("javascript")>=0)&&t.globalEval(s)),s};return D}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var l,d,u,c=this;"function"==typeof e?e={success:e}:void 0===e&&(e={}),l=e.type||this.attr2("method"),d=e.url||this.attr2("action"),u="string"==typeof d?t.trim(d):"",u=u||window.location.href||"",u&&(u=(u.match(/^([^#]+)/)||[])[1]),e=t.extend(!0,{url:u,success:t.ajaxSettings.success,type:l||t.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var h={};if(this.trigger("form-pre-serialize",[this,e,h]),h.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var m=e.traditional;void 0===m&&(m=t.ajaxSettings.traditional);var f,p=[],g=this.formToArray(e.semantic,p);if(e.data&&(e.extraData=e.data,f=t.param(e.data,m)),e.beforeSubmit&&!1===e.beforeSubmit(g,this,e))return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[g,this,e,h]),h.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var v=t.param(g,m);f&&(v=v?v+"&"+f:f),"GET"==e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")<0?"?":"&")+v,e.data=null):e.data=v;var b=[];if(e.resetForm&&b.push(function(){c.resetForm()}),e.clearForm&&b.push(function(){c.clearForm(e.includeHidden)}),!e.dataType&&e.target){var y=e.success||function(){};b.push(function(i){var a=e.replaceTarget?"replaceWith":"html";t(e.target)[a](i).each(y,arguments)})}else e.success&&b.push(e.success);if(e.success=function(t,i,a){for(var n=e.context||this,r=0,s=b.length;s>r;r++)b[r].apply(n,[t,i,a||c,c])},e.error){var x=e.error;e.error=function(t,i,a){var n=e.context||this;x.apply(n,[t,i,a,c])}}if(e.complete){var w=e.complete;e.complete=function(t,i){var a=e.context||this;w.apply(a,[t,i,c])}}var F=t("input[type=file]:enabled",this).filter(function(){return""!==t(this).val()}),C=F.length>0,D="multipart/form-data",$=c.attr("enctype")==D||c.attr("encoding")==D,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var I,A=(C||$)&&!k;!1!==e.iframe&&(e.iframe||A)?e.closeKeepAlive?t.get(e.closeKeepAlive,function(){I=o(g)}):I=o(g):I=(C||$)&&k?s(g):t.ajax(e),c.removeData("jqxhr").data("jqxhr",I);for(var T=0;T<p.length;T++)p[T]=null;return this.trigger("form-submit-notify",[this,e]),this},t.fn.ajaxForm=function(n){if(n=n||{},n.delegation=n.delegation&&t.isFunction(t.fn.on),!n.delegation&&0===this.length){var r={s:this.selector,c:this.context};return!t.isReady&&r.s?(a("DOM not ready, queuing ajaxForm"),t(function(){t(r.s,r.c).ajaxForm(n)}),this):(a("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return n.delegation?(t(document).off("submit.form-plugin",this.selector,e).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,n,e).on("click.form-plugin",this.selector,n,i),this):this.ajaxFormUnbind().bind("submit.form-plugin",n,e).bind("click.form-plugin",n,i)},t.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,i){var a=[];if(0===this.length)return a;var r,s=this[0],o=this.attr("id"),l=e?s.getElementsByTagName("*"):s.elements;if(l&&!/MSIE [678]/.test(navigator.userAgent)&&(l=t(l).get()),o&&(r=t(':input[form="'+o+'"]').get(),r.length&&(l=(l||[]).concat(r))),!l||!l.length)return a;var d,u,c,h,m,f,p;for(d=0,f=l.length;f>d;d++)if(m=l[d],(c=m.name)&&!m.disabled)if(e&&s.clk&&"image"==m.type)s.clk==m&&(a.push({name:c,value:t(m).val(),type:m.type}),a.push({name:c+".x",value:s.clk_x},{name:c+".y",value:s.clk_y}));else if((h=t.fieldValue(m,!0))&&h.constructor==Array)for(i&&i.push(m),u=0,p=h.length;p>u;u++)a.push({name:c,value:h[u]});else if(n.fileapi&&"file"==m.type){i&&i.push(m);var g=m.files;if(g.length)for(u=0;u<g.length;u++)a.push({name:c,value:g[u],type:m.type});else a.push({name:c,value:"",type:m.type})}else null!==h&&void 0!==h&&(i&&i.push(m),a.push({name:c,value:h,type:m.type,required:m.required}));if(!e&&s.clk){var v=t(s.clk),b=v[0];(c=b.name)&&!b.disabled&&"image"==b.type&&(a.push({name:c,value:v.val()}),a.push({name:c+".x",value:s.clk_x},{name:c+".y",value:s.clk_y}))}return a},t.fn.formSerialize=function(e){return t.param(this.formToArray(e))},t.fn.fieldSerialize=function(e){var i=[];return this.each(function(){var a=this.name;if(a){var n=t.fieldValue(this,e);if(n&&n.constructor==Array)for(var r=0,s=n.length;s>r;r++)i.push({name:a,value:n[r]});else null!==n&&void 0!==n&&i.push({name:this.name,value:n})}}),t.param(i)},t.fn.fieldValue=function(e){for(var i=[],a=0,n=this.length;n>a;a++){var r=this[a],s=t.fieldValue(r,e);null===s||void 0===s||s.constructor==Array&&!s.length||(s.constructor==Array?t.merge(i,s):i.push(s))}return i},t.fieldValue=function(e,i){var a=e.name,n=e.type,r=e.tagName.toLowerCase();if(void 0===i&&(i=!0),i&&(!a||e.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!e.checked||("submit"==n||"image"==n)&&e.form&&e.form.clk!=e||"select"==r&&-1==e.selectedIndex))return null;if("select"==r){var s=e.selectedIndex;if(0>s)return null;for(var o=[],l=e.options,d="select-one"==n,u=d?s+1:l.length,c=d?s:0;u>c;c++){var h=l[c];if(h.selected){var m=h.value;if(m||(m=h.attributes&&h.attributes.value&&!h.attributes.value.specified?h.text:h.value),d)return m;o.push(m)}}return o}return t(e).val()},t.fn.clearForm=function(e){return this.each(function(){t("input,select,textarea",this).clearFields(e)})},t.fn.clearFields=t.fn.clearInputs=function(e){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();i.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?t(this).replaceWith(t(this).clone(!0)):t(this).val(""):e&&(!0===e&&/hidden/.test(a)||"string"==typeof e&&t(this).is(e))&&(this.value="")})},t.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},t.fn.enable=function(t){return void 0===t&&(t=!0),this.each(function(){this.disabled=!t})},t.fn.selected=function(e){return void 0===e&&(e=!0),this.each(function(){var i=this.type;if("checkbox"==i||"radio"==i)this.checked=e;else if("option"==this.tagName.toLowerCase()){var a=t(this).parent("select");e&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=e}})},t.fn.ajaxSubmit.debug=!1}),function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return void(e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function a(){var a;return!i.settings.submitHandler||(i.submitButton&&(a=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&a.remove(),!1)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,a()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):a():(i.focusInvalid(),!1)})),i)},valid:function(){var e,i;return t(this[0]).is("form")?e=this.validate().form():(e=!0,i=t(this[0].form).validate(),this.each(function(){e=i.element(this)&&e})),e},removeAttrs:function(e){var i={},a=this;return t.each(e.split(/\s/),function(t,e){i[e]=a.attr(e),a.removeAttr(e)}),i},rules:function(e,i){var a,n,r,s,o,l,d=this[0];if(e)switch(a=t.data(d.form,"validator").settings,n=a.rules,r=t.validator.staticRules(d),e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,n[d.name]=r,i.messages&&(a.messages[d.name]=t.extend(a.messages[d.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(e,i){l[i]=r[i],delete r[i],"required"===i&&t(d).removeAttr("aria-required")}),l):(delete n[d.name],r)}return s=t.validator.normalizeRules(t.extend({},t.validator.classRules(d),t.validator.attributeRules(d),t.validator.dataRules(d),t.validator.staticRules(d)),d),s.required&&(o=s.required,delete s.required,s=t.extend({required:o},s),t(d).attr("aria-required","true")),s.remote&&(o=s.remote,delete s.remote,s=t.extend(s,{remote:o})),s}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,a){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(a):t(e).addClass(i).removeClass(a)},unhighlight:function(e,i,a){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(a):t(e).removeClass(i).addClass(a)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator"),a="on"+e.type.replace(/^validate/,""),n=i.settings;n[a]&&!this.is(n.ignore)&&n[a].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,a=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){a[i]=e})}),i=this.settings.rules,t.each(i,function(e,a){i[e]=t.validator.normalizeRule(a)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),t(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i=this.clean(e),a=this.validationTargetFor(i),n=!0;return this.lastElement=a,void 0===a?delete this.invalid[i.name]:(this.prepareElement(a),this.currentElements=t(a),n=!1!==this.check(a),n?delete this.invalid[a.name]:this.invalid[a.name]=!0),t(e).attr("aria-invalid",!n),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(var i in e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)i++;return i},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i||!e.objectLength(t(this).rules()))&&(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,a=t(e),n=a.attr("type");return"radio"===n||"checkbox"===n?t("input[name='"+a.attr("name")+"']:checked").val():(i=a.val(),"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,a,n,r=t(e).rules(),s=t.map(r,function(t,e){return e}).length,o=!1,l=this.elementValue(e);for(a in r){n={method:a,parameters:r[a]};try{if("dependency-mismatch"===(i=t.validator.methods[a].call(this,l,e,n.parameters))&&1===s){o=!0;continue}if(o=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,n),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",t),t}}return o?void 0:(this.objectLength(r)&&this.successList.push(e),!0)},customDataMessage:function(e,i){return t(e).data("msg"+i[0].toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){var a=this.defaultMessage(e,i.method),n=/\$?\{(\d+)\}/g;"function"==typeof a?a=a.call(this,i.parameters,e):n.test(a)&&(a=t.validator.format(a.replace(n,"{$1}"),i.parameters)),this.errorList.push({message:a,element:e,method:i.method}),this.errorMap[e.name]=a,this.submitted[e.name]=a},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var a=this.errorsFor(e);a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(i)):(a=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(a=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(a).length||(this.settings.errorPlacement?this.settings.errorPlacement(a,t(e)):a.insertAfter(e))),!i&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{
|
2
|
-
email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},a=t(e).attr("class");return a&&t.each(a.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i,a,n={},r=t(e),s=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(a=e.getAttribute(i),""===a&&(a=!0),a=!!a):a=r.attr(i),/min|max/.test(i)&&(null===s||/number|range|text/.test(s))&&(a=+a),a||0===a?n[i]=a:s===i&&"range"!==s&&(n[i]=!0);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var i,a,n={},r=t(e);for(i in t.validator.methods)void 0!==(a=r.data("rule"+i[0].toUpperCase()+i.substring(1).toLowerCase()))&&(n[i]=a);return n},staticRules:function(e){var i={},a=t.data(e.form,"validator");return a.settings.rules&&(i=t.validator.normalizeRule(a.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(a,n){if(!1===n)return void delete e[a];if(n.param||n.depends){var r=!0;switch(typeof n.depends){case"string":r=!!t(n.depends,i.form).length;break;case"function":r=n.depends.call(i,i)}r?e[a]=void 0===n.param||n.param:delete e[a]}}),t.each(e,function(a,n){e[a]=t.isFunction(n)?n(i):n}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=+e[this])}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[+e[this][0],+e[this][1]]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[+i[0],+i[1]]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,a){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==a?a:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,a){if(!this.depend(a,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(""+new Date(t))},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i,a,n=0,r=0,s=!1;if(t=t.replace(/\D/g,""),t.length<13||t.length>19)return!1;for(i=t.length-1;i>=0;i--)a=t.charAt(i),r=parseInt(a,10),s&&(r*=2)>9&&(r-=9),n+=r,s=!s;return n%10==0},minlength:function(e,i,a){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=a},maxlength:function(e,i,a){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||a>=n},rangelength:function(e,i,a){var n=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||n>=a[0]&&n<=a[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||i>=t},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},equalTo:function(e,i,a){var n=t(a);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,a){if(this.optional(i))return"dependency-mismatch";var n,r,s=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),s.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=s.message,a="string"==typeof a&&{url:a}||a,s.old===e?s.valid:(s.old=e,n=this,this.startRequest(i),r={},r[i.name]=e,t.ajax(t.extend(!0,{url:a,mode:"abort",port:"validate"+i.name,dataType:"json",data:r,context:n.currentForm,success:function(a){var r,o,l,d=!0===a||"true"===a;n.settings.messages[i.name].remote=s.originalMessage,d?(l=n.formSubmitted,n.prepareElement(i),n.formSubmitted=l,n.successList.push(i),delete n.invalid[i.name],n.showErrors()):(r={},o=a||n.defaultMessage(i,"remote"),r[i.name]=s.message=t.isFunction(o)?o(e):o,n.invalid[i.name]=!0,n.showErrors(r)),s.valid=d,n.stopRequest(i,d)}},a)),"pending")}}}),t.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."}}(jQuery),function(t){var e,i={};t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,a){var n=t.port;"abort"===t.mode&&(i[n]&&i[n].abort(),i[n]=a)}):(e=t.ajax,t.ajax=function(a){var n=("mode"in a?a:t.ajaxSettings).mode,r=("port"in a?a:t.ajaxSettings).port;return"abort"===n?(i[r]&&i[r].abort(),i[r]=e.apply(this,arguments),i[r]):e.apply(this,arguments)})}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,a){return this.bind(i,function(i){var n=t(i.target);return n.is(e)?a.apply(n,arguments):void 0})}})}(jQuery),function(t){t.validator.addMethod("mc_birthday",function(e,i,a){var n=!1,r=t("input:not(:hidden)",t(i).closest(a));if(0==r.filter(":filled").length&&this.optional(i))n=!0;else{var s=[];s.month=r.filter("input[name*='[month]']").val(),s.day=r.filter("input[name*='[day]']").val(),s.month=s.month-1;var o=new Date(1970,s.month,s.day);n=o.getDate()==s.day&&o.getMonth()==s.month}return n},"Please enter a valid month and day."),t.validator.addMethod("mc_date",function(e,i,a){var n=!1,r=t("input:not(:hidden)",t(i).closest(a));if(0==r.filter(":filled").length&&this.optional(i))n=!0;else{var s=[];s.month=r.filter("input[name*='[month]']").val(),s.day=r.filter("input[name*='[day]']").val(),s.year=r.filter("input[name*='[year]']").val(),s.month=s.month-1,s.year.length<4&&(s.year=parseInt(s.year)<50?2e3+parseInt(s.year):1900+parseInt(s.year));var o=new Date(s.year,s.month,s.day);n=o.getDate()==s.day&&o.getMonth()==s.month&&o.getFullYear()==s.year}return n},"Please enter a valid date"),t.validator.addMethod("mc_phone",function(e,i,a){var n=!1,r=t("input:filled:not(:hidden)",t(i).closest(a));return 0==r.length&&this.optional(i)?n=!0:(e=r.eq(0).val()+r.eq(1).val()+r.eq(2).val(),n=10==e.length&&e.match(/[0-9]{9}/)),n},"Please specify a valid phone number"),t.validator.addMethod("skip_or_complete_group",function(e,i,a){var n=t("input:not(:hidden)",t(i).closest(a)),r=n.eq(0),s=r.data("valid_skip")?r.data("valid_skip"):t.extend({},this),o=n.filter(function(){return s.elementValue(this)}).length,l=0===o||o===n.length;return r.data("valid_skip",s),t(i).data("being_validated")||(n.data("being_validated",!0),n.each(function(){s.element(this)}),n.data("being_validated",!1)),l},t.validator.format("Please supply missing fields.")),t.validator.addMethod("skip_or_fill_minimum",function(e,i,a){var n=t(a[1],i.form),r=n.eq(0),s=r.data("valid_skip")?r.data("valid_skip"):t.extend({},this),o=n.filter(function(){return s.elementValue(this)}).length,l=0===o||o>=a[0];return console.log(n.eq(0)),r.data("valid_skip",s),t(i).data("being_validated")||(n.data("being_validated",!0),n.each(function(){s.element(this)}),n.data("being_validated",!1)),l},t.validator.format("Please either skip these fields or fill at least {0} of them.")),t.validator.addMethod("zipcodeUS",function(t,e){return this.optional(e)||/^\d{5}-\d{4}$|^\d{5}$/.test(t)},"The specified US ZIP Code is invalid")}(jQuery),function(t){var e="";try{e=mc_custom_error_style}catch(t){e="#mc_embed_signup input.mce_inline_error { border-color:#6B0505; } #mc_embed_signup div.mce_inline_error { margin: 0 0 1em 0; padding: 5px 10px; background-color:#6B0505; font-weight: bold; z-index: 1; color:#fff; }"}var a=document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),a.appendChild(n),window.mc={openPopup:function(){t("#mc_embed_signup a.mc_embed_close").show(),setTimeout(function(){t("#mc_embed_signup").fadeIn()},mc.delayPopup)},closePopup:function(){t("#mc_embed_signup").hide();var e=new Date,i=new Date(e.getTime()+31536e6);document.cookie="MCEvilPopupClosed=yes;expires="+i.toGMTString()+";path=/"},evalPopup:function(){for(t("#mc_embed_signup").hide(),cks=document.cookie.split(";"),i=0;i<cks.length;i++)parts=cks[i].split("="),-1!=parts[0].indexOf("MCEvilPopupClosed")&&(mc.showPopup=!1);mc.showPopup&&mc.openPopup()},getAjaxSubmitUrl:function(){var e=t("form#mc-embedded-subscribe-form").attr("action");return e=e.replace("/post?u=","/post-json?u="),e+="&c=?"},getGroups:function(){var e={};return t(".mc-field-group").each(function(){var i=t(this).find("input:text:not(:hidden)");if(i.length>1){var a=i.first().attr("name"),n=t.map(i,function(t){return t.name});e[a.substring(0,a.indexOf("["))]=n.join(" ")}}),e},isMultiPartField:function(e){return t("input:not(:hidden)",t(e).closest(".mc-field-group")).length>1},isTooEarly:function(e){var i=t("input:not(:hidden)",t(e).closest(".mc-field-group"));return t(i).eq(-1).attr("id")!=t(e).attr("id")},mce_success_cb:function(e){if(t("#mce-success-response").hide(),t("#mce-error-response").hide(),"success"==e.result)t("#mce-"+e.result+"-response").show(),t("#mce-"+e.result+"-response").html(e.msg),t("#mc-embedded-subscribe-form").each(function(){this.reset()});else{var a,n=-1;try{var r=e.msg.split(" - ",2);void 0==r[1]?a=e.msg:(i=parseInt(r[0]),""+i==r[0]?(n=r[0],a=r[1]):(n=-1,a=e.msg))}catch(t){n=-1,a=e.msg}try{if(-1==n)t("#mce-"+e.result+"-response").show(),t("#mce-"+e.result+"-response").html(a);else{var s=t("input[name*='"+fnames[n]+"']").attr("name"),o={};o[s]=a,mc.mce_validator.showErrors(o)}}catch(i){t("#mce-"+e.result+"-response").show(),t("#mce-"+e.result+"-response").html(a)}}}},window.mc.mce_validator=t("#mc-embedded-subscribe-form").validate({errorClass:"mce_inline_error",errorElement:"div",onkeyup:!1,onfocusout:function(e){mc.isTooEarly(e)||t(e).valid()},onblur:function(e){mc.isTooEarly(e)||t(e).valid()},groups:mc.getGroups(),errorPlacement:function(t,e){e.closest(".mc-field-group").append(t)},submitHandler:function(e){t(e).ajaxSubmit(mc.ajaxOptions)}}),window.mc.ajaxOptions={url:mc.getAjaxSubmitUrl(),type:"GET",dataType:"json",contentType:"application/json; charset=utf-8",success:mc.mce_success_cb},t.validator.addClassRules("birthday",{digits:!0,mc_birthday:".datefield"}),t.validator.addClassRules("datepart",{digits:!0,mc_date:".datefield"}),t.validator.addClassRules("phonepart",{digits:!0,mc_phone:".phonefield"}),t("#mc_embed_signup a.mc_embed_close").click(function(){mc.closePopup()}),t(document).keydown(function(t){keycode=null==t?event.keyCode:t.which,27==keycode&&void 0!==mc.showPopup&&mc.closePopup()})}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.lightbox=e(t.jQuery)}(this,function(t){function e(e){this.album=[],this.currentImageIndex=void 0,this.init(),this.options=t.extend({},this.constructor.defaults),this.option(e)}return e.defaults={albumLabel:"Image %1 of %2",alwaysShowNavOnTouchDevices:!1,fadeDuration:600,fitImagesInViewport:!0,imageFadeDuration:600,positionFromTop:50,resizeDuration:700,showImageNumberLabel:!0,wrapAround:!1,disableScrolling:!1,sanitizeTitle:!1},e.prototype.option=function(e){t.extend(this.options,e)},e.prototype.imageCountLabel=function(t,e){return this.options.albumLabel.replace(/%1/g,t).replace(/%2/g,e)},e.prototype.init=function(){var e=this;t(document).ready(function(){e.enable(),e.build()})},e.prototype.enable=function(){var e=this;t("body").on("click","a[rel^=lightbox], area[rel^=lightbox], a[data-lightbox], area[data-lightbox]",function(i){return e.start(t(i.currentTarget)),!1})},e.prototype.build=function(){var e=this;t('<div id="lightboxOverlay" class="lightboxOverlay"></div><div id="lightbox" class="lightbox"><div class="lb-outerContainer"><div class="lb-container"><img class="lb-image" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" /><div class="lb-nav"><a class="lb-prev" href="" ></a><a class="lb-next" href="" ></a></div><div class="lb-loader"><a class="lb-cancel"></a></div></div></div><div class="lb-dataContainer"><div class="lb-data"><div class="lb-details"><span class="lb-caption"></span><span class="lb-number"></span></div><div class="lb-closeContainer"><a class="lb-close"></a></div></div></div></div>').appendTo(t("body")),this.$lightbox=t("#lightbox"),this.$overlay=t("#lightboxOverlay"),this.$outerContainer=this.$lightbox.find(".lb-outerContainer"),this.$container=this.$lightbox.find(".lb-container"),this.$image=this.$lightbox.find(".lb-image"),this.$nav=this.$lightbox.find(".lb-nav"),this.containerPadding={top:parseInt(this.$container.css("padding-top"),10),right:parseInt(this.$container.css("padding-right"),10),bottom:parseInt(this.$container.css("padding-bottom"),10),left:parseInt(this.$container.css("padding-left"),10)},this.imageBorderWidth={top:parseInt(this.$image.css("border-top-width"),10),right:parseInt(this.$image.css("border-right-width"),10),bottom:parseInt(this.$image.css("border-bottom-width"),10),left:parseInt(this.$image.css("border-left-width"),10)},this.$overlay.hide().on("click",function(){return e.end(),!1}),this.$lightbox.hide().on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$outerContainer.on("click",function(i){return"lightbox"===t(i.target).attr("id")&&e.end(),!1}),this.$lightbox.find(".lb-prev").on("click",function(){return 0===e.currentImageIndex?e.changeImage(e.album.length-1):e.changeImage(e.currentImageIndex-1),!1}),this.$lightbox.find(".lb-next").on("click",function(){return e.currentImageIndex===e.album.length-1?e.changeImage(0):e.changeImage(e.currentImageIndex+1),!1}),this.$nav.on("mousedown",function(t){3===t.which&&(e.$nav.css("pointer-events","none"),e.$lightbox.one("contextmenu",function(){setTimeout(function(){this.$nav.css("pointer-events","auto")}.bind(e),0)}))}),this.$lightbox.find(".lb-loader, .lb-close").on("click",function(){return e.end(),!1})},e.prototype.start=function(e){function i(t){a.album.push({link:t.attr("href"),title:t.attr("data-title")||t.attr("title")})}var a=this,n=t(window);n.on("resize",t.proxy(this.sizeOverlay,this)),t("select, object, embed").css({visibility:"hidden"}),this.sizeOverlay(),this.album=[];var r,s=0,o=e.attr("data-lightbox");if(o){r=t(e.prop("tagName")+'[data-lightbox="'+o+'"]');for(var l=0;l<r.length;l=++l)i(t(r[l])),r[l]===e[0]&&(s=l)}else if("lightbox"===e.attr("rel"))i(e);else{r=t(e.prop("tagName")+'[rel="'+e.attr("rel")+'"]');for(var d=0;d<r.length;d=++d)i(t(r[d])),r[d]===e[0]&&(s=d)}var u=n.scrollTop()+this.options.positionFromTop,c=n.scrollLeft();this.$lightbox.css({top:u+"px",left:c+"px"}).fadeIn(this.options.fadeDuration),this.options.disableScrolling&&t("body").addClass("lb-disable-scrolling"),this.changeImage(s)},e.prototype.changeImage=function(e){var i=this;this.disableKeyboardNav();var a=this.$lightbox.find(".lb-image");this.$overlay.fadeIn(this.options.fadeDuration),t(".lb-loader").fadeIn("slow"),this.$lightbox.find(".lb-image, .lb-nav, .lb-prev, .lb-next, .lb-dataContainer, .lb-numbers, .lb-caption").hide(),this.$outerContainer.addClass("animating");var n=new Image;n.onload=function(){var r,s,o,l,d,u;a.attr("src",i.album[e].link),t(n),a.width(n.width),a.height(n.height),i.options.fitImagesInViewport&&(u=t(window).width(),d=t(window).height(),l=u-i.containerPadding.left-i.containerPadding.right-i.imageBorderWidth.left-i.imageBorderWidth.right-20,o=d-i.containerPadding.top-i.containerPadding.bottom-i.imageBorderWidth.top-i.imageBorderWidth.bottom-120,i.options.maxWidth&&i.options.maxWidth<l&&(l=i.options.maxWidth),i.options.maxHeight&&i.options.maxHeight<l&&(o=i.options.maxHeight),(n.width>l||n.height>o)&&(n.width/l>n.height/o?(s=l,r=parseInt(n.height/(n.width/s),10),a.width(s),a.height(r)):(r=o,s=parseInt(n.width/(n.height/r),10),a.width(s),a.height(r)))),i.sizeContainer(a.width(),a.height())},n.src=this.album[e].link,this.currentImageIndex=e},e.prototype.sizeOverlay=function(){this.$overlay.width(t(document).width()).height(t(document).height())},e.prototype.sizeContainer=function(t,e){function i(){a.$lightbox.find(".lb-dataContainer").width(s),a.$lightbox.find(".lb-prevLink").height(o),a.$lightbox.find(".lb-nextLink").height(o),a.showImage()}var a=this,n=this.$outerContainer.outerWidth(),r=this.$outerContainer.outerHeight(),s=t+this.containerPadding.left+this.containerPadding.right+this.imageBorderWidth.left+this.imageBorderWidth.right,o=e+this.containerPadding.top+this.containerPadding.bottom+this.imageBorderWidth.top+this.imageBorderWidth.bottom;n!==s||r!==o?this.$outerContainer.animate({width:s,height:o},this.options.resizeDuration,"swing",function(){i()}):i()},e.prototype.showImage=function(){this.$lightbox.find(".lb-loader").stop(!0).hide(),this.$lightbox.find(".lb-image").fadeIn(this.options.imageFadeDuration),this.updateNav(),this.updateDetails(),this.preloadNeighboringImages(),this.enableKeyboardNav()},e.prototype.updateNav=function(){var t=!1;try{document.createEvent("TouchEvent"),t=!!this.options.alwaysShowNavOnTouchDevices}catch(t){}this.$lightbox.find(".lb-nav").show(),this.album.length>1&&(this.options.wrapAround?(t&&this.$lightbox.find(".lb-prev, .lb-next").css("opacity","1"),this.$lightbox.find(".lb-prev, .lb-next").show()):(this.currentImageIndex>0&&(this.$lightbox.find(".lb-prev").show(),t&&this.$lightbox.find(".lb-prev").css("opacity","1")),this.currentImageIndex<this.album.length-1&&(this.$lightbox.find(".lb-next").show(),t&&this.$lightbox.find(".lb-next").css("opacity","1"))))},e.prototype.updateDetails=function(){var e=this;if("undefined"!=typeof this.album[this.currentImageIndex].title&&""!==this.album[this.currentImageIndex].title){var i=this.$lightbox.find(".lb-caption");this.options.sanitizeTitle?i.text(this.album[this.currentImageIndex].title):i.html(this.album[this.currentImageIndex].title),i.fadeIn("fast").find("a").on("click",function(){t(this).attr("target")!==undefined?window.open(t(this).attr("href"),t(this).attr("target")):location.href=t(this).attr("href")})}if(this.album.length>1&&this.options.showImageNumberLabel){var a=this.imageCountLabel(this.currentImageIndex+1,this.album.length);this.$lightbox.find(".lb-number").text(a).fadeIn("fast")}else this.$lightbox.find(".lb-number").hide();this.$outerContainer.removeClass("animating"),this.$lightbox.find(".lb-dataContainer").fadeIn(this.options.resizeDuration,function(){return e.sizeOverlay()})},e.prototype.preloadNeighboringImages=function(){if(this.album.length>this.currentImageIndex+1){(new Image).src=this.album[this.currentImageIndex+1].link}if(this.currentImageIndex>0){(new Image).src=this.album[this.currentImageIndex-1].link}},e.prototype.enableKeyboardNav=function(){t(document).on("keyup.keyboard",t.proxy(this.keyboardAction,this))},e.prototype.disableKeyboardNav=function(){t(document).off(".keyboard")},e.prototype.keyboardAction=function(t){var e=t.keyCode,i=String.fromCharCode(e).toLowerCase();27===e||i.match(/x|o|c/)?this.end():"p"===i||37===e?0!==this.currentImageIndex?this.changeImage(this.currentImageIndex-1):this.options.wrapAround&&this.album.length>1&&this.changeImage(this.album.length-1):"n"!==i&&39!==e||(this.currentImageIndex!==this.album.length-1?this.changeImage(this.currentImageIndex+1):this.options.wrapAround&&this.album.length>1&&this.changeImage(0))},e.prototype.end=function(){this.disableKeyboardNav(),t(window).off("resize",this.sizeOverlay),this.$lightbox.fadeOut(this.options.fadeDuration),this.$overlay.fadeOut(this.options.fadeDuration),t("select, object, embed").css({visibility:"visible"}),this.options.disableScrolling&&t("body").removeClass("lb-disable-scrolling")},new e}),$(document).ready(function(){lightbox.option({disableScrolling:!0,albumLabel:""})});
|
data/assets/js/app/app.js
DELETED
data/assets/js/app/mixitup.js
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
/**!
|
2
|
-
* MixItUp v2.1.11
|
3
|
-
*
|
4
|
-
* @copyright Copyright 2015 KunkaLabs Limited.
|
5
|
-
* @author KunkaLabs Limited.
|
6
|
-
* @link https://mixitup.kunkalabs.com
|
7
|
-
*
|
8
|
-
* @license Commercial use requires a commercial license.
|
9
|
-
* https://mixitup.kunkalabs.com/licenses/
|
10
|
-
*
|
11
|
-
* Non-commercial use permitted under terms of CC-BY-NC license.
|
12
|
-
* http://creativecommons.org/licenses/by-nc/3.0/
|
13
|
-
*/
|
14
|
-
!function(a,b){"use strict";a.MixItUp=function(){var b=this;b._execAction("_constructor",0),a.extend(b,{selectors:{target:".mix",filter:".filter",sort:".sort"},animation:{enable:!0,effects:"fade scale",duration:600,easing:"ease",perspectiveDistance:"3000",perspectiveOrigin:"50% 50%",queue:!0,queueLimit:1,animateChangeLayout:!1,animateResizeContainer:!0,animateResizeTargets:!1,staggerSequence:!1,reverseOut:!1},callbacks:{onMixLoad:!1,onMixStart:!1,onMixBusy:!1,onMixEnd:!1,onMixFail:!1,_user:!1},controls:{enable:!0,live:!1,toggleFilterButtons:!1,toggleLogic:"or",activeClass:"active"},layout:{display:"inline-block",containerClass:"",containerClassFail:"fail"},load:{filter:"all",sort:!1},_$body:null,_$container:null,_$targets:null,_$parent:null,_$sortButtons:null,_$filterButtons:null,_suckMode:!1,_mixing:!1,_sorting:!1,_clicking:!1,_loading:!0,_changingLayout:!1,_changingClass:!1,_changingDisplay:!1,_origOrder:[],_startOrder:[],_newOrder:[],_activeFilter:null,_toggleArray:[],_toggleString:"",_activeSort:"default:asc",_newSort:null,_startHeight:null,_newHeight:null,_incPadding:!0,_newDisplay:null,_newClass:null,_targetsBound:0,_targetsDone:0,_queue:[],_$show:a(),_$hide:a()}),b._execAction("_constructor",1)},a.MixItUp.prototype={constructor:a.MixItUp,_instances:{},_handled:{_filter:{},_sort:{}},_bound:{_filter:{},_sort:{}},_actions:{},_filters:{},extend:function(b){for(var c in b)a.MixItUp.prototype[c]=b[c]},addAction:function(b,c,d,e){a.MixItUp.prototype._addHook("_actions",b,c,d,e)},addFilter:function(b,c,d,e){a.MixItUp.prototype._addHook("_filters",b,c,d,e)},_addHook:function(b,c,d,e,f){var g=a.MixItUp.prototype[b],h={};f=1===f||"post"===f?"post":"pre",h[c]={},h[c][f]={},h[c][f][d]=e,a.extend(!0,g,h)},_init:function(b,c){var d=this;if(d._execAction("_init",0,arguments),c&&a.extend(!0,d,c),d._$body=a("body"),d._domNode=b,d._$container=a(b),d._$container.addClass(d.layout.containerClass),d._id=b.id,d._platformDetect(),d._brake=d._getPrefixedCSS("transition","none"),d._refresh(!0),d._$parent=d._$targets.parent().length?d._$targets.parent():d._$container,d.load.sort&&(d._newSort=d._parseSort(d.load.sort),d._newSortString=d.load.sort,d._activeSort=d.load.sort,d._sort(),d._printSort()),d._activeFilter="all"===d.load.filter?d.selectors.target:"none"===d.load.filter?"":d.load.filter,d.controls.enable&&d._bindHandlers(),d.controls.toggleFilterButtons){d._buildToggleArray();for(var e=0;e<d._toggleArray.length;e++)d._updateControls({filter:d._toggleArray[e],sort:d._activeSort},!0)}else d.controls.enable&&d._updateControls({filter:d._activeFilter,sort:d._activeSort});d._filter(),d._init=!0,d._$container.data("mixItUp",d),d._execAction("_init",1,arguments),d._buildState(),d._$targets.css(d._brake),d._goMix(d.animation.enable)},_platformDetect:function(){var a=this,c=["Webkit","Moz","O","ms"],d=["webkit","moz"],e=window.navigator.appVersion.match(/Chrome\/(\d+)\./)||!1,f="undefined"!=typeof InstallTrigger,g=function(a){for(var b=0;b<c.length;b++)if(c[b]+"Transition"in a.style)return{prefix:"-"+c[b].toLowerCase()+"-",vendor:c[b]};return"transition"in a.style?"":!1},h=g(a._domNode);a._execAction("_platformDetect",0),a._chrome=e?parseInt(e[1],10):!1,a._ff=f?parseInt(window.navigator.userAgent.match(/rv:([^)]+)\)/)[1]):!1,a._prefix=h.prefix,a._vendor=h.vendor,a._suckMode=window.atob&&a._prefix?!1:!0,a._suckMode&&(a.animation.enable=!1),a._ff&&a._ff<=4&&(a.animation.enable=!1);for(var i=0;i<d.length&&!window.requestAnimationFrame;i++)window.requestAnimationFrame=window[d[i]+"RequestAnimationFrame"];"function"!=typeof Object.getPrototypeOf&&("object"==typeof"test".__proto__?Object.getPrototypeOf=function(a){return a.__proto__}:Object.getPrototypeOf=function(a){return a.constructor.prototype}),a._domNode.nextElementSibling===b&&Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var a=this.nextSibling;a;){if(1===a.nodeType)return a;a=a.nextSibling}return null}}),a._execAction("_platformDetect",1)},_refresh:function(a,c){var d=this;d._execAction("_refresh",0,arguments),d._$targets=d._$container.find(d.selectors.target);for(var e=0;e<d._$targets.length;e++){var f=d._$targets[e];if(f.dataset===b||c){f.dataset={};for(var g=0;g<f.attributes.length;g++){var h=f.attributes[g],i=h.name,j=h.value;if(i.indexOf("data-")>-1){var k=d._helpers._camelCase(i.substring(5,i.length));f.dataset[k]=j}}}f.mixParent===b&&(f.mixParent=d._id)}if(d._$targets.length&&a||!d._origOrder.length&&d._$targets.length){d._origOrder=[];for(var e=0;e<d._$targets.length;e++){var f=d._$targets[e];d._origOrder.push(f)}}d._execAction("_refresh",1,arguments)},_bindHandlers:function(){var c=this,d=a.MixItUp.prototype._bound._filter,e=a.MixItUp.prototype._bound._sort;c._execAction("_bindHandlers",0),c.controls.live?c._$body.on("click.mixItUp."+c._id,c.selectors.sort,function(){c._processClick(a(this),"sort")}).on("click.mixItUp."+c._id,c.selectors.filter,function(){c._processClick(a(this),"filter")}):(c._$sortButtons=a(c.selectors.sort),c._$filterButtons=a(c.selectors.filter),c._$sortButtons.on("click.mixItUp."+c._id,function(){c._processClick(a(this),"sort")}),c._$filterButtons.on("click.mixItUp."+c._id,function(){c._processClick(a(this),"filter")})),d[c.selectors.filter]=d[c.selectors.filter]===b?1:d[c.selectors.filter]+1,e[c.selectors.sort]=e[c.selectors.sort]===b?1:e[c.selectors.sort]+1,c._execAction("_bindHandlers",1)},_processClick:function(c,d){var e=this,f=function(c,d,f){var g=a.MixItUp.prototype;g._handled["_"+d][e.selectors[d]]=g._handled["_"+d][e.selectors[d]]===b?1:g._handled["_"+d][e.selectors[d]]+1,g._handled["_"+d][e.selectors[d]]===g._bound["_"+d][e.selectors[d]]&&(c[(f?"remove":"add")+"Class"](e.controls.activeClass),delete g._handled["_"+d][e.selectors[d]])};if(e._execAction("_processClick",0,arguments),!e._mixing||e.animation.queue&&e._queue.length<e.animation.queueLimit){if(e._clicking=!0,"sort"===d){var g=c.attr("data-sort");(!c.hasClass(e.controls.activeClass)||g.indexOf("random")>-1)&&(a(e.selectors.sort).removeClass(e.controls.activeClass),f(c,d),e.sort(g))}if("filter"===d){var h,i=c.attr("data-filter"),j="or"===e.controls.toggleLogic?",":"";e.controls.toggleFilterButtons?(e._buildToggleArray(),c.hasClass(e.controls.activeClass)?(f(c,d,!0),h=e._toggleArray.indexOf(i),e._toggleArray.splice(h,1)):(f(c,d),e._toggleArray.push(i)),e._toggleArray=a.grep(e._toggleArray,function(a){return a}),e._toggleString=e._toggleArray.join(j),e.filter(e._toggleString)):c.hasClass(e.controls.activeClass)||(a(e.selectors.filter).removeClass(e.controls.activeClass),f(c,d),e.filter(i))}e._execAction("_processClick",1,arguments)}else"function"==typeof e.callbacks.onMixBusy&&e.callbacks.onMixBusy.call(e._domNode,e._state,e),e._execAction("_processClickBusy",1,arguments)},_buildToggleArray:function(){var a=this,b=a._activeFilter.replace(/\s/g,"");if(a._execAction("_buildToggleArray",0,arguments),"or"===a.controls.toggleLogic)a._toggleArray=b.split(",");else{a._toggleArray=b.split("."),!a._toggleArray[0]&&a._toggleArray.shift();for(var c,d=0;c=a._toggleArray[d];d++)a._toggleArray[d]="."+c}a._execAction("_buildToggleArray",1,arguments)},_updateControls:function(c,d){var e=this,f={filter:c.filter,sort:c.sort},g=function(a,b){try{d&&"filter"===h&&"none"!==f.filter&&""!==f.filter?a.filter(b).addClass(e.controls.activeClass):a.removeClass(e.controls.activeClass).filter(b).addClass(e.controls.activeClass)}catch(c){}},h="filter",i=null;e._execAction("_updateControls",0,arguments),c.filter===b&&(f.filter=e._activeFilter),c.sort===b&&(f.sort=e._activeSort),f.filter===e.selectors.target&&(f.filter="all");for(var j=0;2>j;j++)i=e.controls.live?a(e.selectors[h]):e["_$"+h+"Buttons"],i&&g(i,"[data-"+h+'="'+f[h]+'"]'),h="sort";e._execAction("_updateControls",1,arguments)},_filter:function(){var b=this;b._execAction("_filter",0);for(var c=0;c<b._$targets.length;c++){var d=a(b._$targets[c]);d.is(b._activeFilter)?b._$show=b._$show.add(d):b._$hide=b._$hide.add(d)}b._execAction("_filter",1)},_sort:function(){var a=this,b=function(a){for(var b=a.slice(),c=b.length,d=c;d--;){var e=parseInt(Math.random()*c),f=b[d];b[d]=b[e],b[e]=f}return b};a._execAction("_sort",0),a._startOrder=[];for(var c=0;c<a._$targets.length;c++){var d=a._$targets[c];a._startOrder.push(d)}switch(a._newSort[0].sortBy){case"default":a._newOrder=a._origOrder;break;case"random":a._newOrder=b(a._startOrder);break;case"custom":a._newOrder=a._newSort[0].order;break;default:a._newOrder=a._startOrder.concat().sort(function(b,c){return a._compare(b,c)})}a._execAction("_sort",1)},_compare:function(a,b,c){c=c?c:0;var d=this,e=d._newSort[c].order,f=function(a){return a.dataset[d._newSort[c].sortBy]||0},g=isNaN(1*f(a))?f(a).toLowerCase():1*f(a),h=isNaN(1*f(b))?f(b).toLowerCase():1*f(b);return h>g?"asc"===e?-1:1:g>h?"asc"===e?1:-1:g===h&&d._newSort.length>c+1?d._compare(a,b,c+1):0},_printSort:function(a){var b=this,c=a?b._startOrder:b._newOrder,d=b._$parent[0].querySelectorAll(b.selectors.target),e=d.length?d[d.length-1].nextElementSibling:null,f=document.createDocumentFragment();b._execAction("_printSort",0,arguments);for(var g=0;g<d.length;g++){var h=d[g],i=h.nextSibling;"absolute"!==h.style.position&&(i&&"#text"===i.nodeName&&b._$parent[0].removeChild(i),b._$parent[0].removeChild(h))}for(var g=0;g<c.length;g++){var j=c[g];if("default"!==b._newSort[0].sortBy||"desc"!==b._newSort[0].order||a)f.appendChild(j),f.appendChild(document.createTextNode(" "));else{var k=f.firstChild;f.insertBefore(j,k),f.insertBefore(document.createTextNode(" "),j)}}e?b._$parent[0].insertBefore(f,e):b._$parent[0].appendChild(f),b._execAction("_printSort",1,arguments)},_parseSort:function(a){for(var b=this,c="string"==typeof a?a.split(" "):[a],d=[],e=0;e<c.length;e++){var f="string"==typeof a?c[e].split(":"):["custom",c[e]],g={sortBy:b._helpers._camelCase(f[0]),order:f[1]||"asc"};if(d.push(g),"default"===g.sortBy||"random"===g.sortBy)break}return b._execFilter("_parseSort",d,arguments)},_parseEffects:function(){var a=this,b={opacity:"",transformIn:"",transformOut:"",filter:""},c=function(b,c,d){if(a.animation.effects.indexOf(b)>-1){if(c){var e=a.animation.effects.indexOf(b+"(");if(e>-1){var f=a.animation.effects.substring(e),g=/\(([^)]+)\)/.exec(f),h=g[1];return{val:h}}}return!0}return!1},d=function(a,b){return b?"-"===a.charAt(0)?a.substr(1,a.length):"-"+a:a},e=function(a,e){for(var f=[["scale",".01"],["translateX","20px"],["translateY","20px"],["translateZ","20px"],["rotateX","90deg"],["rotateY","90deg"],["rotateZ","180deg"]],g=0;g<f.length;g++){var h=f[g][0],i=f[g][1],j=e&&"scale"!==h;b[a]+=c(h)?h+"("+d(c(h,!0).val||i,j)+") ":""}};return b.opacity=c("fade")?c("fade",!0).val||"0":"1",e("transformIn"),a.animation.reverseOut?e("transformOut",!0):b.transformOut=b.transformIn,b.transition={},b.transition=a._getPrefixedCSS("transition","all "+a.animation.duration+"ms "+a.animation.easing+", opacity "+a.animation.duration+"ms linear"),a.animation.stagger=c("stagger")?!0:!1,a.animation.staggerDuration=parseInt(c("stagger")&&c("stagger",!0).val?c("stagger",!0).val:100),a._execFilter("_parseEffects",b)},_buildState:function(a){var b=this,c={};return b._execAction("_buildState",0),c={activeFilter:""===b._activeFilter?"none":b._activeFilter,activeSort:a&&b._newSortString?b._newSortString:b._activeSort,fail:!b._$show.length&&""!==b._activeFilter,$targets:b._$targets,$show:b._$show,$hide:b._$hide,totalTargets:b._$targets.length,totalShow:b._$show.length,totalHide:b._$hide.length,display:a&&b._newDisplay?b._newDisplay:b.layout.display},a?b._execFilter("_buildState",c):(b._state=c,void b._execAction("_buildState",1))},_goMix:function(a){var b=this,c=function(){b._chrome&&31===b._chrome&&f(b._$parent[0]),b._setInter(),d()},d=function(){var a=window.pageYOffset,c=window.pageXOffset;document.documentElement.scrollHeight;b._getInterMixData(),b._setFinal(),b._getFinalMixData(),window.pageYOffset!==a&&window.scrollTo(c,a),b._prepTargets(),window.requestAnimationFrame?requestAnimationFrame(e):setTimeout(function(){e()},20)},e=function(){b._animateTargets(),0===b._targetsBound&&b._cleanUp()},f=function(a){var b=a.parentElement,c=document.createElement("div"),d=document.createDocumentFragment();b.insertBefore(c,a),d.appendChild(a),b.replaceChild(a,c)},g=b._buildState(!0);b._execAction("_goMix",0,arguments),!b.animation.duration&&(a=!1),b._mixing=!0,b._$container.removeClass(b.layout.containerClassFail),"function"==typeof b.callbacks.onMixStart&&b.callbacks.onMixStart.call(b._domNode,b._state,g,b),b._$container.trigger("mixStart",[b._state,g,b]),b._getOrigMixData(),a&&!b._suckMode?window.requestAnimationFrame?requestAnimationFrame(c):c():b._cleanUp(),b._execAction("_goMix",1,arguments)},_getTargetData:function(a,b){var c,d=this;a.dataset[b+"PosX"]=a.offsetLeft,a.dataset[b+"PosY"]=a.offsetTop,d.animation.animateResizeTargets&&(c=d._suckMode?{marginBottom:"",marginRight:""}:window.getComputedStyle(a),a.dataset[b+"MarginBottom"]=parseInt(c.marginBottom),a.dataset[b+"MarginRight"]=parseInt(c.marginRight),a.dataset[b+"Width"]=a.offsetWidth,a.dataset[b+"Height"]=a.offsetHeight)},_getOrigMixData:function(){var a=this,b=a._suckMode?{boxSizing:""}:window.getComputedStyle(a._$parent[0]),c=b.boxSizing||b[a._vendor+"BoxSizing"];a._incPadding="border-box"===c,a._execAction("_getOrigMixData",0),!a._suckMode&&(a.effects=a._parseEffects()),a._$toHide=a._$hide.filter(":visible"),a._$toShow=a._$show.filter(":hidden"),a._$pre=a._$targets.filter(":visible"),a._startHeight=a._incPadding?a._$parent.outerHeight():a._$parent.height();for(var d=0;d<a._$pre.length;d++){var e=a._$pre[d];a._getTargetData(e,"orig")}a._execAction("_getOrigMixData",1)},_setInter:function(){var a=this;a._execAction("_setInter",0),a._changingLayout&&a.animation.animateChangeLayout?(a._$toShow.css("display",a._newDisplay),a._changingClass&&a._$container.removeClass(a.layout.containerClass).addClass(a._newClass)):a._$toShow.css("display",a.layout.display),a._execAction("_setInter",1)},_getInterMixData:function(){var a=this;a._execAction("_getInterMixData",0);for(var b=0;b<a._$toShow.length;b++){var c=a._$toShow[b];a._getTargetData(c,"inter")}for(var b=0;b<a._$pre.length;b++){var c=a._$pre[b];a._getTargetData(c,"inter")}a._execAction("_getInterMixData",1)},_setFinal:function(){var a=this;a._execAction("_setFinal",0),a._sorting&&a._printSort(),a._$toHide.removeStyle("display"),a._changingLayout&&a.animation.animateChangeLayout&&a._$pre.css("display",a._newDisplay),a._execAction("_setFinal",1)},_getFinalMixData:function(){var a=this;a._execAction("_getFinalMixData",0);for(var b=0;b<a._$toShow.length;b++){var c=a._$toShow[b];a._getTargetData(c,"final")}for(var b=0;b<a._$pre.length;b++){var c=a._$pre[b];a._getTargetData(c,"final")}a._newHeight=a._incPadding?a._$parent.outerHeight():a._$parent.height(),a._sorting&&a._printSort(!0),a._$toShow.removeStyle("display"),a._$pre.css("display",a.layout.display),a._changingClass&&a.animation.animateChangeLayout&&a._$container.removeClass(a._newClass).addClass(a.layout.containerClass),a._execAction("_getFinalMixData",1)},_prepTargets:function(){var b=this,c={_in:b._getPrefixedCSS("transform",b.effects.transformIn),_out:b._getPrefixedCSS("transform",b.effects.transformOut)};b._execAction("_prepTargets",0),b.animation.animateResizeContainer&&b._$parent.css("height",b._startHeight+"px");for(var d=0;d<b._$toShow.length;d++){var e=b._$toShow[d],f=a(e);e.style.opacity=b.effects.opacity,e.style.display=b._changingLayout&&b.animation.animateChangeLayout?b._newDisplay:b.layout.display,f.css(c._in),b.animation.animateResizeTargets&&(e.style.width=e.dataset.finalWidth+"px",e.style.height=e.dataset.finalHeight+"px",e.style.marginRight=-(e.dataset.finalWidth-e.dataset.interWidth)+1*e.dataset.finalMarginRight+"px",e.style.marginBottom=-(e.dataset.finalHeight-e.dataset.interHeight)+1*e.dataset.finalMarginBottom+"px")}for(var d=0;d<b._$pre.length;d++){var e=b._$pre[d],f=a(e),g={x:e.dataset.origPosX-e.dataset.interPosX,y:e.dataset.origPosY-e.dataset.interPosY},c=b._getPrefixedCSS("transform","translate("+g.x+"px,"+g.y+"px)");f.css(c),b.animation.animateResizeTargets&&(e.style.width=e.dataset.origWidth+"px",e.style.height=e.dataset.origHeight+"px",e.dataset.origWidth-e.dataset.finalWidth&&(e.style.marginRight=-(e.dataset.origWidth-e.dataset.interWidth)+1*e.dataset.origMarginRight+"px"),e.dataset.origHeight-e.dataset.finalHeight&&(e.style.marginBottom=-(e.dataset.origHeight-e.dataset.interHeight)+1*e.dataset.origMarginBottom+"px"))}b._execAction("_prepTargets",1)},_animateTargets:function(){var b=this;b._execAction("_animateTargets",0),b._targetsDone=0,b._targetsBound=0,b._$parent.css(b._getPrefixedCSS("perspective",b.animation.perspectiveDistance+"px")).css(b._getPrefixedCSS("perspective-origin",b.animation.perspectiveOrigin)),b.animation.animateResizeContainer&&b._$parent.css(b._getPrefixedCSS("transition","height "+b.animation.duration+"ms ease")).css("height",b._newHeight+"px");for(var c=0;c<b._$toShow.length;c++){var d=b._$toShow[c],e=a(d),f={x:d.dataset.finalPosX-d.dataset.interPosX,y:d.dataset.finalPosY-d.dataset.interPosY},g=b._getDelay(c),h={};d.style.opacity="";for(var i=0;2>i;i++){var j=0===i?j=b._prefix:"";b._ff&&b._ff<=20&&(h[j+"transition-property"]="all",h[j+"transition-timing-function"]=b.animation.easing+"ms",h[j+"transition-duration"]=b.animation.duration+"ms"),h[j+"transition-delay"]=g+"ms",h[j+"transform"]="translate("+f.x+"px,"+f.y+"px)"}(b.effects.transform||b.effects.opacity)&&b._bindTargetDone(e),b._ff&&b._ff<=20?e.css(h):e.css(b.effects.transition).css(h)}for(var c=0;c<b._$pre.length;c++){var d=b._$pre[c],e=a(d),f={x:d.dataset.finalPosX-d.dataset.interPosX,y:d.dataset.finalPosY-d.dataset.interPosY},g=b._getDelay(c);(d.dataset.finalPosX!==d.dataset.origPosX||d.dataset.finalPosY!==d.dataset.origPosY)&&b._bindTargetDone(e),e.css(b._getPrefixedCSS("transition","all "+b.animation.duration+"ms "+b.animation.easing+" "+g+"ms")),e.css(b._getPrefixedCSS("transform","translate("+f.x+"px,"+f.y+"px)")),b.animation.animateResizeTargets&&(d.dataset.origWidth-d.dataset.finalWidth&&1*d.dataset.finalWidth&&(d.style.width=d.dataset.finalWidth+"px",d.style.marginRight=-(d.dataset.finalWidth-d.dataset.interWidth)+1*d.dataset.finalMarginRight+"px"),d.dataset.origHeight-d.dataset.finalHeight&&1*d.dataset.finalHeight&&(d.style.height=d.dataset.finalHeight+"px",d.style.marginBottom=-(d.dataset.finalHeight-d.dataset.interHeight)+1*d.dataset.finalMarginBottom+"px"))}b._changingClass&&b._$container.removeClass(b.layout.containerClass).addClass(b._newClass);for(var c=0;c<b._$toHide.length;c++){for(var d=b._$toHide[c],e=a(d),g=b._getDelay(c),k={},i=0;2>i;i++){var j=0===i?j=b._prefix:"";k[j+"transition-delay"]=g+"ms",k[j+"transform"]=b.effects.transformOut,k.opacity=b.effects.opacity}e.css(b.effects.transition).css(k),(b.effects.transform||b.effects.opacity)&&b._bindTargetDone(e)}b._execAction("_animateTargets",1)},_bindTargetDone:function(b){var c=this,d=b[0];c._execAction("_bindTargetDone",0,arguments),d.dataset.bound||(d.dataset.bound=!0,c._targetsBound++,b.on("webkitTransitionEnd.mixItUp transitionend.mixItUp",function(e){(e.originalEvent.propertyName.indexOf("transform")>-1||e.originalEvent.propertyName.indexOf("opacity")>-1)&&a(e.originalEvent.target).is(c.selectors.target)&&(b.off(".mixItUp"),d.dataset.bound="",c._targetDone())})),c._execAction("_bindTargetDone",1,arguments)},_targetDone:function(){var a=this;a._execAction("_targetDone",0),a._targetsDone++,a._targetsDone===a._targetsBound&&a._cleanUp(),a._execAction("_targetDone",1)},_cleanUp:function(){var b=this,c=b.animation.animateResizeTargets?"transform opacity width height margin-bottom margin-right":"transform opacity",d=function(){b._$targets.removeStyle("transition",b._prefix)};b._execAction("_cleanUp",0),b._changingLayout?b._$show.css("display",b._newDisplay):b._$show.css("display",b.layout.display),b._$targets.css(b._brake),b._$targets.removeStyle(c,b._prefix).removeAttr("data-inter-pos-x data-inter-pos-y data-final-pos-x data-final-pos-y data-orig-pos-x data-orig-pos-y data-orig-height data-orig-width data-final-height data-final-width data-inter-width data-inter-height data-orig-margin-right data-orig-margin-bottom data-inter-margin-right data-inter-margin-bottom data-final-margin-right data-final-margin-bottom"),b._$hide.removeStyle("display"),b._$parent.removeStyle("height transition perspective-distance perspective perspective-origin-x perspective-origin-y perspective-origin perspectiveOrigin",b._prefix),b._sorting&&(b._printSort(),b._activeSort=b._newSortString,b._sorting=!1),b._changingLayout&&(b._changingDisplay&&(b.layout.display=b._newDisplay,b._changingDisplay=!1),b._changingClass&&(b._$parent.removeClass(b.layout.containerClass).addClass(b._newClass),b.layout.containerClass=b._newClass,b._changingClass=!1),b._changingLayout=!1),b._refresh(),b._buildState(),b._state.fail&&b._$container.addClass(b.layout.containerClassFail),b._$show=a(),b._$hide=a(),window.requestAnimationFrame&&requestAnimationFrame(d),b._mixing=!1,"function"==typeof b.callbacks._user&&b.callbacks._user.call(b._domNode,b._state,b),"function"==typeof b.callbacks.onMixEnd&&b.callbacks.onMixEnd.call(b._domNode,b._state,b),b._$container.trigger("mixEnd",[b._state,b]),b._state.fail&&("function"==typeof b.callbacks.onMixFail&&b.callbacks.onMixFail.call(b._domNode,b._state,b),b._$container.trigger("mixFail",[b._state,b])),b._loading&&("function"==typeof b.callbacks.onMixLoad&&b.callbacks.onMixLoad.call(b._domNode,b._state,b),b._$container.trigger("mixLoad",[b._state,b])),b._queue.length&&(b._execAction("_queue",0),b.multiMix(b._queue[0][0],b._queue[0][1],b._queue[0][2]),b._queue.splice(0,1)),b._execAction("_cleanUp",1),b._loading=!1},_getPrefixedCSS:function(a,b,c){var d=this,e={},f="",g=-1;for(g=0;2>g;g++)f=0===g?d._prefix:"",c?e[f+a]=f+b:e[f+a]=b;return d._execFilter("_getPrefixedCSS",e,arguments)},_getDelay:function(a){var b=this,c="function"==typeof b.animation.staggerSequence?b.animation.staggerSequence.call(b._domNode,a,b._state):a,d=b.animation.stagger?c*b.animation.staggerDuration:0;return b._execFilter("_getDelay",d,arguments)},_parseMultiMixArgs:function(a){for(var b=this,c={command:null,animate:b.animation.enable,callback:null},d=0;d<a.length;d++){var e=a[d];null!==e&&("object"==typeof e||"string"==typeof e?c.command=e:"boolean"==typeof e?c.animate=e:"function"==typeof e&&(c.callback=e))}return b._execFilter("_parseMultiMixArgs",c,arguments)},_parseInsertArgs:function(b){for(var c=this,d={index:0,$object:a(),multiMix:{filter:c._state.activeFilter},callback:null},e=0;e<b.length;e++){var f=b[e];"number"==typeof f?d.index=f:"object"==typeof f&&f instanceof a?d.$object=f:"object"==typeof f&&c._helpers._isElement(f)?d.$object=a(f):"object"==typeof f&&null!==f?d.multiMix=f:"boolean"!=typeof f||f?"function"==typeof f&&(d.callback=f):d.multiMix=!1}return c._execFilter("_parseInsertArgs",d,arguments)},_execAction:function(a,b,c){var d=this,e=b?"post":"pre";if(!d._actions.isEmptyObject&&d._actions.hasOwnProperty(a))for(var f in d._actions[a][e])d._actions[a][e][f].call(d,c)},_execFilter:function(a,b,c){var d=this;if(d._filters.isEmptyObject||!d._filters.hasOwnProperty(a))return b;for(var e in d._filters[a])return d._filters[a][e].call(d,c)},_helpers:{_camelCase:function(a){return a.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})},_isElement:function(a){return window.HTMLElement?a instanceof HTMLElement:null!==a&&1===a.nodeType&&"string"===a.nodeName}},isMixing:function(){var a=this;return a._execFilter("isMixing",a._mixing)},filter:function(){var a=this,b=a._parseMultiMixArgs(arguments);a._clicking&&(a._toggleString=""),a.multiMix({filter:b.command},b.animate,b.callback)},sort:function(){var a=this,b=a._parseMultiMixArgs(arguments);a.multiMix({sort:b.command},b.animate,b.callback)},changeLayout:function(){var a=this,b=a._parseMultiMixArgs(arguments);a.multiMix({changeLayout:b.command},b.animate,b.callback)},multiMix:function(){var a=this,c=a._parseMultiMixArgs(arguments);if(a._execAction("multiMix",0,arguments),a._mixing)a.animation.queue&&a._queue.length<a.animation.queueLimit?(a._queue.push(arguments),a.controls.enable&&!a._clicking&&a._updateControls(c.command),a._execAction("multiMixQueue",1,arguments)):("function"==typeof a.callbacks.onMixBusy&&a.callbacks.onMixBusy.call(a._domNode,a._state,a),a._$container.trigger("mixBusy",[a._state,a]),a._execAction("multiMixBusy",1,arguments));else{a.controls.enable&&!a._clicking&&(a.controls.toggleFilterButtons&&a._buildToggleArray(),a._updateControls(c.command,a.controls.toggleFilterButtons)),a._queue.length<2&&(a._clicking=!1),delete a.callbacks._user,c.callback&&(a.callbacks._user=c.callback);var d=c.command.sort,e=c.command.filter,f=c.command.changeLayout;a._refresh(),d&&(a._newSort=a._parseSort(d),a._newSortString=d,a._sorting=!0,a._sort()),e!==b&&(e="all"===e?a.selectors.target:e,a._activeFilter=e),a._filter(),f&&(a._newDisplay="string"==typeof f?f:f.display||a.layout.display,a._newClass=f.containerClass||"",(a._newDisplay!==a.layout.display||a._newClass!==a.layout.containerClass)&&(a._changingLayout=!0,a._changingClass=a._newClass!==a.layout.containerClass,a._changingDisplay=a._newDisplay!==a.layout.display)),a._$targets.css(a._brake),a._goMix(c.animate^a.animation.enable?c.animate:a.animation.enable),a._execAction("multiMix",1,arguments)}},insert:function(){var a=this,b=a._parseInsertArgs(arguments),c="function"==typeof b.callback?b.callback:null,d=document.createDocumentFragment(),e=function(){return a._refresh(),a._$targets.length?b.index<a._$targets.length||!a._$targets.length?a._$targets[b.index]:a._$targets[a._$targets.length-1].nextElementSibling:a._$parent[0].children[0]}();if(a._execAction("insert",0,arguments),b.$object){for(var f=0;f<b.$object.length;f++){var g=b.$object[f];d.appendChild(g),d.appendChild(document.createTextNode(" "))}a._$parent[0].insertBefore(d,e)}a._execAction("insert",1,arguments),"object"==typeof b.multiMix&&a.multiMix(b.multiMix,c)},prepend:function(){var a=this,b=a._parseInsertArgs(arguments);a.insert(0,b.$object,b.multiMix,b.callback)},append:function(){var a=this,b=a._parseInsertArgs(arguments);a.insert(a._state.totalTargets,b.$object,b.multiMix,b.callback)},getOption:function(a){var c=this,d=function(a,c){for(var d=c.split("."),e=d.pop(),f=d.length,g=1,h=d[0]||c;(a=a[h])&&f>g;)h=d[g],g++;return a!==b?a[e]!==b?a[e]:a:void 0};return a?c._execFilter("getOption",d(c,a),arguments):c},setOptions:function(b){var c=this;c._execAction("setOptions",0,arguments),"object"==typeof b&&a.extend(!0,c,b),c._execAction("setOptions",1,arguments)},getState:function(){var a=this;return a._execFilter("getState",a._state,a)},forceRefresh:function(){var a=this;a._refresh(!1,!0)},destroy:function(b){var c=this,d=a.MixItUp.prototype._bound._filter,e=a.MixItUp.prototype._bound._sort;c._execAction("destroy",0,arguments),c._$body.add(a(c.selectors.sort)).add(a(c.selectors.filter)).off(".mixItUp");for(var f=0;f<c._$targets.length;f++){var g=c._$targets[f];b&&(g.style.display=""),delete g.mixParent}c._execAction("destroy",1,arguments),d[c.selectors.filter]&&d[c.selectors.filter]>1?d[c.selectors.filter]--:1===d[c.selectors.filter]&&delete d[c.selectors.filter],e[c.selectors.sort]&&e[c.selectors.sort]>1?e[c.selectors.sort]--:1===e[c.selectors.sort]&&delete e[c.selectors.sort],delete a.MixItUp.prototype._instances[c._id]}},a.fn.mixItUp=function(){var c,d=arguments,e=[],f=function(b,c){var d=new a.MixItUp,e=function(){return("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6).toUpperCase()};d._execAction("_instantiate",0,arguments),b.id=b.id?b.id:"MixItUp"+e(),d._instances[b.id]||(d._instances[b.id]=d,d._init(b,c)),d._execAction("_instantiate",1,arguments)};return c=this.each(function(){if(d&&"string"==typeof d[0]){var c=a.MixItUp.prototype._instances[this.id];if("isLoaded"===d[0])e.push(c?!0:!1);else{var g=c[d[0]](d[1],d[2],d[3]);g!==b&&e.push(g)}}else f(this,d[0])}),e.length?e.length>1?e:e[0]:c},a.fn.removeStyle=function(c,d){return d=d?d:"",this.each(function(){for(var e=this,f=c.split(" "),g=0;g<f.length;g++)for(var h=0;4>h;h++){switch(h){case 0:var i=f[g];break;case 1:var i=a.MixItUp.prototype._helpers._camelCase(i);break;case 2:var i=d+f[g];break;case 3:var i=a.MixItUp.prototype._helpers._camelCase(d+f[g])}if(e.style[i]!==b&&"unknown"!=typeof e.style[i]&&e.style[i].length>0&&(e.style[i]=""),!d&&1===h)break}e.attributes&&e.attributes.style&&e.attributes.style!==b&&""===e.attributes.style.value&&e.attributes.removeNamedItem("style")})}}(jQuery);
|
15
|
-
|
16
|
-
$(function(){
|
17
|
-
$('#project_grid').mixItUp({
|
18
|
-
animation: {
|
19
|
-
enabled:false
|
20
|
-
}
|
21
|
-
});
|
22
|
-
|
23
|
-
});
|
data/assets/js/sticky-navbar.js
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
$(document).ready(function(){
|
2
|
-
|
3
|
-
var menu = $('#tabbed-nav-bar');
|
4
|
-
|
5
|
-
if(menu.length){
|
6
|
-
|
7
|
-
var origOffsetY = menu.offset().top;
|
8
|
-
var navHeight = $("nav#main-navigation").height;
|
9
|
-
|
10
|
-
var text = $('#tabbed-nav-bar ul.nav-tabs li.active').text();
|
11
|
-
$('#sub-navigation-header').text(text);
|
12
|
-
|
13
|
-
function scroll() {
|
14
|
-
var text = $('#tabbed-nav-bar ul.nav-tabs li.active').text();
|
15
|
-
$('#sub-navigation-header').text(text);
|
16
|
-
$('#sub-navigation-header').hide();
|
17
|
-
|
18
|
-
|
19
|
-
if ( $(window).scrollTop() > origOffsetY) {
|
20
|
-
$('#tabbed-nav-bar').addClass('sticky-nav');
|
21
|
-
$("nav#main-navigation").hide();
|
22
|
-
$('#main-container').css('margin-top','0px');
|
23
|
-
if ($(window).width() < 1200) {
|
24
|
-
$('#tabbed-nav-bar nav').removeClass('navbar-default');
|
25
|
-
$('#tabbed-nav-bar nav').addClass('navbar-inverse');
|
26
|
-
|
27
|
-
|
28
|
-
$('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
|
29
|
-
$('#sub-navigation-header').show();
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
$('#tabbed-nav-bar nav').addClass('navbar-default');
|
33
|
-
$('#tabbed-nav-bar nav').removeClass('navbar-inverse');
|
34
|
-
|
35
|
-
$('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
|
36
|
-
$('#sub-navigation-header').hide();
|
37
|
-
}
|
38
|
-
}
|
39
|
-
else {
|
40
|
-
$('#tabbed-nav-bar').removeClass('sticky-nav');
|
41
|
-
$('#main-container').css('margin-top','-100px');
|
42
|
-
$("nav#main-navigation").show();
|
43
|
-
|
44
|
-
$('#tabbed-nav-bar nav').addClass('navbar-default');
|
45
|
-
$('#tabbed-nav-bar nav').removeClass('navbar-inverse');
|
46
|
-
|
47
|
-
if ($(window).width() < 1200) {
|
48
|
-
$('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
|
49
|
-
$('#sub-navigation-header').show();
|
50
|
-
}
|
51
|
-
else {
|
52
|
-
$('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
|
53
|
-
$('#sub-navigation-header').hide();
|
54
|
-
}
|
55
|
-
|
56
|
-
|
57
|
-
}
|
58
|
-
}
|
59
|
-
scroll();
|
60
|
-
$(window).scroll(function(){
|
61
|
-
scroll();
|
62
|
-
});
|
63
|
-
$(window).resize(scroll);
|
64
|
-
}
|
65
|
-
});
|