//if (typeof npf_c != "undefined" && npf_c && typeof npf_w != "undefined" && npf_w) { if (typeof jQuery == 'undefined'){ var script = document.createElement('script'); script.type = "text/javascript"; script.src = "https://widgets.nopaperforms.com/js/jquery.min.js"; script.onload = function() { var jQuery = window.jQuery; cIframe(); }; document.getElementsByTagName('head')[0].appendChild(script); }else{ cIframe(); } //} function cBrow(){ // Opera 8.0+ var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; // Firefox 1.0+ var isFirefox = typeof InstallTrigger !== 'undefined'; // Safari 3.0+ "[object HTMLElementConstructor]" var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification)); // Internet Explorer 6-11 var isIE = /*@cc_on!@*/false || !!document.documentMode; // Edge 20+ var isEdge = !isIE && !!window.StyleMedia; // Chrome 1+ var isChrome = !!window.chrome && !!window.chrome.webstore; // Blink engine detection var isBlink = (isChrome || isOpera) && !!window.CSS; if(isFirefox || isChrome || isOpera){ return true; }else{ return false; } } function parseURL(url) { var a = document.createElement('a'); a.href = url; return { href: url, protocol: a.protocol.replace(':',''), host: a.hostname, hostname: a.hostname, port: a.port, search: a.search, params: (function(){ var ret = {}, seg = a.search.replace(/^\?/,'').split('&'), len = seg.length, i = 0, s; for (;i0 || u.indexOf("gclid")>0){ s=0; }else if(npf_fx!=""){ var r = rCookie("npf_r"); var l = rCookie("npf_l"); var u = rCookie("npf_u"); } if (npfwg == "" || s==0) { if(l=="localhost"){ dco=l; }else{ dco = (l.match(/([^.]+)\.\w{2,3}(?:\.\w{2})?$/) || [])[0]; } document.cookie = "npfwg=1;domain=."+dco+";expires=0; path=/"; document.cookie = "npf_r="+r+";domain=."+dco+";expires=0; path=/"; document.cookie = "npf_l="+l+";domain=."+dco+";expires=0; path=/"; document.cookie = "npf_u="+u+";domain=."+dco+";expires=0; path=/"; }else{ var r = rCookie("npf_r"); var l = rCookie("npf_l"); var u = rCookie("npf_u"); } if (typeof npf_m != "undefined" && npf_m=="preview"){ npf_m=npf_m; }else{ npf_m=""; } var npf_furl=''; if(cBrow()){ var fu=new URL(u); }else{ var fu=parseURL(u); } var npf_qV = fu.search.replace('?', '').split('&'); //window.location var npf_qL = ''; if (npf_qV != '') { for (i = 0; i < npf_qV.length; i++) { if(npf_qL!='')npf_qL=npf_qL+"||"; var ParamKeys = npf_qV[i].split('='); if((ParamKeys[0].toLowerCase() =='utm_placement') || (ParamKeys[0].toLowerCase() =='utm_keyword')) { npf_qL=npf_qL+ParamKeys[0]+"@@"+ npf_qV[i].replace(ParamKeys[0]+'=',""); } else { npf_qL=npf_qL+ParamKeys[0]+"@@"+ParamKeys[1]; } } } var npf_r = r; //document.referrer; url_track='https://widgets.nopaperforms.com/register?'; jQuery(".npf_wgts").each(function() { npf_height=jQuery(this).data("height"); //npf_c=jQuery(this).data("c"); npf_w=jQuery(this).data("w"); npf_furl=url_track+"&r="+npf_r+"&q="+npf_qL+"&w="+npf_w+"&m="+npf_m+"&cu="+cu; if(npf_height=="parent"){ var npf_height=document.getElementsByClassName("npf_wgts")[0].parentElement.clientHeight; npf_height=npf_height+"px"; } jQuery(this).html(''); jQuery('