1function pageReady() { 2 try { 3 subPageReady(); 4 } catch (e) { 5 6 } 7 try { 8 loadSharingText(); 9 } catch (e) { 10 11 } 12 try { 13 $(window).scroll(startCounter); 14 } catch (e) { } 15 try { 16 $('.shareVideoIcon').on('click', function () { 17 $(this).parent().find('.shareSocial').addClass('socialShareActive'); 18 }); 19 } catch (e) { 20 21 } 22 try { 23 $('.shareButtonSection .buttonBlue').on('click', function () { 24 $(this).parent().find('.shareSocial').addClass('socialShareActive'); 25 $(this).addClass('buttonBlueShareAnim'); 26 }); 27 } catch (e) { 28 29 } 30 try { 31 $('.sherSection .shareClose').on('click', function () { 32 $(this).parent().parent().toggleClass('socialShareActive'); 33 }); 34 } catch (e) { 35 36 } 37 38 //------------------------Code to close all popup on body click----------------------------------- 39 try { 40 $('body').click(function (e) { 41 if (!($(e.target).is('a.buttonBlue'))) { 42 if ($('a.buttonBlue').hasClass('buttonBlueShareAnim')) { 43 $('a.buttonBlue').removeClass('buttonBlueShareAnim'); 44 } 45 } 46 //Hide other open popups 47 if (!(($(e.target).parent().parent().is('li.shareSher')) || ($(e.target).is('span.tagHighlt')) || ($(e.target).is('.commonShare')))) { 48 //$('div.shareSocial').removeClass('socialShareActive'); 49 $('ul.tagsOpen').addClass('moreTagsContainerHide'); 50 $('.sherContainer').removeClass('arrowZindx'); 51 } 52 }); 53 54 } catch (e) { } 55 56 try { 57 $(".commonShare").click(function (ele) { 58 $('ul.tagsOpen').addClass('moreTagsContainerHide'); 59 $('div.shareSocial').removeClass('socialShareActive'); 60 $(this).siblings('div.shareSocial').toggleClass("socialShareActive"); 61 }); 62 } catch (e) { } 63 try { 64 $("#txtSubscribeNewsletter").focusin(function () { 65 $(this).attr("placeholder", " "); 66 }); 67 68 $("#txtSubscribeNewsletter").focusout(function () { 69 var currentPHolder = $(this).attr("data-placeholder"); 70 $(this).attr("placeholder", currentPHolder); 71 }); 72 } catch (e) { } 73 74 try { 75 $('.newsletter').addClass('skip'); 76 77 } catch (e) { } 78 79 //Comming Soon 80 try { 81 $('#videoCounter').mbComingsoon({ expiryDate: new Date(2017, 1, 17, 18, 30), speed: 100 }); 82 setTimeout(function () { 83 $(window).resize(); 84 }, 200); 85 } catch (e) { 86 87 } 88 89 90 // function for Carrer page 91 92 try { 93 //career(); 94 } catch (e) { 95 96 } 97 98 // function for YouTube Subscribe 99 100 try { 101 //youTubeSubscribe(); 102 } catch (e) { 103 104 } 105 106 // Remove Class Inner Header 107 //$('.wrapper').removeClass('innerWrapper'); 108 //$('.primaryHeader').removeClass('primaryHeaderFixedInner'); 109 110 111 112 // Live Streaming 113 114 $('.jerLivePlayBtn').click(function () { 115 116 var liveSVideoURL = $('#youtubeplayer').prop('src'); 117 $('.jerLiveVideoStreming #svgEle').show(); 118 setTimeout(function () { 119 $('.jerLiveVideoStreming #svgEle').hide(); 120 $('.jerLivePlayBtn').hide(); 121 }, 2000); 122 123 124 liveSVideoURL = liveSVideoURL.replace("&autoplay=0", "&autoplay=1"); 125 $('#youtubeplayer').prop('src', liveSVideoURL); 126 127 128 129 }); 130 131 // Blog on Home 132 try { 133 console.log('Home blog function is calling') 134 blogOnHome(); 135 } catch (e) { 136 console.log('Error is calling') 137 } 138 139 //$(document).on("click", ".rHblogShare > span.iconShare", function (e) { 140 141 // $(this).parent().find('.shareSocial').addClass('socialShareActive'); 142 //}); 143 144 //$(document).on("click", ".rHblogShare .shareClose", function (e) { 145 // $('.rHblogShare .shareSocial').removeClass('socialShareActive'); 146 //}); 147 148 $(document).on("click", ".rHblogShare > a", function (e) { 149 150 $(this).parent().find('.cTsocailShareWrap').addClass('activeSocialShare'); 151 });
152 153 $(document).on("click", ".rHblogShare .shareCloseBtn", function (e) { 154 $('.rHblogShare .cTsocailShareWrap').removeClass('activeSocialShare'); 155 }); 156 157 158} 159 160function toggleHSocialMedia(e) { 161 $('ul.tagsOpen').addClass('moreTagsContainerHide'); 162 $(e).children('div.shareSocial').toggleClass('socialShareActive'); 163 $('div.shareSocial').each(function () { 164 $('div.shareSocial').not($(e).children('div.shareSocial')).removeClass('socialShareActive'); 165 }); 166} 167 168function pageResize(a, b) { 169} 170 171function loadYoutubeSectionVideo(id) { 172 // alert(id + '--' + defaultVideoId) 173 174 //defaultVideoId = id; 175 $('#svgEle').removeClass('svgSlider'); 176 setTimeout(function () { 177 178 $('.videoBox .playIcon').css('display', 'none'); 179 }, 500); 180 $('.videoBox img.videoImg').hide(); 181 if (defaultVideoId && player) { 182 playVideo(); 183 } 184 else { 185 loadVideo(id); 186 } 187} 188 189//loadYoutubeSectionVideo('jwhuNLn0qtw') 190 191function pageVideoEnded() { 192 // show image back again 193 // change function to play video 194 exitFullScreen(); 195 if ($('.sufiFeaturedVideosBox').length) { 196 $('.feturedVideoMain .feturedVideoMainInner').find('.playIcon').show(); 197 $('.feturedVideoMain .feturedVideoMainInner').find('img').show(); 198 } else { 199 $('.videoBox').find('.playIcon').show(); 200 $('.videoBox').find('img').show(); 201 } 202 $('#youtubePlayer').fadeOut(); 203} 204function pageVideoPaused() { 205 exitFullScreen(); 206 // show image back again 207 if ($('.sufiFeaturedVideosBox').length < 1 && $('.videoBox').length < 1) { 208 $('#youtubePlayer').fadeOut(); 209 } 210 211} 212function pageVideoPlaying() { 213 if (YT.PlayerState.ENDED || YT.PlayerState.PAUSED) { 214 $('#youtubePlayer').fadeIn('fast'); 215 $('#svgEle').addClass('svgSlider'); 216 $('.feturedVideoMain .feturedVideoMainInner').find('iframe').css({ 'opacity': 1, 'visibility': 'visible' }); 217 if ($('.sufiFeaturedVideosBox, .videoBox').length < 1) { 218 //alert('t'); 219 $('.playIcon').show(); 220 } 221 } 222} 223 224function toggleTranslationHome(ele) { 225 // alert(); 226 //console.log($(ele).parents('div.activitySources').siblings('div.sherLines')); 227 //setTimeout(function () { 228 // $(ele).parents('div.activitySources').siblings('div.sherLines').find('.pMC').toggleClass('showTranslation'); 229 // $(ele).toggleClass('transLtActv'); 230 //}, 500); 231 232 233} 234 235 236/* counter animation */ 237function startCounter() { 238 try { 239 var ofstTop = $(".newHeading").offset().top; 240 if ($(window).scrollTop() > ofstTop) { 241 $(window).off("scroll", startCounter); 242 $('.newContentBox h2 span').each(function () { 243 var $this = $(this); 244 jQuery({ Counter: 0 }).animate({ Counter: $this.text() }, { 245 duration: 2000, 246 easing: 'swing', 247 step: function () { 248 $this.text(Math.ceil(this.Counter)); 249 } 250 }); 251 }); 252 } 253 } catch (e) { 254 } 255} 256 257function loadSharingText() { 258 var shers = $(".topFivesection .sherSection"); 259 //console.log(shers); 260 for (var i = 0; i < shers.length; i++) { 261 var ele = $(shers[i]); 262 var lines = ele.find(".pMC[data-roman=off] .c p,.pMW[data-roman=off] p"); 263 //console.log(lines); 264 var text = ""; 265 for (var j = 0; j < lines.length; j++) { 266 //text += $(lines[j]).text() + " //\r\n"; 267 text += $(lines[j]).text() + " \r\n"; /* showing "//" after every line so remove "//" from text */ 268 } 269 //console.log(text); 270 ele.find(".shareSocial").data("text", text); 271 } 272} 273 274 275function recommendedClick() { 276 277 278} 279 280 281//Home Page Counter Starts 282(function (n) { var t; t = function (t, i, r, u, f) { this.$el = n(i); this.end = t; this.active = !1; this.interval = 1e3; this.speed = u; this.callBack = jQuery.isFunction(f) ? f : null; this.localization = { days: "days", hours: "hours", minutes: "minutes", seconds: "seconds" }; n.extend(this.localization, this.localization, r) }; t.prototype = { getCounterNumbers: function () { var n = { days: { tens: 0, units: 0, hundreds: 0 }, hours: { tens: 0, units: 0 }, minutes: { tens: 0, units: 0 }, seconds: { tens: 0, units: 0 } }, s = 864e5, h = 36e5, c = 6e4, t = 0, l = new Date, i = this.end.getTime() - l.getTime(), r, u, f, e, o; return i <= 0 ? n : (r = Math.min(Math.floor(i / s), 999), t = i % s, n.days.hundreds = Math.floor(r / 100), u = r % 100, n.days.tens = Math.floor(u / 10), n.days.units = u % 10, f = Math.floor(t / h), t = t % h, n.hours.tens = Math.floor(f / 10), n.hours.units = f % 10, e = Math.floor(t / c), t = t % c, n.minutes.tens = Math.floor(e / 10), n.minutes.units = e % 10, o = Math.floor(t / 1e3), n.seconds.tens = Math.floor(o / 10), n.seconds.units = o % 10, n) }, updatePart: function (t) { var r = this.getCounterNumbers(), i = n("." + t, this.$el), u, f; t == "days" && (this.setDayHundreds(r.days.hundreds > 0), i.find(".number.hundreds.show").html() != r[t].hundreds && (u = n(".n1.hundreds", i), f = n(".n2.hundreds", i), this.scrollNumber(u, f, r[t].hundreds))); i.find(".number.tens.show").html() != r[t].tens && (u = n(".n1.tens", i), f = n(".n2.tens", i), this.scrollNumber(u, f, r[t].tens)); i.find(".number.units.show").html() != r[t].units && (u = n(".n1.units", i), f = n(".n2.units", i), this.scrollNumber(u, f, r[t].units)) }, timeOut: function () { var n = new Date, t = this.end.getTime() - n.getTime(); return t <= 0 ? !0 : !1 }, setDayHundreds: function (t) { t ? n(".counter.days", this.$el).addClass("with-hundreds") : n(".counter.days", this.$el).removeClass("with-hundreds") }, updateCounter: function () { this.updatePart("days"); this.updatePart("hours"); this.updatePart("minutes"); this.updatePart("seconds"); this.timeOut() && (this.active = !1, this.callBack && this.callBack(this)) }, localize: function (t) { n.isPlainObject(t) && n.extend(this.localization, this.localization, t); n(".days", this.$el).siblings(".counter-caption").text(this.localization.days); n(".hours", this.$el).siblings(".counter-caption").text(this.localization.hours); n(".minutes", this.$el).siblings(".counter-caption").text(this.localization.minutes); n(".seconds", this.$el).siblings(".counter-caption").text(this.localization.seconds) }, start: function (n) { var i, t; n && (this.interval = n); i = this.interval; this.active = !0; t = this; setTimeout(function () { t.updateCounter(); t.active && t.start() }, i) }, stop: function () { this.active = !1 }, scrollNumber: function (n, t, i) { n.hasClass("show") ? (t.removeClass("hidden-down").css("top", "-100%").text(i).stop().animate({ top: 0 }, this.speed, function () { t.addClass("show") }), n.stop().animate({ top: "100%" }, this.speed, function () { n.removeClass("show").addClass("hidden-down") })) : (n.removeClass("hidden-down").css("top", "-100%").text(i).stop().animate({ top: 0 }, this.speed, function () { n.addClass("show") }), t.stop().animate({ top: "100%" }, this.speed, function () { t.removeClass("show").addClass("hidden-down") })) } }; jQuery.fn.mbComingsoon = function (i) { var u = { interval: 1e3, callBack: null, localization: { days: "days", hours: "hours", minutes: "minutes", seconds: "seconds" }, speed: 500 }, r = {}, f = ' <div class="counter-group" id="videoCounter"> <div class="counter-block"> <div class="counter days"> <div class="number show n1 hundreds">0<\/div> <div class="number show n1 tens">0<\/div> <div class="number show n1 units">0<\/div> <div class="number hidden-up n2 hundreds">0<\/div> <div class="number hidden-up n2 tens">0<\/div> <div class="number hidden-up n2 units">0<\/div> <\/div> <div class="counter-caption">days<\/div> <\/div> <div class="counter-block"> <div class="counter hours"> <div class="number show n1 tens">0<\/div> <div class="number show n1 units">0<\/div> <div class="number hidden-up n2 tens">0<\/div> <div class="number hidden-up n2 units">0<\/div> <\/div> <div class="counter-caption">hours<\/div> <\/div> <div class="counter-block"> <div class="counter minutes"> <div class="number show n1 tens">0<\/div> <div class="number show n1 units">0<\/div> <div class="number hidden-up n2 tens">0<\/div> <div class="number hidden-up n2 units">0<\/div> <\/div> <div class="counter-caption">
282minutes<\/div> <\/div> <div class="counter-block"> <div class="counter seconds"> <div class="number show n1 tens">0<\/div> <div class="number show n1 units">0<\/div> <div class="number hidden-up n2 tens">0<\/div> <div class="number hidden-up n2 units">0<\/div> <\/div> <div class="counter-caption">seconds<\/div> <\/div> <\/div>'; return this.each(function () { var o = n(this), e = o.data("mbComingsoon"); if (e) i == "start" ? e.start() : i == "stop" ? e.stop() : n.isPlainObject(i) && (i.expiryDate instanceof Date && (e.end = i.expiryDate), n.isNumeric(i.interval) && (e.interval = i.interval), n.isFunction(i.callBack) && (e.callBack = i.callBack), n.isPlainObject(i.localization) && this.localize(i.localization)); else { if (i instanceof Date ? r.expiryDate = i : n.isPlainObject(i) ? n.extend(r, u, i) : typeof i == "string" && (r.expiryDate = new Date(i)), !r.expiryDate) throw new Error("Expiry date is required!"); e = new t(r.expiryDate, o, r.localization, r.speed, r.callBack); o.html(f); e.localize(); e.start() } }) } })(jQuery); 283/* 284//# sourceMappingURL=jquery.mb-comingsoon.min.js.map 285*/ 286//Home Page Counter Ends 287 288 289 290// Carrer Section Starts 291 292function career() { 293 294 //var careersHtm = '<div class="careerSectionOverlay"></div><div class="careerSection"><h3>Career in Rekhta</h3><p>Looking for .NET professionals skilled in delivery and development of technology based solutions.</p><h4><strong>EXPERIENCE :</strong> 2 - 5 Years </h4><h4><strong>ELIGIBILITY :</strong> BCA, MCA </h4><a href="https://rekhta.org/career" class="careerApply">Know More</a><div class="careerSectionBtn clearfix"><div class="careerReminder rekhtaCheckBoxWrap"><label class=""><input type="checkbox" value="" checked="">Donât show this to me again</label></div><span class="careerBtnClose">Close</span></div></div>'; 295 296 297 var careersHtm = '<div class="careerSectionOverlay"></div><div class="careerSection"><span class="careerBtnClose rico-close"></span><h3>Join Team Rekhta</h3> <a href="/career" class="careerApply careerApplyMobile">Apply Now</a><p>Looking for .NET professionals skilled in delivery and development of technology based solutions. <a href="/career" class="careerApply">Know More</a></p><h4><strong>EXPERIENCE :</strong> 2 - 5 Years </h4><h4><strong>ELIGIBILITY :</strong> BCA, MCA </h4><div class="careerSectionBtn clearfix"><div class="careerReminder rekhtaCheckBoxWrap"><label class=""><input type="checkbox" value="" checked="">Donât show this to me again</label></div></div></div>'; 298 299 //_store.set("career", '1'); 300 301 302 if (!(_store.get("career") == "1")) { 303 $('body').append(careersHtm); 304 } 305 306 $('.careerReminder').on('click', function () { 307 if ($('.careerReminder input[type=checkbox]').is(':checked')) { 308 $('.careerReminder label').addClass('careerReminderChecked'); 309 _store.set("career", '1'); 310 } else { 311 $('.careerReminder label').removeClass('careerReminderChecked'); 312 _store.set("career", '0'); 313 } 314 }); 315 316 $('.careerApply').on('click', function () { 317 $('.careerSectionOverlay').remove(); 318 $('.careerSection').remove(); 319 }); 320 321 $('.careerBtnClose').on('click', function () { 322 $('.careerSectionOverlay').remove(); 323 $('.careerSection').remove(); 324 }); 325 326} 327// Carrer Section Ends 328 329 330// youTube Subscribe Section Starts 331 332function youTubeTrack() { 333 //alert('youtube'); 334 _trackEvent('Videos', "Clicks", "Buttons", "0.10"); 335 //console.log("function exicuted"); 336} 337 338function youTubeSubscribe() { 339 340 var careersHtm = '<div class="careerSectionOverlay jerRevisitOverlay"></div><div class="jerRevisitSection careerSection"><span class="careerBtnClose rico-close"></span><h3>Revisit the best of <a href="https://www.youtube.com/jashnerekhtaofficial" target="_blank" onClick="youTubeTrack();">Jashn-e-Rekhta</a></h3 > <a href="https://www.youtube.com/jashnerekhtaofficial" target="_blank" onClick="youTubeTrack();" class="careerApply careerApplyMobile">Revisit the best of <strong>Jashn-e-Rekhta</strong></a> <p>Subscribe to our YouTube channel for regular updates on <a href="https://www.youtube.com/jashnerekhtaofficial" class="youTubeChnl" target="_blank" onClick="youTubeTrack();">Jashn-e-Rekhta</a> videos. </p> <div class="careerSectionBtn clearfix"><div class="careerReminder rekhtaCheckBoxWrap"><label class=""><input type="checkbox" value="" checked="">Donât show this to me again</label></div></div></div>'; 341 342 if (!(_store.get("youtube") == "1")) { 343 $('body').append(careersHtm); 344 } 345 346 $('.careerReminder').on('click', function () { 347 if ($('.careerReminder input[type=checkbox]').is(':checked')) { 348 $('.careerReminder label').addClass('careerReminderChecked'); 349 _store.set("youtube", '1'); 350 351 } else { 352 $('.careerReminder label').removeClass('careerReminderChecked'); 353 _store.set("youtube", '0'); 354 } 355 });
356 357 //$('.careerApply').on('click', function () { 358 // $('.careerSectionOverlay').remove(); 359 // $('.careerSection').remove(); 360 //}); 361 362 $('.careerBtnClose').on('click', function () { 363 $('.careerSectionOverlay').remove(); 364 $('.careerSection').remove(); 365 }); 366 367 $(window).bind('beforeunload', function () { 368 369 _store.remove('youtube'); 370 }); 371 372} 373// youTube Subscribe Section Ends 374 375 376// Home Page blog Render 377function blogOnHome() { 378 console.log('website id is:', websiteId); 379 var blogurl = ''; 380 if (websiteId == 1 || websiteId == '1') { 381 382 blogurl = "https://blog.rekhta.org/wp-json/blog/recentpost/3"; 383 } 384 else if (websiteId == 2 || websiteId == '2') { 385 blogurl = "https://blog.sufinama.org/wp-json/blog/recentpost/5"; 386 } 387 //else if (websiteId == 3 || websiteId == '3') { 388 // // blogurl = "https://blog.hindwi.org/wp-json/blog/recentpost/3"; 389 //} 390 else { 391 blogurl = ''; 392 } 393 394 console.log('blogurl is:', blogurl); 395 396 jQuery.ajax({ 397 url: blogurl, 398 type: "GET", 399 contentType: 'application/json; charset=utf-8', 400 dataType: 'json', 401 crossOrigin: true, 402 success: function (data) { 403 if (websiteId == 2) { 404 405 var blogHtml2 = ''; 406 var blogFirst2 = ''; 407 var blogOther2 = ''; 408 for (var i = 0; i < data.records.length; i++) { 409 var blogTitle2 = data.records[i].Title; 410 var blogSubTitle2 = data.records[i].SubTitle; 411 412 if (blogSubTitle2) { 413 blogSubTitle2 = '<p>' + blogSubTitle2 + '</p>'; 414 } 415 else { 416 blogSubTitle2 = ''; 417 } 418 var blogHomeRekhtaImg2 = data.records[i].BlogHomeRekhtaImg; 419 var blogHomeRekhtaThumbImg2 = data.records[i].BlogHomeRekhtaThumbImg; 420 var blogUrl2 = data.records[i].Parmalink; 421 var blogAuthorName2 = data.records[i]["Auhtor Name"]; 422 var Auhtor_Img = data.records[i]["Auhtor_Img"]; 423 var bANArr2 = blogAuthorName2.split(' '); 424 if (bANArr2.length > 1) { 425 blogAuthorName2 = bANArr2[0] + '...'; 426 } 427 else { 428 blogAuthorName2 = bANArr2[0]; 429 } 430 var blogAuthorLink2 = data.records[i].AuhtorLink; 431 var blogPostDate2 = data.records[i].BlogDateFormat; 432 var blogReadTime2 = data.records[i].BlogReadTime; 433 var bRTArr2 = blogReadTime2.split(' '); 434 if (bRTArr2[0].includes('min')) { 435 blogReadTime2 = bRTArr2[0]; 436 } 437 else if (bRTArr2[1].includes('min')) { 438 //blogReadTime = bRTArr[0] + ' ' + bRTArr[1]; 439 blogReadTime2 = bRTArr2[0] + ' min'; 440 } 441 var bloglang2 = data.records[i].BlogLang; 442 if (bloglang2 == 'hi') { 443 blogLangClass2 = 'blogHi'; 444 } 445 else if (bloglang2 == 'ur') { 446 blogLangClass2 = 'blogUr'; 447 } 448 else { 449 blogLangClass2 = 'blogEn'; 450 } 451 452 var whatMsg2 = blogTitle2 + ' - ' + blogUrl2; 453 454 if (i == 0) { 455 //blogFirst += '<div class="rHPLeatestBlog ' + blogLangClass + subTitleNot + ' clearfix"><a href="' + blogUrl + '"><p class="rHNewBlogupdate">new</p><img src="' + blogHomeRekhtaImg[0] + '"></a><div class="rHLattestBlogDesc"><h3><a href="' + blogUrl + '">' + blogTitle + '</a></h3><h4>' + blogSubTitle + '</h4><div class="rHblogDesctxt"><p>' + blogDescription + '</p></div><a href="' + blogUrl + '" class="rHblogTxtreadmre"><span>...</span> continue Reading</a></div><div class="rHblogTimeEst clearfix"><p class="rhblogDatePub">By <a href="' + blogAuthorLink + '" class="rhblogDirectedsitelink">' + blogAuthorName + ' </a>
455 | <span class="rHBposttimeDate">' + blogPostDate + '</span> <span class="postBeforeTime">' + blogReadTime + '</span></p>'; 456 //blogFirst += '<div class="rHblogShare cTsocailShare"><a href="javascript:void(0)"><i class="rico-share"></i></a><div class="cTsocailShareWrap" data-text="' + blogTitle + '" data-url="' + blogUrl + '"><ul class="clearfix"><li><a href="http://www.facebook.com/sharer.php?u=' + blogUrl + '/&t=' + blogTitle + '" title="Share this post on Facebook!" target="_blank" class="rico-facebook shareFacebook fbShare"></a></li><li><a target="_blank" href="http://twitter.com/share?text=Currently reading ' + blogTitle + '&url=' + blogUrl + '" title="Click to share this post on Twitter" class="rico-twitter shareTwitter twitShare"></a></li><li><a target="_blank" href="whatsapp://send?text=' + encodeMsg + '" title="Click to share this post on WhatsApp" class="rico-whatsapp shareWhatsap whatappShare"></a></li><li><a href="javascript:void(0)" class="rico-close shareCloseBtn"></a></li></ul></div></div>'; 457 //blogFirst += '</div></div>'; 458 blogFirst2 += '<div class="sufiNamaBlogsItem"><div class="featuredBlog">'; 459 blogFirst2 += '<picture><a target="_blank" href="' + blogUrl2 + '">'; 460 blogFirst2 += '<source media="(min-width:768px)" srcset="' + blogHomeRekhtaImg2[0] + '">'; 461 blogFirst2 += '<img data-src="' + blogHomeRekhtaImg2[0] + '" alt="blog" class="lazyload">'; 462 blogFirst2 += '</a></picture>'; 463 blogFirst2 += '<div class="featuredContentBox">'; 464 blogFirst2 += '<div class="featuredContent">'; 465 blogFirst2 += '<h3><a target="_blank" href="' + blogUrl2 + '">' + blogTitle2 + '</a></h3>'; 466 blogFirst2 += blogSubTitle2; 467 blogFirst2 += '</div>'; 468 blogFirst2 += '<div class="authorFeatured">'; 469 blogFirst2 += '<figure>'; 470 blogFirst2 += '<img data-src="' + Auhtor_Img + '" alt="author" class="lazyload">'; 471 blogFirst2 += '</figure>'; 472 blogFirst2 += '<div class="authorDetails">'; 473 blogFirst2 += '<h6 class="authName">By <a target="_blank" href="' + blogAuthorLink2 + '">' + blogAuthorName2 + '</a></h6>'; 474 blogFirst2 += '<h6 class="yearTime"><span>' + blogPostDate2 + '</span><strong>â¢</strong><span>' + blogReadTime2 + '</span></h6>'; 475 blogFirst2 += '</div>'; 476 // blogFirst2 += '<a href="#" class="rico-bookmark bookmMark"></a>'; 477 blogFirst2 += '</div>'; 478 blogFirst2 += '</div>'; 479 // blogFirst2 += '</a>'; 480 blogFirst2 += '</div>'; 481 blogFirst2 += '</div>'; 482 } 483 else { 484 //blogOther += '<div class="rhblogslidesection ' + blogLangClass + subTitleNot + ' clearfix"><div class="rHblogimagecontar"><a href="' + blogUrl + '" ><img src="' + blogHomeRekhtaThumbImg[0] + '"></a></div><div class="rHLattestBlogDesc"><h3><a href="' + blogUrl + '">' + blogTitle + '</a></h3><h4>' + blogSubTitle + '</h4><div class="rHblogDesctxt"><p>' + blogDescription + '</p><a href="' + blogUrl + '" class="rHblogTxtreadmre"><span>...</span> continue Reading</a></div><div class="rHblogTimeEst clearfix"><p class="rhblogDatePub"> By <a href="' + blogAuthorLink + '" class="rhblogDirectedsitelink">' + blogAuthorName + '</a> | <span class="rHBposttimeDate">' + blogPostDate + '</span> <span class="postBeforeTime">' + blogReadTime + '</span></p >'; 485 486 //blogOther += '<div class="rHblogShare cTsocailShare"><a href="javascript:void(0)"><i class="rico-share"></i></a><div class="cTsocailShareWrap" data-text="' + blogTitle + '" data-url="' + blogUrl + '"><ul class="clearfix"><li>
486<a href="http://www.facebook.com/sharer.php?u=' + blogUrl + '/&t=' + blogTitle + '" title="Share this post on Facebook!" target="_blank" class="rico-facebook shareFacebook fbShare"></a></li><li><a target="_blank" href="http://twitter.com/share?text=Currently reading ' + blogTitle + '&url=' + blogUrl + '" title="Click to share this post on Twitter" class="rico-twitter shareTwitter twitShare"></a></li><li><a href="whatsapp://send?text=' + encodeMsg + '" title="Click to share this post on WhatsApp" class="rico-whatsapp shareWhatsap whatappShare"></a></li><li><a href="javascript:void(0)" class="rico-close shareCloseBtn"></a></li></ul></div></div>'; 487 //blogOther += '</div></div></div>'; 488 blogOther2 += '<div class="blogsItem">'; 489 blogOther2 += '<figure><a target="_blank" href="' + blogUrl2 + '">'; 490 blogOther2 += '<img data-src=' + blogHomeRekhtaThumbImg2[0] + ' alt="author" class="lazyload">'; 491 blogOther2 += '</a></figure>'; 492 blogOther2 += '<div class="poetBlogDetail">'; 493 blogOther2 += '<h5><a target="_blank" href="' + blogUrl2 + '">' + blogTitle2 + '</a></h5>'; 494 blogOther2 += '<div class="authorDetails">'; 495 blogOther2 += '<h6 class="authName">By <span><a target="_blank" href="' + blogAuthorLink2 + '">' + blogAuthorName2 + '</a></span><strong>â¢</strong><span>' + blogReadTime2 + '</span></h6>'; 496 blogOther2 += '</div>'; 497 // blogOther2 += '<a href="#" class="rico-bookmark bookmMark"></a>'; 498 blogOther2 += '</div>'; 499 //blogOther2 += '</a>'; 500 blogOther2 += '</div>'; 501 } 502 } 503 blogHtml2 = '<div class="sufiNamaBlogsData dFlex">' + blogFirst2 + ' <div class="sufiNamaBlogsItem hideScrollbar">' + blogOther2 + '</div></div>'; 504 $('.hPBlogSection').append(blogHtml2); 505 506 } else { 507 508 var blogHtml = ''; 509 var blogFirst = ''; 510 var blogOtherHeader = '<div class="rHPBlogs clearfix">'; 511 var blogOtherFooter = '</div>'; 512 var blogOther = ''; 513 var subTitleNot = ''; 514 for (var i = 0; i < data.records.length; i++) { 515 var blogTitle = data.records[i].Title; 516 var blogSubTitle = data.records[i].SubTitle; 517 if (blogSubTitle) { 518 blogSubTitle = blogSubTitle; 519 } 520 else { 521 blogSubTitle = ' '; 522 if (websiteId == 1 || websiteId == '1') { 523 subTitleNot = ' rBlogSubTitleNot'; 524 } 525 } 526 var blogHomeRekhtaImg = data.records[i].BlogHomeRekhtaImg; 527 var blogHomeRekhtaThumbImg = data.records[i].BlogHomeRekhtaThumbImg; 528 var blogUrl = data.records[i].Parmalink; 529 var blogDescription = data.records[i].Description; 530 var blogAuthorName = data.records[i]["Auhtor Name"]; 531 var bANArr = blogAuthorName.split(' '); 532 if (bANArr.length > 1) { 533 blogAuthorName = bANArr[0] + '...'; 534 } 535 else { 536 blogAuthorName = bANArr[0]; 537 } 538 var blogAuthorLink = data.records[i].AuhtorLink; 539 var blogPostDate = data.records[i].BlogDateFormat; 540 if (data.records[i].BlogReadTime) { 541 var blogReadTime = data.records[i].BlogReadTime; 542 } else { 543 var blogReadTime = '5 min'; 544 } 545 546 var bRTArr = blogReadTime.split(' '); 547 if (bRTArr[0].includes('min')) { 548 blogReadTime = bRTArr[0]; 549 } 550 else if (bRTArr[1].includes('min')) { 551 //blogReadTime = bRTArr[0] + ' ' + bRTArr[1]; 552 blogReadTime = bRTArr[0] + ' min'; 553 } 554 var bloglang = data.records[i].BlogLang; 555 var blogLangClass = 'blogEn'; 556 if (bloglang == 'hi') { 557 blogLangClass = 'blogHi'; 558 } 559 else if (bloglang == 'ur') { 560 blogLangClass = 'blogUr'; 561 } 562 else { 563 blogLangClass = 'blogEn'; 564 } 565 566 var whatMsg = blogTitle + ' - ' + blogUrl; 567 var encodeMsg = encodeURI(whatMsg); 568 569 if (i == 0) { 570 blogFirst += '<div class="rHPLeatestBlog ' + blogLangClass + subTitleNot + ' clearfix"><div class="blgImgTop"><a title="' + blogTitle + '" aria-label="' + blogTitle + '" target="_balnk" class="blgImg" href="' + blogUrl
570+ '"><p class="rHNewBlogupdate">new</p><img alt="' + blogTitle + '" data-src="' + blogHomeRekhtaImg[0] + '" class="lazyload"></a><div class="rHLattestBlogDesc"><h3><a aria-label="' + blogTitle + '" title="' + blogTitle + '" target="_blank" href="' + blogUrl + '">' + blogTitle + '</a></h3><h4>' + blogSubTitle + '</h4><div class="rHblogDesctxt"><p>' + blogDescription + '</p></div><a aria-label="continue Reading" title="continue Reading" target="_blank" href="' + blogUrl + '" class="rHblogTxtreadmre"><span>...</span> continue Reading</a></div></div><div class="rHblogTimeEst clearfix"><p class="rhblogDatePub">By <a title="' + blogAuthorName + '" aria-label="' + blogAuthorName + '" href="' + blogAuthorLink + '" class="rhblogDirectedsitelink">' + blogAuthorName + ' </a> | <span class="rHBposttimeDate">' + blogPostDate + '</span> <span class="postBeforeTime">' + blogReadTime + '</span></p>'; 571 blogFirst += '<div class="rHblogShare cTsocailShare"><a aria-label="share" title="share" href="javascript:void(0)"><i class="rico-share"></i></a><div class="cTsocailShareWrap" data-text="' + blogTitle + '" data-url="' + blogUrl + '"><ul class="clearfix"><li><a href="http://www.facebook.com/sharer.php?u=' + blogUrl + '/&t=' + blogTitle + '" aria-label="Share this post on Facebook!" title="Share this post on Facebook!" target="_blank" class="rico-facebook shareFacebook fbShare"></a></li><li><a target="_blank" href="http://twitter.com/share?text=Currently reading ' + blogTitle + '&url=' + blogUrl + '" aria-label="Click to share this post on Twitter" title="Click to share this post on Twitter" class="rico-twitter shareTwitter twitShare"></a></li><li><a target="_blank" href="whatsapp://send?text=' + encodeMsg + '" aria-label="Click to share this post on WhatsApp" title="Click to share this post on WhatsApp" class="rico-whatsapp shareWhatsap whatappShare"></a></li><li><a title="close" aria-label="close" href="javascript:void(0)" class="rico-close shareCloseBtn"></a></li></ul></div></div>'; 572 blogFirst += '</div></div>'; 573 } 574 else { 575 blogOther += '<div class="rhblogslidesection ' + blogLangClass + subTitleNot + ' clearfix"><div class="rHblogimagecontar"><a title="' + blogTitle + '" aria-label="' + blogTitle + '" target="_blank" href="' + blogUrl + '" ><img alt="' + blogTitle + '" data-src="' + blogHomeRekhtaThumbImg[0] + '" class="lazyload"></a></div><div class="rHLattestBlogDesc"><h3><a aria-label="' + blogTitle + '" title="' + blogTitle + '" target="_blank" href="' + blogUrl + '">' + blogTitle + '</a></h3><h4>' + blogSubTitle + '</h4><div class="rHblogDesctxt"><p>' + blogDescription + '</p><a aria-label="continue Reading" title="continue Reading" href="' + blogUrl + '" target="_blank" class="rHblogTxtreadmre"><span>...</span> continue Reading</a></div><div class="rHblogTimeEst clearfix"><p class="rhblogDatePub"> By <a target="_blank" href="' + blogAuthorLink + '" class="rhblogDirectedsitelink">' + blogAuthorName + '</a> | <span class="rHBposttimeDate">' + blogPostDate + '</span> <span class="postBeforeTime">' + blogReadTime + '</span></p >'; 576 577 blogOther += '<div class="rHblogShare cTsocailShare"><a aria-label="share" title="share" href="javascript:void(0)"><i class="rico-share"></i></a><div class="cTsocailShareWrap" data-text="' + blogTitle + '" data-url="' + blogUrl + '"><ul class="clearfix"><li><a aria-label="Share this post on Facebook!" title="Share this post on Facebook!" href="http://www.facebook.com/sharer.php?u=' + blogUrl + '/&t=' + blogTitle + '" title="Share this post on Facebook!" target="_blank" class="rico-facebook shareFacebook fbShare"></a></li><li><a target="_blank" href="http://twitter.com/share?text=Currently reading ' + blogTitle + '&url=' + blogUrl + '" aria-label="Click to share this post on Twitter" title="Click to share this post on Twitter" class="rico-twitter shareTwitter twitShare"></a></li><li><a href="whatsapp://send?text=' + encodeMsg + '" aria-label="Click to share this post on WhatsApp" title="Click to share this post on WhatsApp" class="rico-whatsapp shareWhatsap whatappShare"></a></li><li><a title="close" aria-label="close" href="javascript:void(0)" class="rico-close shareCloseBtn"></a></li></ul></div></div>'; 578 blogOther += '</div></div></div>'; 579 } 580 } 581 blogHtml = blogFirst + blogOtherHeader + blogOther + blogOtherFooter; 582 //alert('fdfds'); 583 $('.hPBlogSection').append(blogHtml); 584 } 585 586 }, 587 error: function (err) { 588 console.log(err.statusText); 589 590 } 591 });
592 593 594} 595 596 597 598 599 600//Peal Effect 601 602//(function ($) { 603// $.Peelback = function (el, settings) { 604 605// //Caching 606// var base = this; 607// base.$el = $(el); 608// base.el = el; 609// base.$el.data("Peelback", base); 610 611// //Main stuff 612// base.init = function () { 613 614// //Vars 615// var peelHTML, peelImage, peelMask, smallSize, bigSize, smallMaskSize, bigMaskSize; 616 617// //Defaults, meet Settings 618// base.settings = $.extend({}, $.Peelback.defaultSettings, settings); 619 620// //If ad image is missing, stop the show 621// if (typeof (base.settings.adImage) !== 'string' || base.settings.adImage === '') { 622// if (base.settings.debug === true) { 623// console.log('Ad image missing'); 624// } 625// return; 626// } 627 628// //If peel image is missing, stop the show 629// if (typeof (base.settings.peelImage) !== 'string' || base.settings.peelImage === '') { 630// if (base.settings.debug === true) { 631// console.log('Peel effect image missing'); 632// } 633// return; 634// } 635 636// //If click URL is missing, stop the show 637// if (typeof (base.settings.clickURL) !== 'string' || base.settings.clickURL === '') { 638// if (base.settings.debug === true) { 639// console.log('Click URL missing'); 640// } 641// return; 642// } 643 644// //Convenience vars and set mask size 645// smallSize = base.settings.smallSize + 'px'; 646// bigSize = base.settings.bigSize + 'px'; 647// smallMaskSize = (base.settings.smallSize - 3) + 'px'; 648// bigMaskSize = Math.floor((base.settings.bigSize * 0.96)) + 'px'; 649 650// //Assemble 651// peelHTML = $('<div id="peelback"><a href="' + base.settings.clickURL + '" target="_blank"><img src="' + base.settings.peelImage + '" alt="" border="0" /></a><div></div></div>'); 652// peelImage = peelHTML.find('img'); 653// peelMask = peelHTML.find('div'); 654 655// $(peelImage).css({ 656// 'width': '0', 657// 'height': '0', 658// 'z-index': '99', 659// 'position': 'absolute', 660// 'right': '0', 661// 'top': '0', 662// '-ms-interpolation-mode': 'bicubic' 663// }); 664 665// $(peelMask).css({ 666// 'width': '0', 667// 'height': '0', 668// 'overflow': 'hidden', 669// 'position': 'absolute', 670// 'right': '0', 671// 'top': '0', 672// 'background': 'url(' + base.settings.adImage + ') no-repeat right top', 673// 'z-index':'9' 674// }); 675 676// //Insert 677// base.$el.prepend(peelHTML); 678 679// //Auto animate option 680// if (base.settings.autoAnimate === false) { 681// $(peelImage).css({ 'width': smallSize, 'height': smallSize }); 682// $(peelMask).css({ 'width': smallMaskSize, 'height': smallMaskSize }); 683// } else { 684// $(peelImage).delay(500).animate({ 685// width: smallSize, 686// height: smallSize 687// }, 500); 688 689// $(peelMask).delay(500).animate({ 690// width: smallMaskSize, 691// height: smallMaskSize 692// }, 500); 693// } 694 695// //Hover behavior 696// peelHTML.hover( 697 698// //Mouseover 699// function () { 700// $(peelImage).stop().animate({ 701// width: bigSize, 702// height: bigSize 703// }, 500); 704 705// $(peelMask).stop().animate({ 706// width: bigMaskSize, 707// height: bigMaskSize 708// }, 500); 709 710// //If GA tracking enabled 711// if (base.settings.gaTrack === true) { 712// if (typeof (_gaq) != 'undefined') {
713// _gaq.push(['_trackEvent', 'Ad_Interaction', 'Peelback', base.settings.gaLabel]); 714// } else { 715// if (base.settings.debug === true) { 716// console.log('Google Analytics _gaq object undefined'); 717// } 718// } 719// } 720// }, 721 722// //Mouseout 723// function () { 724// $(peelImage).stop().animate({ 725// width: smallSize, 726// height: smallSize 727// }, 400); 728 729// $(peelMask).stop().animate({ 730// width: smallMaskSize, 731// height: smallMaskSize 732// }, 400); 733// } 734 735// ); 736 737// }; 738 739// // Run initializer 740// base.init(); 741// }; 742 743// $.Peelback.defaultSettings = { 744// adImage: null, 745// peelImage: null, 746// clickURL: null, 747// smallSize: 70, 748// bigSize: 310, 749// gaTrack: false, 750// gaLabel: 'default', 751// autoAnimate: true, 752// debug: false 753// }; 754 755// $.fn.peelback = function (settings) { 756// return this.each(function () { 757// (new $.Peelback(this, settings)); 758// }); 759// }; 760 761//})(jQuery); 762 763 764//$(function () { 765// $('#slider').peelback({ 766// adImage: rekhtaUrl + '/Content/3.5/Images/Alfaaz_Thumbnail.jpg', 767// peelImage: rekhtaUrl + '/Content/3.5/Images/peelImage.png', 768// clickURL: 'https://alfaaz.aamozish.com?ref=rweb', 769// gaTrack: true, 770// gaLabel: 'Aamozish - Urdu Learning Website', 771// autoAnimate: true 772// }); 773//}); 774 775 776 777 778 779
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.