Version Description
- Fixed responsive icons issue with table of contents
- Fixed Shuffle option not saving
- Fixed Facebook original icons share to new tab
- Updated Youtube icons
- Fixed Mobile icons not working when shuffle is selected
- Whatsapp mouse hover text corrected
Download this release
Release Info
Developer | socialdude |
Plugin | ![]() |
Version | 2.6.3 |
Comparing to | |
See all releases |
Code changes from version 2.6.2 to 2.6.3
- css/sfsi-admin-style.css +5 -2
- css/sfsi-style.css +13 -14
- images/icons_theme/black/black_youtube.png +0 -0
- images/icons_theme/chrome_blue/chrome_blue_youtube.png +0 -0
- images/icons_theme/chrome_grey/chrome_grey_youtube.png +0 -0
- images/icons_theme/crystal/crystal_youtube.png +0 -0
- images/icons_theme/cubes/cubes_youtube.png +0 -0
- images/icons_theme/cute/cute_youtube.png +0 -0
- images/icons_theme/default/default_youtube.png +0 -0
- images/icons_theme/flat/flat_youtube.png +0 -0
- images/icons_theme/glossy/glossy_youtube.png +0 -0
- images/icons_theme/orange/orange_youtube.png +0 -0
- images/icons_theme/shaded_light/shaded_light_youtube.png +0 -0
- images/icons_theme/silver/silver_youtube.png +0 -0
- images/icons_theme/splash/splash_youtube.png +0 -0
- images/icons_theme/thin/thin_youtube.png +0 -0
- js/custom-admin.js +1 -1
- js/custom.js +349 -335
- js/shuffle/jquery.shuffle.min.js +1 -723
- libs/controllers/sfsi_buttons_controller.php +17 -13
- libs/controllers/sfsi_class_theme_check.php +2 -1
- libs/controllers/sfsiocns_OnPosts.php +124 -119
- libs/sfsi_install_uninstall.php +3 -3
- libs/sfsi_widget.php +3 -3
- readme.txt +10 -2
- ultimate_social_media_icons.php +3 -3
- views/sfsi_option_view3.php +8 -1
- views/sfsi_option_view4.php +3 -2
- views/sfsi_option_view5.php +1 -1
- views/sfsi_options_view.php +1 -13
- views/sfsi_question3.php +25 -40
css/sfsi-admin-style.css
CHANGED
@@ -4708,7 +4708,7 @@ input[type="number"] {
|
|
4708 |
.sfsi-top-banner-higligted-text{
|
4709 |
border: 1px solid green;
|
4710 |
border-radius: 10px;
|
4711 |
-
padding:
|
4712 |
padding-bottom: 5px !important;
|
4713 |
background: white;
|
4714 |
margin: 0!important;
|
@@ -4940,7 +4940,7 @@ text-decoration:none!important;
|
|
4940 |
background: #444;
|
4941 |
border-radius: 8px;
|
4942 |
color: #fff;
|
4943 |
-
content: attr(title);
|
4944 |
margin: -230px auto 0;
|
4945 |
font-size: 12px;
|
4946 |
padding: 13px;
|
@@ -4999,3 +4999,6 @@ text-decoration:none!important;
|
|
4999 |
}
|
5000 |
}
|
5001 |
|
|
|
|
|
|
4708 |
.sfsi-top-banner-higligted-text{
|
4709 |
border: 1px solid green;
|
4710 |
border-radius: 10px;
|
4711 |
+
padding: 15px!important;
|
4712 |
padding-bottom: 5px !important;
|
4713 |
background: white;
|
4714 |
margin: 0!important;
|
4940 |
background: #444;
|
4941 |
border-radius: 8px;
|
4942 |
color: #fff;
|
4943 |
+
content: attr(custom-title);
|
4944 |
margin: -230px auto 0;
|
4945 |
font-size: 12px;
|
4946 |
padding: 13px;
|
4999 |
}
|
5000 |
}
|
5001 |
|
5002 |
+
div#analyst-install-modal * {
|
5003 |
+
box-sizing: unset;
|
5004 |
+
}
|
css/sfsi-style.css
CHANGED
@@ -1185,8 +1185,12 @@ ul.tab_3_icns li .radio {
|
|
1185 |
width: 73px;
|
1186 |
margin: 2px 0 0;
|
1187 |
}
|
1188 |
-
|
1189 |
-
|
|
|
|
|
|
|
|
|
1190 |
}
|
1191 |
|
1192 |
.sfsi_pop_up .button a:hover {
|
@@ -2839,9 +2843,9 @@ ul.cstmskin_iconlist {
|
|
2839 |
margin-left: 0px;
|
2840 |
margin-top: 0px;
|
2841 |
padding: 1px 0;
|
2842 |
-
|
2843 |
text-align: center;
|
2844 |
-
top:
|
2845 |
white-space: pre;
|
2846 |
width: 33px;
|
2847 |
height: 24px;
|
@@ -2884,7 +2888,7 @@ a.sficn {
|
|
2884 |
.disabled_checkbox .sfsi_right_info:before {
|
2885 |
position: absolute;
|
2886 |
content: "";
|
2887 |
-
width:
|
2888 |
height: 60px;
|
2889 |
display: inline-block;
|
2890 |
z-index: 99;
|
@@ -2895,12 +2899,7 @@ a.sficn {
|
|
2895 |
|
2896 |
.disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
|
2897 |
margin-left: -49px !important;
|
2898 |
-
width:
|
2899 |
-
}
|
2900 |
-
|
2901 |
-
.disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
|
2902 |
-
margin-left: -49px !important;
|
2903 |
-
width: 100%;
|
2904 |
}
|
2905 |
|
2906 |
#sfsi_floater .fb_tool_bdr .sfsi_inside .icon2 {
|
@@ -3534,16 +3533,16 @@ ul.sfsi_icn_listing8 li .tb_4_ck{
|
|
3534 |
background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
|
3535 |
font-size: 12px !important;
|
3536 |
left: 67px;
|
3537 |
-
line-height:
|
3538 |
margin-left: 0;
|
3539 |
padding: 1px 3px;
|
3540 |
text-align: center;
|
3541 |
white-space: pre;
|
3542 |
width: 35px;
|
3543 |
-
height:
|
3544 |
z-index: 9;
|
3545 |
display: inline-block;
|
3546 |
-
vertical-align:
|
3547 |
}
|
3548 |
|
3549 |
.sfsi_icons_container>a {
|
1185 |
width: 73px;
|
1186 |
margin: 2px 0 0;
|
1187 |
}
|
1188 |
+
|
1189 |
+
.sfsi_Sicons .sfsi_socialwpr .fb-like.fb_iframe_widget[data-layout="button_count"] {
|
1190 |
+
min-width: 125px;
|
1191 |
+
width: 73px !important;
|
1192 |
+
margin-left: 17px;
|
1193 |
+
margin-right: 24px;
|
1194 |
}
|
1195 |
|
1196 |
.sfsi_pop_up .button a:hover {
|
2843 |
margin-left: 0px;
|
2844 |
margin-top: 0px;
|
2845 |
padding: 1px 0;
|
2846 |
+
position: absolute;
|
2847 |
text-align: center;
|
2848 |
+
top: 33px;
|
2849 |
white-space: pre;
|
2850 |
width: 33px;
|
2851 |
height: 24px;
|
2888 |
.disabled_checkbox .sfsi_right_info:before {
|
2889 |
position: absolute;
|
2890 |
content: "";
|
2891 |
+
width: 500px;
|
2892 |
height: 60px;
|
2893 |
display: inline-block;
|
2894 |
z-index: 99;
|
2899 |
|
2900 |
.disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
|
2901 |
margin-left: -49px !important;
|
2902 |
+
width: 400px;
|
|
|
|
|
|
|
|
|
|
|
2903 |
}
|
2904 |
|
2905 |
#sfsi_floater .fb_tool_bdr .sfsi_inside .icon2 {
|
3533 |
background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
|
3534 |
font-size: 12px !important;
|
3535 |
left: 67px;
|
3536 |
+
line-height: 19px !important;
|
3537 |
margin-left: 0;
|
3538 |
padding: 1px 3px;
|
3539 |
text-align: center;
|
3540 |
white-space: pre;
|
3541 |
width: 35px;
|
3542 |
+
height: 29px;
|
3543 |
z-index: 9;
|
3544 |
display: inline-block;
|
3545 |
+
vertical-align: bottom;
|
3546 |
}
|
3547 |
|
3548 |
.sfsi_icons_container>a {
|
images/icons_theme/black/black_youtube.png
CHANGED
Binary file
|
images/icons_theme/chrome_blue/chrome_blue_youtube.png
CHANGED
Binary file
|
images/icons_theme/chrome_grey/chrome_grey_youtube.png
CHANGED
Binary file
|
images/icons_theme/crystal/crystal_youtube.png
CHANGED
Binary file
|
images/icons_theme/cubes/cubes_youtube.png
CHANGED
Binary file
|
images/icons_theme/cute/cute_youtube.png
CHANGED
Binary file
|
images/icons_theme/default/default_youtube.png
CHANGED
Binary file
|
images/icons_theme/flat/flat_youtube.png
CHANGED
Binary file
|
images/icons_theme/glossy/glossy_youtube.png
CHANGED
Binary file
|
images/icons_theme/orange/orange_youtube.png
CHANGED
Binary file
|
images/icons_theme/shaded_light/shaded_light_youtube.png
CHANGED
Binary file
|
images/icons_theme/silver/silver_youtube.png
CHANGED
Binary file
|
images/icons_theme/splash/splash_youtube.png
CHANGED
Binary file
|
images/icons_theme/thin/thin_youtube.png
CHANGED
Binary file
|
js/custom-admin.js
CHANGED
@@ -1598,7 +1598,7 @@ function sfsi_validator(element, valType) {
|
|
1598 |
else return true;
|
1599 |
break;
|
1600 |
case "checked":
|
1601 |
-
if (!element.
|
1602 |
else return true;
|
1603 |
break;
|
1604 |
case "activte":
|
1598 |
else return true;
|
1599 |
break;
|
1600 |
case "checked":
|
1601 |
+
if (!element.prop('checked') === true) return false;
|
1602 |
else return true;
|
1603 |
break;
|
1604 |
case "activte":
|
js/custom.js
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
-
jQuery(document).ready(function(e) {
|
2 |
-
jQuery("#sfsi_floater").attr("data-top",jQuery(document).height());
|
3 |
});
|
4 |
|
5 |
function showErrorSuc(s, i, e) {
|
6 |
-
if ("error" == s) var t = "errorMsg";
|
7 |
-
|
8 |
-
SFSI(".tab" + e + ">." + t).
|
9 |
-
SFSI("." + t).
|
10 |
-
|
|
|
11 |
}
|
12 |
|
13 |
function beForeLoad() {
|
@@ -16,137 +17,134 @@ function beForeLoad() {
|
|
16 |
|
17 |
function sfsi_make_popBox() {
|
18 |
var s = 0;
|
19 |
-
SFSI(".sfsi_sample_icons >li").each(function() {
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
}
|
32 |
|
33 |
function sfsi_stick_widget(s) {
|
34 |
-
|
35 |
initTop[s] = SFSI(this).position().top;
|
36 |
}));
|
37 |
-
var i = SFSI(window).scrollTop(),
|
38 |
-
|
|
|
|
|
39 |
e[s] = SFSI(this).position().top, t[s] = SFSI(this);
|
40 |
});
|
41 |
var n = !1;
|
42 |
for (var o in e) {
|
43 |
var a = parseInt(o) + 1;
|
44 |
e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
|
45 |
-
position:"fixed",
|
46 |
-
top:s
|
47 |
}), SFSI(t[a]).css({
|
48 |
-
position:"",
|
49 |
-
top:initTop[a]
|
50 |
-
}), n = !0) :SFSI(t[o]).css({
|
51 |
-
position:"",
|
52 |
-
top:initTop[o]
|
53 |
});
|
54 |
}
|
55 |
if (!n) {
|
56 |
-
var r = e.length - 1,
|
|
|
57 |
e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
|
58 |
-
position:"fixed",
|
59 |
-
top:s
|
60 |
}), c >= 0 && SFSI(t[c]).css({
|
61 |
-
position:"",
|
62 |
-
top:initTop[c]
|
63 |
-
})) :(SFSI(t[r]).css({
|
64 |
-
position:"",
|
65 |
-
top:initTop[r]
|
66 |
}), c >= 0 && e[c] < i);
|
67 |
}
|
68 |
}
|
69 |
|
70 |
function sfsi_float_widget(s) {
|
71 |
-
|
72 |
function i() {
|
73 |
-
r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop :a - window.pageYOffset,
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
function e() {
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
window.onscroll = function() {
|
119 |
-
|
120 |
-
if('function' === typeof prev_onload){
|
121 |
-
prev_onload(),e();
|
122 |
-
}
|
123 |
-
else{
|
124 |
e();
|
125 |
-
|
126 |
}
|
127 |
}
|
128 |
|
129 |
function sfsi_shuffle() {
|
130 |
var $ = window.jQuery;
|
131 |
-
|
132 |
return SFSI('.sfsi_wDiv').each(function (index, container) {
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
})
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
|
148 |
return s
|
149 |
-
|
150 |
|
151 |
function sfsi_setCookie(s, i, e) {
|
152 |
var t = new Date();
|
@@ -165,194 +163,205 @@ function sfsfi_getCookie(s) {
|
|
165 |
|
166 |
function sfsi_hideFooter() {}
|
167 |
|
168 |
-
window.onerror = function() {}, SFSI = jQuery, SFSI(window).on('load',function() {
|
169 |
SFSI("#sfpageLoad").fadeOut(2e3);
|
170 |
});
|
171 |
|
172 |
var global_error = 0;
|
173 |
|
174 |
-
SFSI(document).ready(function(s) {
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
SFSI(document).on('click','.inerCnt a[href=""]',function(event){
|
179 |
//check if not mobile
|
180 |
-
if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
|
181 |
//execute
|
182 |
// console.log('abc');
|
183 |
event.preventDefault();
|
184 |
}
|
185 |
});
|
186 |
|
187 |
-
SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
SFSI(
|
196 |
-
|
197 |
-
SFSI(
|
198 |
-
|
199 |
-
SFSI(
|
200 |
-
|
201 |
-
SFSI(
|
202 |
-
|
203 |
-
SFSI(
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
SFSI(
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
SFSI("."
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
|
219 |
-
SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
|
220 |
-
/*SFSI(".radio").live("click", function() {*/
|
221 |
-
SFSI(document).on("click", '.radio', function () {
|
222 |
-
var s = SFSI(this).parent().find("input:radio:first");
|
223 |
-
"sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
|
224 |
-
}), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
|
225 |
-
if(SFSI(s.target).parent().attr('href')=="" ){
|
226 |
-
s.preventDefault();
|
227 |
-
}
|
228 |
-
if(!SFSI(this).hasClass('sfsi_click_wicon')){
|
229 |
-
s.stopPropagation&&s.stopPropagation();
|
230 |
-
}
|
231 |
-
var i = SFSI("#sfsi_floater_sec").val();
|
232 |
-
SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
|
233 |
-
SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
|
234 |
-
SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
|
235 |
-
SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
|
236 |
-
"z-index":"999"
|
237 |
-
}), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
238 |
-
opacity:1,
|
239 |
-
"z-index":10
|
240 |
-
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
241 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
242 |
-
opacity:1,
|
243 |
-
"z-index":10
|
244 |
-
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
245 |
-
SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
246 |
-
opacity:1,
|
247 |
-
"z-index":10
|
248 |
-
})), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
|
249 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
|
250 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
251 |
-
opacity:1,
|
252 |
-
"z-index":10
|
253 |
-
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
|
254 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
|
255 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
256 |
-
opacity:1,
|
257 |
-
"z-index":1e3
|
258 |
-
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
|
259 |
-
}) :SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
|
260 |
-
console.log('img mouseenter');
|
261 |
-
var s = SFSI("#sfsi_floater_sec").val();
|
262 |
-
SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
|
263 |
-
SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
|
264 |
-
SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
|
265 |
-
SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
|
266 |
-
"z-index":"999"
|
267 |
-
}), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
268 |
-
opacity:1,
|
269 |
-
"z-index":10
|
270 |
-
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
271 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
272 |
-
opacity:1,
|
273 |
-
"z-index":10
|
274 |
-
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
275 |
-
SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
276 |
-
opacity:1,
|
277 |
-
"z-index":10
|
278 |
-
})), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
|
279 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
|
280 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
281 |
-
opacity:1,
|
282 |
-
"z-index":10
|
283 |
-
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
|
284 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
|
285 |
-
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
286 |
-
opacity:1,
|
287 |
-
"z-index":10
|
288 |
-
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
|
289 |
-
}),SFSI(document).on("mouseleave", "div.sfsi_wicons", function (){
|
290 |
-
console.log('img mouseleave');
|
291 |
-
SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
|
292 |
-
SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
|
293 |
-
SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-ffect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")/* && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), */
|
294 |
-
SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none");
|
295 |
-
}), SFSI("body").on("click", function(){
|
296 |
-
SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
|
297 |
-
}), SFSI(".adminTooltip >a").on("hover", function() {
|
298 |
-
SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
|
299 |
-
SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
|
300 |
-
}), SFSI(".adminTooltip").on("mouseleave", function() {
|
301 |
-
"none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function() {
|
302 |
-
SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
|
303 |
-
}) :(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
|
304 |
-
SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
|
305 |
-
}), SFSI(".expand-area").on("click", function() {
|
306 |
-
"Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
|
307 |
-
SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
|
308 |
-
SFSI(this).text("Read more"));
|
309 |
-
}), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
|
310 |
-
var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
|
311 |
-
SFSI(".sfsi_holders").each(function() {
|
312 |
-
SFSI(this).css("height", s);
|
313 |
-
SFSI(".sfsi_widget");
|
314 |
});
|
315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
});
|
317 |
|
318 |
//hiding popup on close button
|
319 |
-
function sfsihidemepopup()
|
320 |
-
|
321 |
-
SFSI(".sfsi_FrntInner_chg").fadeOut();
|
322 |
}
|
323 |
var initTop = new Array();
|
324 |
-
|
325 |
-
|
326 |
-
|
|
|
327 |
}
|
328 |
jQuery(selector).removeClass('show').addClass('hide').hide();
|
329 |
}
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
|
|
338 |
}
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
|
|
343 |
jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
|
344 |
}
|
345 |
}
|
346 |
-
|
|
|
347 |
var target = jQuery(event.target);
|
348 |
// console.log(target);
|
349 |
-
input_target= target.parent().parent().parent().find('input');
|
350 |
input_target.select();
|
351 |
document.execCommand('copy');
|
352 |
}
|
353 |
|
354 |
function sfsi_responsive_toggle() {
|
355 |
-
jQuery(document).scroll(function($) {
|
356 |
var y = jQuery(this).scrollTop();
|
357 |
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
358 |
if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
|
@@ -385,24 +394,25 @@ function sfsi_responsive_toggle() {
|
|
385 |
}
|
386 |
});
|
387 |
}
|
|
|
388 |
function sfsi_time_pop_up(time_popUp) {
|
389 |
-
jQuery(document).ready(function($) {
|
390 |
-
setTimeout(function() {
|
391 |
jQuery('.sfsi_outr_div').css({
|
392 |
'z-index': '1000000',
|
393 |
opacity: 1
|
394 |
});
|
395 |
jQuery('.sfsi_outr_div').fadeIn(200);
|
396 |
jQuery('.sfsi_FrntInner_chg').fadeIn(200);
|
397 |
-
},
|
398 |
});
|
399 |
}
|
400 |
|
401 |
function sfsi_social_pop_up(time_popUp) {
|
402 |
-
jQuery(document).ready(function($) {
|
403 |
//jQuery('.sfsi_outr_div').fadeIn();
|
404 |
sfsi_setCookie('sfsi_socialPopUp', time(), 32);
|
405 |
-
setTimeout(function() {
|
406 |
jQuery('.sfsi_outr_div').css({
|
407 |
'z-index': '1000000',
|
408 |
opacity: 1
|
@@ -411,102 +421,106 @@ function sfsi_social_pop_up(time_popUp) {
|
|
411 |
}, time_popUp);
|
412 |
});
|
413 |
}
|
|
|
414 |
function sfsi_plugin_version(pluginVersion) {
|
415 |
-
jQuery(document).ready(function(e) {
|
416 |
-
jQuery("body").addClass("sfsi_"+pluginVersion)
|
417 |
});
|
418 |
}
|
419 |
|
420 |
-
function sfsi_widget_set(){
|
421 |
-
jQuery(".sfsi_widget").each(function(
|
422 |
-
if(jQuery(this).attr("data-position") == "widget")
|
423 |
-
{
|
424 |
var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
|
425 |
var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
|
426 |
-
var totl_hght = parseInt(
|
427 |
-
jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght+"px");
|
428 |
// console.log('widget');
|
429 |
}
|
430 |
});
|
431 |
}
|
432 |
|
433 |
-
SFSI(window).on('load',function () {
|
434 |
-
SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function() {
|
435 |
sfsi_pinterest_modal_images(e);
|
436 |
});
|
437 |
});
|
438 |
|
439 |
-
function sfsi_pinterest_modal_images(event,url,title) {
|
440 |
console.log(event);
|
441 |
event && event.preventDefault();
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
}
|
449 |
-
if(undefined == title){
|
450 |
-
title = page_title;
|
451 |
-
}
|
452 |
-
if(undefined == url){
|
453 |
-
url = window.location.href;
|
454 |
-
// url = encodeURIComponent(window.location.href);
|
455 |
-
}
|
456 |
-
SFSI('body img').each(function (index) {
|
457 |
-
var src = SFSI(this).attr('src') || "";
|
458 |
-
var height = SFSI(this).height();
|
459 |
-
var width = SFSI(this).width();
|
460 |
-
var image_title = SFSI(this).attr('title') || "";
|
461 |
-
var alt = SFSI(this).attr('alt') || "";
|
462 |
-
var no_pin = SFSI(this).attr('data-pin-nopin') || "";
|
463 |
-
var no_pin_old = SFSI(this).attr('nopin') || "";
|
464 |
-
|
465 |
-
if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
|
466 |
-
imgSrc.push({
|
467 |
-
src: src,
|
468 |
-
title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
|
469 |
-
});
|
470 |
}
|
471 |
-
|
472 |
-
|
473 |
-
sfsi_pinterest_modal();
|
474 |
-
console.log(imgSrc);
|
475 |
-
if(imgSrc.length==0){
|
476 |
-
var meta_img = SFSI('meta[property="og:image"]').attr('content');
|
477 |
-
if(undefined == meta_img){
|
478 |
-
meta_img ="";
|
479 |
}
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
488 |
}
|
489 |
event.preventDefault();
|
490 |
|
491 |
}
|
492 |
|
493 |
function sfsi_pinterest_modal(imgs) {
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
}
|
509 |
|
510 |
// should execute at last so that every function is acceable in body.
|
511 |
-
var sfsi_functions_loaded =
|
|
|
|
|
|
|
|
|
512 |
window.dispatchEvent(sfsi_functions_loaded);
|
1 |
+
jQuery(document).ready(function (e) {
|
2 |
+
jQuery("#sfsi_floater").attr("data-top", jQuery(document).height());
|
3 |
});
|
4 |
|
5 |
function showErrorSuc(s, i, e) {
|
6 |
+
if ("error" == s) var t = "errorMsg";
|
7 |
+
else var t = "sucMsg";
|
8 |
+
return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
|
9 |
+
SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
|
10 |
+
SFSI("." + t).slideUp("slow");
|
11 |
+
}, 5e3), !1;
|
12 |
}
|
13 |
|
14 |
function beForeLoad() {
|
17 |
|
18 |
function sfsi_make_popBox() {
|
19 |
var s = 0;
|
20 |
+
SFSI(".sfsi_sample_icons >li").each(function () {
|
21 |
+
"none" != SFSI(this).css("display") && (s = 1);
|
22 |
+
}), 0 == s ? SFSI(".sfsi_Popinner").hide() : SFSI(".sfsi_Popinner").show(), "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
|
23 |
+
SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
|
24 |
+
"border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
|
25 |
+
"border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
|
26 |
+
"border-style": "solid"
|
27 |
+
}), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
|
28 |
+
SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
|
29 |
+
SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
|
30 |
+
SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
|
31 |
+
"yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_Popinner").css("box-shadow", "none");
|
32 |
}
|
33 |
|
34 |
function sfsi_stick_widget(s) {
|
35 |
+
0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
|
36 |
initTop[s] = SFSI(this).position().top;
|
37 |
}));
|
38 |
+
var i = SFSI(window).scrollTop(),
|
39 |
+
e = [],
|
40 |
+
t = [];
|
41 |
+
SFSI(".sfsi_widget").each(function (s) {
|
42 |
e[s] = SFSI(this).position().top, t[s] = SFSI(this);
|
43 |
});
|
44 |
var n = !1;
|
45 |
for (var o in e) {
|
46 |
var a = parseInt(o) + 1;
|
47 |
e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
|
48 |
+
position: "fixed",
|
49 |
+
top: s
|
50 |
}), SFSI(t[a]).css({
|
51 |
+
position: "",
|
52 |
+
top: initTop[a]
|
53 |
+
}), n = !0) : SFSI(t[o]).css({
|
54 |
+
position: "",
|
55 |
+
top: initTop[o]
|
56 |
});
|
57 |
}
|
58 |
if (!n) {
|
59 |
+
var r = e.length - 1,
|
60 |
+
c = -1;
|
61 |
e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
|
62 |
+
position: "fixed",
|
63 |
+
top: s
|
64 |
}), c >= 0 && SFSI(t[c]).css({
|
65 |
+
position: "",
|
66 |
+
top: initTop[c]
|
67 |
+
})) : (SFSI(t[r]).css({
|
68 |
+
position: "",
|
69 |
+
top: initTop[r]
|
70 |
}), c >= 0 && e[c] < i);
|
71 |
}
|
72 |
}
|
73 |
|
74 |
function sfsi_float_widget(s) {
|
75 |
+
|
76 |
function i() {
|
77 |
+
r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop : a - window.pageYOffset,
|
78 |
+
Math.abs(r) > 0 ?
|
79 |
+
(window.removeEventListener("scroll", i),
|
80 |
+
a -= r * o,
|
81 |
+
SFSI("#sfsi_floater").css({
|
82 |
+
top: Math.round((a + t).toString()) + "px",
|
83 |
+
transition: "all 0.6s ease 0s"
|
84 |
+
}),
|
85 |
+
setTimeout(i, n)) :
|
86 |
+
window.addEventListener("scroll", i, !1);
|
87 |
+
}
|
88 |
+
|
89 |
function e() {
|
90 |
+
var documentheight = SFSI("#sfsi_floater").attr("data-top");
|
91 |
+
var fltrhght = parseInt(SFSI("#sfsi_floater").height());
|
92 |
+
var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
|
93 |
+
|
94 |
+
if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
|
95 |
+
window.addEventListener("scroll", i, !1);
|
96 |
+
} else {
|
97 |
+
window.removeEventListener("scroll", i);
|
98 |
+
SFSI("#sfsi_floater").css("top", documentheight + "px");
|
99 |
+
}
|
100 |
+
}
|
101 |
+
if ("center" == s) {
|
102 |
+
var t = (SFSI(window).height() - SFSI("#sfsi_floater").height()) / 2;
|
103 |
+
} else if ("bottom" == s) {
|
104 |
+
var t = window.innerHeight - (SFSI("#sfsi_floater").height() + parseInt(SFSI('#sfsi_floater').css('margin-bottom')));
|
105 |
+
} else {
|
106 |
+
var t = parseInt(s);
|
107 |
+
}
|
108 |
+
|
109 |
+
var n = 50,
|
110 |
+
o = .1,
|
111 |
+
a = 0,
|
112 |
+
r = 0;
|
113 |
+
SFSI("#sfsi_floater");
|
114 |
+
|
115 |
+
var prev_onscroll = window.onscroll;
|
116 |
+
|
117 |
+
window.onscroll = function () {
|
118 |
+
|
119 |
+
if ('function' === typeof prev_onload) {
|
120 |
+
prev_onload(), e();
|
121 |
+
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
e();
|
123 |
+
}
|
124 |
}
|
125 |
}
|
126 |
|
127 |
function sfsi_shuffle() {
|
128 |
var $ = window.jQuery;
|
129 |
+
|
130 |
return SFSI('.sfsi_wDiv').each(function (index, container) {
|
131 |
+
var s = [];
|
132 |
+
s = SFSI(container).find(".sfsi_wicons ");
|
133 |
+
s = Shuffle(s);
|
134 |
+
SFSI(container).html("");
|
135 |
+
for (var i = 0; i < s.length; i++) {
|
136 |
+
SFSI(s[i]).css('transform', 'none');
|
137 |
+
SFSI(s[i]).css('position', 'relative');
|
138 |
+
SFSI(container).append(s[i]);
|
139 |
+
}
|
140 |
})
|
141 |
+
|
142 |
+
}
|
143 |
+
|
144 |
+
function Shuffle(s) {
|
145 |
for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
|
146 |
return s
|
147 |
+
}
|
148 |
|
149 |
function sfsi_setCookie(s, i, e) {
|
150 |
var t = new Date();
|
163 |
|
164 |
function sfsi_hideFooter() {}
|
165 |
|
166 |
+
window.onerror = function () {}, SFSI = jQuery, SFSI(window).on('load', function () {
|
167 |
SFSI("#sfpageLoad").fadeOut(2e3);
|
168 |
});
|
169 |
|
170 |
var global_error = 0;
|
171 |
|
172 |
+
SFSI(document).ready(function (s) {
|
173 |
+
//changes done {Monad}
|
174 |
+
//putting it before to make sure it registers before the mobile click function
|
175 |
+
SFSI(document).on('click', '.inerCnt a[href=""]', function (event) {
|
|
|
176 |
//check if not mobile
|
177 |
+
if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
|
178 |
//execute
|
179 |
// console.log('abc');
|
180 |
event.preventDefault();
|
181 |
}
|
182 |
});
|
183 |
|
184 |
+
SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
|
185 |
+
SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
|
186 |
+
SFSI(document).click(function (s) {
|
187 |
+
|
188 |
+
var i = SFSI(".sfsi_FrntInner"),
|
189 |
+
e = SFSI(".sfsi_wDiv"),
|
190 |
+
t = SFSI("#at15s");
|
191 |
+
i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
|
192 |
+
}), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
|
193 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
|
194 |
+
}), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
|
195 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
|
196 |
+
}), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
|
197 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
|
198 |
+
}), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
|
199 |
+
SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
|
200 |
+
}), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
|
201 |
+
SFSI(this).css("opacity", "0.9");
|
202 |
+
}), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
|
203 |
+
SFSI(this).css("opacity", "1");
|
204 |
+
/*{Monad}*/
|
205 |
+
}), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
|
206 |
+
SFSI(this).css("opacity", "0.9");
|
207 |
+
}), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
|
208 |
+
SFSI(this).css("opacity", "1");
|
209 |
+
}), SFSI(".pop-up").on("click", function () {
|
210 |
+
("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
|
211 |
+
SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
|
212 |
+
SFSI("." + SFSI(this).attr("data-id")).show("slow");
|
213 |
+
}), /*SFSI("#close_popup").live("click", function() {*/ SFSI(document).on("click", '#close_popup', function () {
|
214 |
+
SFSI(".read-overlay").hide("slow");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
});
|
216 |
+
var e = 0;
|
217 |
+
sfsi_make_popBox(), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
|
218 |
+
SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
|
219 |
+
SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
|
220 |
+
/*SFSI(".radio").live("click", function() {*/
|
221 |
+
|
222 |
+
SFSI(document).on("click", '.radio', function () {
|
223 |
+
var s = SFSI(this).parent().find("input:radio:first");
|
224 |
+
"sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
|
225 |
+
}),
|
226 |
+
console.log(SFSI("img.sfsi_wicon"));
|
227 |
+
|
228 |
+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", 'img.sfsi_wicon',function (s) {
|
229 |
+
console.log('document mouse click', s, s.target);
|
230 |
+
|
231 |
+
if (SFSI(s.target).parent().attr('href') == "") {
|
232 |
+
s.preventDefault();
|
233 |
+
}
|
234 |
+
if (!SFSI(this).hasClass('sfsi_click_wicon')) {
|
235 |
+
s.stopPropagation && s.stopPropagation();
|
236 |
+
}
|
237 |
+
var i = SFSI("#sfsi_floater_sec").val();
|
238 |
+
SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
|
239 |
+
SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
|
240 |
+
SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
|
241 |
+
SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
|
242 |
+
"z-index": "999"
|
243 |
+
}), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
244 |
+
opacity: 1,
|
245 |
+
"z-index": 10
|
246 |
+
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
247 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
248 |
+
opacity: 1,
|
249 |
+
"z-index": 10
|
250 |
+
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
251 |
+
SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
252 |
+
opacity: 1,
|
253 |
+
"z-index": 10
|
254 |
+
})), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
|
255 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
|
256 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
257 |
+
opacity: 1,
|
258 |
+
"z-index": 10
|
259 |
+
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
|
260 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
|
261 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
262 |
+
opacity: 1,
|
263 |
+
"z-index": 1e3
|
264 |
+
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
|
265 |
+
}) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
|
266 |
+
console.log('img mouseenter');
|
267 |
+
var s = SFSI("#sfsi_floater_sec").val();
|
268 |
+
SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
|
269 |
+
SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
|
270 |
+
SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
|
271 |
+
SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
|
272 |
+
"z-index": "999"
|
273 |
+
}), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
274 |
+
opacity: 1,
|
275 |
+
"z-index": 10
|
276 |
+
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
277 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
278 |
+
opacity: 1,
|
279 |
+
"z-index": 10
|
280 |
+
}), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
|
281 |
+
SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
282 |
+
opacity: 1,
|
283 |
+
"z-index": 10
|
284 |
+
})), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
|
285 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
|
286 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
287 |
+
opacity: 1,
|
288 |
+
"z-index": 10
|
289 |
+
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
|
290 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
|
291 |
+
SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
|
292 |
+
opacity: 1,
|
293 |
+
"z-index": 10
|
294 |
+
}), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
|
295 |
+
}),
|
296 |
+
SFSI(document).on("mouseleave", "div.sfsi_wicons", function () {
|
297 |
+
SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
|
298 |
+
SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
|
299 |
+
SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-ffect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") /* && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), */
|
300 |
+
SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none");
|
301 |
+
}), SFSI("body").on("click", function () {
|
302 |
+
SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
|
303 |
+
}), SFSI(".adminTooltip >a").on("hover", function () {
|
304 |
+
SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
|
305 |
+
SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
|
306 |
+
}), SFSI(".adminTooltip").on("mouseleave", function () {
|
307 |
+
"none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
|
308 |
+
SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
|
309 |
+
}) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
|
310 |
+
SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
|
311 |
+
}), SFSI(".expand-area").on("click", function () {
|
312 |
+
"Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
|
313 |
+
SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
|
314 |
+
SFSI(this).text("Read more"));
|
315 |
+
}), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
|
316 |
+
var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
|
317 |
+
SFSI(".sfsi_holders").each(function () {
|
318 |
+
SFSI(this).css("height", s);
|
319 |
+
SFSI(".sfsi_widget");
|
320 |
+
});
|
321 |
+
}, 200);
|
322 |
});
|
323 |
|
324 |
//hiding popup on close button
|
325 |
+
function sfsihidemepopup() {
|
326 |
+
SFSI(".sfsi_FrntInner_chg").fadeOut();
|
|
|
327 |
}
|
328 |
var initTop = new Array();
|
329 |
+
|
330 |
+
function close_overlay(selector) {
|
331 |
+
if (typeof selector === "undefined") {
|
332 |
+
selector = '.sfsi_overlay';
|
333 |
}
|
334 |
jQuery(selector).removeClass('show').addClass('hide').hide();
|
335 |
}
|
336 |
+
|
337 |
+
function sfsi_wechat_share(url) {
|
338 |
+
if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
|
339 |
+
jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick='event.preventDefault();close_overlay(\".sfsi_wechat_follow_overlay\")' >×</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
|
340 |
+
new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href)))
|
341 |
+
jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin', 'nopin')
|
342 |
+
} else {
|
343 |
+
jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
|
344 |
+
}
|
345 |
}
|
346 |
+
|
347 |
+
function sfsi_mobile_wechat_share(url) {
|
348 |
+
if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
|
349 |
+
jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')\" >×</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:30% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='" + encodeURI(decodeURI(window.location.href)) + "' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div class='sfsi_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div class='sfsi_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
|
350 |
+
} else {
|
351 |
jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
|
352 |
}
|
353 |
}
|
354 |
+
|
355 |
+
function sfsi_copy_text_parent_input(event) {
|
356 |
var target = jQuery(event.target);
|
357 |
// console.log(target);
|
358 |
+
input_target = target.parent().parent().parent().find('input');
|
359 |
input_target.select();
|
360 |
document.execCommand('copy');
|
361 |
}
|
362 |
|
363 |
function sfsi_responsive_toggle() {
|
364 |
+
jQuery(document).scroll(function ($) {
|
365 |
var y = jQuery(this).scrollTop();
|
366 |
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
367 |
if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
|
394 |
}
|
395 |
});
|
396 |
}
|
397 |
+
|
398 |
function sfsi_time_pop_up(time_popUp) {
|
399 |
+
jQuery(document).ready(function ($) {
|
400 |
+
setTimeout(function () {
|
401 |
jQuery('.sfsi_outr_div').css({
|
402 |
'z-index': '1000000',
|
403 |
opacity: 1
|
404 |
});
|
405 |
jQuery('.sfsi_outr_div').fadeIn(200);
|
406 |
jQuery('.sfsi_FrntInner_chg').fadeIn(200);
|
407 |
+
}, time_popUp);
|
408 |
});
|
409 |
}
|
410 |
|
411 |
function sfsi_social_pop_up(time_popUp) {
|
412 |
+
jQuery(document).ready(function ($) {
|
413 |
//jQuery('.sfsi_outr_div').fadeIn();
|
414 |
sfsi_setCookie('sfsi_socialPopUp', time(), 32);
|
415 |
+
setTimeout(function () {
|
416 |
jQuery('.sfsi_outr_div').css({
|
417 |
'z-index': '1000000',
|
418 |
opacity: 1
|
421 |
}, time_popUp);
|
422 |
});
|
423 |
}
|
424 |
+
|
425 |
function sfsi_plugin_version(pluginVersion) {
|
426 |
+
jQuery(document).ready(function (e) {
|
427 |
+
jQuery("body").addClass("sfsi_" + pluginVersion)
|
428 |
});
|
429 |
}
|
430 |
|
431 |
+
function sfsi_widget_set() {
|
432 |
+
jQuery(".sfsi_widget").each(function (index) {
|
433 |
+
if (jQuery(this).attr("data-position") == "widget") {
|
|
|
434 |
var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
|
435 |
var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
|
436 |
+
var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
|
437 |
+
jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght + "px");
|
438 |
// console.log('widget');
|
439 |
}
|
440 |
});
|
441 |
}
|
442 |
|
443 |
+
SFSI(window).on('load', function () {
|
444 |
+
SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function () {
|
445 |
sfsi_pinterest_modal_images(e);
|
446 |
});
|
447 |
});
|
448 |
|
449 |
+
function sfsi_pinterest_modal_images(event, url, title) {
|
450 |
console.log(event);
|
451 |
event && event.preventDefault();
|
452 |
+
var imgSrc = [];
|
453 |
+
var page_title;
|
454 |
+
|
455 |
+
page_title = SFSI('meta[property="og:title"]').attr('content');
|
456 |
+
if (undefined == page_title) {
|
457 |
+
page_title = SFSI('head title').text();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
}
|
459 |
+
if (undefined == title) {
|
460 |
+
title = page_title;
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
}
|
462 |
+
if (undefined == url) {
|
463 |
+
url = window.location.href;
|
464 |
+
// url = encodeURIComponent(window.location.href);
|
465 |
+
}
|
466 |
+
SFSI('body img').each(function (index) {
|
467 |
+
var src = SFSI(this).attr('src') || "";
|
468 |
+
var height = SFSI(this).height();
|
469 |
+
var width = SFSI(this).width();
|
470 |
+
var image_title = SFSI(this).attr('title') || "";
|
471 |
+
var alt = SFSI(this).attr('alt') || "";
|
472 |
+
var no_pin = SFSI(this).attr('data-pin-nopin') || "";
|
473 |
+
var no_pin_old = SFSI(this).attr('nopin') || "";
|
474 |
+
|
475 |
+
if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
|
476 |
+
imgSrc.push({
|
477 |
+
src: src,
|
478 |
+
title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
|
479 |
+
});
|
480 |
+
}
|
481 |
+
});
|
482 |
+
|
483 |
+
sfsi_pinterest_modal();
|
484 |
+
console.log(imgSrc);
|
485 |
+
if (imgSrc.length == 0) {
|
486 |
+
var meta_img = SFSI('meta[property="og:image"]').attr('content');
|
487 |
+
if (undefined == meta_img) {
|
488 |
+
meta_img = "";
|
489 |
+
}
|
490 |
+
SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=&description=' + encodeURIComponent(page_title).replace('+', '%20').replace("#", "%23") + '"><div style="width:140px;height:90px;display:inline-block;" ></div><span class="sfsi_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>')
|
491 |
+
} else {
|
492 |
+
|
493 |
+
// console.log(imgSrc);
|
494 |
+
SFSI.each(imgSrc, function (index, val) {
|
495 |
+
// console.log('discrip',val);
|
496 |
+
SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=' + val.src + '&description=' + encodeURIComponent(val.title ? val.title : page_title).replace('+', '%20').replace("#", "%23") + '"><img style="display:inline" data-pin-nopin="true" src="' + val.src + '"><span class="sfsi_pinterest_overlay" style="width:140px;left:unset;"><img data-pin-nopin="true" height="30" width="30" style="display:inline" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>');
|
497 |
+
});
|
498 |
}
|
499 |
event.preventDefault();
|
500 |
|
501 |
}
|
502 |
|
503 |
function sfsi_pinterest_modal(imgs) {
|
504 |
+
// if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {
|
505 |
+
jQuery('body').append(
|
506 |
+
"<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" +
|
507 |
+
"<div class='sfsi_inner_display'>" +
|
508 |
+
'<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >×</a>' +
|
509 |
+
"<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;border-radius: 20px;'>" +
|
510 |
+
"<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" +
|
511 |
+
"<div class='sfsi_flex_container'>" +
|
512 |
+
|
513 |
+
"</div>" +
|
514 |
+
"</div>" +
|
515 |
+
"</div>" +
|
516 |
+
"</div>"
|
517 |
+
);
|
518 |
}
|
519 |
|
520 |
// should execute at last so that every function is acceable in body.
|
521 |
+
var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded', {
|
522 |
+
detail: {
|
523 |
+
"abc": "def"
|
524 |
+
}
|
525 |
+
});
|
526 |
window.dispatchEvent(sfsi_functions_loaded);
|
js/shuffle/jquery.shuffle.min.js
CHANGED
@@ -1,723 +1 @@
|
|
1 |
-
(function (e) {
|
2 |
-
if (typeof define === "function" && define.amd) {
|
3 |
-
define(["jquery", "modernizr"], e);
|
4 |
-
} else {
|
5 |
-
e(window.jQuery, window.Modernizr);
|
6 |
-
}
|
7 |
-
})(function (e, t, n) {
|
8 |
-
"use strict";
|
9 |
-
function r(e) {
|
10 |
-
if (!e) {
|
11 |
-
return "";
|
12 |
-
}
|
13 |
-
return e
|
14 |
-
.replace(/([A-Z])/g, function (e, t) {
|
15 |
-
return "-" + t.toLowerCase();
|
16 |
-
})
|
17 |
-
.replace(/^ms-/, "-ms-");
|
18 |
-
}
|
19 |
-
function g(t, n, r) {
|
20 |
-
var i, s, o;
|
21 |
-
var u = null;
|
22 |
-
var a = 0;
|
23 |
-
r = r || {};
|
24 |
-
var f = function () {
|
25 |
-
a = r.leading === false ? 0 : e.now();
|
26 |
-
u = null;
|
27 |
-
o = t.apply(i, s);
|
28 |
-
i = s = null;
|
29 |
-
};
|
30 |
-
return function () {
|
31 |
-
var l = e.now();
|
32 |
-
if (!a && r.leading === false) {
|
33 |
-
a = l;
|
34 |
-
}
|
35 |
-
var c = n - (l - a);
|
36 |
-
i = this;
|
37 |
-
s = arguments;
|
38 |
-
if (c <= 0 || c > n) {
|
39 |
-
clearTimeout(u);
|
40 |
-
u = null;
|
41 |
-
a = l;
|
42 |
-
o = t.apply(i, s);
|
43 |
-
i = s = null;
|
44 |
-
} else if (!u && r.trailing !== false) {
|
45 |
-
u = setTimeout(f, c);
|
46 |
-
}
|
47 |
-
return o;
|
48 |
-
};
|
49 |
-
}
|
50 |
-
if (typeof t !== "object") {
|
51 |
-
throw new Error("Shuffle.js requires Modernizr.\n" + "http://vestride.github.io/Shuffle/#dependencies");
|
52 |
-
}
|
53 |
-
var i = t.prefixed("transition");
|
54 |
-
var s = t.prefixed("transitionDelay");
|
55 |
-
var o = t.prefixed("transitionDuration");
|
56 |
-
var u = { WebkitTransition: "webkitTransitionEnd", transition: "transitionend" }[i];
|
57 |
-
var a = t.prefixed("transform");
|
58 |
-
var f = r(a);
|
59 |
-
var l = t.csstransforms && t.csstransitions;
|
60 |
-
var c = t.csstransforms3d;
|
61 |
-
var h = "shuffle";
|
62 |
-
var p = "all";
|
63 |
-
var d = "groups";
|
64 |
-
var v = 1;
|
65 |
-
var m = 0.001;
|
66 |
-
var y = 0;
|
67 |
-
var b = function (t, n) {
|
68 |
-
n = n || {};
|
69 |
-
e.extend(this, b.options, n, b.settings);
|
70 |
-
this.$el = e(t);
|
71 |
-
this.$window = e(window);
|
72 |
-
this.unique = "shuffle_" + y++;
|
73 |
-
this._fire(b.EventType.LOADING);
|
74 |
-
this._init();
|
75 |
-
setTimeout(
|
76 |
-
e.proxy(function () {
|
77 |
-
this.initialized = true;
|
78 |
-
this._fire(b.EventType.DONE);
|
79 |
-
}, this),
|
80 |
-
16
|
81 |
-
);
|
82 |
-
};
|
83 |
-
b.EventType = { LOADING: "loading", DONE: "done", SHRINK: "shrink", SHRUNK: "shrunk", FILTER: "filter", FILTERED: "filtered", SORTED: "sorted", LAYOUT: "layout", REMOVED: "removed" };
|
84 |
-
b.prototype = {
|
85 |
-
_init: function () {
|
86 |
-
var t = this,
|
87 |
-
n,
|
88 |
-
r,
|
89 |
-
s = e.proxy(t._onResize, t),
|
90 |
-
o = t.throttle ? t.throttle(s, t.throttleTime) : s,
|
91 |
-
u = t.initialSort ? t.initialSort : null;
|
92 |
-
t._layoutList = [];
|
93 |
-
t._shrinkList = [];
|
94 |
-
t._setVars();
|
95 |
-
t._resetCols();
|
96 |
-
t._addClasses();
|
97 |
-
t._initItems();
|
98 |
-
t.$window.on("resize." + h + "." + t.unique, o);
|
99 |
-
n = t.$el.css(["paddingLeft", "paddingRight", "position"]);
|
100 |
-
r = t._getOuterWidth(t.$el[0]);
|
101 |
-
if (n.position === "static") {
|
102 |
-
t.$el[0].style.position = "relative";
|
103 |
-
}
|
104 |
-
t.offset = { left: parseInt(n.paddingLeft, 10) || 0, top: parseInt(n.paddingTop, 10) || 0 };
|
105 |
-
t._setColumns(parseInt(r, 10));
|
106 |
-
t.shuffle(t.group, u);
|
107 |
-
if (t.supported) {
|
108 |
-
setTimeout(function () {
|
109 |
-
t._setTransitions();
|
110 |
-
t.$el[0].style[i] = "height " + t.speed + "ms " + t.easing;
|
111 |
-
}, 0);
|
112 |
-
}
|
113 |
-
},
|
114 |
-
_addClasses: function () {
|
115 |
-
this.$el.addClass(h);
|
116 |
-
this.$items.addClass("shuffle-item filtered");
|
117 |
-
},
|
118 |
-
_setVars: function () {
|
119 |
-
var t = this,
|
120 |
-
n = t.columnWidth;
|
121 |
-
t.$items = t._getItems();
|
122 |
-
if (n === 0 && t.sizer !== null) {
|
123 |
-
n = t.sizer;
|
124 |
-
}
|
125 |
-
if (typeof n === "string") {
|
126 |
-
t.$sizer = t.$el.find(n);
|
127 |
-
} else if (n && n.nodeType && n.nodeType === 1) {
|
128 |
-
t.$sizer = e(n);
|
129 |
-
} else if (n && n.jquery) {
|
130 |
-
t.$sizer = n;
|
131 |
-
}
|
132 |
-
if (t.$sizer && t.$sizer.length) {
|
133 |
-
t.useSizer = true;
|
134 |
-
t.sizer = t.$sizer[0];
|
135 |
-
}
|
136 |
-
},
|
137 |
-
_filter: function (t, r) {
|
138 |
-
var i = this,
|
139 |
-
s = r !== n,
|
140 |
-
o = s ? r : i.$items,
|
141 |
-
u = e();
|
142 |
-
t = t || i.lastFilter;
|
143 |
-
i._fire(b.EventType.FILTER);
|
144 |
-
if (e.isFunction(t)) {
|
145 |
-
o.each(function () {
|
146 |
-
var n = e(this);
|
147 |
-
if (t.call(n[0], n, i)) {
|
148 |
-
u = u.add(n);
|
149 |
-
}
|
150 |
-
});
|
151 |
-
} else {
|
152 |
-
i.group = t;
|
153 |
-
if (t === p) {
|
154 |
-
u = o;
|
155 |
-
} else {
|
156 |
-
o.each(function () {
|
157 |
-
var n = e(this),
|
158 |
-
r = n.data(d),
|
159 |
-
s = i.delimeter && !e.isArray(r) ? r.split(i.delimeter) : r;
|
160 |
-
if (e.inArray(t, s) > -1) {
|
161 |
-
u = u.add(n);
|
162 |
-
}
|
163 |
-
});
|
164 |
-
}
|
165 |
-
}
|
166 |
-
i._toggleFilterClasses(o, u);
|
167 |
-
o = null;
|
168 |
-
r = null;
|
169 |
-
return u;
|
170 |
-
},
|
171 |
-
_toggleFilterClasses: function (t, n) {
|
172 |
-
var r = "concealed",
|
173 |
-
i = "filtered";
|
174 |
-
t.filter(n).each(function () {
|
175 |
-
var t = e(this);
|
176 |
-
if (t.hasClass(r)) {
|
177 |
-
t.removeClass(r);
|
178 |
-
}
|
179 |
-
if (!t.hasClass(i)) {
|
180 |
-
t.addClass(i);
|
181 |
-
}
|
182 |
-
});
|
183 |
-
t.not(n).each(function () {
|
184 |
-
var t = e(this);
|
185 |
-
if (!t.hasClass(r)) {
|
186 |
-
t.addClass(r);
|
187 |
-
}
|
188 |
-
if (t.hasClass(i)) {
|
189 |
-
t.removeClass(i);
|
190 |
-
}
|
191 |
-
});
|
192 |
-
},
|
193 |
-
_initItems: function (e) {
|
194 |
-
e = e || this.$items;
|
195 |
-
e.css(this.itemCss).data("position", { x: 0, y: 0 });
|
196 |
-
},
|
197 |
-
_updateItemCount: function () {
|
198 |
-
this.visibleItems = this.$items.filter(".filtered").length;
|
199 |
-
},
|
200 |
-
_setTransition: function (e) {
|
201 |
-
e.style[i] = f + " " + this.speed + "ms " + this.easing;
|
202 |
-
},
|
203 |
-
_setTransitions: function (e) {
|
204 |
-
var t = this;
|
205 |
-
e = e || t.$items;
|
206 |
-
e.each(function () {
|
207 |
-
t._setTransition(this);
|
208 |
-
});
|
209 |
-
},
|
210 |
-
_setSequentialDelay: function (t) {
|
211 |
-
var n = this;
|
212 |
-
if (!n.supported) {
|
213 |
-
return;
|
214 |
-
}
|
215 |
-
e.each(t, function (t, r) {
|
216 |
-
r.style[s] = "0ms," + (t + 1) * n.sequentialFadeDelay + "ms";
|
217 |
-
e(r).on(u + "." + n.unique, function (t) {
|
218 |
-
var r = t.currentTarget;
|
219 |
-
if (r === t.target) {
|
220 |
-
r.style[s] = "0ms";
|
221 |
-
e(r).off(u + "." + n.unique);
|
222 |
-
}
|
223 |
-
});
|
224 |
-
});
|
225 |
-
},
|
226 |
-
_getItems: function () {
|
227 |
-
return this.$el.children(this.itemSelector);
|
228 |
-
},
|
229 |
-
_getPreciseDimension: function (t, n) {
|
230 |
-
var r;
|
231 |
-
if (window.getComputedStyle) {
|
232 |
-
r = window.getComputedStyle(t, null)[n];
|
233 |
-
} else {
|
234 |
-
r = e(t).css(n);
|
235 |
-
}
|
236 |
-
return parseFloat(r);
|
237 |
-
},
|
238 |
-
_getOuterWidth: function (t, n) {
|
239 |
-
var r = t.offsetWidth;
|
240 |
-
if (n) {
|
241 |
-
var i = e(t).css(["marginLeft", "marginRight"]);
|
242 |
-
var s = parseFloat(i.marginLeft) || 0;
|
243 |
-
var o = parseFloat(i.marginRight) || 0;
|
244 |
-
r += s + o;
|
245 |
-
}
|
246 |
-
return r;
|
247 |
-
},
|
248 |
-
_getOuterHeight: function (t, n) {
|
249 |
-
var r = t.offsetHeight;
|
250 |
-
if (n) {
|
251 |
-
var i = e(t).css(["marginTop", "marginBottom"]);
|
252 |
-
var s = parseFloat(i.marginTop) || 0;
|
253 |
-
var o = parseFloat(i.marginBottom) || 0;
|
254 |
-
r += s + o;
|
255 |
-
}
|
256 |
-
return r;
|
257 |
-
},
|
258 |
-
_getColumnSize: function (t, n) {
|
259 |
-
var r;
|
260 |
-
if (e.isFunction(this.columnWidth)) {
|
261 |
-
r = this.columnWidth(n);
|
262 |
-
} else if (this.useSizer) {
|
263 |
-
r = this._getPreciseDimension(this.sizer, "width");
|
264 |
-
} else if (this.columnWidth) {
|
265 |
-
r = this.columnWidth;
|
266 |
-
} else if (this.$items.length > 0) {
|
267 |
-
r = this._getOuterWidth(this.$items[0], true);
|
268 |
-
} else {
|
269 |
-
r = n;
|
270 |
-
}
|
271 |
-
if (r === 0) {
|
272 |
-
r = n;
|
273 |
-
}
|
274 |
-
return r + t;
|
275 |
-
},
|
276 |
-
_getGutterSize: function (t) {
|
277 |
-
var n;
|
278 |
-
if (e.isFunction(this.gutterWidth)) {
|
279 |
-
n = this.gutterWidth(t);
|
280 |
-
} else if (this.useSizer) {
|
281 |
-
n = this._getPreciseDimension(this.sizer, "marginLeft");
|
282 |
-
} else {
|
283 |
-
n = this.gutterWidth;
|
284 |
-
}
|
285 |
-
return n;
|
286 |
-
},
|
287 |
-
_setColumns: function (e) {
|
288 |
-
var t = e || this._getOuterWidth(this.$el[0]);
|
289 |
-
var n = this._getGutterSize(t);
|
290 |
-
var r = this._getColumnSize(n, t);
|
291 |
-
var i = (t + n) / r;
|
292 |
-
if (Math.abs(Math.round(i) - i) < 0.03) {
|
293 |
-
i = Math.round(i);
|
294 |
-
}
|
295 |
-
this.cols = Math.max(Math.floor(i), 1);
|
296 |
-
this.containerWidth = t;
|
297 |
-
this.colWidth = r;
|
298 |
-
},
|
299 |
-
_setContainerSize: function () {
|
300 |
-
this.$el.css("height", Math.max.apply(Math, this.colYs));
|
301 |
-
},
|
302 |
-
_fire: function (e, t) {
|
303 |
-
this.$el.trigger(e + "." + h, t && t.length ? t : [this]);
|
304 |
-
},
|
305 |
-
_layout: function (t, n, r) {
|
306 |
-
var i = this;
|
307 |
-
n = n || i._filterEnd;
|
308 |
-
e.each(t, function (t, s) {
|
309 |
-
var o = e(s);
|
310 |
-
var u = o.data();
|
311 |
-
var a = u.position;
|
312 |
-
var f = i._getItemPosition(o);
|
313 |
-
o.data("position", f);
|
314 |
-
if (f.x === a.x && f.y === a.y && u.scale === v) {
|
315 |
-
return;
|
316 |
-
}
|
317 |
-
var l = { $item: o, x: f.x, y: f.y, scale: v };
|
318 |
-
if (r) {
|
319 |
-
l.skipTransition = true;
|
320 |
-
l.opacity = 0;
|
321 |
-
} else {
|
322 |
-
l.opacity = 1;
|
323 |
-
l.callback = n;
|
324 |
-
}
|
325 |
-
i.styleQueue.push(l);
|
326 |
-
i._layoutList.push(o[0]);
|
327 |
-
});
|
328 |
-
i._processStyleQueue();
|
329 |
-
i._setContainerSize();
|
330 |
-
},
|
331 |
-
_resetCols: function () {
|
332 |
-
var e = this.cols;
|
333 |
-
this.colYs = [];
|
334 |
-
while (e--) {
|
335 |
-
this.colYs.push(0);
|
336 |
-
}
|
337 |
-
},
|
338 |
-
_reLayout: function () {
|
339 |
-
this._resetCols();
|
340 |
-
if (this.lastSort) {
|
341 |
-
this.sort(this.lastSort, true);
|
342 |
-
} else {
|
343 |
-
this._layout(this.$items.filter(".filtered").get(), this._filterEnd);
|
344 |
-
}
|
345 |
-
},
|
346 |
-
_getItemPosition: function (e) {
|
347 |
-
var t = this;
|
348 |
-
var n = t._getOuterWidth(e[0], true);
|
349 |
-
var r = n / t.colWidth;
|
350 |
-
if (Math.abs(Math.round(r) - r) < 0.03) {
|
351 |
-
r = Math.round(r);
|
352 |
-
}
|
353 |
-
var i = Math.min(Math.ceil(r), t.cols);
|
354 |
-
if (i === 1) {
|
355 |
-
return t._placeItem(e, t.colYs);
|
356 |
-
} else {
|
357 |
-
var s = t.cols + 1 - i,
|
358 |
-
o = [],
|
359 |
-
u,
|
360 |
-
a;
|
361 |
-
for (a = 0; a < s; a++) {
|
362 |
-
u = t.colYs.slice(a, a + i);
|
363 |
-
o[a] = Math.max.apply(Math, u);
|
364 |
-
}
|
365 |
-
return t._placeItem(e, o);
|
366 |
-
}
|
367 |
-
},
|
368 |
-
_placeItem: function (e, t) {
|
369 |
-
var n = this,
|
370 |
-
r = Math.min.apply(Math, t),
|
371 |
-
i = 0;
|
372 |
-
for (var s = 0, o = t.length; s < o; s++) {
|
373 |
-
if (t[s] >= r - n.buffer && t[s] <= r + n.buffer) {
|
374 |
-
i = s;
|
375 |
-
break;
|
376 |
-
}
|
377 |
-
}
|
378 |
-
var u = { x: Math.round(n.colWidth * i + n.offset.left), y: Math.round(r + n.offset.top) };
|
379 |
-
var a = r + n._getOuterHeight(e[0], true),
|
380 |
-
f = n.cols + 1 - o;
|
381 |
-
for (s = 0; s < f; s++) {
|
382 |
-
n.colYs[i + s] = a;
|
383 |
-
}
|
384 |
-
return u;
|
385 |
-
},
|
386 |
-
_shrink: function (t, n) {
|
387 |
-
var r = this,
|
388 |
-
i = t || r.$items.filter(".concealed");
|
389 |
-
n = n || r._shrinkEnd;
|
390 |
-
if (!i.length) {
|
391 |
-
return;
|
392 |
-
}
|
393 |
-
r._fire(b.EventType.SHRINK);
|
394 |
-
i.each(function () {
|
395 |
-
var t = e(this);
|
396 |
-
var i = t.data();
|
397 |
-
var s = i.scale === m;
|
398 |
-
if (s) {
|
399 |
-
return;
|
400 |
-
}
|
401 |
-
var o = { $item: t, x: i.position.x, y: i.position.y, scale: m, opacity: 0, callback: n };
|
402 |
-
r.styleQueue.push(o);
|
403 |
-
r._shrinkList.push(t[0]);
|
404 |
-
});
|
405 |
-
},
|
406 |
-
_onResize: function () {
|
407 |
-
if (!this.enabled || this.destroyed) {
|
408 |
-
return;
|
409 |
-
}
|
410 |
-
var e = this._getOuterWidth(this.$el[0]);
|
411 |
-
if (e === this.containerWidth) {
|
412 |
-
return;
|
413 |
-
}
|
414 |
-
this.resized();
|
415 |
-
},
|
416 |
-
_getItemTransformString: function (e, t, n) {
|
417 |
-
if (c) {
|
418 |
-
return "translate3d(" + e + "px, " + t + "px, 0) scale3d(" + n + ", " + n + ", 1)";
|
419 |
-
} else {
|
420 |
-
return "translate(" + e + "px, " + t + "px) scale(" + n + ", " + n + ")";
|
421 |
-
}
|
422 |
-
},
|
423 |
-
_getStylesForTransition: function (e) {
|
424 |
-
var t = { opacity: e.opacity };
|
425 |
-
if (this.supported) {
|
426 |
-
if (e.x !== n) {
|
427 |
-
t[a] = this._getItemTransformString(e.x, e.y, e.scale);
|
428 |
-
}
|
429 |
-
} else {
|
430 |
-
t.left = e.x;
|
431 |
-
t.top = e.y;
|
432 |
-
}
|
433 |
-
if (e.opacity === 1) {
|
434 |
-
t.visibility = "visible";
|
435 |
-
}
|
436 |
-
return t;
|
437 |
-
},
|
438 |
-
_transition: function (e) {
|
439 |
-
e.$item.data("scale", e.scale);
|
440 |
-
var t = this._getStylesForTransition(e);
|
441 |
-
this._startItemAnimation(e.$item, t, e.callback);
|
442 |
-
},
|
443 |
-
_startItemAnimation: function (t, n, r) {
|
444 |
-
var i = n.opacity === 1;
|
445 |
-
var s = e.proxy(this._handleItemAnimationEnd, this, r || e.noop, t[0], i);
|
446 |
-
if (this.supported) {
|
447 |
-
t.css(n);
|
448 |
-
if (this.initialized) {
|
449 |
-
t.on(u + ".shuffleitem", s);
|
450 |
-
} else {
|
451 |
-
s();
|
452 |
-
}
|
453 |
-
} else {
|
454 |
-
if ("visibility" in n) {
|
455 |
-
t.css("visibility", n.visibility);
|
456 |
-
delete n.visibility;
|
457 |
-
}
|
458 |
-
t.stop(true).animate(n, this.speed, "swing", s);
|
459 |
-
}
|
460 |
-
},
|
461 |
-
_handleItemAnimationEnd: function (t, n, r, i) {
|
462 |
-
if (i) {
|
463 |
-
if (i.target === n) {
|
464 |
-
e(n).off(".shuffleitem");
|
465 |
-
} else {
|
466 |
-
return;
|
467 |
-
}
|
468 |
-
}
|
469 |
-
if (this._layoutList.length > 0 && e.inArray(n, this._layoutList) > -1) {
|
470 |
-
this._fire(b.EventType.LAYOUT);
|
471 |
-
t.call(this);
|
472 |
-
this._layoutList.length = 0;
|
473 |
-
} else if (this._shrinkList.length > 0 && e.inArray(n, this._shrinkList) > -1) {
|
474 |
-
t.call(this);
|
475 |
-
this._shrinkList.length = 0;
|
476 |
-
}
|
477 |
-
if (!r) {
|
478 |
-
n.style.visibility = "hidden";
|
479 |
-
}
|
480 |
-
},
|
481 |
-
_processStyleQueue: function () {
|
482 |
-
var t = this;
|
483 |
-
e.each(this.styleQueue, function (e, n) {
|
484 |
-
if (n.skipTransition) {
|
485 |
-
t._skipTransition(n.$item[0], function () {
|
486 |
-
n.$item.css(t._getStylesForTransition(n));
|
487 |
-
});
|
488 |
-
} else {
|
489 |
-
t._transition(n);
|
490 |
-
}
|
491 |
-
});
|
492 |
-
t.styleQueue.length = 0;
|
493 |
-
},
|
494 |
-
_shrinkEnd: function () {
|
495 |
-
this._fire(b.EventType.SHRUNK);
|
496 |
-
},
|
497 |
-
_filterEnd: function () {
|
498 |
-
this._fire(b.EventType.FILTERED);
|
499 |
-
},
|
500 |
-
_sortEnd: function () {
|
501 |
-
this._fire(b.EventType.SORTED);
|
502 |
-
},
|
503 |
-
_skipTransition: function (t, n, r) {
|
504 |
-
var i = t.style[o];
|
505 |
-
t.style[o] = "0ms";
|
506 |
-
if (e.isFunction(n)) {
|
507 |
-
n();
|
508 |
-
} else {
|
509 |
-
t.style[n] = r;
|
510 |
-
}
|
511 |
-
var s = t.offsetWidth;
|
512 |
-
s = null;
|
513 |
-
t.style[o] = i;
|
514 |
-
},
|
515 |
-
_addItems: function (e, t, r) {
|
516 |
-
var i = this;
|
517 |
-
if (!i.supported) {
|
518 |
-
t = false;
|
519 |
-
}
|
520 |
-
e.addClass("shuffle-item");
|
521 |
-
i._initItems(e);
|
522 |
-
i._setTransitions(e);
|
523 |
-
i.$items = i._getItems();
|
524 |
-
e.css("opacity", 0);
|
525 |
-
var s = i._filter(n, e);
|
526 |
-
var o = s.get();
|
527 |
-
i._updateItemCount();
|
528 |
-
if (t) {
|
529 |
-
i._layout(o, null, true);
|
530 |
-
if (r) {
|
531 |
-
i._setSequentialDelay(s);
|
532 |
-
}
|
533 |
-
i._revealAppended(s);
|
534 |
-
} else {
|
535 |
-
i._layout(o);
|
536 |
-
}
|
537 |
-
},
|
538 |
-
_revealAppended: function (t) {
|
539 |
-
var n = this;
|
540 |
-
setTimeout(function () {
|
541 |
-
t.each(function (t, r) {
|
542 |
-
n._transition({ $item: e(r), opacity: 1, scale: v });
|
543 |
-
});
|
544 |
-
}, n.revealAppendedDelay);
|
545 |
-
},
|
546 |
-
shuffle: function (e, t) {
|
547 |
-
var n = this;
|
548 |
-
if (!n.enabled) {
|
549 |
-
return;
|
550 |
-
}
|
551 |
-
if (!e) {
|
552 |
-
e = p;
|
553 |
-
}
|
554 |
-
n._filter(e);
|
555 |
-
n.lastFilter = e;
|
556 |
-
n._updateItemCount();
|
557 |
-
n._shrink();
|
558 |
-
if (t) {
|
559 |
-
n.lastSort = t;
|
560 |
-
}
|
561 |
-
n._reLayout();
|
562 |
-
},
|
563 |
-
sort: function (e, t) {
|
564 |
-
var n = this,
|
565 |
-
r = n.$items.filter(".filtered").sorted(e);
|
566 |
-
if (!t) {
|
567 |
-
n._resetCols();
|
568 |
-
}
|
569 |
-
n._layout(r, function () {
|
570 |
-
if (t) {
|
571 |
-
n._filterEnd();
|
572 |
-
}
|
573 |
-
n._sortEnd();
|
574 |
-
});
|
575 |
-
n.lastSort = e;
|
576 |
-
},
|
577 |
-
resized: function (e) {
|
578 |
-
if (this.enabled) {
|
579 |
-
if (!e) {
|
580 |
-
this._setColumns();
|
581 |
-
}
|
582 |
-
this._reLayout();
|
583 |
-
}
|
584 |
-
},
|
585 |
-
layout: function () {
|
586 |
-
this.update(true);
|
587 |
-
},
|
588 |
-
update: function (e) {
|
589 |
-
this.resized(e);
|
590 |
-
},
|
591 |
-
appended: function (e, t, n) {
|
592 |
-
t = t === false ? false : true;
|
593 |
-
n = n === false ? false : true;
|
594 |
-
this._addItems(e, t, n);
|
595 |
-
},
|
596 |
-
disable: function () {
|
597 |
-
this.enabled = false;
|
598 |
-
},
|
599 |
-
enable: function (e) {
|
600 |
-
this.enabled = true;
|
601 |
-
if (e !== false) {
|
602 |
-
this.update();
|
603 |
-
}
|
604 |
-
},
|
605 |
-
remove: function (e) {
|
606 |
-
if (!e.length || !e.jquery) {
|
607 |
-
return;
|
608 |
-
}
|
609 |
-
var t = this;
|
610 |
-
t._shrink(e, function () {
|
611 |
-
var t = this;
|
612 |
-
e.remove();
|
613 |
-
setTimeout(function () {
|
614 |
-
t.$items = t._getItems();
|
615 |
-
t.layout();
|
616 |
-
t._updateItemCount();
|
617 |
-
t._fire(b.EventType.REMOVED, [e, t]);
|
618 |
-
e = null;
|
619 |
-
}, 0);
|
620 |
-
});
|
621 |
-
t._processStyleQueue();
|
622 |
-
return t;
|
623 |
-
},
|
624 |
-
destroy: function () {
|
625 |
-
var e = this;
|
626 |
-
e.$window.off("." + e.unique);
|
627 |
-
e.$el.removeClass(h).removeAttr("style").removeData(h);
|
628 |
-
e.$items.removeAttr("style").removeClass("concealed filtered shuffle-item");
|
629 |
-
e.$window = null;
|
630 |
-
e.$items = null;
|
631 |
-
e.$el = null;
|
632 |
-
e.$sizer = null;
|
633 |
-
e.sizer = null;
|
634 |
-
e.destroyed = true;
|
635 |
-
},
|
636 |
-
};
|
637 |
-
b.options = {
|
638 |
-
group: p,
|
639 |
-
speed: 250,
|
640 |
-
easing: "ease-out",
|
641 |
-
itemSelector: "",
|
642 |
-
sizer: null,
|
643 |
-
gutterWidth: 0,
|
644 |
-
columnWidth: 0,
|
645 |
-
delimeter: null,
|
646 |
-
buffer: 0,
|
647 |
-
initialSort: null,
|
648 |
-
throttle: g,
|
649 |
-
throttleTime: 300,
|
650 |
-
sequentialFadeDelay: 150,
|
651 |
-
supported: l,
|
652 |
-
};
|
653 |
-
b.settings = { $sizer: null, useSizer: false, itemCss: { position: "absolute", top: 0, left: 0 }, offset: { top: 0, left: 0 }, revealAppendedDelay: 300, enabled: true, destroyed: false, initialized: false, styleQueue: [] };
|
654 |
-
e.fn.shuffle = function (t) {
|
655 |
-
var n = Array.prototype.slice.call(arguments, 1);
|
656 |
-
return this.each(function () {
|
657 |
-
var r = e(this),
|
658 |
-
i = r.data(h);
|
659 |
-
if (!i) {
|
660 |
-
i = new b(r, t);
|
661 |
-
r.data(h, i);
|
662 |
-
}
|
663 |
-
if (typeof t === "string" && i[t]) {
|
664 |
-
i[t].apply(i, n);
|
665 |
-
}
|
666 |
-
});
|
667 |
-
};
|
668 |
-
e.fn.sorted = function (t) {
|
669 |
-
var r = e.extend({}, e.fn.sorted.defaults, t),
|
670 |
-
i = this.get(),
|
671 |
-
s = false;
|
672 |
-
if (!i.length) {
|
673 |
-
return [];
|
674 |
-
}
|
675 |
-
if (r.randomize) {
|
676 |
-
return e.fn.sorted.randomize(i);
|
677 |
-
}
|
678 |
-
if (r.by !== e.noop && r.by !== null && r.by !== n) {
|
679 |
-
i.sort(function (t, i) {
|
680 |
-
if (s) {
|
681 |
-
return 0;
|
682 |
-
}
|
683 |
-
var o = r.by(e(t)),
|
684 |
-
u = r.by(e(i));
|
685 |
-
if (o === n && u === n) {
|
686 |
-
s = true;
|
687 |
-
return 0;
|
688 |
-
}
|
689 |
-
if (o === "sortFirst" || u === "sortLast") {
|
690 |
-
return -1;
|
691 |
-
}
|
692 |
-
if (o === "sortLast" || u === "sortFirst") {
|
693 |
-
return 1;
|
694 |
-
}
|
695 |
-
return o < u ? -1 : o > u ? 1 : 0;
|
696 |
-
});
|
697 |
-
}
|
698 |
-
if (s) {
|
699 |
-
return this.get();
|
700 |
-
}
|
701 |
-
if (r.reverse) {
|
702 |
-
i.reverse();
|
703 |
-
}
|
704 |
-
return i;
|
705 |
-
};
|
706 |
-
e.fn.sorted.defaults = { reverse: false, by: null, randomize: false };
|
707 |
-
e.fn.sorted.randomize = function (e) {
|
708 |
-
var t = e.length,
|
709 |
-
n,
|
710 |
-
r;
|
711 |
-
if (!t) {
|
712 |
-
return e;
|
713 |
-
}
|
714 |
-
while (--t) {
|
715 |
-
r = Math.floor(Math.random() * (t + 1));
|
716 |
-
n = e[r];
|
717 |
-
e[r] = e[t];
|
718 |
-
e[t] = n;
|
719 |
-
}
|
720 |
-
return e;
|
721 |
-
};
|
722 |
-
return b;
|
723 |
-
});
|
1 |
+
!function(t){"function"==typeof define&&define.amd?define(["jquery","modernizr"],t):t(window.jQuery,window.Modernizr)}(function(t,i,e){"use strict";if("object"!=typeof i)throw new Error("Shuffle.js requires Modernizr.\nhttp://vestride.github.io/Shuffle/#dependencies");var s,n=i.prefixed("transition"),r=i.prefixed("transitionDelay"),o=i.prefixed("transitionDuration"),a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],l=i.prefixed("transform"),h=(s=l)?s.replace(/([A-Z])/g,function(t,i){return"-"+i.toLowerCase()}).replace(/^ms-/,"-ms-"):"",u=i.csstransforms&&i.csstransitions,f=i.csstransforms3d;var d=0,c=function(i,e){e=e||{},t.extend(this,c.options,e,c.settings),this.$el=t(i),this.$window=t(window),this.unique="shuffle_"+d++,this._fire(c.EventType.LOADING),this._init(),setTimeout(t.proxy(function(){this.initialized=!0,this._fire(c.EventType.DONE)},this),16)};return c.EventType={LOADING:"loading",DONE:"done",SHRINK:"shrink",SHRUNK:"shrunk",FILTER:"filter",FILTERED:"filtered",SORTED:"sorted",LAYOUT:"layout",REMOVED:"removed"},c.prototype={_init:function(){var i,e,s=this,r=t.proxy(s._onResize,s),o=s.throttle?s.throttle(r,s.throttleTime):r,a=s.initialSort?s.initialSort:null;s._layoutList=[],s._shrinkList=[],s._setVars(),s._resetCols(),s._addClasses(),s._initItems(),s.$window.on("resize.shuffle."+s.unique,o),i=s.$el.css(["paddingLeft","paddingRight","position"]),e=s._getOuterWidth(s.$el[0]),"static"===i.position&&(s.$el[0].style.position="relative"),s.offset={left:parseInt(i.paddingLeft,10)||0,top:parseInt(i.paddingTop,10)||0},s._setColumns(parseInt(e,10)),s.shuffle(s.group,a),s.supported&&setTimeout(function(){s._setTransitions(),s.$el[0].style[n]="height "+s.speed+"ms "+s.easing},0)},_addClasses:function(){this.$el.addClass("shuffle"),this.$items.addClass("shuffle-item filtered")},_setVars:function(){var i=this.columnWidth;this.$items=this._getItems(),0===i&&null!==this.sizer&&(i=this.sizer),"string"==typeof i?this.$sizer=this.$el.find(i):i&&i.nodeType&&1===i.nodeType?this.$sizer=t(i):i&&i.jquery&&(this.$sizer=i),this.$sizer&&this.$sizer.length&&(this.useSizer=!0,this.sizer=this.$sizer[0])},_filter:function(i,s){var n=this,r=s!==e?s:n.$items,o=t();return i=i||n.lastFilter,n._fire(c.EventType.FILTER),t.isFunction(i)?r.each(function(){var e=t(this);i.call(e[0],e,n)&&(o=o.add(e))}):(n.group=i,"all"===i?o=r:r.each(function(){var e=t(this),s=e.data("groups"),r=n.delimeter&&!t.isArray(s)?s.split(n.delimeter):s;t.inArray(i,r)>-1&&(o=o.add(e))})),n._toggleFilterClasses(r,o),r=null,s=null,o},_toggleFilterClasses:function(i,e){i.filter(e).each(function(){var i=t(this);i.hasClass("concealed")&&i.removeClass("concealed"),i.hasClass("filtered")||i.addClass("filtered")}),i.not(e).each(function(){var i=t(this);i.hasClass("concealed")||i.addClass("concealed"),i.hasClass("filtered")&&i.removeClass("filtered")})},_initItems:function(t){(t=t||this.$items).css(this.itemCss).data("position",{x:0,y:0})},_updateItemCount:function(){this.visibleItems=this.$items.filter(".filtered").length},_setTransition:function(t){t.style[n]=h+" "+this.speed+"ms "+this.easing},_setTransitions:function(t){var i=this;(t=t||i.$items).each(function(){i._setTransition(this)})},_setSequentialDelay:function(i){var e=this;e.supported&&t.each(i,function(i,s){s.style[r]="0ms,"+(i+1)*e.sequentialFadeDelay+"ms",t(s).on(a+"."+e.unique,function(i){var s=i.currentTarget;s===i.target&&(s.style[r]="0ms",t(s).off(a+"."+e.unique))})})},_getItems:function(){return this.$el.children(this.itemSelector)},_getPreciseDimension:function(i,e){var s;return s=window.getComputedStyle?window.getComputedStyle(i,null)[e]:t(i).css(e),parseFloat(s)},_getOuterWidth:function(i,e){var s=i.offsetWidth;if(e){var n=t(i).css(["marginLeft","marginRight"]);s+=(parseFloat(n.marginLeft)||0)+(parseFloat(n.marginRight)||0)}return s},_getOuterHeight:function(i,e){var s=i.offsetHeight;if(e){var n=t(i).css(["marginTop","marginBottom"]);s+=(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}return s},_getColumnSize:function(i,e){var s;return 0===(s=t.isFunction(this.columnWidth)?this.columnWidth(e):this.useSizer?this._getPreciseDimension(this.sizer,"width"):this.columnWidth?this.columnWidth:this.$items.length>0?this._getOuterWidth(this.$items[0],!0):e)&&(s=e),s+i},_getGutterSize:function(i){return t.isFunction(this.gutterWidth)?this.gutterWidth(i):this.useSizer?this._getPreciseDimension(this.sizer,"marginLeft"):this.gutterWidth},_setColumns:function(t){var i=t||this._getOuterWidth(this.$el[0]),e=this._getGutterSize(i),s=this._getColumnSize(e,i),n=(i+e)/s;Math.abs(Math.round(n)-n)<.03&&(n=Math.round(n)),this.cols=Math.max(Math.floor(n),1),this.containerWidth=i,this.colWidth=s},_setContainerSize:function(){this.$el.css("height",Math.max.apply(Math,this.colYs))},_fire:function(t,i){this.$el.trigger(t+".shuffle",i&&i.length?i:[this])},_layout:function(i,e,s){var n=this;e=e||n._filterEnd,t.each(i,function(i,r){var o=t(r),a=o.data(),l=a.position,h=n._getItemPosition(o);if(o.data("position",h),h.x!==l.x||h.y!==l.y||1!==a.scale){var u={$item:o,x:h.x,y:h.y,scale:1};s?(u.skipTransition=!0,u.opacity=0):(u.opacity=1,u.callback=e),n.styleQueue.push(u),n._layoutList.push(o[0])}}),n._processStyleQueue(),n._setContainerSize()},_resetCols:function(){var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0)},_reLayout:function(){this._resetCols(),this.lastSort?this.sort(this.lastSort,!0):this._layout(this.$items.filter(".filtered").get(),this._filterEnd)},_getItemPosition:function(t){var i=this._getOuterWidth(t[0],!0)/this.colWidth;Math.abs(Math.round(i)-i)<.03&&(i=Math.round(i));var e=Math.min(Math.ceil(i),this.cols);if(1===e)return this._placeItem(t,this.colYs);var s,n,r=this.cols+1-e,o=[];for(n=0;n<r;n++)s=this.colYs.slice(n,n+e),o[n]=Math.max.apply(Math,s);return this._placeItem(t,o)},_placeItem:function(t,i){for(var e=Math.min.apply(Math,i),s=0,n=0,r=i.length;n<r;n++)if(i[n]>=e-this.buffer&&i[n]<=e+this.buffer){s=n;break}var o={x:Math.round(this.colWidth*s+this.offset.left),y:Math.round(e+this.offset.top)},a=e+this._getOuterHeight(t[0],!0),l=this.cols+1-r;for(n=0;n<l;n++)this.colYs[s+n]=a;return o},_shrink:function(i,e){var s=this,n=i||s.$items.filter(".concealed");e=e||s._shrinkEnd,n.length&&(s._fire(c.EventType.SHRINK),n.each(function(){var i=t(this),n=i.data();if(!(.001===n.scale)){var r={$item:i,x:n.position.x,y:n.position.y,scale:.001,opacity:0,callback:e};s.styleQueue.push(r),s._shrinkList.push(i[0])}}))},_onResize:function(){this.enabled&&!this.destroyed&&(this._getOuterWidth(this.$el[0])!==this.containerWidth&&this.resized())},_getItemTransformString:function(t,i,e){return f?"translate3d("+t+"px, "+i+"px, 0) scale3d("+e+", "+e+", 1)":"translate("+t+"px, "+i+"px) scale("+e+", "+e+")"},_getStylesForTransition:function(t){var i={opacity:t.opacity};return this.supported?t.x!==e&&(i[l]=this._getItemTransformString(t.x,t.y,t.scale)):(i.left=t.x,i.top=t.y),1===t.opacity&&(i.visibility="visible"),i},_transition:function(t){t.$item.data("scale",t.scale);var i=this._getStylesForTransition(t);this._startItemAnimation(t.$item,i,t.callback)},_startItemAnimation:function(i,e,s){var n=1===e.opacity,r=t.proxy(this._handleItemAnimationEnd,this,s||t.noop,i[0],n);this.supported?(i.css(e),this.initialized?i.on(a+".shuffleitem",r):r()):("visibility"in e&&(i.css("visibility",e.visibility),delete e.visibility),i.stop(!0).animate(e,this.speed,"swing",r))},_handleItemAnimationEnd:function(i,e,s,n){if(n){if(n.target!==e)return;t(e).off(".shuffleitem")}this._layoutList.length>0&&t.inArray(e,this._layoutList)>-1?(this._fire(c.EventType.LAYOUT),i.call(this),this._layoutList.length=0):this._shrinkList.length>0&&t.inArray(e,this._shrinkList)>-1&&(i.call(this),this._shrinkList.length=0),s||(e.style.visibility="hidden")},_processStyleQueue:function(){var i=this;t.each(this.styleQueue,function(t,e){e.skipTransition?i._skipTransition(e.$item[0],function(){e.$item.css(i._getStylesForTransition(e))}):i._transition(e)}),i.styleQueue.length=0},_shrinkEnd:function(){this._fire(c.EventType.SHRUNK)},_filterEnd:function(){this._fire(c.EventType.FILTERED)},_sortEnd:function(){this._fire(c.EventType.SORTED)},_skipTransition:function(i,e,s){var n=i.style[o];i.style[o]="0ms",t.isFunction(e)?e():i.style[e]=s;i.offsetWidth;i.style[o]=n},_addItems:function(t,i,s){this.supported||(i=!1),t.addClass("shuffle-item"),this._initItems(t),this._setTransitions(t),this.$items=this._getItems(),t.css("opacity",0);var n=this._filter(e,t),r=n.get();this._updateItemCount(),i?(this._layout(r,null,!0),s&&this._setSequentialDelay(n),this._revealAppended(n)):this._layout(r)},_revealAppended:function(i){var e=this;setTimeout(function(){i.each(function(i,s){e._transition({$item:t(s),opacity:1,scale:1})})},e.revealAppendedDelay)},shuffle:function(t,i){this.enabled&&(t||(t="all"),this._filter(t),this.lastFilter=t,this._updateItemCount(),this._shrink(),i&&(this.lastSort=i),this._reLayout())},sort:function(t,i){var e=this,s=e.$items.filter(".filtered").sorted(t);i||e._resetCols(),e._layout(s,function(){i&&e._filterEnd(),e._sortEnd()}),e.lastSort=t},resized:function(t){this.enabled&&(t||this._setColumns(),this._reLayout())},layout:function(){this.update(!0)},update:function(t){this.resized(t)},appended:function(t,i,e){i=!1!==i,e=!1!==e,this._addItems(t,i,e)},disable:function(){this.enabled=!1},enable:function(t){this.enabled=!0,!1!==t&&this.update()},remove:function(t){if(t.length&&t.jquery){return this._shrink(t,function(){var i=this;t.remove(),setTimeout(function(){i.$items=i._getItems(),i.layout(),i._updateItemCount(),i._fire(c.EventType.REMOVED,[t,i]),t=null},0)}),this._processStyleQueue(),this}},destroy:function(){this.$window.off("."+this.unique),this.$el.removeClass("shuffle").removeAttr("style").removeData("shuffle"),this.$items.removeAttr("style").removeClass("concealed filtered shuffle-item"),this.$window=null,this.$items=null,this.$el=null,this.$sizer=null,this.sizer=null,this.destroyed=!0}},c.options={group:"all",speed:250,easing:"ease-out",itemSelector:"",sizer:null,gutterWidth:0,columnWidth:0,delimeter:null,buffer:0,initialSort:null,throttle:function(i,e,s){var n,r,o,a=null,l=0;s=s||{};var h=function(){l=!1===s.leading?0:t.now(),a=null,o=i.apply(n,r),n=r=null};return function(){var u=t.now();l||!1!==s.leading||(l=u);var f=e-(u-l);return n=this,r=arguments,f<=0||f>e?(clearTimeout(a),a=null,l=u,o=i.apply(n,r),n=r=null):a||!1===s.trailing||(a=setTimeout(h,f)),o}},throttleTime:300,sequentialFadeDelay:150,supported:u},c.settings={$sizer:null,useSizer:!1,itemCss:{position:"absolute",top:0,left:0},offset:{top:0,left:0},revealAppendedDelay:300,enabled:!0,destroyed:!1,initialized:!1,styleQueue:[]},t.fn.shuffle=function(i){var e=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),n=s.data("shuffle");n||(n=new c(s,i),s.data("shuffle",n)),"string"==typeof i&&n[i]&&n[i].apply(n,e)})},t.fn.sorted=function(i){var s=t.extend({},t.fn.sorted.defaults,i),n=this.get(),r=!1;return n.length?s.randomize?t.fn.sorted.randomize(n):(s.by!==t.noop&&null!==s.by&&s.by!==e&&n.sort(function(i,n){if(r)return 0;var o=s.by(t(i)),a=s.by(t(n));return o===e&&a===e?(r=!0,0):"sortFirst"===o||"sortLast"===a?-1:"sortLast"===o||"sortFirst"===a?1:o<a?-1:o>a?1:0}),r?this.get():(s.reverse&&n.reverse(),n)):[]},t.fn.sorted.defaults={reverse:!1,by:null,randomize:!1},t.fn.sorted.randomize=function(t){var i,e,s=t.length;if(!s)return t;for(;--s;)i=t[e=Math.floor(Math.random()*(s+1))],t[e]=t[s],t[s]=i;return t},c});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|