PageSourceSearch

https://cdn0070.qrcodechimp.com/blog/wp-content/themes/custom/js/functions.js?v=1.0.u

js qrcodechimp.com collected 2026-09-24 08:43:35 UTC 12,578 bytes, 29 lines download raw bytes

1function empty(e){var t,n,o,i,s=[o,void 0,null,!1,0,"","0"];for(t=0,n=s.length;t<n;t++)if(e===s[t])return!0;if(typeof e=="object"){for(i in e)return!1;return!0}return!1}function isEmpty(e){return!!isUndefined(e)||!!empty(e)||(e+="",e=="undefined"||(e.replace(/^\s+|\s+$/g,""),e==""||e==0))}function isUndefined(e){return typeof e=="undefined"||e===void 0||e===null||(e+="",e=="undef"||e=="undefined")}function isDefined(e){return!isUndefined(e)}function deepCopy(e){if(!e)return e;if(typeof e=="object"||typeof e=="array"){let t,n=Array.isArray(e)?[]:{};for(const s in e)e.hasOwnProperty(s)&&(t=e[s],n[s]=typeof t=="object"?deepCopy(t):t);return n}return e}function extractDataFromArray(e,t,n=""){var o,i,s=n;if(typeof e!="undefined")try{if(!isEmpty(e)&&!isUndefined(t)){s=e;for(i=t.length,o=0;o<i;++o)isUndefined(t[o])||(s=s[t[o]])}isUndefined(s)&&(s=n)}catch{s=n}return s}function loadGifImage(e){"use strict";try{if(!e.parentNode.className.match(/\bever-gif-container\b/)){var t=document.createElement("div");t.className="ever-gif-container",t.style.backgroundImage="url('"+e.src+"')",e.setAttribute("rel:animated_src",e.dataset.animated_src),t.appendChild(e.cloneNode(!0)),e.parentNode.replaceChild(t,e)}}catch{}}function tw_gif(){"use strict";var e=jQuery,t=e('img.ever-gif[src$=".gif"]'),n=t.length;n&&t.each(function(t){var o,i,a,c,l="ever-gif-"+n+"-"+t,s=e(this).attr({id:l,"rel:auto_play":ever_script_data.gif_auto}),r=!0;s.closest(".waves-post-menu").length&&(s.closest(".waves-post-menu-content").length?s.closest(".waves-post-menu").data("tw-postmenu-inited")!=="true"&&(r=!1):r=!1),s.data("gif-inited")!=="true"&&r&&(s.data("gif-inited","true"),c=s.attr("src"),s.closest(".ever-gif-container").length?o=s.closest(".ever-gif-container"):(o=e('<div class="ever-gif-container" style="background-image:url('+c+');"></div>'),s.before(o),o.append(s),s.attr("rel:animated_src",s.data("animated_src"))),o.attr({"data-width":s.data("width")?s.data("width"):0,"data-height":s.data("height")?s.data("height"):0}),i=new SuperGif({gif:document.getElementById(l),progressbar_height:0}),i.load(function(){tw_gif_resize(o,!0)}),ever_script_data.gif_auto==="0"&&(a=e('<span class="ever-gif-button"></span>'),o.append(a),a.on("click",function(e){return e.preventDefault(),o.is(".playing")?(o.removeClass("playing"),i.pause()):(o.addClass("playing"),i.play()),""})))})}function tw_gif_resize(e,t){"use strict";var s,o,i,a,r,c,n=e.find(".jsgif"),l=e.width(),d=parseInt(e.data("width"),10),u=parseInt(e.data("height"),10);n.length&&d&&u&&(n.css({width:"",height:""}),c=d/u,s=parseInt(l/c,10),e.height(s),i=n.height(),o=n.width(),a=0,r=0,s<i?a=(s-i)/2:(n.height(s),o=s*(o/i),n.width(o),r=(l-o)/2),n.css({top:a+"px",left:r+"px"})),t&&n.css("opacity","1")}function tw_init(){$=jQuery,tw_gif(),typeof Fluidvids!==void 0&&typeof Fluidvids!="undefined"&&$(".hotsugar-container iframe").each(function(){var e=$
1(this);e.data("tw-fluidvids-inited")!=="true"&&e.data("tw-fluidvids-inited","true").addClass("tw-make-fliud")}).promise().done(function(){Fluidvids.init({selector:".hotsugar-container iframe.tw-make-fliud",players:["www.youtube.com","player.vimeo.com"]}),$(".hotsugar-container iframe.tw-make-fliud").removeClass("tw-make-fliud")}),$(".tw-format-modal").each(function(){var t,n,s,o,i,a,r,c,l,d,e=$(this);e.data("tw-format-modal-inited")!=="true"&&(e.data("tw-format-modal-inited","true"),a=e.data("format"),s=$("iframe",e),t=$(".owl-carousel",e),d=a==="gallery"&&t.length&&$().owlCarousel!==void 0&&$().owlCarousel!=="undefined",i=!0,l=!!$(".nav",e).length&&$(".nav",e),n=!!$(".owl-carousel-meta>.pagination",e).length&&$(".owl-carousel-meta>.pagination",e),r=!!$(".owl-carousel-meta>.title",e).length&&$(".owl-carousel-meta>.title",e),c=!!$(".owl-carousel-meta>.desc",e).length&&$(".owl-carousel-meta>.desc",e),o=!!(n&&n.data("template"))&&n.data("template"),d&&(t.owlCarousel({autoHeight:!0,singleItem:!0,loop:i,navText:["<i class='ion-ios-arrow-left'></i>","<i class='ion-ios-arrow-right'></i>"],nav:!0,dots:!1,items:1}),$(".owl-nav",e).appendTo(l),t.on("changed.owl.carousel",function(e){if(n){var l,s=e.item.index+(i?-2:1),a=e.item.count;s>a?s=s-a:s<1&&(s=a),o&&n.html(o.replace("%index%",s).replace("%count%",a))}l=$(".owl-item",t).eq(e.item.index),r&&r.html(l.find(".owl-item-data>.title",t).html()),c&&c.html(l.find(".owl-item-data>.desc",t).html())})),$(".tw-format-modal-inner",e).on("click",function(e){return e.preventDefault(),!1}),$(e).on("click",function(t){t.preventDefault(),$(".tw-format-modal-header>.close-modal",e).trigger("click")}),$(".tw-format-modal-header>.close-modal",e).on("click",function(t){return t.preventDefault(),e.removeClass("tw-format-modal-active"),a==="video"&&$("iframe",e).length&&s.each(function(){var e=$
1(this);e.attr("data-src",s.attr("src")),e.attr("src","")}),$(".tw-format-modal.tw-format-modal-active").length||$("body").removeClass("tw-format-modal-open"),!1}))})}function getCdnUrl(){return"https://cdn0070.qrcodechimp.com/"}const __api_domain="iapi.qrcodechimp.com";var __STANDARD_DOMAINS=["aol.com","att.net","comcast.net","facebook.com","gmail.com","gmx.com","googlemail.com","google.com","hotmail.com","hotmail.co.uk","mac.com","me.com","mail.com","msn.com","live.com","sbcglobal.net","verizon.net","yahoo.com","yahoo.co.uk","email.com","fastmail.fm","games.com","gmx.net","hush.com","hushmail.com","icloud.com","iname.com","inbox.com","lavabit.com","love.com","outlook.com","pobox.com","protonmail.ch","protonmail.com","tutanota.de","tutanota.com","tutamail.com","tuta.io","keemail.me","rocketmail.com","safe-mail.net","wow.com","ygm.com","ymail.com","zoho.com","yandex.com","bellsouth.net","charter.net","cox.net","earthlink.net","juno.com","btinternet.com","virginmedia.com","blueyonder.co.uk","live.co.uk","ntlworld.com","orange.net","sky.com","talktalk.co.uk","tiscali.co.uk","virgin.net","bt.com","sina.com","sina.cn","qq.com","naver.com","hanmail.net","daum.net","nate.com","yahoo.co.jp","yahoo.co.kr","yahoo.co.id","yahoo.co.in","yahoo.com.sg","yahoo.com.ph","163.com","yeah.net","126.com","21cn.com","aliyun.com","foxmail.com","hotmail.fr","live.fr","laposte.net","yahoo.fr","wanadoo.fr","orange.fr","gmx.fr","sfr.fr","neuf.fr","free.fr","gmx.de","hotmail.de","live.de","online.de","t-online.de","web.de","yahoo.de","libero.it","virgilio.it","hotmail.it","aol.it","tiscali.it","alice.it","live.it","yahoo.it","email.it","tin.it","poste.it","teletu.it","bk.ru","inbox.ru","list.ru","mail.ru","rambler.ru","yandex.by","yandex.com","yandex.kz","yandex.ru","yandex.ua","ya.ru","hotmail.be","live.be","skynet.be","voo.be","tvcablenet.be","telenet.be","hotmail.com.ar","live.com.ar","yahoo.com.ar","fibertel.com.ar","speedy.com.ar","arnet.com.ar","yahoo.com.mx","live.com.mx","hotmail.es","hotmail.com.mx","prodigy.net.mx","yahoo.ca","hotmail.ca","bell.net","shaw.ca","sympatico.ca","rogers.com","yahoo.com.br","hotmail.com.br","outlook.com.br","uol.com.br","bol.com.br","terra.com.br","ig.com.br","r7.com","zipmail.com.br","globo.com","globomail.com","oi.com.br"];function isValidEmailAddress(e){var s=/^([a-z\d!#$%&'*+\-/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;let t=e.split(","),n=0;for(let e=0;e<t.length;++e){let o=t[e];n+=s.test(o)?1:0}return n>=t.length}function isOfficialEmail(e){if(!empty(e)){let t=e.split("@");if(t.length==2&&!__STANDARD_DOMAINS.includes(t[1].toLowerCase()))return!0}return!1}function showLoaderOnBlock(){}function hideLoader(){}function parseResponseData(e,t){var s=typeof t=="undefined"||!t,n={_parseCode:!1};if(e!=null&&typeof e=="object")n=e;else if(typeof e=="undefined"||e==null)return s&&showAlertMessage("E","Unknown Error, malformed response received."),n._parseCode=!1,n;else if(e!=""&&typeof e=="string")try{n=$.parseJSON(e)}catch{return s&&showAlertMessage("E","Error in Parsing the server response. Please refresh the page and try again."),n._parseCode=!1,n}return!empty(n)&&n.hasOwnProperty("errorCode")&&n.errorCode!="0"&&n.errorCode!=""&&n.errorCode!=0?(n.errorMsg.localeCompare("RCP")==0?s&&showAlertMessage("E","Your session has expired. Please login again to continue."):s&&showAlertMessage("E",n.errorMsg),n._parseCode=!1,n):(n._parseCode=!0,n)}function showAlertMessage(e,t,n,s=0){(typeof n=="undefined"||n==null||!n)&&(n=function(){});let o={title:"Done",icon:"success",text:t,onClose:n};typeof s!="undefined"&&s==1&&(o.allowOutsideClick=!1,o.allowEscapeKey=!1),e=="E"?(o.title="Error",o.icon="error"):e=="S"?(o.title="Done",o.icon="success"):e=="W"&&(
1o.title="Warning",o.icon="warning"),SwalPopup.showSingleButtonPopup(o)}function isEmpty(e){return!!isUndefined(e)||!!empty(e)||(e+="",e=="undefined"||(e.replace(/^\s+|\s+$/g,""),e==""||e==0))}function isUndefined(e){return typeof e=="undefined"||e===void 0||e===null||(e+="",e=="undef"||e=="undefined")}function isDefined(e){return!isUndefined(e)}function extractDataFromArray(e,t,n=""){var o,i,s=n;try{if(!isEmpty(e)&&!isUndefined(t)){s=e;for(i=t.length,o=0;o<i;++o)isUndefined(t[o])||(s=s[t[o]])}isUndefined(s)&&(s=n)}catch{s=n}return s}function getObjectData(e,t,n=null){return extractDataFromArray(e,t,n)}function bindSearchEnter(){$("#sInput").unbind("keydown"),$("#sInput").on("keydown",function(t){t.keyCode==13&&performSearch()})}function checkAndPerformSearch(e){e=e||window.event,e.keyCode==13&&performSearch()}function performSearch(){let e=$("#sInput").val();window.top.location="/search/?kw="+e}function gotoCategory(e){let t=$(e).html().toLowerCase(),n=t.replace(/ /g,"-");window.top.location="/category/"+n}function gotoTag(e){let t=$(e).html().toLowerCase(),n=t.replace(/ /g,"-");window.top.location="/tag/"+n}function checkAndUpdateSiginNav(){$.post("/user/services/api",{cmd:"amILoggedIn"},function(e){console.log(e);let t=extractDataFromArray(e,["data","isLoggedIn"],"N");if(e.errorMsg=="RCP"||empty(e.data)||t!="Y")$("#navSignInDashboard").html(`
2                <li class="nav-item">
3                    <div class="nav-right-link">
4                        <a class="nav-link" href="/user/signin">Sign Up</a>
5                        <span class="qr_divider"></span>
6                        <a class="nav-link" href="/user/signin">Sign In</a>
7                    </div>
8                </li>
9            `);else{let t=extractDataFromArray(e,["data","name"],""),n=extractDataFromArray(e,["data","pic"],"https://cdn0070.qrcodechimp.com/assets/images/profile_pic.svg");$("#navSignInDashboard").html(`
10            <li class="nav-item">
11                <div class="nav-right-link">
12                    <li class="nav-item">
13                        <a class="btn btn-primary dashboard_btn" href="/user/dashboard">Dashboard</a>
14                    </li>
15                    <div class="ml-auto user_profile_icon">
16                        <div class="navbar_notification easin mr-2 d-none "><i class="icon-notification"></i></div>
17                        <div class=" easin dropdown">
18                            <button class="dropdown-toggle navbar_profile_pic" id="user_profile_dropdown" data-toggle="dropdown" aria-haspopup="false" aria-expanded="false" style="background-image:url(`+n+`)"></button>
19                            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="user_profile_dropdown">
20                                <h6 class="dropdown-header border-bottom notranslate">`+t+`</h6>
21                                <a class="dropdown-item " href="/user/settings?s=profile" id="subaccount_nav_dropdown_link">Profile</a>
22                                <a class="dropdown-item d-none" href="/user/setting">Setting</a>
23                                <div class="dropdown-item" href="" onclick="logout()">Sign Out</div>
24                            </div>
25                        </div>
26                    </div>
27                </div>
28            </li>            
29            `)}})}function logout(){$.post("/user/services/openapi",{cmd:"signOut"},function(){checkAndUpdateSiginNav()})}

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.