How to use plus method in Karma

Best JavaScript code snippet using karma

Run Karma automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

custom-admin.js

Source: custom-admin.js Github

copy
1function sfsi_plus_update_index() {
2    var s = 1;
3    SFSI("ul.plus_icn_listing li.plus_custom").each(function() {
4        SFSI(this).children("span.sfsiplus_custom-txt").html("Custom " + s), s++;
5    }), cntt = 1, SFSI("div.cm_lnk").each(function() {
6        SFSI(this).find("h2.custom").find("span.sfsiCtxt").html("Custom " + cntt + ":"), 
7        cntt++;
8    }), cntt = 1, SFSI("div.plus_custom_m").find("div.sfsiplus_custom_section").each(function() {
9        SFSI(this).find("label").html("Custom " + cntt + ":"), cntt++;
10    });
11}
12function sfsipluscollapse(s)
13{
14    var i = !0, e = SFSI(s).closest("div.ui-accordion-content").prev("h3.ui-accordion-header"), t = SFSI(s).closest("div.ui-accordion-content").first();
15    e.toggleClass("ui-corner-all", i).toggleClass("accordion-header-active ui-state-active ui-corner-top", !i).attr("aria-selected", (!i).toString()), 
16    e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", i).toggleClass("ui-icon-triangle-1-s", !i), 
17    t.toggleClass("accordion-content-active", !i), i ? t.slideUp() :t.slideDown();
18}
19function sfsi_plus_delete_CusIcon(s, i)
20{
21    sfsiplus_beForeLoad();
22    var e = {
23        action:"plus_deleteIcons",
24        icon_name:i.attr("name")
25    };
26	SFSI.ajax({
27        url:ajax_object.ajax_url,
28        type:"post",
29        data:e,
30        dataType:"json",
31        success:function(e) {
32           if ("success" == e.res) {
33                sfsiplus_showErrorSuc("success", "Saved !", 1);
34                var t = e.last_index + 1;
35                var attr =  i.attr("name");
36				attr = attr.replace('plus', '');
37				SFSI("#plus_total_cusotm_icons").val(e.total_up), SFSI(s).closest(".plus_custom").remove(), 
38                SFSI("li.plus_custom:last-child").addClass("bdr_btm_non"), SFSI(".plus_custom-links").find("div." + attr).remove(), 
39                SFSI(".plus_custom_m").find("div." + attr).remove(), SFSI(".plus_share_icon_order").children("li." + attr).remove(), 
40                SFSI("ul.plus_sfsi_sample_icons").children("li." + attr).remove();
41                var n = e.total_up + 1;
42                4 == e.total_up && SFSI(".plus_icn_listing").append('<li id="plus_c' + t + '" class="plus_custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="plussfsiICON_' + t + '_display"  type="checkbox" value="yes" class="styled" style="display:none;" element-type="sfsiplus-cusotm-icon" isNew="yes" /></div> <span class="plus_custom-img"><img src="' + SFSI("#plugin_url").val() + 'images/custom.png" id="plus_CImg_' + t + '"  /> </span> <span class="custom sfsiplus_custom-txt">Custom' + n + ' </span> <div class="sfsiplus_right_info"> <p><span>'+object_name1.It_depends+':</span> '+object_name1.Upload_a+'</p><div class="inputWrapper"></div></li>');
43            } else sfsiplus_showErrorSuc("error", "Unkown error , please try again", 1);
44            return sfsi_plus_update_index(), plus_update_Sec5Iconorder(), sfsi_plus_update_step1(), sfsi_plus_update_step5(), 
45            sfsiplus_afterLoad(), "suc";
46        }
47    });
48}
49function plus_update_Sec5Iconorder()
50{
51    SFSI("ul.plus_share_icon_order").children("li").each(function() {
52        SFSI(this).attr("data-index", SFSI(this).index() + 1);
53    });
54}
55function sfsi_plus_section_Display(s, i)
56{
57    "hide" == i ? (SFSI("." + s + " :input").prop("disabled", !0), SFSI("." + s + " :button").prop("disabled", !0), 
58    SFSI("." + s).hide()) :(SFSI("." + s + " :input").removeAttr("disabled", !0), SFSI("." + s + " :button").removeAttr("disabled", !0), 
59    SFSI("." + s).show());
60}
61function sfsi_plus_depened_sections()
62{
63    if ("sfsi" == SFSI("input[name='sfsi_plus_rss_icons']:checked").val()) {
64        for (i = 0; 16 > i; i++) {
65            var s = i + 1, e = 74 * i;
66            SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-588px -" + e + "px");
67        }
68        var t = SFSI(".icon_img").attr("src");
69		if(t)
70		{
71			if (t.indexOf("subscribe") !=-1)
72			{
73				var n = t.replace("subscribe.png", "sf_arow_icn.png");
74			}
75			else
76			{
77				var n = t.replace("email.png", "sf_arow_icn.png");
78			}
79			SFSI(".icon_img").attr("src", n);
80		}
81	}
82	else
83	{
84        if("email" == SFSI("input[name='sfsi_plus_rss_icons']:checked").val())
85		{
86			for (SFSI(".sfsiplus_row_1_2").css("background-position", "-58px 0"), i = 0; 16 > i; i++) {
87				var s = i + 1, e = 74 * i;
88				SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-58px -" + e + "px");
89			}
90			var t = SFSI(".icon_img").attr("src");
91			if (t) {
92				if (t.indexOf("sf_arow_icn") !=-1)
93				{
94					var n = t.replace("sf_arow_icn.png", "email.png");
95				}
96				else
97				{
98					var n = t.replace("subscribe.png", "email.png");
99				}
100				SFSI(".icon_img").attr("src", n);
101			}
102		}
103		else
104		{
105			for (SFSI(".sfsiplus_row_1_2").css("background-position", "-649px 0"), i = 0; 16 > i; i++) {
106				var s = i + 1, e = 74 * i;
107				SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-649px -" + e + "px");
108			}
109			var t = SFSI(".icon_img").attr("src");
110			if (t) {
111				if (t.indexOf("email") !=-1)
112				{
113					var n = t.replace("email.png", "subscribe.png");
114				}
115				else
116				{
117					var n = t.replace("sf_arow_icn.png", "subscribe.png");
118				}
119				SFSI(".icon_img").attr("src", n);
120			}
121		}
122    }
123    SFSI("input[name='sfsi_plus_rss_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_rss_section", "show") :sfsi_plus_section_Display("sfsiplus_rss_section", "hide"), 
124    SFSI("input[name='sfsi_plus_email_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_email_section", "show") :sfsi_plus_section_Display("sfsiplus_email_section", "hide"), 
125    SFSI("input[name='sfsi_plus_facebook_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_facebook_section", "show") :sfsi_plus_section_Display("sfsiplus_facebook_section", "hide"), 
126    SFSI("input[name='sfsi_plus_twitter_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_twitter_section", "show") :sfsi_plus_section_Display("sfsiplus_twitter_section", "hide"), 
127    SFSI("input[name='sfsi_plus_google_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_google_section", "show") :sfsi_plus_section_Display("sfsiplus_google_section", "hide"), 
128    SFSI("input[name='sfsi_plus_share_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_share_section", "show") :sfsi_plus_section_Display("sfsiplus_share_section", "hide"), 
129    SFSI("input[name='sfsi_plus_youtube_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_youtube_section", "show") :sfsi_plus_section_Display("sfsiplus_youtube_section", "hide"), 
130    SFSI("input[name='sfsi_plus_pinterest_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_pinterest_section", "show") :sfsi_plus_section_Display("sfsiplus_pinterest_section", "hide"), 
131    SFSI("input[name='sfsi_plus_instagram_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_instagram_section", "show") :sfsi_plus_section_Display("sfsiplus_instagram_section", "hide"), 
132	SFSI("input[name='sfsi_plus_houzz_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_houzz_section", "show") :sfsi_plus_section_Display("sfsiplus_houzz_section", "hide"), 
133    SFSI("input[name='sfsi_plus_linkedin_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_linkedin_section", "show") :sfsi_plus_section_Display("sfsiplus_linkedin_section", "hide"), 
134    SFSI("input[element-type='sfsiplus-cusotm-icon']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_custom_section", "show") :sfsi_plus_section_Display("sfsiplus_custom_section", "hide");
135}
136function PlusCustomIConSectionsUpdate()
137{
138    sfsi_plus_section_Display("counter".ele, show);
139}
140// Upload Custom Skin {Monad}
141function plus_sfsi_customskin_upload(s, ref)
142{
143	var ttl = jQuery(ref).attr("title");
144	var i = s, e = {
145        action:"plus_UploadSkins",
146        custom_imgurl:i
147    };
148	SFSI.ajax({
149        url:ajax_object.ajax_url,
150        type:"post",
151        data:e,
152        success:function(msg) {
153			 if (msg.res = "success")
154			 {
155				 var arr = s.split('=');
156				 jQuery(ref).prev('.imgskin').attr('src', arr[1]);
157				 jQuery(ref).prev('.imgskin').css("display","block");
158				 jQuery(ref).text("Update");
159				 jQuery(ref).next('.dlt_btn').css("display","block");
160			 }
161        }
162    });
163}
164// Delete Custom Skin {Monad}
165function sfsiplus_deleteskin_icon(s)
166{
167	var iconname = jQuery(s).attr("title");
168	var nonce = jQuery(s).attr("data-nonce");
169	var i = iconname, e = {
170        action:"plus_DeleteSkin",
171        iconname:i,
172		nonce:nonce
173    };
174	
175	SFSI.ajax({
176        url:ajax_object.ajax_url,
177        type:"post",
178        data:e,
179		dataType: "json",
180		success:function(msg) {
181			if (msg.res === "success")
182			{
183				SFSI(s).prev("a").text("Upload");
184				SFSI(s).prev("a").prev("img").attr("src",'');
185				SFSI(s).prev("a").prev("img").css("display","none");
186				SFSI(s).css("display","none");
187			}
188			else
189			{
190				alert("Whoops! something went wrong.")
191			}
192        }
193    });
194}
195// Save Custom Skin {Monad}
196function SFSI_plus_done()
197{
198	e = { action:"plus_Iamdone" };
199	
200	SFSI.ajax({
201        url:ajax_object.ajax_url,
202        type:"post",
203        data:e,
204        success:function(msg) {
205			  jQuery("li.cstomskins_upload").children(".sfsiplus_icns_tab_3").html(msg);
206			  SFSI("input[name='sfsi_plus_rss_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_rss_section", "show") :sfsi_plus_section_Display("sfsiplus_rss_section", "hide"),SFSI("input[name='sfsi_plus_email_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_email_section", "show") :sfsi_plus_section_Display("sfsiplus_email_section", "hide"),SFSI("input[name='sfsi_plus_facebook_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_facebook_section", "show") :sfsi_plus_section_Display("sfsiplus_facebook_section", "hide"), SFSI("input[name='sfsi_plus_twitter_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_twitter_section", "show") :sfsi_plus_section_Display("sfsiplus_twitter_section", "hide"),SFSI("input[name='sfsi_plus_google_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_google_section", "show") :sfsi_plus_section_Display("sfsiplus_google_section", "hide"), SFSI("input[name='sfsi_plus_share_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_share_section", "show") :sfsi_plus_section_Display("sfsiplus_share_section", "hide"), SFSI("input[name='sfsi_plus_youtube_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_youtube_section", "show") :sfsi_plus_section_Display("sfsiplus_youtube_section", "hide"), SFSI("input[name='sfsi_plus_pinterest_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_pinterest_section", "show") :sfsi_plus_section_Display("sfsiplus_pinterest_section", "hide"), SFSI("input[name='sfsi_plus_instagram_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_instagram_section", "show") :sfsi_plus_section_Display("sfsiplus_instagram_section", "hide"), SFSI("input[name='sfsi_plus_houzz_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_houzz_section", "show") :sfsi_plus_section_Display("sfsiplus_houzz_section", "hide"), SFSI("input[name='sfsi_plus_linkedin_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_linkedin_section", "show") :sfsi_plus_section_Display("sfsiplus_linkedin_section", "hide"), SFSI("input[element-type='sfsiplus-cusotm-icon']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_custom_section", "show") :sfsi_plus_section_Display("sfsiplus_custom_section", "hide");
207        	  SFSI(".cstmskins-overlay").hide("slow");
208			  sfsi_plus_update_step3() && sfsipluscollapse(this);
209		}
210    });
211}
212// Upload Custom Icons {Monad}
213function plus_sfsi_newcustomicon_upload(s)
214{
215    var i = s, e = {
216        action:"plus_UploadIcons",
217        custom_imgurl:i
218    };
219    SFSI.ajax({
220        url:ajax_object.ajax_url,
221        type:"post",
222        data:e,
223        dataType:"json",
224        async:!0,
225        success:function(s) {
226			if(s.res == 'success')
227			{
228				sfsiplus_afterIconSuccess(s);
229			}
230			else
231			{
232				SFSI(".upload-overlay").hide("slow");
233				SFSI(".uperror").html(s.res);
234				sfsiplus_showErrorSuc("Error", "Some Error Occured During Upload Custom Icon", 1)
235			}
236        }
237    });
238}
239function sfsi_plus_update_step1()
240{
241	var nonce = SFSI("#sfsi_plus_save1").attr("data-nonce");
242    global_error = 0, sfsiplus_beForeLoad(), sfsi_plus_depened_sections();
243    var s = !1, i = SFSI("input[name='sfsi_plus_rss_display']:checked").val(), e = SFSI("input[name='sfsi_plus_email_display']:checked").val(), t = SFSI("input[name='sfsi_plus_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_plus_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_plus_google_display']:checked").val(), a = SFSI("input[name='sfsi_plus_share_display']:checked").val(), r = SFSI("input[name='sfsi_plus_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_plus_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_plus_linkedin_display']:checked").val(), _ = SFSI("input[name='sfsi_plus_instagram_display']:checked").val(), houzz = SFSI("input[name='sfsi_plus_houzz_display']:checked").val(), l = SFSI("input[name='sfsi_custom1_display']:checked").val(), S = SFSI("input[name='sfsi_custom2_display']:checked").val(), u = SFSI("input[name='sfsi_custom3_display']:checked").val(), f = SFSI("input[name='sfsi_custom4_display']:checked").val(), d = SFSI("input[name='sfsi_custom5_display']:checked").val(), I = {
244        action:"plus_updateSrcn1",
245        sfsi_plus_rss_display:i,
246        sfsi_plus_email_display:e,
247        sfsi_plus_facebook_display:t,
248        sfsi_plus_twitter_display:n,
249        sfsi_plus_google_display:o,
250        sfsi_plus_share_display:a,
251        sfsi_plus_youtube_display:r,
252        sfsi_plus_pinterest_display:c,
253        sfsi_plus_linkedin_display:p,
254        sfsi_plus_instagram_display:_,
255		sfsi_plus_houzz_display:houzz,
256        sfsi_custom1_display:l,
257        sfsi_custom2_display:S,
258        sfsi_custom3_display:u,
259        sfsi_custom4_display:f,
260        sfsi_custom5_display:d,
261		nonce:nonce
262    };
263    SFSI.ajax({
264        url:ajax_object.ajax_url,
265        type:"post",
266        data:I,
267       	async:!0,
268        dataType:"json",
269        success:function(i) {
270			if(i=="wrong_nonce")
271			{
272				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 1);
273            	s = !1;
274				sfsiplus_afterLoad();
275			}
276			else
277			{
278				"success" == i ? (sfsiplus_showErrorSuc("success", "Saved !", 1), sfsipluscollapse("#sfsi_plus_save1"), 
279				sfsi_plus_make_popBox()) :(global_error = 1, sfsiplus_showErrorSuc("error", "Unkown error , please try again", 1), 
280				s = !1), sfsiplus_afterLoad();
281			}
282		}
283    });
284}
285function sfsi_plus_update_step2()
286{
287	var nonce = SFSI("#sfsi_plus_save2").attr("data-nonce");
288    var s = sfsi_plus_validationStep2();
289    if (!s) return global_error = 1, !1;
290    sfsiplus_beForeLoad();
291    var i = 1 == SFSI("input[name='sfsi_plus_rss_url']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_url']").val(), e = 1 == SFSI("input[name='sfsi_plus_rss_icons']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_icons']:checked").val(), t = 1 == SFSI("input[name='sfsi_plus_facebookPage_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebookPage_option']:checked").val(), n = 1 == SFSI("input[name='sfsi_plus_facebookLike_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebookLike_option']:checked").val(), o = 1 == SFSI("input[name='sfsi_plus_facebookShare_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebookShare_option']:checked").val(), a = SFSI("input[name='sfsi_plus_facebookPage_url']").val(), r = 1 == SFSI("input[name='sfsi_plus_twitter_followme']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_followme']:checked").val(), c = 1 == SFSI("input[name='sfsi_plus_twitter_followUserName']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_followUserName']").val(), p = 1 == SFSI("input[name='sfsi_plus_twitter_aboutPage']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_aboutPage']:checked").val(), _ = 1 == SFSI("input[name='sfsi_plus_twitter_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_page']:checked").val(), l = SFSI("input[name='sfsi_plus_twitter_pageURL']").val(), S = SFSI("textarea[name='sfsi_plus_twitter_aboutPageText']").val(), u = 1 == SFSI("input[name='sfsi_plus_google_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_page']:checked").val(), f = 1 == SFSI("input[name='sfsi_plus_googleLike_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_googleLike_option']:checked").val(), d = SFSI("input[name='sfsi_plus_google_pageURL']").val(), I = 1 == SFSI("input[name='sfsi_plus_googleShare_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_googleShare_option']:checked").val(), m = 1 == SFSI("input[name='sfsi_plus_youtube_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_page']:checked").val(), F = 1 == SFSI("input[name='sfsi_plus_youtube_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_pageUrl']").val(), h = 1 == SFSI("input[name='sfsi_plus_youtube_follow']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_follow']:checked").val(), cls = SFSI("input[name='sfsi_plus_youtubeusernameorid']:checked").val(), v = SFSI("input[name='sfsi_plus_ytube_user']").val(), vchid = SFSI("input[name='sfsi_plus_ytube_chnlid']").val(), g = 1 == SFSI("input[name='sfsi_plus_pinterest_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_page']:checked").val(), k = 1 == SFSI("input[name='sfsi_plus_pinterest_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_pageUrl']").val(), y = 1 == SFSI("input[name='sfsi_plus_pinterest_pingBlog']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_pingBlog']:checked").val(), b = 1 == SFSI("input[name='sfsi_plus_instagram_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_pageUrl']").val(), houzz = 1 == SFSI("input[name='sfsi_plus_houzz_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_houzz_pageUrl']").val(), w = 1 == SFSI("input[name='sfsi_plus_linkedin_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedin_page']:checked").val(), x = 1 == SFSI("input[name='sfsi_plus_linkedin_pageURL']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedin_pageURL']").val(), C = 1 == SFSI("input[name='sfsi_plus_linkedin_follow']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedin_follow']:checked").val(), D = SFSI("input[name='sfsi_plus_linkedin_followCompany']").val(), U = 1 == SFSI("input[name='sfsi_plus_linkedin_SharePage']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedin_SharePage']:checked").val(), O = SFSI("input[name='sfsi_plus_linkedin_recommendBusines']:checked").val(), T = SFSI("input[name='sfsi_plus_linkedin_recommendProductId']").val(), j = SFSI("input[name='sfsi_plus_linkedin_recommendCompany']").val(), P = {};
292    SFSI("input[name='sfsi_plus_CustomIcon_links[]']").each(function() {
293        P[SFSI(this).attr("file-id")] = this.value;
294    });
295	var M = {
296        action:"plus_updateSrcn2",
297        sfsi_plus_rss_url:i,
298        sfsi_plus_rss_icons:e,
299        sfsi_plus_facebookPage_option:t,
300        sfsi_plus_facebookLike_option:n,
301        sfsi_plus_facebookShare_option:o,
302        sfsi_plus_facebookPage_url:a,
303        sfsi_plus_twitter_followme:r,
304        sfsi_plus_twitter_followUserName:c,
305        sfsi_plus_twitter_aboutPage:p,
306        sfsi_plus_twitter_page:_,
307        sfsi_plus_twitter_pageURL:l,
308        sfsi_plus_twitter_aboutPageText:S,
309        sfsi_plus_google_page:u,
310        sfsi_plus_googleLike_option:f,
311        sfsi_plus_google_pageURL:d,
312        sfsi_plus_googleShare_option:I,
313        sfsi_plus_youtube_page:m,
314        sfsi_plus_youtube_pageUrl:F,
315        sfsi_plus_youtube_follow:h,
316		sfsi_plus_youtubeusernameorid:cls,
317        sfsi_plus_ytube_user:v,
318		sfsi_plus_ytube_chnlid:vchid,
319        sfsi_plus_pinterest_page:g,
320        sfsi_plus_pinterest_pageUrl:k,
321        sfsi_plus_instagram_pageUrl:b,
322		sfsi_plus_houzz_pageUrl:houzz,
323        sfsi_plus_pinterest_pingBlog:y,
324        sfsi_plus_linkedin_page:w,
325        sfsi_plus_linkedin_pageURL:x,
326        sfsi_plus_linkedin_follow:C,
327        sfsi_plus_linkedin_followCompany:D,
328        sfsi_plus_linkedin_SharePage:U,
329        sfsi_plus_linkedin_recommendBusines:O,
330        sfsi_plus_linkedin_recommendCompany:j,
331        sfsi_plus_linkedin_recommendProductId:T,
332        sfsi_plus_custom_links:P,
333		nonce:nonce
334    };
335    SFSI.ajax({
336        url:ajax_object.ajax_url,
337        type:"post",
338        data:M,
339        async:!0,
340        dataType:"json",
341        success:function(s) {
342			if(s == "wrong_nonce")
343			{
344				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 2);
345            	return_value = !1;
346				sfsiplus_afterLoad();
347			}
348			else
349			{
350				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 2), sfsipluscollapse("#sfsi_plus_save2"), 
351				sfsi_plus_depened_sections()) :(global_error = 1, sfsiplus_showErrorSuc("error", "Unkown error , please try again", 2), 
352				return_value = !1), sfsiplus_afterLoad();
353			}
354        }
355    });
356}
357function sfsi_plus_update_step3()
358{
359	var nonce = SFSI("#sfsi_plus_save3").attr("data-nonce");
360    var s = sfsi_plus_validationStep3();
361    if (!s) return global_error = 1, !1;
362    sfsiplus_beForeLoad();
363    var i = SFSI("input[name='sfsi_plus_actvite_theme']:checked").val(), e = SFSI("input[name='sfsi_plus_mouseOver']:checked").val(), t = SFSI("input[name='sfsi_plus_shuffle_icons']:checked").val(), n = SFSI("input[name='sfsi_plus_shuffle_Firstload']:checked").val(), o = SFSI("#sfsi_plus_mouseOver_effect option:selected").val(), a = SFSI("input[name='sfsi_plus_shuffle_interval']:checked").val(), r = SFSI("input[name='sfsi_plus_shuffle_intervalTime']").val(), c = SFSI("input[name='sfsi_plus_specialIcon_animation']:checked").val(), p = SFSI("input[name='sfsi_plus_specialIcon_MouseOver']:checked").val(), _ = SFSI("input[name='sfsi_plus_specialIcon_Firstload']:checked").val(), l = SFSI("#sfsi_plus_specialIcon_Firstload_Icons option:selected").val(), S = SFSI("input[name='sfsi_plus_specialIcon_interval']:checked").val(), u = SFSI("input[name='sfsi_plus_specialIcon_intervalTime']").val(), f = SFSI("#sfsi_plus_specialIcon_intervalIcons option:selected").val(), d = {
364        action:"plus_updateSrcn3",
365        sfsi_plus_actvite_theme:i,
366        sfsi_plus_mouseOver:e,
367        sfsi_plus_shuffle_icons:t,
368        sfsi_plus_shuffle_Firstload:n,
369        sfsi_plus_mouseOver_effect:o,
370        sfsi_plus_shuffle_interval:a,
371        sfsi_plus_shuffle_intervalTime:r,
372        sfsi_plus_specialIcon_animation:c,
373        sfsi_plus_specialIcon_MouseOver:p,
374        sfsi_plus_specialIcon_Firstload:_,
375        sfsi_plus_specialIcon_Firstload_Icons:l,
376        sfsi_plus_specialIcon_interval:S,
377        sfsi_plus_specialIcon_intervalTime:u,
378        sfsi_plus_specialIcon_intervalIcons:f,
379		nonce:nonce
380    };
381    SFSI.ajax({
382        url:ajax_object.ajax_url,
383        type:"post",
384        data:d,
385        async:!0,
386        dataType:"json",
387        success:function(s) {
388			if(s == "wrong_nonce")
389			{
390				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 3);
391            	return_value = !1;
392				sfsiplus_afterLoad();
393			}
394			else
395			{
396				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 3), sfsipluscollapse("#sfsi_plus_save3")) :(sfsiplus_showErrorSuc("error", "Unkown error , please try again", 3), 
397				return_value = !1), sfsiplus_afterLoad();
398			}
399		}
400    });
401}
402function sfsi_plus_show_counts()
403{
404    "yes" == SFSI("input[name='sfsi_plus_display_counts']:checked").val() ? (SFSI(".sfsiplus_count_sections").slideDown(), 
405    sfsi_plus_showPreviewCounts()) :(SFSI(".sfsiplus_count_sections").slideUp(), sfsi_plus_showPreviewCounts());
406}
407function sfsi_plus_showPreviewCounts()
408{
409    var s = 0;
410    1 == SFSI("input[name='sfsi_plus_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_rss_countsDisplay").css("opacity", 1), 
411    s = 1) :SFSI("#sfsi_plus_rss_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_email_countsDisplay").css("opacity", 1), 
412    s = 1) :SFSI("#sfsi_plus_email_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_facebook_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_facebook_countsDisplay").css("opacity", 1), 
413    s = 1) :SFSI("#sfsi_plus_facebook_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_twitter_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_twitter_countsDisplay").css("opacity", 1), 
414    s = 1) :SFSI("#sfsi_plus_twitter_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_google_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_google_countsDisplay").css("opacity", 1), 
415    s = 1) :SFSI("#sfsi_plus_google_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_linkedIn_countsDisplay").css("opacity", 1), 
416    s = 1) :SFSI("#sfsi_plus_linkedIn_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_youtube_countsDisplay").css("opacity", 1), 
417    s = 1) :SFSI("#sfsi_plus_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_pinterest_countsDisplay").css("opacity", 1), 
418    s = 1) :SFSI("#sfsi_plus_pinterest_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_shares_countsDisplay").css("opacity", 1), 
419    s = 1) :SFSI("#sfsi_plus_shares_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity", 1), 
420    s = 1) :SFSI("#sfsi_plus_instagram_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_plus_houzz_countsDisplay']").prop("checked") ? (SFSI("#sfsi_plus_houzz_countsDisplay").css("opacity", 1), 
421    s = 1) :SFSI("#sfsi_plus_houzz_countsDisplay").css("opacity", 0), 0 == s || "no" == SFSI("input[name='sfsi_plus_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
422}
423function sfsi_plus_show_OnpostsDisplay()
424{
425   //"yes" == SFSI("input[name='sfsi_plus_show_Onposts']:checked").val() ? SFSI(".sfsiplus_PostsSettings_section").slideDown() :SFSI(".sfsiplus_PostsSettings_section").slideUp();
426}
427function sfsi_plus_update_step4()
428{
429	var nonce = SFSI("#sfsi_plus_save4").attr("data-nonce");
430    var s = !1, i = sfsi_plus_validationStep4();
431    if (!i) return global_error = 1, !1;
432    sfsiplus_beForeLoad();
433    var e = SFSI("input[name='sfsi_plus_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_plus_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_plus_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_plus_email_manualCounts']").val(), a = SFSI("input[name='sfsi_plus_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_plus_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_plus_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_plus_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_plus_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val(), mp = SFSI("input[name='sfsi_plus_facebook_mypageCounts']").val(), l = SFSI("input[name='sfsi_plus_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_plus_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_plus_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_plus_twitter_manualCounts']").val(), d = SFSI("input[name='sfsiplus_tw_consumer_key']").val(), I = SFSI("input[name='sfsiplus_tw_consumer_secret']").val(), m = SFSI("input[name='sfsiplus_tw_oauth_access_token']").val(), F = SFSI("input[name='sfsiplus_tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_plus_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_plus_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_plus_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").val(), b = SFSI("input[name='sfsi_plus_ln_company']").val(), w = SFSI("input[name='sfsi_plus_ln_api_key']").val(), x = SFSI("input[name='sfsi_plus_ln_secret_key']").val(), C = SFSI("input[name='sfsi_plus_ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_plus_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_plus_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_plus_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_plus_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_plus_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_plus_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_plus_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_plus_pinterest_user']").val(), E = SFSI("input[name='sfsi_plus_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_plus_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_plus_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_plus_instagram_User']").val(), R = 1 == SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_shares_countsDisplay']:checked").val(), W = 1 == SFSI("input[name='sfsi_plus_shares_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val(), q = SFSI("input[name='sfsi_plus_shares_manualCounts']").val(), houzzDisplay = 1 == SFSI("input[name='sfsi_plus_houzz_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_houzz_countsDisplay']:checked").val(), houzzFrom = 1 == SFSI("input[name='sfsi_plus_houzz_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_houzz_countsFrom']:checked").val(), houzzCount = SFSI("input[name='sfsi_plus_houzz_manualCounts']").val(), $ = {
434        action:"plus_updateSrcn4",
435        sfsi_plus_display_counts:e,
436        sfsi_plus_email_countsDisplay:t,
437        sfsi_plus_email_countsFrom:n,
438        sfsi_plus_email_manualCounts:o,
439        sfsi_plus_rss_countsDisplay:r,
440        sfsi_plus_rss_manualCounts:c,
441        sfsi_plus_facebook_countsDisplay:p,
442        sfsi_plus_facebook_countsFrom:_,
443		sfsi_plus_facebook_mypageCounts:mp,
444        sfsi_plus_facebook_manualCounts:l,
445        sfsi_plus_twitter_countsDisplay:S,
446        sfsi_plus_twitter_countsFrom:u,
447        sfsi_plus_twitter_manualCounts:f,
448        sfsiplus_tw_consumer_key:d,
449        sfsiplus_tw_consumer_secret:I,
450        sfsiplus_tw_oauth_access_token:m,
451        sfsiplus_tw_oauth_access_token_secret:F,
452        sfsi_plus_google_countsDisplay:h,
453        sfsi_plus_google_countsFrom:v,
454        sfsi_plus_google_manualCounts:g,
455        sfsi_plus_google_api_key:a,
456        sfsi_plus_linkedIn_countsDisplay:D,
457        sfsi_plus_linkedIn_countsFrom:k,
458        sfsi_plus_linkedIn_manualCounts:y,
459        sfsi_plus_ln_company:b,
460        sfsi_plus_ln_api_key:w,
461        sfsi_plus_ln_secret_key:x,
462        sfsi_plus_ln_oAuth_user_token:C,
463        sfsi_plus_youtube_countsDisplay:U,
464        sfsi_plus_youtube_countsFrom:O,
465        sfsi_plus_youtube_manualCounts:T,
466        sfsi_plus_youtube_user:j,
467		sfsi_plus_youtube_channelId: SFSI("input[name='sfsi_plus_youtube_channelId']").val(),
468        sfsi_plus_pinterest_countsDisplay:P,
469        sfsi_plus_pinterest_countsFrom:M,
470        sfsi_plus_pinterest_manualCounts:L,
471        sfsi_plus_pinterest_user:B,
472        sfsi_plus_pinterest_board:E,
473        sfsi_plus_instagram_countsDisplay:z,
474        sfsi_plus_instagram_countsFrom:A,
475        sfsi_plus_instagram_manualCounts:N,
476        sfsi_plus_instagram_User:H,
477        sfsi_plus_shares_countsDisplay:R,
478        sfsi_plus_shares_countsFrom:W,
479        sfsi_plus_shares_manualCounts:q,
480		sfsi_plus_houzz_countsDisplay:houzzDisplay,
481        sfsi_plus_houzz_countsFrom:houzzFrom,
482        sfsi_plus_houzz_manualCounts:houzzCount,
483		nonce:nonce
484    };
485    return SFSI.ajax({
486        url:ajax_object.ajax_url,
487        type:"post",
488        data:$,
489        dataType:"json",
490        async:!0,
491        success:function(s) {
492			if(s == "wrong_nonce")
493			{
494				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 4);
495            	global_error = 1;
496				sfsiplus_afterLoad();
497			}
498			else
499			{
500				"success" == s.res ? (sfsiplus_showErrorSuc("success", "Saved !", 4), sfsipluscollapse("#sfsi_plus_save4"), 
501				sfsi_plus_showPreviewCounts()) :(sfsiplus_showErrorSuc("error", "Unkown error , please try again", 4), 
502				global_error = 1), sfsiplus_afterLoad();
503			}
504        }
505    }), s;
506}
507function sfsi_plus_update_step5()
508{
509	var nonce = SFSI("#sfsi_plus_save5").attr("data-nonce");
510	sfsi_plus_update_step3();
511    var s = sfsi_plus_validationStep5();
512    if (!s) return global_error = 1, !1;
513    sfsiplus_beForeLoad();
514    var i = SFSI("input[name='sfsi_plus_icons_size']").val(), e = SFSI("input[name='sfsi_plus_icons_perRow']").val(), t = SFSI("input[name='sfsi_plus_icons_spacing']").val(), n = SFSI("#sfsi_plus_icons_Alignment").val(),
515	followicon = SFSI("#sfsi_plus_follow_icons_language").val(),
516	facebookicon = SFSI("#sfsi_plus_facebook_icons_language").val(),
517	twittericon = SFSI("#sfsi_plus_twitter_icons_language").val(),
518	googleicon = SFSI("#sfsi_plus_google_icons_language").val(),
519	lang = SFSI("#sfsi_plus_icons_language").val(), o = SFSI("input[name='sfsi_plus_icons_ClickPageOpen']:checked").val(), a = SFSI("input[name='sfsi_plus_icons_float']:checked").val(), dsb = SFSI("input[name='sfsi_plus_disable_floaticons']:checked").val(), dsbv = SFSI("input[name='sfsi_plus_disable_viewport']:checked").val(), r = SFSI("#sfsi_plus_icons_floatPosition").val(), c = SFSI("input[name='sfsi_plus_icons_stick']:checked").val(), p = SFSI("#sfsi_plus_rssIcon_order").attr("data-index"), _ = SFSI("#sfsi_plus_emailIcon_order").attr("data-index"), l = SFSI("#sfsi_plus_googleIcon_order").attr("data-index"), S = SFSI("#sfsi_plus_facebookIcon_order").attr("data-index"), u = SFSI("#sfsi_plus_twitterIcon_order").attr("data-index"), f = SFSI("#sfsi_plus_youtubeIcon_order").attr("data-index"), d = SFSI("#sfsi_plus_pinterestIcon_order").attr("data-index"), I = SFSI("#sfsi_plus_instagramIcon_order").attr("data-index"), m = SFSI("#sfsi_plus_shareIcon_order").attr("data-index"), F = SFSI("#sfsi_plus_linkedinIcon_order").attr("data-index"), houzzOrder = SFSI("#sfsi_plus_houzzIcon_order").attr("data-index"), h = new Array();
520    SFSI(".sfsiplus_custom_iconOrder").each(function()
521	{
522        h.push({
523            order:SFSI(this).attr("data-index"),
524            ele:SFSI(this).attr("element-id")
525        });
526    });
527    var v = 1 == SFSI("input[name='sfsi_plus_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_plus_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_plus_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_plus_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_plus_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_plus_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_MouseOverText']").val(), insD = 1 == SFSI("input[name='sfsi_plus_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_plus_houzz_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_houzz_MouseOverText']").val(), U = 1 == SFSI("input[name='sfsi_plus_share_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_share_MouseOverText']").val(), O = {};
528    SFSI("input[name='sfsi_plus_custom_MouseOverTexts[]']").each(function() {
529        O[SFSI(this).attr("file-id")] = this.value;
530    });
531    var T = {
532        action:"plus_updateSrcn5",
533        sfsi_plus_icons_size:i,
534        sfsi_plus_icons_Alignment:n,
535        sfsi_plus_icons_perRow:e,
536		sfsi_plus_follow_icons_language:followicon,
537		sfsi_plus_facebook_icons_language:facebookicon,
538		sfsi_plus_twitter_icons_language:twittericon,
539		sfsi_plus_google_icons_language:googleicon,
540		sfsi_plus_icons_language:lang,
541        sfsi_plus_icons_spacing:t,
542        sfsi_plus_icons_ClickPageOpen:o,
543        sfsi_plus_icons_float:a,
544		sfsi_plus_disable_floaticons:dsb,
545		sfsi_plus_disable_viewport: dsbv,
546        sfsi_plus_icons_floatPosition:r,
547        sfsi_plus_icons_stick:c,
548        sfsi_plus_rss_MouseOverText:v,
549        sfsi_plus_email_MouseOverText:g,
550        sfsi_plus_twitter_MouseOverText:k,
551        sfsi_plus_facebook_MouseOverText:y,
552        sfsi_plus_google_MouseOverText:b,
553        sfsi_plus_youtube_MouseOverText:x,
554        sfsi_plus_linkedIn_MouseOverText:w,
555        sfsi_plus_pinterest_MouseOverText:C,
556        sfsi_plus_share_MouseOverText:U,
557        sfsi_plus_instagram_MouseOverText:insD,
558		sfsi_plus_houzz_MouseOverText:D,
559        sfsi_plus_custom_MouseOverTexts:O,
560        sfsi_plus_rssIcon_order:p,
561        sfsi_plus_emailIcon_order:_,
562        sfsi_plus_facebookIcon_order:S,
563        sfsi_plus_twitterIcon_order:u,
564        sfsi_plus_googleIcon_order:l,
565        sfsi_plus_youtubeIcon_order:f,
566        sfsi_plus_pinterestIcon_order:d,
567        sfsi_plus_shareIcon_order:m,
568        sfsi_plus_instagramIcon_order:I,
569		sfsi_plus_houzzIcon_order:houzzOrder,
570        sfsi_plus_linkedinIcon_order:F,
571        sfsi_plus_custom_orders:h,
572		nonce:nonce
573    };
574    SFSI.ajax({
575        url:ajax_object.ajax_url,
576        type:"post",
577        data:T,
578        dataType:"json",
579        async:!0,
580        success:function(s) {
581			if(s == "wrong_nonce")
582			{
583				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 5);
584            	global_error = 1;
585				sfsiplus_afterLoad();
586			}
587			else
588			{
589				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 5), sfsipluscollapse("#sfsi_plus_save5")) :(global_error = 1, 
590				sfsiplus_showErrorSuc("error", "Unkown error , please try again", 5)), sfsiplus_afterLoad();
591			}
592		}
593    });
594}
595function sfsi_plus_update_step6()
596{
597	var nonce = SFSI("#sfsi_plus_save6").attr("data-nonce");
598    sfsiplus_beForeLoad();
599    var s = SFSI("input[name='sfsi_plus_show_Onposts']:checked").val(), i = SFSI("input[name='sfsi_plus_textBefor_icons']").val(), e = SFSI("#sfsi_plus_icons_alignment").val(), t = SFSI("#sfsi_plus_icons_DisplayCounts").val(), n = {
600        action:"plus_updateSrcn6",
601        sfsi_plus_show_Onposts:s,
602        sfsi_plus_icons_DisplayCounts:t,
603        sfsi_plus_icons_alignment:e,
604        sfsi_plus_textBefor_icons:i,
605		nonce:nonce
606    };
607    SFSI.ajax({
608        url:ajax_object.ajax_url,
609        type:"post",
610        data:n,
611        dataType:"json",
612        async:!0,
613        success:function(s) {
614			if(s == "wrong_nonce")
615			{
616				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
617            	global_error = 1;
618				sfsiplus_afterLoad();
619			}
620			else
621			{
622				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 6), sfsipluscollapse("#sfsi_plus_save6")) :(global_error = 1, 
623				sfsiplus_showErrorSuc("error", "Unkown error , please try again", 6)), sfsiplus_afterLoad();
624			}
625		}
626    });
627}
628function sfsi_plus_update_step7()
629{
630	var nonce = SFSI("#sfsi_plus_save7").attr("data-nonce");
631    var s = sfsi_plus_validationStep7();
632    if (!s) return global_error = 1, !1;
633    sfsiplus_beForeLoad();
634    var i = SFSI("input[name='sfsi_plus_popup_text']").val(), e = SFSI("#sfsi_plus_popup_font option:selected").val(), t = (SFSI("#sfsi_plus_popup_fontStyle option:selected").val(), 
635    SFSI("input[name='sfsi_plus_popup_fontColor']").val()), n = SFSI("input[name='sfsi_plus_popup_fontSize']").val(), o = SFSI("input[name='sfsi_plus_popup_background_color']").val(), a = SFSI("input[name='sfsi_plus_popup_border_color']").val(), r = SFSI("input[name='sfsi_plus_popup_border_thickness']").val(), c = SFSI("input[name='sfsi_plus_popup_border_shadow']:checked").val(), p = SFSI("input[name='sfsi_plus_Show_popupOn']:checked").val(), _ = [];
636    SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
637        _[s] = SFSI(i).val();
638    });
639    var l = SFSI("input[name='sfsi_plus_Shown_pop']:checked").val(), S = SFSI("input[name='sfsi_plus_Shown_popupOnceTime']").val(), u = SFSI("#sfsi_plus_Shown_popuplimitPerUserTime").val(), f = {
640        action:"plus_updateSrcn7",
641        sfsi_plus_popup_text:i,
642        sfsi_plus_popup_font:e,
643        sfsi_plus_popup_fontColor:t,
644        sfsi_plus_popup_fontSize:n,
645        sfsi_plus_popup_background_color:o,
646        sfsi_plus_popup_border_color:a,
647        sfsi_plus_popup_border_thickness:r,
648        sfsi_plus_popup_border_shadow:c,
649        sfsi_plus_Show_popupOn:p,
650        sfsi_plus_Show_popupOn_PageIDs:_,
651        sfsi_plus_Shown_pop:l,
652        sfsi_plus_Shown_popupOnceTime:S,
653        sfsi_plus_Shown_popuplimitPerUserTime:u,
654		nonce:nonce
655    };
656    SFSI.ajax({
657        url:ajax_object.ajax_url,
658        type:"post",
659        data:f,
660        dataType:"json",
661        async:!0,
662        success:function(s) {
663			if(s == "wrong_nonce")
664			{
665				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 7);
666            	sfsiplus_afterLoad();
667			}
668			else
669			{
670				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 7), sfsipluscollapse("#sfsi_plus_save7")) :sfsiplus_showErrorSuc("error", "Unkown error , please try again", 7), 
671				sfsiplus_afterLoad();
672			}
673		}
674    });
675}
676function sfsi_plus_update_step8()
677{
678	var nonce = SFSI("#sfsi_plus_save8").attr("data-nonce");
679    var s = sfsi_plus_validationStep7();
680	s = true;
681    if (!s) return global_error = 1, !1;
682    sfsiplus_beForeLoad();
683	var i = SFSI("input[name='sfsi_plus_show_via_widget']:checked").val(),
684        e = SFSI("input[name='sfsi_plus_float_on_page']:checked").val(),
685        t = SFSI("input[name='sfsi_plus_float_page_position']:checked").val(),
686        n = SFSI("input[name='sfsi_plus_place_item_manually']:checked").val(),
687        o = SFSI("input[name='sfsi_plus_show_item_onposts']:checked").val(),
688        a = SFSI("input[name='sfsi_plus_display_button_type']:checked").val(),
689        r = SFSI("input[name='sfsi_plus_post_icons_size']").val(),
690        c = SFSI("input[name='sfsi_plus_post_icons_spacing']").val(),
691        p = SFSI("input[name='sfsi_plus_show_Onposts']:checked").val(),
692		v = SFSI("input[name='sfsi_plus_textBefor_icons']").val(),
693		x = SFSI("#sfsi_plus_icons_alignment").val(),
694		z = SFSI("#sfsi_plus_icons_DisplayCounts").val(),
695		b = SFSI("input[name='sfsi_plus_display_before_posts']:checked").val(),
696		d = SFSI("input[name='sfsi_plus_display_after_posts']:checked").val(),
697		/*f = SFSI("input[name='sfsi_plus_display_on_postspage']:checked").val(),
698		g = SFSI("input[name='sfsi_plus_display_on_homepage']:checked").val(),*/
699		f = SFSI("input[name='sfsi_plus_display_before_blogposts']:checked").val(),
700		g = SFSI("input[name='sfsi_plus_display_after_blogposts']:checked").val(),
701		rsub = SFSI("input[name='sfsi_plus_rectsub']:checked").val(),
702		rfb = SFSI("input[name='sfsi_plus_rectfb']:checked").val(),
703		rgp = SFSI("input[name='sfsi_plus_rectgp']:checked").val(),
704		rshr = SFSI("input[name='sfsi_plus_rectshr']:checked").val(),
705		rtwr = SFSI("input[name='sfsi_plus_recttwtr']:checked").val(),
706		rpin = SFSI("input[name='sfsi_plus_rectpinit']:checked").val(),
707		rfbshare = SFSI("input[name='sfsi_plus_rectfbshare']:checked").val(),
708        _ = [];
709    /*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
710        _[s] = SFSI(i).val()
711    });*/
712	var mst = SFSI("input[name='sfsi_plus_icons_floatMargin_top']").val(), msb = SFSI("input[name='sfsi_plus_icons_floatMargin_bottom']").val(), msl = SFSI("input[name='sfsi_plus_icons_floatMargin_left']").val(), msr = SFSI("input[name='sfsi_plus_icons_floatMargin_right']").val();
713	
714	var f = {
715            action: "plus_updateSrcn8",
716            sfsi_plus_show_via_widget: i,
717            sfsi_plus_float_on_page: e,
718            sfsi_plus_float_page_position: t,
719			sfsi_plus_icons_floatMargin_top:mst,
720			sfsi_plus_icons_floatMargin_bottom:msb,
721			sfsi_plus_icons_floatMargin_left:msl,
722			sfsi_plus_icons_floatMargin_right:msr,
723			sfsi_plus_place_item_manually: n,
724            sfsi_plus_show_item_onposts: o,
725            sfsi_plus_display_button_type: a,
726            sfsi_plus_post_icons_size: r,
727            sfsi_plus_post_icons_spacing: c,
728            sfsi_plus_show_Onposts: p,
729			sfsi_plus_textBefor_icons: v,
730			sfsi_plus_icons_alignment: x,
731			sfsi_plus_icons_DisplayCounts: z,
732			sfsi_plus_display_before_posts: b,
733			sfsi_plus_display_after_posts: d,
734			/*sfsi_plus_display_on_postspage: f,
735			sfsi_plus_display_on_homepage: g*/
736			sfsi_plus_display_before_blogposts: f,
737			sfsi_plus_display_after_blogposts: g,
738			sfsi_plus_rectsub: rsub,
739			sfsi_plus_rectfb: rfb,
740			sfsi_plus_rectgp: rgp,
741			sfsi_plus_rectshr: rshr,
742			sfsi_plus_recttwtr: rtwr,
743			sfsi_plus_rectpinit: rpin,
744			sfsi_plus_rectfbshare: rfbshare,
745			nonce:nonce
746        };
747    SFSI.ajax({
748        url: ajax_object.ajax_url,
749        type: "post",
750        data: f,
751        dataType: "json",
752        async: !0,
753        success: function(s) {
754			if(s == "wrong_nonce")
755			{
756				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 8);
757            	sfsiplus_afterLoad();
758			}
759			else
760			{
761				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 8), sfsipluscollapse("#sfsi_plus_save8")) : sfsiplus_showErrorSuc("error", "Unkown error , please try again", 8), sfsiplus_afterLoad()
762			}
763		}
764    })
765}
766function sfsi_plus_update_step9()
767{
768	var nonce = SFSI("#sfsi_plus_save9").attr("data-nonce");
769	sfsiplus_beForeLoad();
770	var ie = SFSI("input[name='sfsi_plus_form_adjustment']:checked").val(),
771	je = SFSI("input[name='sfsi_plus_form_height']").val(),
772	ke = SFSI("input[name='sfsi_plus_form_width']").val(),
773	le = SFSI("input[name='sfsi_plus_form_border']:checked").val(),
774	me = SFSI("input[name='sfsi_plus_form_border_thickness']").val(),
775	ne = SFSI("input[name='sfsi_plus_form_border_color']").val(),
776	oe = SFSI("input[name='sfsi_plus_form_background']").val(),
777	
778	ae = SFSI("input[name='sfsi_plus_form_heading_text']").val(),
779	be = SFSI("#sfsi_plus_form_heading_font option:selected").val(),
780	ce = SFSI("#sfsi_plus_form_heading_fontstyle option:selected").val(),
781	de = SFSI("input[name='sfsi_plus_form_heading_fontcolor']").val(),
782	ee = SFSI("input[name='sfsi_plus_form_heading_fontsize']").val(),
783	fe = SFSI("#sfsi_plus_form_heading_fontalign option:selected").val(),
784	
785	ue = SFSI("input[name='sfsi_plus_form_field_text']").val(),
786	ve = SFSI("#sfsi_plus_form_field_font option:selected").val(),
787	we = SFSI("#sfsi_plus_form_field_fontstyle option:selected").val(),
788	xe = SFSI("input[name='sfsi_plus_form_field_fontcolor']").val(),
789	ye = SFSI("input[name='sfsi_plus_form_field_fontsize']").val(),
790	ze = SFSI("#sfsi_plus_form_field_fontalign option:selected").val(),
791	
792	i = SFSI("input[name='sfsi_plus_form_button_text']").val(),
793	j = SFSI("#sfsi_plus_form_button_font option:selected").val(),
794	k = SFSI("#sfsi_plus_form_button_fontstyle option:selected").val(),
795	l = SFSI("input[name='sfsi_plus_form_button_fontcolor']").val(),
796	m = SFSI("input[name='sfsi_plus_form_button_fontsize']").val(),
797	n = SFSI("#sfsi_plus_form_button_fontalign option:selected").val(),
798    o = SFSI("input[name='sfsi_plus_form_button_background']").val();
799    
800	var f = {
801        action:"plus_updateSrcn9",
802        sfsi_plus_form_adjustment:ie,
803		sfsi_plus_form_height:je,
804		sfsi_plus_form_width:ke,
805        sfsi_plus_form_border:le,
806        sfsi_plus_form_border_thickness:me,
807		sfsi_plus_form_border_color: ne,
808		sfsi_plus_form_background: oe,
809		
810        sfsi_plus_form_heading_text:ae,
811        sfsi_plus_form_heading_font:be,
812        sfsi_plus_form_heading_fontstyle:ce,
813        sfsi_plus_form_heading_fontcolor:de,
814        sfsi_plus_form_heading_fontsize:ee,
815        sfsi_plus_form_heading_fontalign:fe,
816		
817		sfsi_plus_form_field_text:ue,
818        sfsi_plus_form_field_font:ve,
819        sfsi_plus_form_field_fontstyle:we,
820        sfsi_plus_form_field_fontcolor:xe,
821        sfsi_plus_form_field_fontsize:ye,
822        sfsi_plus_form_field_fontalign:ze,
823		
824		sfsi_plus_form_button_text:i,
825        sfsi_plus_form_button_font:j,
826        sfsi_plus_form_button_fontstyle:k,
827        sfsi_plus_form_button_fontcolor:l,
828        sfsi_plus_form_button_fontsize:m,
829        sfsi_plus_form_button_fontalign:n,
830		sfsi_plus_form_button_background:o,
831		
832		nonce:nonce
833    };
834	SFSI.ajax({
835        url:ajax_object.ajax_url,
836        type:"post",
837        data:f,
838        dataType:"json",
839        async:!0,
840        success:function(s) {
841			if(s == "wrong_nonce")
842			{
843				sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 9);
844            	sfsiplus_afterLoad();
845			}
846			else
847			{
848				"success" == s ? (sfsiplus_showErrorSuc("success", "Saved !", 9), sfsipluscollapse("#sfsi_plus_save9"), sfsi_plus_create_suscriber_form()) :sfsiplus_showErrorSuc("error", "Unkown error , please try again", 9), 
849				sfsiplus_afterLoad();
850			}
851		}
852    });
853}
854function sfsiplus_afterIconSuccess(s)
855{
856	if (s.res = "success") {
857		var i = s.key + 1, e = s.element, t = e + 1;
858        SFSI("#plus_total_cusotm_icons").val(s.element);
859		SFSI(".upload-overlay").hide("slow");
860        SFSI(".uperror").html("");
861		sfsiplus_showErrorSuc("success", "Custom Icon updated successfully", 1);
862        d = new Date();
863		
864		SFSI("li.plus_custom:last-child").removeClass("bdr_btm_non"); 
865        SFSI("li.plus_custom:last-child").children("span.plus_custom-img").children("img").attr("src", s.img_path+ "?" + d.getTime());
866		SFSI("input[name=plussfsiICON_" + s.key + "]").removeAttr("ele-type"); 
867        SFSI("input[name=plussfsiICON_" + s.key + "]").removeAttr("isnew");
868		icons_name = SFSI("li.plus_custom:last-child").find("input.styled").attr("name");
869        var n = icons_name.split("_");
870		s.key = s.key, s.img_path += "?" + d.getTime(), 5 > e && SFSI(".plus_icn_listing").append('<li id="plus_c' + i + '" class="plus_custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="plussfsiICON_' + i + '"  type="checkbox" value="yes" class="styled" style="display:none;" element-type="sfsiplus-cusotm-icon" isNew="yes" /></div> <span class="plus_custom-img"><img src="' + SFSI("#plugin_url").val() + 'images/custom.png" id="plus_CImg_' + i + '"  /> </span> <span class="custom sfsiplus_custom-txt">Custom' + t + ' </span> <div class="sfsiplus_right_info"> <p><span>'+object_name1.It_depends+':</span> '+object_name1.Upload_a+'</p><div class="inputWrapper"></div></li>'), 
871        SFSI(".sfsiplus_custom_section").show(), SFSI(".plus_custom-links").append(' <div class="row  sfsiICON_' + s.key + ' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img   src="' + s.img_path + "?" + d.getTime() + '" style="border-radius:48%" /> </span> <span class="sfsiCtxt">Custom ' + e + '</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url sfsiplus_custom_section  sfsiICON_' + s.key + '" ><label>Link :</label><input file-id="' + s.key + '" name="sfsi_plus_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>');
872        var o = SFSI("div.plus_custom_m").find("div.mouseover_field").length;
873        SFSI("div.plus_custom_m").append(0 == o % 2 ? '<div class="clear"> </div> <div class="mouseover_field sfsiplus_custom_section sfsiICON_' + s.key + '"><label>Custom ' + e + ':</label><input name="sfsi_plus_custom_MouseOverTexts[]" value="" type="text" file-id="' + s.key + '" /></div>' :'<div class="cHover " ><div class="mouseover_field sfsiplus_custom_section sfsiICON_' + s.key + '"><label>Custom ' + e + ':</label><input name="sfsi_plus_custom_MouseOverTexts[]" value="" type="text" file-id="' + s.key + '" /></div>'), 
874        SFSI("ul.plus_share_icon_order").append('<li class="sfsiplus_custom_iconOrder sfsiICON_' + s.key + '" data-index="" element-id="' + s.key + '" id=""><a href="#" title="Custom Icon" ><img src="' + s.img_path + '" alt="Linked In" class="sfcm"/></a></li>'), 
875        SFSI("ul.plus_sfsi_sample_icons").append('<li class="sfsiICON_' + s.key + '" element-id="' + s.key + '" ><div><img src="' + s.img_path + '" alt="Linked In" class="sfcm"/><span class="sfsi_Cdisplay">12k</span></div></li>'), 
876        sfsi_plus_update_index(), plus_update_Sec5Iconorder(), sfsi_plus_update_step1(), sfsi_plus_update_step2(), 
877        sfsi_plus_update_step5(), SFSI(".upload-overlay").css("pointer-events", "auto"), sfsi_plus_showPreviewCounts(), 
878        sfsiplus_afterLoad();
879    }
880}
881function sfsiplus_beforeIconSubmit(s)
882{
883    if (SFSI(".uperror").html("Uploading....."), window.File && window.FileReader && window.FileList && window.Blob) {
884        SFSI(s).val() || SFSI(".uperror").html("File is empty");
885        var i = s.files[0].size, e = s.files[0].type;
886        switch (e) {
887          case "image/png":
888          case "image/gif":
889          case "image/jpeg":
890          case "image/pjpeg":
891            break;
892
893          default:
894            return SFSI(".uperror").html("Unsupported file"), !1;
895        }
896        return i > 1048576 ? (SFSI(".uperror").html("Image should be less than 1 MB"), !1) :!0;
897    }
898    return !0;
899}
900function sfsiplus_bytesToSize(s)
901{
902    var i = [ "Bytes", "KB", "MB", "GB", "TB" ];
903    if (0 == s) return "0 Bytes";
904    var e = parseInt(Math.floor(Math.log(s) / Math.log(1024)));
905    return Math.round(s / Math.pow(1024, e), 2) + " " + i[e];
906}
907function sfsiplus_showErrorSuc(s, i, e)
908{
909    if ("error" == s) var t = "errorMsg"; else var t = "sucMsg";
910    return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(), 
911    SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function() {
912        SFSI("." + t).slideUp("slow");
913    }, 5e3), !1;
914}
915function sfsiplus_beForeLoad()
916{
917	SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events","none");
918}
919function sfsiplus_afterLoad()
920{
921    SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html(object_name.Sa_ve), 
922	SFSI(".tab10>div.save_button >a").html(object_name1.Save_All_Settings), 
923    SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"), 
924    SFSI(".loader-img").hide();
925}
926function sfsi_plus_make_popBox()
927{
928    var s = 0;
929    SFSI(".plus_sfsi_sample_icons >li").each(function() {
930        "none" != SFSI(this).css("display") && (s = 1);
931    }), 0 == s ? SFSI(".sfsi_plus_Popinner").hide() :SFSI(".sfsi_plus_Popinner").show(), "" != SFSI('input[name="sfsi_plus_popup_text"]').val() ? (SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()), 
932    SFSI(".sfsi_plus_Popinner >h2").show()) :SFSI(".sfsi_plus_Popinner >h2").hide(), SFSI(".sfsi_plus_Popinner").css({
933        "border-color":SFSI('input[name="sfsi_plus_popup_border_color"]').val(),
934        "border-width":SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(),
935        "border-style":"solid"
936    }), SFSI(".sfsi_plus_Popinner").css("background-color", SFSI('input[name="sfsi_plus_popup_background_color"]').val()), 
937    SFSI(".sfsi_plus_Popinner h2").css("font-family", SFSI("#sfsi_plus_popup_font").val()), SFSI(".sfsi_plus_Popinner h2").css("font-style", SFSI("#sfsi_plus_popup_fontStyle").val()), 
938    SFSI(".sfsi_plus_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())), 
939    SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"), 
940    "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") :SFSI(".sfsi_plus_Popinner").css("box-shadow", "none");
941}
942function sfsi_plus_stick_widget(s)
943{
944    0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function(s) {
945        sfsiplus_initTop[s] = SFSI(this).position().top;
946    }), console.log(sfsiplus_initTop));
947    var i = SFSI(window).scrollTop(), e = [], t = [];
948    SFSI(".sfsi_plus_widget").each(function(s) {
949        e[s] = SFSI(this).position().top, t[s] = SFSI(this);
950    });
951    var n = !1;
952    for (var o in e) {
953        var a = parseInt(o) + 1;
954        e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
955            position:"fixed",
956            top:s
957        }), SFSI(t[a]).css({
958            position:"",
959            top:sfsiplus_initTop[a]
960        }), n = !0) :SFSI(t[o]).css({
961            position:"",
962            top:sfsiplus_initTop[o]
963        });
964    }
965    if (!n) {
966        var r = e.length - 1, c = -1;
967        e.length > 1 && (c = e.length - 2), sfsiplus_initTop[r] < i ? (SFSI(t[r]).css({
968            position:"fixed",
969            top:s
970        }), c >= 0 && SFSI(t[c]).css({
971            position:"",
972            top:sfsiplus_initTop[c]
973        })) :(SFSI(t[r]).css({
974            position:"",
975            top:sfsiplus_initTop[r]
976        }), c >= 0 && e[c] < i);
977    }
978}
979function sfsi_plus_setCookie(s, i, e)
980{
981    var t = new Date();
982    t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
983    var n = "expires=" + t.toGMTString();
984    document.cookie = s + "=" + i + "; " + n;
985}
986function sfsfi_plus_getCookie(s)
987{
988    for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
989        var n = e[t].trim();
990        if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
991    }
992    return "";
993}
994function sfsi_plus_hideFooter() {}
995
996window.onerror = function() {}, SFSI = jQuery.noConflict(), SFSI(window).load(function() {
997    SFSI("#sfpluspageLoad").fadeOut(2e3);
998});
999
1000//changes done {Monad}
1001function sfsi_plus_selectText(containerid) {
1002    if (document.selection) {
1003        var range = document.body.createTextRange();
1004        range.moveToElementText(document.getElementById(containerid));
1005        range.select();
1006    } else if (window.getSelection()) {
1007        var range = document.createRange();
1008        range.selectNode(document.getElementById(containerid));
1009        window.getSelection().removeAllRanges();
1010        window.getSelection().addRange(range);
1011    }
1012}
1013function sfsi_plus_create_suscriber_form()
1014{
1015	//Popbox customization
1016	"no" == SFSI('input[name="sfsi_plus_form_adjustment"]:checked').val() ? SFSI(".sfsi_plus_subscribe_Popinner").css({"width": parseInt(SFSI('input[name="sfsi_plus_form_width"]').val()),"height":parseInt(SFSI('input[name="sfsi_plus_form_height"]').val())}) : SFSI(".sfsi_plus_subscribe_Popinner").css({"width": '',"height": ''});
1017	
1018	"yes" == SFSI('input[name="sfsi_plus_form_adjustment"]:checked').val() ? SFSI(".sfsi_plus_html > .sfsi_plus_subscribe_Popinner").css({"width": "100%"}): '';
1019	
1020	"yes" == SFSI('input[name="sfsi_plus_form_border"]:checked').val() ? SFSI(".sfsi_plus_subscribe_Popinner").css({"border": SFSI('input[name="sfsi_plus_form_border_thickness"]').val()+"px solid "+SFSI('input[name="sfsi_plus_form_border_color"]').val()}) : SFSI(".sfsi_plus_subscribe_Popinner").css("border", "none");
1021	
1022	SFSI('input[name="sfsi_plus_form_background"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").css("background-color", SFSI('input[name="sfsi_plus_form_background"]').val())) : '';
1023	
1024	//Heading customization
1025	SFSI('input[name="sfsi_plus_form_heading_text"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").html(SFSI('input[name="sfsi_plus_form_heading_text"]').val())) : SFSI(".sfsi_plus_subscribe_Popinner > form > h5").html('');
1026	
1027	SFSI('#sfsi_plus_form_heading_font').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-family", SFSI("#sfsi_plus_form_heading_font").val())) : '';
1028	
1029	if(SFSI('#sfsi_plus_form_heading_fontstyle').val() != 'bold')
1030	{
1031		SFSI('#sfsi_plus_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-style", SFSI("#sfsi_plus_form_heading_fontstyle").val())) : '';
1032		SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-weight", '');
1033	}
1034	else
1035	{
1036		SFSI('#sfsi_plus_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-weight","bold")) : '';
1037		SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("font-style", '');
1038	}
1039	
1040	SFSI('input[name="sfsi_plus_form_heading_fontcolor"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("color", SFSI('input[name="sfsi_plus_form_heading_fontcolor"]').val())) : '';
1041	
1042	SFSI('input[name="sfsi_plus_form_heading_fontsize"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css({"font-size": parseInt(SFSI('input[name="sfsi_plus_form_heading_fontsize"]').val())})) : '';
1043	
1044	SFSI('#sfsi_plus_form_heading_fontalign').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner > form > h5").css("text-align", SFSI("#sfsi_plus_form_heading_fontalign").val())) : '';
1045	
1046	//Field customization
1047	SFSI('input[name="sfsi_plus_form_field_text"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", SFSI('input[name="sfsi_plus_form_field_text"]').val())) : SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", '');
1048	
1049	SFSI('input[name="sfsi_plus_form_field_text"]').val() != "" ? (SFSI(".sfsi_plus_left_container > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_plus_form_field_text"]').val())) : SFSI(".sfsi_plus_left_container > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1050	
1051	SFSI('input[name="sfsi_plus_form_field_text"]').val() != "" ? (SFSI(".like_pop_box > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_plus_form_field_text"]').val())) : SFSI(".like_pop_box > .sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1052	
1053	SFSI('#sfsi_plus_form_field_font').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-family", SFSI("#sfsi_plus_form_field_font").val())) : '';
1054	
1055	if(SFSI('#sfsi_plus_form_field_fontstyle').val() != "bold")
1056	{
1057		SFSI('#sfsi_plus_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", SFSI("#sfsi_plus_form_field_fontstyle").val())) : '';
1058		SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", '');
1059	}
1060	else
1061	{
1062		SFSI('#sfsi_plus_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", 'bold')) : '';
1063		SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", '');
1064	}
1065	
1066	SFSI('input[name="sfsi_plus_form_field_fontcolor"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("color", SFSI('input[name="sfsi_plus_form_field_fontcolor"]').val())) : '';
1067	
1068	SFSI('input[name="sfsi_plus_form_field_fontsize"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css({"font-size": parseInt(SFSI('input[name="sfsi_plus_form_field_fontsize"]').val())})) : '';
1069	
1070	SFSI('#sfsi_plus_form_field_fontalign').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("text-align", SFSI("#sfsi_plus_form_field_fontalign").val())) : '';
1071	
1072	//Button customization
1073	SFSI('input[name="sfsi_plus_form_button_text"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').attr("value", SFSI('input[name="sfsi_plus_form_button_text"]').val())) : '';
1074	
1075	SFSI('#sfsi_plus_form_button_font').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-family", SFSI("#sfsi_plus_form_button_font").val())) : '';
1076	
1077	if(SFSI('#sfsi_plus_form_button_fontstyle').val() != "bold")
1078	{
1079		SFSI('#sfsi_plus_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", SFSI("#sfsi_plus_form_button_fontstyle").val())) : '';
1080		SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", '');
1081	}
1082	else
1083	{
1084		SFSI('#sfsi_plus_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", 'bold')) : '';
1085		SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", '');
1086	}
1087	
1088	SFSI('input[name="sfsi_plus_form_button_fontcolor"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("color", SFSI('input[name="sfsi_plus_form_button_fontcolor"]').val())) : '';
1089	
1090	SFSI('input[name="sfsi_plus_form_button_fontsize"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css({"font-size": parseInt(SFSI('input[name="sfsi_plus_form_button_fontsize"]').val())})) : '';
1091	
1092	SFSI('#sfsi_plus_form_button_fontalign').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("text-align", SFSI("#sfsi_plus_form_button_fontalign").val())) : '';
1093	
1094	SFSI('input[name="sfsi_plus_form_button_background"]').val() != "" ? (SFSI(".sfsi_plus_subscribe_Popinner").find('input[name="subscribe"]').css("background-color", SFSI('input[name="sfsi_plus_form_button_background"]').val())) : '';
1095	
1096	var innerHTML = SFSI(".sfsi_plus_html > .sfsi_plus_subscribe_Popinner").html();
1097	var styleCss = SFSI(".sfsi_plus_html > .sfsi_plus_subscribe_Popinner").attr("style");
1098	innerHTML = '<div style="'+styleCss+'">'+innerHTML+'</div>';
1099	SFSI(".sfsi_plus_subscription_html > xmp").html(innerHTML);
1100	
1101	/*var data = {
1102		action:"getForm",
1103		heading: SFSI('input[name="sfsi_plus_form_heading_text"]').val(),
1104		placeholder:SFSI('input[name="sfsi_plus_form_field_text"]').val(),
1105		button:SFSI('input[name="sfsi_plus_form_button_text"]').val()
1106	};
1107	SFSI.ajax({
1108        url:ajax_object.ajax_url,
1109        type:"post",
1110        data:data,
1111        success:function(s) {
1112			SFSI(".sfsi_plus_subscription_html").html(s);
1113		}
1114    });*/
1115}
1116
1117var global_error = 0;
1118SFSI(document).ready(function(s) {
1119    //changes done {Monad}
1120	
1121	SFSI(".lanOnchange").change(function(){
1122		var currentDrpdown = SFSI(this).parents(".icons_size");
1123		var data = {
1124			action:"getIconPreview",
1125			iconValue: SFSI(this).val(),
1126			iconname: SFSI(this).attr( "data-iconUrl" )
1127		};
1128		SFSI.ajax({
1129			url:ajax_object.ajax_url,
1130			type:"post",
1131			data:data,
1132			success:function(s) {
1133				currentDrpdown.children(".social-img-link").html(s);
1134			}
1135		});
1136	});
1137	
1138	SFSI(".sfsiplus_tab_3_icns").on("click", ".cstomskins_upload", function() {
1139		SFSI(".cstmskins-overlay").show("slow", function() {
1140            e = 0;
1141        });
1142	});
1143	/*SFSI("#custmskin_clspop").live("click", function() {*/
1144	SFSI(document).on("click", '#custmskin_clspop', function () {
1145		SFSI_plus_done();
1146        SFSI(".cstmskins-overlay").hide("slow");
1147    });
1148	
1149	sfsi_plus_create_suscriber_form();
1150	
1151	SFSI('input[name="sfsi_plus_form_heading_text"], input[name="sfsi_plus_form_border_thickness"], input[name="sfsi_plus_form_height"], input[name="sfsi_plus_form_width"], input[name="sfsi_plus_form_heading_fontsize"], input[name="sfsi_plus_form_field_text"], input[name="sfsi_plus_form_field_fontsize"], input[name="sfsi_plus_form_button_text"], input[name="sfsi_plus_form_button_fontsize"]').on("keyup", sfsi_plus_create_suscriber_form);
1152	
1153	SFSI('input[name="sfsi_plus_form_border_color"], input[name="sfsi_plus_form_background"] ,input[name="sfsi_plus_form_heading_fontcolor"], input[name="sfsi_plus_form_field_fontcolor"] ,input[name="sfsi_plus_form_button_fontcolor"],input[name="sfsi_plus_form_button_background"]').on("focus", sfsi_plus_create_suscriber_form);
1154	
1155    SFSI("#sfsi_plus_form_heading_font, #sfsi_plus_form_heading_fontstyle, #sfsi_plus_form_heading_fontalign, #sfsi_plus_form_field_font, #sfsi_plus_form_field_fontstyle, #sfsi_plus_form_field_fontalign, #sfsi_plus_form_button_font, #sfsi_plus_form_button_fontstyle, #sfsi_plus_form_button_fontalign").on("change", sfsi_plus_create_suscriber_form );
1156	
1157	/*SFSI(".radio").live("click", function() {*/
1158	SFSI(document).on("click", '.radio', function () {
1159        var s = SFSI(this).parent().find("input:radio:first");
1160		switch(s.attr("name")) {
1161			case 'sfsi_plus_form_adjustment':
1162				if(s.val() == 'no')
1163					s.parents(".row_tab").next(".row_tab").show("fast");
1164				else
1165					s.parents(".row_tab").next(".row_tab").hide("fast");
1166				sfsi_plus_create_suscriber_form()	
1167				break;
1168			case 'sfsi_plus_form_border':
1169				if(s.val() == 'yes')
1170					s.parents(".row_tab").next(".row_tab").show("fast");
1171				else
1172					s.parents(".row_tab").next(".row_tab").hide("fast");
1173				sfsi_plus_create_suscriber_form()
1174				break;
1175			default:
1176		}	
1177	});
1178	
1179	//pooja 28-12-2015
1180	SFSI('#sfsi_plus_form_border_color').wpColorPicker({
1181		defaultColor: false,
1182		change: function(event, ui){sfsi_plus_create_suscriber_form()},
1183		clear: function() {sfsi_plus_create_suscriber_form()},
1184		hide: true,
1185		palettes: true
1186	}),
1187	SFSI('#sfsi_plus_form_background').wpColorPicker({
1188		defaultColor: false,
1189		change: function(event, ui){sfsi_plus_create_suscriber_form()},
1190		clear: function() {sfsi_plus_create_suscriber_form()},
1191		hide: true,
1192		palettes: true
1193	}),
1194	SFSI('#sfsi_plus_form_heading_fontcolor').wpColorPicker({
1195		defaultColor: false,
1196		change: function(event, ui){sfsi_plus_create_suscriber_form()},
1197		clear: function() {sfsi_plus_create_suscriber_form()},
1198		hide: true,
1199		palettes: true
1200	}),
1201	SFSI('#sfsi_plus_form_button_fontcolor').wpColorPicker({
1202		defaultColor: false,
1203		change: function(event, ui){sfsi_plus_create_suscriber_form()},
1204		clear: function() {sfsi_plus_create_suscriber_form()},
1205		hide: true,
1206		palettes: true
1207	}),
1208	SFSI('#sfsi_plus_form_button_background').wpColorPicker({
1209		defaultColor: false,
1210		change: function(event, ui){sfsi_plus_create_suscriber_form()},
1211		clear: function() {sfsi_plus_create_suscriber_form()},
1212		hide: true,
1213		palettes: true
1214	});
1215	/*SFSI("#sfsiPlusFormBorderColor").ColorPicker({
1216        color:"#f80000",
1217        onBeforeShow:function() {
1218            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_border_color").val());
1219        },
1220        onShow:function(s) {
1221            return SFSI(s).fadeIn(500), !1;
1222        },
1223        onHide:function(s) {
1224            return SFSI(s).fadeOut(500), !1;
1225        },
1226        onChange:function(s, i) {
1227            SFSI("#sfsi_plus_form_border_color").val("#" + i), SFSI("#sfsiPlusFormBorderColor").css("background", "#" + i);
1228			sfsi_plus_create_suscriber_form();
1229        },
1230        onClick:function(s, i) {
1231            SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiPlusFormBorderColor").css("background", "#" + i);
1232			sfsi_plus_create_suscriber_form();
1233        }
1234    }),
1235	SFSI("#sfsiPlusFormBackground").ColorPicker({
1236        color:"#f80000",
1237        onBeforeShow:function() {
1238            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_background").val());
1239        },
1240        onShow:function(s) {
1241            return SFSI(s).fadeIn(500), !1;
1242        },
1243        onHide:function(s) {
1244            return SFSI(s).fadeOut(500), !1;
1245        },
1246        onChange:function(s, i) {
1247            SFSI("#sfsi_plus_form_background").val("#" + i), SFSI("#sfsiPlusFormBackground").css("background", "#" + i);
1248			sfsi_plus_create_suscriber_form();
1249        },
1250        onClick:function(s, i) {
1251            SFSI("#sfsi_plus_form_background").val("#" + i), SFSI("#sfsiPlusFormBackground").css("background", "#" + i);
1252			sfsi_plus_create_suscriber_form();
1253        }
1254    }),
1255	SFSI("#sfsiPlusFormHeadingFontcolor").ColorPicker({
1256        color:"#f80000",
1257        onBeforeShow:function() {
1258            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_heading_fontcolor").val());
1259        },
1260        onShow:function(s) {
1261            return SFSI(s).fadeIn(500), !1;
1262        },
1263        onHide:function(s) {
1264            return SFSI(s).fadeOut(500), !1;
1265        },
1266        onChange:function(s, i) {
1267            SFSI("#sfsi_plus_form_heading_fontcolor").val("#"+i), SFSI("#sfsiPlusFormHeadingFontcolor").css("background","#"+i);
1268			sfsi_plus_create_suscriber_form();
1269        },
1270        onClick:function(s, i) {
1271            SFSI("#sfsi_plus_form_heading_fontcolor").val("#"+i), SFSI("#sfsiPlusFormHeadingFontcolor").css("background","#"+i);
1272			sfsi_plus_create_suscriber_form();
1273        }
1274    }),
1275	SFSI("#sfsiPlusFormFieldFontcolor").ColorPicker({
1276        color:"#f80000",
1277        onBeforeShow:function() {
1278            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_field_fontcolor").val());
1279        },
1280        onShow:function(s) {
1281            return SFSI(s).fadeIn(500), !1;
1282        },
1283        onHide:function(s) {
1284            return SFSI(s).fadeOut(500), !1;
1285        },
1286        onChange:function(s, i) {
1287            SFSI("#sfsi_plus_form_field_fontcolor").val("#" + i), SFSI("#sfsiPlusFormFieldFontcolor").css("background", "#" +i);
1288			sfsi_plus_create_suscriber_form();
1289        },
1290        onClick:function(s, i) {
1291            SFSI("#sfsi_plus_form_field_fontcolor").val("#" + i), SFSI("#sfsiPlusFormFieldFontcolor").css("background", "#" +i);
1292			sfsi_plus_create_suscriber_form();
1293        }
1294    }),
1295	SFSI("#sfsiPlusFormButtonFontcolor").ColorPicker({
1296        color:"#f80000",
1297        onBeforeShow:function() {
1298            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_button_fontcolor").val());
1299        },
1300        onShow:function(s) {
1301            return SFSI(s).fadeIn(500), !1;
1302        },
1303        onHide:function(s) {
1304            return SFSI(s).fadeOut(500), !1;
1305        },
1306        onChange:function(s, i) {
1307            SFSI("#sfsi_plus_form_button_fontcolor").val("#"+i), SFSI("#sfsiPlusFormButtonFontcolor").css("background", "#"+i);
1308			sfsi_plus_create_suscriber_form();
1309        },
1310        onClick:function(s, i) {
1311            SFSI("#sfsi_plus_form_button_fontcolor").val("#"+i), SFSI("#sfsiPlusFormButtonFontcolor").css("background", "#"+i);
1312			sfsi_plus_create_suscriber_form();
1313        }
1314    }),
1315	SFSI("#sfsiPlusFormButtonBackground").ColorPicker({
1316        color:"#f80000",
1317        onBeforeShow:function() {
1318            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_form_button_background").val());
1319        },
1320        onShow:function(s) {
1321            return SFSI(s).fadeIn(500), !1;
1322        },
1323        onHide:function(s) {
1324            return SFSI(s).fadeOut(500), !1;
1325        },
1326        onChange:function(s, i) {
1327            SFSI("#sfsi_plus_form_button_background").val("#"+i), SFSI("#sfsiPlusFormButtonBackground").css("background","#"+i);
1328			sfsi_plus_create_suscriber_form();
1329        },
1330        onClick:function(s, i) {
1331            SFSI("#sfsi_plus_form_button_background").val("#"+i), SFSI("#sfsiPlusFormButtonBackground").css("background","#"+i);
1332			sfsi_plus_create_suscriber_form();
1333        }
1334    });*/
1335	//changes done {Monad}
1336	
1337	function i() {
1338        SFSI(".uperror").html(""), sfsiplus_afterLoad();
1339        var s = SFSI('input[name="' + SFSI("#upload_id").val() + '"]');
1340        s.removeAttr("checked");
1341        var i = SFSI(s).parent().find("span:first");
1342        return SFSI(i).css("background-position", "0px 0px"), SFSI(".upload-overlay").hide("slow"), 
1343        !1;
1344    }
1345    SFSI("#accordion").accordion({
1346        collapsible:!0,
1347        active:!1,
1348        heightStyle:"content",
1349        event:"click",
1350        beforeActivate:function(s, i) {
1351            if (i.newHeader[0]) var e = i.newHeader, t = e.next(".ui-accordion-content"); else var e = i.oldHeader, t = e.next(".ui-accordion-content");
1352            var n = "true" == e.attr("aria-selected");
1353            return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()), 
1354            e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n), 
1355            t.toggleClass("accordion-content-active", !n), n ? t.slideUp() :t.slideDown(), !1;
1356        }
1357    }),
1358	SFSI("#accordion1").accordion({
1359        collapsible:!0,
1360        active:!1,
1361        heightStyle:"content",
1362        event:"click",
1363        beforeActivate:function(s, i) {
1364            if (i.newHeader[0]) var e = i.newHeader, t = e.next(".ui-accordion-content"); else var e = i.oldHeader, t = e.next(".ui-accordion-content");
1365            var n = "true" == e.attr("aria-selected");
1366            return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()), 
1367            e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n), 
1368            t.toggleClass("accordion-content-active", !n), n ? t.slideUp() :t.slideDown(), !1;
1369        }
1370    }),
1371	SFSI(".closeSec").on("click", function() {
1372        var s = !0, i = SFSI(this).closest("div.ui-accordion-content").prev("h3.ui-accordion-header").first(), e = SFSI(this).closest("div.ui-accordion-content").first();
1373        i.toggleClass("ui-corner-all", s).toggleClass("accordion-header-active ui-state-active ui-corner-top", !s).attr("aria-selected", (!s).toString()), 
1374        i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", s).toggleClass("ui-icon-triangle-1-s", !s), 
1375        e.toggleClass("accordion-content-active", !s), s ? e.slideUp() :e.slideDown();
1376    }),
1377	SFSI(document).click(function(s) {
1378        var i = SFSI(".sfsi_plus_FrntInner"), e = SFSI(".sfsi_plus_wDiv"), t = SFSI("#at15s");
1379        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();
1380    }),
1381	SFSI(".sfsi_plus_outr_div").find(".addthis_button").mousemove(function() {
1382        var s = SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().top + 10;
1383        SFSI("#at15s").css({
1384            top:s + "px",
1385            left:SFSI(".sfsi_plus_outr_div").find(".addthis_button").offset().left + "px"
1386        });
1387    }),
1388	
1389	//pooja 28-12-2015
1390		SFSI('#sfsi_plus_popup_background_color').wpColorPicker({
1391		defaultColor: false,
1392		change: function(event, ui){sfsi_plus_make_popBox()},
1393		clear: function() {sfsi_plus_make_popBox()},
1394		hide: true,
1395		palettes: true
1396	}),
1397	SFSI('#sfsi_plus_popup_border_color').wpColorPicker({
1398		defaultColor: false,
1399		change: function(event, ui){sfsi_plus_make_popBox()},
1400		clear: function() {sfsi_plus_make_popBox()},
1401		hide: true,
1402		palettes: true
1403	}),
1404	SFSI('#sfsi_plus_popup_fontColor').wpColorPicker({
1405		defaultColor: false,
1406		change: function(event, ui){sfsi_plus_make_popBox()},
1407		clear: function() {sfsi_plus_make_popBox()},
1408		hide: true,
1409		palettes: true
1410	}),
1411	
1412	/*SFSI("#sfsifontCloroPicker").ColorPicker({
1413        color:"#f80000",
1414        onBeforeShow:function() {
1415            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_fontColor").val());
1416        },
1417        onShow:function(s) {
1418            return SFSI(s).fadeIn(500), !1;
1419        },
1420        onHide:function(s) {
1421            return SFSI(s).fadeOut(500), sfsi_plus_make_popBox(), !1;
1422        },
1423        onChange:function(s, i) {
1424            SFSI("#sfsi_plus_popup_fontColor").val("#" + i), SFSI("#sfsifontCloroPicker").css("background", "#" + i), 
1425            sfsi_plus_make_popBox();
1426        },
1427        onClick:function(s, i) {
1428            SFSI("#sfsi_plus_popup_fontColor").val("#" + i), SFSI("#sfsifontCloroPicker").css("background", "#" + i), 
1429            sfsi_plus_make_popBox();
1430        }
1431    }),*/
1432	SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
1433		SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
1434    }),
1435	SFSI("div#sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
1436        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
1437    }),
1438	SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
1439        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
1440    }),
1441	SFSI("div#sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
1442        SFSI(this).attr("src", ajax_object.plugin_url + "images/visit_icons/youtube.svg");
1443    }),
1444	SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
1445        SFSI(this).css("opacity", "0.9");
1446    }),
1447	SFSI("div#sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
1448        SFSI(this).css("opacity", "1");
1449		/*{Monad}*/
1450    }),
1451	SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function() {
1452        SFSI(this).css("opacity", "0.9");
1453    }),
1454	SFSI("div#sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function() {
1455        SFSI(this).css("opacity", "1");
1456    }),
1457	
1458	//pooja 28-12-2015
1459	
1460	/*SFSI("#sfsiBackgroundColorPicker").ColorPicker({
1461        color:"#f80000",
1462        onBeforeShow:function() {
1463            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_background_color").val());
1464        },
1465        onShow:function(s) {
1466            return SFSI(s).fadeIn(500), !1;
1467        },
1468        onHide:function(s) {
1469            return SFSI(s).fadeOut(500), !1;
1470        },
1471        onChange:function(s, i) {
1472            SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiBackgroundColorPicker").css("background","#"+i), 
1473            sfsi_plus_make_popBox();
1474        },
1475        onClick:function(s, i) {
1476            SFSI("#sfsi_plus_popup_background_color").val("#" + i), SFSI("#sfsiBackgroundColorPicker").css("background","#"+i), 
1477            sfsi_plus_make_popBox();
1478        }
1479    }),
1480	SFSI("#sfsiBorderColorPicker").ColorPicker({
1481        color:"#f80000",
1482        onBeforeShow:function() {
1483            s(this).ColorPickerSetColor(SFSI("#sfsi_plus_popup_border_color").val());
1484        },
1485        onShow:function(s) {
1486            return SFSI(s).fadeIn(500), !1;
1487        },
1488        onHide:function(s) {
1489            return SFSI(s).fadeOut(500), !1;
1490        },
1491        onChange:function(s, i) {
1492            SFSI("#sfsi_plus_popup_border_color").val("#" + i), SFSI("#sfsiBorderColorPicker").css("background", "#" + i), 
1493            sfsi_plus_make_popBox();
1494        },
1495        onClick:function(s, i) {
1496            SFSI("#sfsi_plus_popup_border_color").val("#" + i), SFSI("#sfsiBorderColorPicker").css("background", "#" + i), 
1497            sfsi_plus_make_popBox();
1498        }
1499    }),*/
1500	SFSI("#sfsi_plus_save1").on("click", function() {
1501        sfsi_plus_update_step1() && sfsipluscollapse(this);
1502    }),
1503	SFSI("#sfsi_plus_save2").on("click", function() {
1504        sfsi_plus_update_step2() && sfsipluscollapse(this);
1505    }),
1506	SFSI("#sfsi_plus_save3").on("click", function() {
1507        sfsi_plus_update_step3() && sfsipluscollapse(this);
1508    }),
1509	SFSI("#sfsi_plus_save4").on("click", function() {
1510        sfsi_plus_update_step4() && sfsipluscollapse(this);
1511    }),
1512	SFSI("#sfsi_plus_save5").on("click", function() {
1513        sfsi_plus_update_step5() && sfsipluscollapse(this);
1514    }),
1515	SFSI("#sfsi_plus_save6").on("click", function() {
1516        sfsi_plus_update_step6() && sfsipluscollapse(this);
1517    }),
1518	SFSI("#sfsi_plus_save7").on("click", function() {
1519        sfsi_plus_update_step7() && sfsipluscollapse(this);
1520	}),
1521	SFSI("#sfsi_plus_save8").on("click", function() {
1522        sfsi_plus_update_step8() && sfsipluscollapse(this);
1523    }),
1524	SFSI("#sfsi_plus_save9").on("click", function() {
1525        sfsi_plus_update_step9() && sfsipluscollapse(this);
1526    }),
1527	SFSI("#save_plus_all_settings").on("click", function() {
1528        return SFSI("#save_plus_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"), 
1529        sfsi_plus_update_step1(), sfsi_plus_update_step9(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8), 
1530        global_error = 0, !1) :(sfsi_plus_update_step2(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "What do you want the icons to do?" tab.', 8), 
1531        global_error = 0, !1) :(sfsi_plus_update_step3(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "What design & animation do you want to give your icons?" tab.', 8), 
1532        global_error = 0, !1) :(sfsi_plus_update_step4(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Do you want to display "counts" next to your icons?" tab.', 8), 
1533        global_error = 0, !1) :(sfsi_plus_update_step5(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Any other wishes for your main icons?" tab.', 8), 
1534        global_error = 0, !1) :(sfsi_plus_update_step6(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Do you want to display icons at the end of every post?" tab.', 8), 
1535        global_error = 0, !1) :(sfsi_plus_update_step7(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Do you want to display a pop-up, asking people to subscribe?" tab.', 8),
1536		global_error = 0, !1) : sfsi_plus_update_step8(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Where shall they be displayed?" tab.', 8), 
1537        /*global_error = 0, !1) :void (0 == global_error && sfsiplus_showErrorSuc("success", 'Saved! Now go to the <a href="widgets.php">widget</a> area and place the widget into your sidebar (if not done already)', 8))))))));*/
1538    	global_error = 0, !1) :void (0 == global_error && sfsiplus_showErrorSuc("success", '', 8))))))));
1539	}),
1540	/*SFSI(".fileUPInput").live("change", function() {*/
1541	SFSI(document).on("change", '.fileUPInput', function () {
1542        sfsiplus_beForeLoad(), sfsiplus_beforeIconSubmit(this) && (SFSI(".upload-overlay").css("pointer-events", "none"), 
1543        SFSI("#customIconFrm").ajaxForm({
1544            dataType:"json",
1545            success:sfsiplus_afterIconSuccess,
1546            resetForm:!0
1547        }).submit());
1548    }),
1549	SFSI(".pop-up").on("click", function() {
1550        ("fbex-s2" == SFSI(this).attr("data-id") || "googlex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(), 
1551        SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")), 
1552        SFSI("." + SFSI(this).attr("data-id")).show("slow");
1553    }),
1554	/*SFSI("#close_popup").live("click", function() {*/
1555	SFSI(document).on("click", '#close_popup', function () {
1556        SFSI(".read-overlay").hide("slow");
1557    });
1558    var e = 0;
1559    SFSI(".plus_icn_listing").on("click", ".checkbox", function() {
1560        if (1 == e) return !1;
1561        "yes" == SFSI(this).attr("dynamic_ele") && (s = SFSI(this).parent().find("input:checkbox:first"), 
1562        s.is(":checked") ? SFSI(s).attr("checked", !1) :SFSI(s).attr("checked", !0)), s = SFSI(this).parent().find("input:checkbox:first"), 
1563        "yes" == SFSI(s).attr("isNew") && ("0px 0px" == SFSI(this).css("background-position") ? (SFSI(s).attr("checked", !0), 
1564        SFSI(this).css("background-position", "0px -36px")) :(SFSI(s).removeAttr("checked", !0), 
1565        SFSI(this).css("background-position", "0px 0px")));
1566        var s = SFSI(this).parent().find("input:checkbox:first");
1567        if (s.is(":checked") && "sfsiplus-cusotm-icon" == s.attr("element-type")) SFSI(".fileUPInput").attr("name", "custom_icons[]"), 
1568        SFSI(".upload-overlay").show("slow", function() {
1569            e = 0;
1570    }),
1571	SFSI("#upload_id").val(s.attr("name")); else if (!s.is(":checked") && "sfsiplus-cusotm-icon" == s.attr("element-type")) return s.attr("ele-type") ? (SFSI(this).attr("checked", !0), 
1572        SFSI(this).css("background-position", "0px -36px"), e = 0, !1) :confirm("Are you sure want to delete this Icon..?? ") ? "suc" == sfsi_plus_delete_CusIcon(this, s) ? (s.attr("checked", !1), 
1573        SFSI(this).css("background-position", "0px 0px"), e = 0, !1) :(e = 0, !1) :(s.attr("checked", !0), 
1574        SFSI(this).css("background-position", "0px -36px"), e = 0, !1);
1575    }),
1576	SFSI(".plus_icn_listing").on("click", ".checkbox", function() {
1577        checked = SFSI(this).parent().find("input:checkbox:first"), "sfsi_plus_email_display" != checked.attr("name") || checked.is(":checked") || SFSI(".demail-1").show("slow");
1578    }),
1579	SFSI("#deac_email2").on("click", function() {
1580        SFSI(".demail-1").hide("slow"), SFSI(".demail-2").show("slow");
1581    }),
1582	SFSI("#deac_email3").on("click", function() {
1583        SFSI(".demail-2").hide("slow"), SFSI(".demail-3").show("slow");
1584    }),
1585	SFSI(".hideemailpop").on("click", function() {
1586        SFSI('input[name="sfsi_plus_email_display"]').attr("checked", !0),
1587		SFSI('input[name="sfsi_plus_email_display"]').parent().find("span:first").css("background-position", "0px -36px"), 
1588        SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1589    }),
1590	SFSI(".hidePop").on("click", function() {
1591        SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
1592    }),
1593	SFSI(".sfsiplus_activate_footer").on("click", function() {
1594		var nonce = SFSI(this).attr("data-nonce");
1595		SFSI(this).text("activating....");
1596        var s = {
1597            action:"plus_activateFooter",
1598			nonce:nonce
1599        };
1600        SFSI.ajax({
1601            url:ajax_object.ajax_url,
1602            type:"post",
1603            data:s,
1604            dataType:"json",
1605            success:function(s) {
1606				if(s.res == "wrong_nonce")
1607				{
1608					SFSI(".sfsiplus_activate_footer").css("font-size", "18px");
1609					SFSI(".sfsiplus_activate_footer").text("Unauthorised Request, Try again after refreshing page");
1610				}
1611				else
1612				{
1613					"success" == s.res && (SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), 
1614                	SFSI(".demail-3").hide("slow"), SFSI(".sfsiplus_activate_footer").text("Ok, activate link"));
1615				}
1616			}
1617        });
1618    }),
1619	SFSI(".sfsiplus_removeFooter").on("click", function() {
1620		var nonce = SFSI(this).attr("data-nonce");
1621        SFSI(this).text("working....");
1622        var s = {
1623            action:"plus_removeFooter",
1624			nonce:nonce
1625        };
1626        SFSI.ajax({
1627            url:ajax_object.ajax_url,
1628            type:"post",
1629            data:s,
1630            dataType:"json",
1631            success:function(s) {
1632				if(s.res == "wrong_nonce")
1633				{
1634					SFSI(".sfsiplus_removeFooter").text("Unauthorised Request, Try again after refreshing page");
1635				}
1636				else
1637				{
1638                	"success" == s.res && (SFSI(".sfsiplus_removeFooter").fadeOut("slow"), SFSI(".sfsiplus_footerLnk").fadeOut("slow"));
1639				}
1640			}
1641        });
1642    }),
1643	/*SFSI(".radio").live("click", function() {*/
1644	SFSI(document).on("click", '.radio', function () {
1645        var s = SFSI(this).parent().find("input:radio:first");
1646        "sfsi_plus_display_counts" == s.attr("name") && sfsi_plus_show_counts();
1647    }),
1648	SFSI("#close_Uploadpopup").on("click", i), /*SFSI(".radio").live("click", function() {*/SFSI(document).on("click", '.radio', function () {
1649        var s = SFSI(this).parent().find("input:radio:first");
1650        "sfsi_plus_show_Onposts" == s.attr("name") && sfsi_plus_show_OnpostsDisplay();
1651    }),
1652	sfsi_plus_show_OnpostsDisplay(),
1653	sfsi_plus_depened_sections(),
1654	sfsi_plus_show_counts(),
1655	sfsi_plus_showPreviewCounts(), 
1656    SFSI(".plus_share_icon_order").sortable({
1657        update:function() {
1658            SFSI(".plus_share_icon_order li").each(function() {
1659                SFSI(this).attr("data-index", SFSI(this).index() + 1);
1660            });
1661        },
1662        revert:!0
1663    }),
1664	/*SFSI(".radio").live("click", function() {*/
1665	SFSI(document).on("click", '.radio', function () {
1666        var s = SFSI(this).parent().find("input:radio:first");
1667        "sfsi_plus_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_email_countsDisplay"]').prop("checked", !0), 
1668        SFSI('input[name="sfsi_plus_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1669        "manual" == SFSI("input[name='sfsi_plus_email_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_email_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_email_manualCounts']").slideUp()), 
1670        "sfsi_plus_facebook_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_facebook_countsDisplay"]').prop("checked", !0), 
1671        SFSI('input[name="sfsi_plus_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
1672		"mypage" == SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_facebook_mypageCounts']").slideDown(),SFSI(".sfsiplus_fbpgidwpr").slideDown()) :(SFSI("input[name='sfsi_plus_facebook_mypageCounts']").slideUp(),SFSI(".sfsiplus_fbpgidwpr").slideUp()), 
1673        "manual" == SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_facebook_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_facebook_manualCounts']").slideUp()), 
1674        "sfsi_plus_twitter_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_twitter_countsDisplay"]').prop("checked", !0), 
1675        SFSI('input[name="sfsi_plus_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1676        "manual" == SFSI("input[name='sfsi_plus_twitter_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_twitter_manualCounts']").slideDown(), 
1677        SFSI(".tw_follow_options").slideUp()) :(SFSI("input[name='sfsi_plus_twitter_manualCounts']").slideUp(), 
1678        SFSI(".tw_follow_options").slideDown())), "sfsi_plus_google_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_google_countsDisplay"]').prop("checked", !0), 
1679        SFSI('input[name="sfsi_plus_google_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1680        "manual" == SFSI("input[name='sfsi_plus_google_countsFrom']:checked").val() && (SFSI("input[name='sfsi_plus_google_manualCounts']").slideDown(), 
1681        SFSI(".google_option").slideUp()), "likes" == SFSI("input[name='sfsi_plus_google_countsFrom']:checked").val() && (SFSI("input[name='sfsi_plus_google_manualCounts']").slideUp(), 
1682        SFSI(".google_option").slideUp()), "follower" == SFSI("input[name='sfsi_plus_google_countsFrom']:checked").val() && (SFSI(".google_option").slideDown(), 
1683        SFSI("input[name='sfsi_plus_google_manualCounts']").slideUp())), "sfsi_plus_linkedIn_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_linkedIn_countsDisplay"]').prop("checked", !0), 
1684        SFSI('input[name="sfsi_plus_linkedIn_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1685        "manual" == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").slideDown(), 
1686        SFSI(".linkedIn_options").slideUp()) :(SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").slideUp(), 
1687        SFSI(".linkedIn_options").slideDown())), "sfsi_plus_youtube_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_youtube_countsDisplay"]').prop("checked", !0), 
1688        SFSI('input[name="sfsi_plus_youtube_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1689        "manual" == SFSI("input[name='sfsi_plus_youtube_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_youtube_manualCounts']").slideDown(), 
1690        SFSI(".youtube_options").slideUp()) :(SFSI("input[name='sfsi_plus_youtube_manualCounts']").slideUp(), 
1691        SFSI(".youtube_options").slideDown())), "sfsi_plus_pinterest_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_pinterest_countsDisplay"]').prop("checked", !0), 
1692        SFSI('input[name="sfsi_plus_pinterest_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1693        "manual" == SFSI("input[name='sfsi_plus_pinterest_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_pinterest_manualCounts']").slideDown(), 
1694        SFSI(".pin_options").slideUp()) :SFSI("input[name='sfsi_plus_pinterest_manualCounts']").slideUp()), 
1695        "sfsi_plus_instagram_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_instagram_countsDisplay"]').prop("checked", !0), 
1696        SFSI('input[name="sfsi_plus_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1697        "manual" == SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_instagram_manualCounts']").slideDown(), 
1698        SFSI(".instagram_userLi").slideUp()) :(SFSI("input[name='sfsi_plus_instagram_manualCounts']").slideUp(), 
1699        SFSI(".instagram_userLi").slideDown())), "sfsi_plus_shares_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_shares_countsDisplay"]').prop("checked", !0), 
1700        SFSI('input[name="sfsi_plus_shares_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"), 
1701        "manual" == SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_shares_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_shares_manualCounts']").slideUp());
1702    }), sfsi_plus_make_popBox(), SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup", sfsi_plus_make_popBox), 
1703    SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus", sfsi_plus_make_popBox), 
1704    SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change", sfsi_plus_make_popBox), 
1705    /*SFSI(".radio").live("click", function() {*/
1706	SFSI(document).on("click", '.radio', function () {
1707        var s = SFSI(this).parent().find("input:radio:first");
1708        "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox();
1709    }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
1710        s.stopPropagation();
1711        var i = SFSI("#sfsi_plus_floater_sec").val();
1712        SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), 
1713        SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"), 
1714        SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), 
1715        SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
1716            "z-index":"999"
1717        }), SFSI(this).attr("effect") && "fade_in" == SFSI(this).attr("effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1718            opacity:1,
1719            "z-index":10
1720        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "scale" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
1721        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1722            opacity:1,
1723            "z-index":10
1724        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "combo" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
1725        SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1726            opacity:1,
1727            "z-index":10
1728        })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"), 
1729        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 
1730        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1731            opacity:1,
1732            "z-index":10
1733        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), 
1734        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"), 
1735        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1736            opacity:1,
1737            "z-index":1e3
1738        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show());
1739    }) :SFSI("img.sfsi_wicon").on("mouseenter", function() {
1740        var s = SFSI("#sfsi_plus_floater_sec").val();
1741        SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(), 
1742        SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"), 
1743        SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()), 
1744        SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
1745            "z-index":"999"
1746        }), SFSI(this).attr("effect") && "fade_in" == SFSI(this).attr("effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1747            opacity:1,
1748            "z-index":10
1749        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "scale" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
1750        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1751            opacity:1,
1752            "z-index":10
1753        }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("effect") && "combo" == SFSI(this).attr("effect") && (SFSI(this).parent().addClass("scale"), 
1754        SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1755            opacity:1,
1756            "z-index":10
1757        })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"), 
1758        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"), 
1759        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1760            opacity:1,
1761            "z-index":10
1762        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"), 
1763        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"), 
1764        SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
1765            opacity:1,
1766            "z-index":10
1767        }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show());
1768    }), SFSI("div.sfsi_plus_wicons").on("mouseleave", function() {
1769        SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect") && "fade_in" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"), 
1770        SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect") && "scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"), 
1771        SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect") && "combo" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"), 
1772        SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale")), "google" == SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").attr("id") ? SFSI("body").on("click", function() {
1773            SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide();
1774        }) :(SFSI(this).css({
1775            "z-index":"0"
1776        }), SFSI(this).children(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide());
1777    }),
1778	SFSI("body").on("click", function() {
1779        SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide();
1780    }),
1781	SFSI(".adminTooltip >a").on("hover", function() {
1782        SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "1"), 
1783        SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").show();
1784    }),
1785	SFSI(".adminTooltip").on("mouseleave", function() {
1786        "none" != SFSI(".sfsi_plus_gpls_tool_bdr").css("display") && 0 != SFSI(".sfsi_plus_gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function() {
1787            SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide();
1788        }) :(SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), 
1789        SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide());
1790    }),
1791	SFSI(".expand-area").on("click", function() {
1792        object_name.Re_ad == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"), 
1793        SFSI(this).text(object_name1.Coll_apse)) :(SFSI(this).siblings("p").children("label").fadeOut("slow"), 
1794        SFSI(this).text(object_name.Re_ad));
1795    }),
1796	/*SFSI(".radio").live("click", function(){*/
1797	SFSI(document).on("click", '.radio', function () {
1798        var s = SFSI(this).parent().find("input:radio:first");
1799        "sfsi_plus_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"), 
1800        SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').removeAttr("checked"), 
1801        SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"), 
1802        SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")), 
1803        ("sfsi_plus_icons_stick" == s.attr("name") && "yes" == s.val() || "sfsi_plus_icons_float" == s.attr("name") && "no" == s.val()) && (SFSI(".float_options").slideUp("slow"), 
1804        SFSI('input[name="sfsi_plus_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').prop("checked", !1), 
1805        SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"), 
1806        SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
1807    }),
1808	SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function() {
1809        var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 0 + "px";
1810        SFSI(".sfsi_plus_holders").each(function() {
1811            SFSI(this).css("height", s);
1812        });
1813    }, 200),
1814	/*SFSI(".checkbox").live("click", function() {*/
1815	SFSI(document).on("click", '.checkbox', function () {
1816        var s = SFSI(this).parent().find("input:checkbox:first");
1817        ("sfsi_plus_shuffle_Firstload" == s.attr("name") && "checked" == s.attr("checked") || "sfsi_plus_shuffle_interval" == s.attr("name") && "checked" == s.attr("checked")) && (SFSI('input[name="sfsi_plus_shuffle_icons"]').parent().find("span").css("background-position", "0px -36px"), 
1818        SFSI('input[name="sfsi_plus_shuffle_icons"]').attr("checked", "checked")), "sfsi_plus_shuffle_icons" == s.attr("name") && "checked" != s.attr("checked") && (SFSI('input[name="sfsi_plus_shuffle_Firstload"]').removeAttr("checked"), 
1819        SFSI('input[name="sfsi_plus_shuffle_Firstload"]').parent().find("span").css("background-position", "0px 0px"), 
1820        SFSI('input[name="sfsi_plus_shuffle_interval"]').removeAttr("checked"), SFSI('input[name="sfsi_plus_shuffle_interval"]').parent().find("span").css("background-position", "0px 0px"));
1821    });
1822	
1823	SFSI("body").on("click", "#getMeFullAccess", function(){
1824		var email	= SFSI(this).parents("form").find("input[type='email']").val();
1825		var feedid 	= SFSI(this).parents("form").find("input[name='feedid']").val();
1826		var error 	= false;
1827		var regEx 	= /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
1828		
1829		if(email === '')
1830		{
1831			error = true;
1832		}
1833		
1834		if(!regEx.test(email))
1835		{
1836			error = true;
1837		}
1838		
1839		if(!error)
1840		{
1841			SFSI(this).parents("form").submit();
1842		}
1843		else
1844		{
1845			alert("Error: Please provide your email address.");
1846		}
1847	});
1848	
1849	SFSI('form#calimingOptimizationForm').on('keypress', function(e) {
1850		var keyCode = e.keyCode || e.which;
1851		if (keyCode === 13) { 
1852			e.preventDefault();
1853			return false;
1854		}
1855	});
1856	
1857	/*SFSI(".checkbox").live("click", function()
1858	{
1859        var s = SFSI(this).parent().find("input:checkbox:first");
1860        "sfsi_plus_float_on_page" == s.attr("name") && "yes" == s.val() && ( 
1861        SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').removeAttr("checked"), 
1862        SFSI('input[name="sfsi_plus_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"), 
1863        SFSI('input[name="sfsi_plus_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;"));
1864    });
1865	SFSI(".radio").live("click", function()
1866	{
1867        var s = SFSI(this).parent().find("input:radio:first");
1868		var a = SFSI(".cstmfltonpgstck");
1869		("sfsi_plus_icons_stick" == s.attr("name") && "yes" == s.val()) && (
1870        SFSI('input[name="sfsi_plus_float_on_page"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_plus_float_on_page"][value="yes"]').prop("checked", !1), 
1871        SFSI('input[name="sfsi_plus_float_on_page"][value="no"]').parent().find("span.checkbox").attr("style", "background-position:0px -41px;"), 
1872        SFSI('input[name="sfsi_plus_float_on_page"][value="yes"]').parent().find("span.checkbox").attr("style", "background-position:0px -0px;"),
1873		jQuery(a).children(".checkbox").css("background-position", "0px 0px" ), sfsiplus_toggleflotpage(a));
1874    });*/
1875});
1876
1877//for utube channel name and id
1878function showhideutube(ref)
1879{
1880	var chnlslctn = SFSI(ref).children("input").val();
1881	if(chnlslctn == "name")
1882	{
1883		SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideDown();
1884		SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideUp();
1885	}
1886	else
1887	{
1888		SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideDown();
1889		SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp();
1890	}
1891}
1892
1893var sfsiplus_initTop = new Array();
1894
1895function sfsiplus_toggleflotpage(ref)
1896{
1897	var pos = jQuery(ref).children(".checkbox").css("background-position");
1898	if(pos == "0px 0px")
1899	{
1900		jQuery(ref).next(".sfsiplus_right_info").children("p").children(".sfsiplus_sub-subtitle").hide();
1901		jQuery(ref).next(".sfsiplus_right_info").children(".sfsiplus_tab_3_icns").hide();
1902	}
1903	else
1904	{
1905		jQuery(ref).next(".sfsiplus_right_info").children("p").children(".sfsiplus_sub-subtitle").show();
1906		jQuery(ref).next(".sfsiplus_right_info").children(".sfsiplus_tab_3_icns").show();
1907	}
1908}
1909function sfsiplus_togglbtmsection(show, hide, ref)
1910{
1911	jQuery(ref).parent("ul").children("li.clckbltglcls").each(function(index, element)
1912	{
1913		jQuery(this).children(".radio").css("background-position", "0px 0px");
1914		jQuery(this).children(".styled").attr("checked", "false");
1915	});
1916	jQuery(ref).children(".radio").css("background-position", "0px -41px");
1917	jQuery(ref).children(".styled").attr("checked", "true");
1918	
1919	jQuery("."+show).show();
1920	jQuery("."+show).children(".radiodisplaysection").show();
1921	jQuery("."+hide).hide();
1922	jQuery("."+hide).children(".radiodisplaysection").hide();
1923	/*jQuery(ref).parent("ul").children("li").each(function(index, element)
1924	{
1925		var pos = jQuery(this).children(".radio").css("background-position");
1926		if(pos == "0px 0px")
1927		{
1928			jQuery(this).children(".radiodisplaysection").hide();
1929		}
1930		else
1931		{
1932			jQuery(this).children(".radiodisplaysection").show();
1933		}
1934    });
1935	var pos = jQuery(ref).children(".radio").css("background-position");
1936	if(pos != "0px 0px")
1937	{
1938		jQuery(ref).children(".radiodisplaysection").show();
1939	}
1940	else
1941	{
1942		jQuery(ref).children(".radiodisplaysection").hide();
1943	}*/
1944}
1945function checkforinfoslction(ref)
1946{
1947	var pos = jQuery(ref).children(".checkbox").css("background-position");
1948	if(pos == "0px 0px")
1949	{
1950		jQuery(ref).next(".sfsiplus_right_info").children("p").children("label").hide();
1951	}
1952	else
1953	{
1954		jQuery(ref).next(".sfsiplus_right_info").children("p").children("label").show();
1955	}
1956}
Full Screen