Moozonian

๐Ÿ’ป Developer Nexus: Page: optout

GitHub

hiteshsuthar01/OK-

HTML p tag

Tutorials References Exercises Videos Pro NEW Menu

HTML <p> Tag


Example

A paragraph is marked up as follows:

<p>This is some text in a paragraph.</p>
Try it Yourself ยป

More "Try it Yourself" examples below.


Definition and Usage

The <p> tag defines a paragraph.

Browsers automatically add a single blank line before and after each <p> element.

Tip: Use CSS to style paragraphs.


Browser Support

Element
<p> Yes Yes Yes Yes Yes

Global Attributes

The <p> tag also supports the Global Attributes in HTML.


Event Attributes

The <p> tag also supports the Event Attributes in HTML.


ADVERTISEMENT

More Examples

Example

Align text in a paragraph (with CSS):

<p style="text-align:right">This is some text in a paragraph.</p>
Try it Yourself ยป

Example

Style paragraphs with CSS:

<html>
<head>
<style>
p {
  color: navy;
  text-indent: 30px;
  text-transform: uppercase;
}
</style>
</head>
<body>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

</body>
</html>
Try it Yourself ยป

Example

 More on paragraphs:

<p>
This paragraph
contains a lot of lines
in the source code,
but the browser
ignores it.
</p>
Try it Yourself ยป

Example

Poem problems in HTML:

<p>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</p>
Try it Yourself ยป

Related Pages

HTML tutorial: HTML Paragraphs

HTML DOM reference: Paragraph Object


Default CSS Settings

Most browsers will display the <p> element with the following default values:

Example

p {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
}
Try it Yourself ยป



โญ 32 | ๐Ÿด 0
GitHub

davidfiala/rybbit-optout

Chrome and Firefox extension to opt out of https://github.com/rybbit-io/rybbit on all pages

โญ 4 | ๐Ÿด 0
GitHub

Bailey520/tumblr

"undefined"!=typeof YAHOO&&YAHOO||(YAHOO={}),YAHOO.i13n=YAHOO.i13n||{},YAHOO.i13n.EventTypes=function(){function e(e,t,n){this.yqlid=e,this.eventName=t,this.spaceidPrefix=n}var t="richview",n="contentmodification";e.prototype={getYQLID:function(){return this.yqlid},getEventName:function(){return this.eventName}};var r={pageview:new e("pv","pageview",""),simple:new e("lv","event","P"),linkview:new e("lv","linkview","P"),richview:new e(t,t,"R"),contentmodification:new e(t,n,"R"),dwell:new e("lv","dwell","D")};return{getEventByName:function(e){return r[e]}}}(),YAHOO.i13n.Rapid=function(e){function t(){}function n(e){this.map={},this.count=0,e&&this.absorb(e)}function r(){this.map={},this.count=0}function i(e,t){if(!e)return null;null===t&&(t=!1);var n=new r,i=U.getAttribute(e,U.data_action_outcome);i&&n.set("outcm",i);var o=U.getAttribute(e,"data-ylk");if(null===o||0===o.length)return n;for(var a=o.split(U.ylk_pair_delim),s=0,l=a.length;l>s;s++){var c=a[s].split(U.ylk_kv_delim);if(2===c.length){var u=c[0],d=c[1];null!==u&&""!==u&&null!==d&&("_p"!==u||t)&&n.set(u,d)}}return n}function o(e,t,n){return t>e?t:e>n?n:e}function a(t,n){B.set("A_sid",YAHOO.i13n.A_SID||U.rand()),B.set("_w",U.rmProto(n)),t?B.absorb(t):e.keys&&B.absorb(e.keys)}function s(e){var t=(YAHOO.i13n,YAHOO.i13n.TEST_ID||e.test_id),n=e.location||document.location.href;a(e.keys,n),t&&(t=U.norm(""+t));var r=300,i=700,s=1e4,l=e.override||{},c={override:l,version:"3.42.2",keys:B,referrer:e.referrer,getReferrer:function(){return U.norm(U.clref("undefined"!=typeof this.referrer?this.referrer:document.referrer))},spaceid:U.norm(l.spaceid||YAHOO.i13n.SPACEID||e.spaceid),yrid:U.norm(e.yrid||""),oo:e.oo?"1":"0",nol:e.nol?"1":"0",yql_enabled:e.yql_enabled!==!1,fing:1==e.use_fing,USE_RAPID:e.use_rapid!==!1,linktrack_attribut:e.lt_attr||"text",tracked_mods:e.tracked_mods||[],tracked_mods_viewability:e.tracked_mods_viewability||[],viewability:e.viewability||!1,viewability_time:e.viewability_time||300,viewability_px:e.viewability_px||50,lt_attr:e.lt_attr||"text",client_only:e.client_only,text_link_len:e.text_link_len||-1,test_id:t,yql_host:e.yql_host||"udc.yahoo.com",yql_path:e.yql_path||"/v2/public/yql",click_timeout:e.click_timeout||s,compr_timeout:e.compr_timeout||i,compr_on:e.compr_on!==!1,compr_type:e.compr_type||"deflate",webworker_file:YAHOO.i13n.WEBWORKER_FILE||e.webworker_file||"rapidworker-1.2.js",nofollow_classname:e.nofollow_class||"rapidnofollow",no_click_listen:e.rapid_noclick_resp||"rapid-noclick-resp",nonanchor_track_class:e.nonanchor_track_class||"rapid-nonanchor-lt",anc_pos_attr:"data-rapid_p",anc_v9y_attr:"data-v9y",deb:e.debug===!0,ldbg:e.ldbg>0?!0:n.indexOf("yhldebug=1")>0,addmod_timeout:e.addmodules_timeout||300,ult_token_capture:"boolean"==typeof e.ult_token_capture?e.ult_token_capture:!1,track_type:e.track_type||"data-tracktype",dwell_on:e.dwell_on!==!1,prerender:e.prerender===!0,query_parameters:e.query_parameters===!0,async_all_clicks:e.async_all_clicks===!0,click_postmsg:e.click_postmsg||{},apv:e.apv!==!1,apv_time:e.apv_time||500,apv_px:e.apv_px||500,apv_always_send:e.apv_always_send===!0,ex:e.ex===!0,persist_asid:e.persist_asid===!0,track_right_click:e.track_right_click===!0,gen_bcookie:e.gen_bcookie===!0,skip_attr:e.skip_attr||"data-rapid-skip",parse_dom:e.parse_dom===!0,pageview_on_init:e.pageview_on_init!==!1,perf_navigationtime:e.perf_navigationtime||0,perf_commontime:e.perf_commontime||null,perf_usertime:e.perf_usertime||null,perf_resourcetime:e.perf_resourcetime||0,sample:e.sample||{},loc:n,fpc:e.fpc===!0},u=1*c.compr_timeout;return U.isNum(u)?c.compr_timeout=o(u,r,i):c.compr_timeout=i,c.ldbg&&c.click_timeout!=s&&console.warn("Click timeout set to "+c.click_timeout+"ms (default 10000ms)"),e.apv_callback&&"function"==typeof e.apv_callback?c.apv_callback=e.apv_callback:c.apv_callback=null,c}function l(){B.set("A_sid",U.rand())}function c(){return"Rapid-"+F.version+"("+(new Date).getTime()+"):"}function u(e){F.ldbg&&console.warn("RAPID WARNING: "+e)}function d(e){F.ldbg&&console.error("RAPID ERROR: "+e)}function f(e){F.ldbg&&console.log(c()+e)}function p(){var e=document.cookie;if(this.cookieMap={},/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(e))for(var t=e.split(/;\s/g),n=null,r=null,i=null,o=0,a=t.length;a>o;o++){if(i=t[o].match(/([^=]+)=/i),i instanceof Array)try{n=U.dec(i[1]),r=U.dec(t[o].substring(i[1].length+1))}catch(s){d(s)}else n=U.dec(t[o]),r=n;"B"!==n&&"BX"!==n&&"TT"!==n&&"D"!==n&&"_ga"!==n&&"yx"!==n&&"rxx"!==n||(this.cookieMap[n]=r)}U.clearCookie("rx","/",U.isIE?document.domain:"")}function m(){if(F.ult_token_capture&&YAHOO.i13n.__handled_ult_tokens__!==!0){YAHOO.i13n.__handled_ult_tokens__=!0;var e=F.loc;if(e.match(/;_yl[a-z]{1}=/))F.ldbg&&f("Found ULT Token on URL."),K.sendGeoT(e);else{var t=new p,n=t.getCookieByName("D");n&&(U.clearCookie("D","/",".yahoo.com"),K.sendGeoT(n))}}}function v(){function e(){t=(new Date).valueOf().toString(),n=t.length}var t=null,n=null;return e(),{ts:t.substr(0,n-3),ms:t.substr(n-3)}}function g(e,t,n,r){var i=new Date,o="";i.setTime(i.getTime()+1e3*n),o="; expires="+i.toGMTString();var a="";r&&(a=";domain="+r);var s=e+"="+t+o+a+"; path=/";document.cookie=s}function h(){function e(e,t){F.ldbg&&f(e);var n=new Image,r=null;n.onload=n.onabort=n.onerror=function(){t&&"function"==typeof t&&(clearTimeout(r),t.call(null))},n.src=e,t&&"function"==typeof t&&(r=setTimeout(function(){t.call(null)},F.click_timeout)),setTimeout(function(){n=null},1e7)}function t(){return"rapid_if_"+U.rand()}function r(e){var t="display:none;";!U.isIE||6!==U.ieV&&7!==U.ieV&&8!==U.ieV?U.sa(e,"style",t):e.style.setAttribute("cssText",t,0)}function i(e){var t=null;if(U.isIE&&U.ieV<=8){var n="";U.isSecure()&&6==U.ieV&&(n='src="https://geo.yahoo.com/b.html"'),t=document.createElement("')}else t=document.createElement("iframe");return t.name=e,t}function o(){setTimeout(function(){var e=i("");U.addEvent(e,"load",function(){U.rmBodyEl(e)}),U.appBodyEl(e)},1)}function a(e,n){var a=null,l=U.make("form"),c=U.make("input"),u=t(),d=t(),p="application/x-www-form-urlencoded;charset=UTF-8";a=i(u),r(a),r(l),l.id=d,l.method="POST",l.action=s(n),l.target=u,U.isIE&&U.ieV<=7?l.setAttribute("enctype",p):(l.setAttribute("enctype",p),l.setAttribute("encoding",p)),c.name="q",c.value=e,U.isIE&&U.ieV>=10&&(c.type="submit"),l.appendChild(c);var m="load",v=function(){var e="";if(F.ldbg&&(!U.isIE||U.ieV>=9)){var t=a.contentDocument||a.contentWindow.document;e=t.body.innerHTML}U.rmEvent(a,m,v),setTimeout(function(){U.rmBodyEl(a),U.rmBodyEl(l)},0),F.ldbg&&f("iframe resp: "+e),U.isIE&&U.ieV<=7&&o()};U.addEvent(a,m,v),U.appBodyEl(a),U.appBodyEl(l),l.submit()}function s(e){var t=F.deb,n=U.rand(),r=["http:"===window.location.protocol?"http://":"https://",F.yql_host,F.yql_path,"?yhlVer=2&yhlClient=rapid&yhlS=",F.spaceid,t===!0?"&yhlEnv=staging":"",t===!0||F.ldbg?"&debug=true&diagnostics=true":"",U.isIE&&U.ieV?"&yhlUA=ie"+U.ieV:"",U.isIE&&8==U.ieV?"&format=json":"","&yhlCT=2","&yhlBTMS=",(new Date).valueOf(),"&yhlClientVer=",F.version,"&yhlRnd=",n,"&yhlCompressed=",e||0,F.gen_bcookie?"&yhlBcookie=1":""].join("");return F.ldbg&&f(r),r}function l(t){var r=new n(t);e(T("p",r,1197799914))}function c(e,t){var n=s(t);try{var r=U.getXHR();r.open("POST",n,!0),r.withCredentials=!0,r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),F.ldbg&&(r.onreadystatechange=function(){4===r.readyState&&f(r.status+":xhr response: "+r.responseText)}),r.send(e)}catch(i){l({_err_nm:"sendToYQL Failed",_err_msg:"sendToYQL Failed",_err_rs:String(i),_err_st:i.stack,urlUsed:n})}}function p(e,t,n){var r={};return U.isObj(e)?(U.aug(r,e,n),r):r}function m(e,t,n){n=n||{};var r={m:U.norm(e.moduleName),l:[]};e.moduleYLK&&(r.ylk=e.moduleYLK.getAll());for(var i=r.ylk&&r.ylk.sec?r.ylk.sec:"",o=e.links,o=e.links,a=function(e,n){var o="_p"===e;return t&&o?!0:"sec"==e&&n!=r.m&&n!=i?!0:"sec"!==e&&!o},s=0,l=o.length;l>s;s++)o[s]&&(!F.viewability||o[s].viewable?r.l.push(p(o[s].data,t,a)):F.ldbg&&f("Skipping not viewable link: "+o[s].data.slk));return r}function g(e,t,n){var r=[],i=null;for(var o in e)if(U.hasOwn(e,o)&&(i=e[o])){var a=m(i,t,n);a.l.length>0?r.push(a):F.ldbg&&f('Not capturing 0 links mod: "'+i.moduleName+'"')}return r}function h(e,t){return e?"pv":t&&t.event?t.event.type.getYQLID():"lv"}function _(e,t,n,r,i){var o;return o=$?ne:v(),[{t:h(t,i),s:F.spaceid,pp:y(t,r).getAll(),_ts:o.ts,_ms:o.ms,lv:g(e,n,i)}]}function y(e,t){var r=n.makeFromPP(F.keys);return r.absorb(t),e&&r.set("A_",1),r.set("A_sr",U.sr()),r.set("A_vr",U.vr()),r.set("A_do",U.dor()),r}function w(e,t,n){var r="select * from x where a = '"+e+"'";return(t?"q=":"")+(n?U.enc(r):r)}function b(e){var t={bp:D().getAll(),r:e.call(0),yrid:F.yrid,optout:F.oo,nol:F.nol};return U.toJSON(t)}function k(e,t,n){var r={};t&&$&&$.start_dwell()&&(r.etag="dwell,start",r.usergenf=1,r.A_prets=re?re.ts:null,r.A_prems=re?re.ms:null),n.event&&U.aug(r,n.event.data),n.pp&&U.aug(r,n.pp);var i=b(function(){return _([e],t,!0,r,n)});C(i,t)}function A(e,t,n,r){var i=b(function(){return _(e,t,!0,n,r)});C(i)}function E(e){return e.identifier}function C(e){function t(e,t){0===t&&(e=e.replace(/'/g,"\\'")),r&&f("body: "+e),U.hasCORS()?(i=w(e,!0,!0),c(i,t)):(i=w(e,0,0),a(i,t))}function n(){l||(l=!0,t(e,0),r&&f("sent in failSend"))}var r=F.ldbg,i="",o=W[F.compr_type];if(F.compr_on&&U.hasWorkers()&&o>1&&e.length>2048){r&&f("Looking for worker:"+F.webworker_file+", compr timeout:"+F.compr_timeout);try{var s=new Worker(F.webworker_file),l=!1,d=null,p=0;s.onerror=function(e){clearTimeout(d),n(),u(e.message),s.terminate()},s.onmessage=function(i){clearTimeout(d);var a=U.tms();"Decompress fail"!==i.data&&"Compress fail"!==i.data&&0!=i.data.indexOf("error:")||(r&&f(i.data),n()),l||(l=!0,t(i.data,o)),r&&f("Ratio ("+i.data.length+"/"+e.length+"): "+(100*i.data.length/e.length).toFixed(2)+"% -> C_T: "+(a-p)+" ms ("+a+"-"+p+")"),s.terminate()},r&&f("posting to worker: "+e),p=U.tms(),s.postMessage({type:o,json:e}),d=setTimeout(function(){n(),s.terminate()},F.compr_timeout)}catch(m){r&&f("compression worker exception "+m),t(e,0)}}else t(e,0)}function T(e,t,n){return("http:"===window.location.protocol?"http://":"https://")+x+"/"+e+["?s="+(n?n:F.spaceid),"t="+U.rand()+","+Math.random(),"_I="+F.yrid,"_AO="+F.oo,"_NOL="+F.nol,"_R="+U.enc(F.getReferrer()),("c"===e?"_K=":"_P=")+O(t)].join("&")}function O(e){var t=new n(D(!1).getAll());t.absorb(F.keys.getAll()),e&&(e instanceof n?t.absorb(e.getAll()):d("Internal error in buildGeoPP: not PP type"));var r;return r="dwell,start"===t.get("etag")?ne:"dwell,stop"===t.get("etag")?re:v(),t.set("_ts",r.ts),t.set("_ms",r.ms),t.set("A_sr",U.sr()),t.set("A_vr",U.vr()),t.set("A_do",U.dor()),F.version+"%05"+t.ser()}function S(e){var t=new n(e.pp),r=[T("c",t)+"&_C="+U.ser(e.data)];return r.join("&")}var x=YAHOO.i13n.beacon_server||"geo.yahoo.com",D=function(e){var t=new n;t.set("_pl",1),t.set("A_v",F.version);var r=F.getReferrer();if(r&&e!==!1&&t.set("_R",r),F.test_id&&t.set("test",F.test_id),F.ex&&t.set("_ex",1),t.get("_bt")||t.set("_bt","rapid"),F.query_parameters){var i=/^(test|outcm|etrg|usergenf|etag|sec|slk|tar|tar_uri|yhldebug|tsrc|action)$|^(A_|_)/,o=document.location.search;if(o){o=o.substring(1),o=o.split("&");for(var a in o)if(o.hasOwnProperty(a)){var s=o[a].split("=");if(s.length>=2){var l=decodeURIComponent(s[0]),c=decodeURIComponent(s[1]),u=!i.test(l);f("Queryparams decoded: "+l+" : "+c),f("Blacklist filter: "+u),u&&t.set(l,c)}}}}var d=window.location.protocol||"";d=d.replace(/:$/,""),t.set("A_pr",d);var p=(new Date).getTimezoneOffset();return p=p?-1*p/60:0,t.set("A_tzoff",p),t},L=function(){var e=null,t=[],n=0,r=F.addmod_timeout;return function(i,o,a,s){clearTimeout(e);var l=+new Date-n;if(t=U.uniqConcat(t,i,E),l>r)n=+new Date,A(t,o,a,s),t=[];else{var c=r-l;e=setTimeout(function(){F.ldbg&&f("queueing send in addMods"),A(t,o,a,s),t=[]},c)}}}();return{sendGeoT:function(t){var n=["http:"===window.location.protocol?"http://":"https://",x,"/t?",t].join("");e(n)},sendGeoPV:function(){e(T("b"))},sendRapidNoDelay:function(t,r,i,o,a){if(r&&$&&$.start_dwell()&&(i.etag="dwell,start",i.usergenf=1,i.A_prets=re?re.ts:null,i.A_prems=re?re.ms:null),!F.yql_enabled||a){var s=null;i&&(s=new n(i)),e(T(r?"b":"p",s))}else A(t,r,i,o)},sendRapid:function(e,t,n,r){t&&$&&$.start_dwell()&&(n.etag="dwell,start",n.usergenf=1,n.A_prets=re?re.ts:null,n.A_prems=re?re.ms:null),L(e,t,n,r)},sendRefreshedContent:k,sendULTEvent:function(t,r){var i={};t&&t.data&&(i=t.data);var o=T("p",new n(i),r||0);t.type&&(o+="&_V="+t.type.spaceidPrefix),e(o)},sendEvents:function(e,t){F.USE_RAPID&&this.sendULTEvent(e)},sendClick:function(t,n){var r=null,i="",o=!1;return F.USE_RAPID&&(i=S(t)),F.async_all_clicks||!t.synch?void(i&&e(i,n)):(U.prevDef(t.event),r=function(){if(!o){if(o=!0,n)return void n.call();var e=t.targetElement.href;if(F.click_postmsg.origin){var r=F.click_postmsg.window||top,i=F.click_postmsg.payload||{};i.href=e,r.postMessage(U.toJSON(i),F.click_postmsg.origin)}else t.hasTargetTop?top.document.location=e:document.location=e}},void(F.USE_RAPID&&e(i,r)))}}}function _(e,t,n,r,o,a,s){var l="",c=null,u=s?U.isAboveFold(r):!0,d={viewable:u,data:{sec:t,_p:n}};return s&&U.aug(d.data,{A_lv:1}),a?(d.data.slk=o||"section",c=i(r)):(r.setAttribute(F.anc_pos_attr,n),s&&r.setAttribute(F.anc_v9y_attr,u?"1":"0"),l=U.getLT(r,e),l&&""!==l?c=i(r):l="_ELINK_",d.data.slk=o?o:l),null!==c&&U.aug(d.data,c.getAll()),d}function y(){var e={};return{addModule:function(t,n){e[U.norm(t)]=n},addModules:function(e,t){var n=U.isArr(e),r=[];n||U.isStr(e)&&(e=new Array(e),n=!0);for(var i in e)if(U.hasOwn(e,i)){var o=n?e[i]:i,a=U.trim(e[i]);if(this.exists(o))d('addModules() called with prev processed id:"'+o+'"');else{var s=x(a,o,t);s&&(this.addModule(o,s),r.push(s))}}return r},getModules:function(){return e},getModulesWithViewability:function(){var t={};for(var n in e){var r=e[n];r.useViewability&&(t[n]=r)}return t},reevaluateModuleViewability:function(){var e=this.getModulesWithViewability();for(var t in e){var n=e[t];n.reevaluateViewableLinks()}},refreshModule:function(t,n,r,i){var o=e[U.norm(t)];o?o.refreshModule(t,n,r,i):d("refreshModule called on unknown section: "+o)},removeModule:function(t){var n=e[U.norm(t)];n&&(n.removeHandlers(),delete e[t])},destroy:function(){for(var t in e)U.hasOwn(e,t)&&this.removeModule(t);e={}},exists:function(t){return e[U.norm(t)]}}}function w(e,t){return U.hasClass(e,"rapid_track_href")?"href":U.hasClass(e,"rapid_track_text")?"text":U.hasClass(e,"rapid_track_title")?"title":U.hasClass(e,"rapid_track_id")?"id":t}function b(e){return"input"===e.nodeName.toLowerCase()&&"submit"===U.getAttribute(e,"type")}function k(e,t){var n=C(e,t);J=n,n&&(e.ctrlKey||e.metaKey||"contextmenu"===e.type||$&&$.stop_dwell()&&(n.pp={etag:"dwell,stop",usergenf:1,A_prets:ne?ne.ts:null,A_prems:ne?ne.ms:null}),K.sendClick(n))}function A(e,t,n){var r=U.getAttribute;return t.target&&"_blank"===t.target.toLowerCase()||2===e.which||4===e.button||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey||"on"===r(t,"data-nofollow")||r(t,"href")&&"javascript:"===r(t,"href").substr(0,11).toLowerCase()||U.hasClass(t,F.nofollow_classname)||U.hasClass(n,F.nofollow_classname)}function E(e,t,n,r){n=n||{};var i=null;return e?(i=YAHOO.i13n.EventTypes.getEventByName(e),n._E=i.getEventName(),t=n._E):n._E=t||"_",r&&(n.outcm=r),{type:i,name:t,data:n,outcome:r}}function C(e,t){e=e||event;for(var n=U.getTarget(e),r="button",o="input",a="",s=!1,l=null;n&&(a=n.nodeName.toLowerCase())&&"a"!==a&&a!==r&&!b(n)&&!U.hasClass(n,F.nonanchor_track_class);)n=n.parentNode;if(!n||U.hasClass(n,F.no_click_listen))return 0;if(U.hasClass(n,F.nonanchor_track_class)){l={pos:0,sec:t.moduleName,slk:"_"};var c=i(n,1);c&&U.aug(l,c.getAll())}else{var u=U.getAttribute(n,F.anc_pos_attr);if(l=t.getLinkAtPos(u),!l)return 0;l=l.data,a===o||a===r||A(e,n,t.moduleElement)||(s=!0)}if(!l.tar){var d=U.getAttribute(n,"href");d&&(l.tar=U.extDomain(d)),d&&l.tar||(l.tar=U.extDomain(F.loc))}l.tar_uri||(n.pathname?l.tar_uri=n.pathname:l.tar_uri="");var f=t.moduleYLK;if(f){var p=f.getAll();U.aug(l,p,function(e){return!(e in l)})}return l.A_xy=U.xy(e),"contextmenu"==e.type&&(l.A_cl=3,s=!1),{data:l,event:e,moduleElement:t.moduleElement,targetElement:n,synch:s,hasTargetTop:n&&n.target&&"_top"===n.target.toLowerCase()}}function T(e,t,n,r,i){var o={};return U.aug(o,r),o.sec=e,o.slk=t,o._p=n,{data:o,outcome:i,event:null,moduleElement:null,targetElement:null,synch:!1,hasTargetTop:!1}}function O(e,t,n){t||(t=document);for(var r=e.split(","),i=[],o=0,a=r.length;a>o;o++)for(var s=t.getElementsByTagName(r[o]),l=0,c=s.length;c>l;l++){var u=s[l];n&&!n.call(0,u)||i.push(u)}var d=i[0];return d?(d.sourceIndex?i.sort(function(e,t){return e.sourceIndex-t.sourceIndex}):d.compareDocumentPosition&&i.sort(function(e,t){return 3-(6&e.compareDocumentPosition(t))}),i):[]}function S(e,t,n,r){t||(t=document);var i=e.split(",");n=n||[];var o=t.childNodes;if("true"!==U.getAttribute(t,F.skip_attr))for(var a=0,s=o.length;s>a;a++){var l=o[a];U.isTagOfInterest(l,i)&&(r&&!r.call(0,l)||n.push(l)),"true"!==U.getAttribute(l,F.skip_attr)?S(e,l,n,r):"true"===U.getAttribute(l,F.skip_attr)&&n.push(l)}var c=n[0];return c?(c.sourceIndex?n.sort(function(e,t){return e.sourceIndex-t.sourceIndex}):c.compareDocumentPosition&&n.sort(function(e,t){return 3-(6&e.compareDocumentPosition(t))}),n):[]}function x(e,t,n){function r(t,r){var o=[];r=r||1;for(var a=0,l=t.length;l>a;a++)if("div"===t[a].tagName.toLowerCase()){var u=t[a],f=i(u),p=_(m,c.map.sec||e,1,u,f.map.slk||c.map.slk,!0,n);d[0]=p,o.push(p)}else{var v=t[a],p=_(m,c.map.sec||e,r,v,c.map.slk,0,n);d[r-1]=p,o.push(p),r++}if("true"===U.getAttribute(s,F.skip_attr)){var p=_(m,c.map.sec||e,1,u,c.map.slk,!0,n);d[0]=p,o.push(p)}return o}function o(t){for(var n=[],r=0,i=t.length;i>r;r++){var o=t[r],a=U.getAttribute(o,F.anc_pos_attr),s=_(m,c.map.sec||e,a,o,c.map.slk,0,!0);n.push(s)}return n}function a(e){return!U.getAttribute(e,F.anc_pos_attr)}var s=document.getElementById(t),l="a,button,input";if(!s)return u("Specified module not in DOM: "+t),null;var c=i(s),d=[],p=F.parse_dom?S(l,s):O(l,s),m=w(s,F.lt_attr),v=p.length,g=U.getAttribute(s,F.track_type);r(p);var h={useViewability:n,moduleYLK:c,links:d,moduleName:e,trackType:g,moduleElement:s,refreshModule:function(e,t,i,o){o.isRefreshed=!0;var s=F.parse_dom?S(l,U.$(e),null,a):O(l,U.$(e),a);if(t===!0||s.length>0){var c=r(s,v+1);v+=s.length;var u=s.length;if(n){u=0;for(var d=0,p=c.length;p>d;d++)c[d].viewable&&u++}if((t===!0||u>0)&&(F.USE_RAPID||o.event)){var m={};U.aug(m,this),i?m.links=c:m.links=[],(t===!0||i)&&K.sendRefreshedContent(m,t,o)}}else U.ldbg&&f("refreshModule("+e+") - no new links.");t===!0&&F.apv&&X&&X.reInit()},reevaluateViewableLinks:function(){var t=d.length,n=O("a",this.moduleElement,function(t){return function(n){if(!U.getAttribute(n,F.anc_pos_attr)){t++,n.setAttribute(F.anc_pos_attr,t);var r=_(m,c.map.sec||e,t,n,c.map.slk,0,!1);d[t-1]=r}var i=U.getAttribute(n,F.anc_v9y_attr);return"1"!==i&&U.isAboveFold(n)?(n.setAttribute(F.anc_v9y_attr,"1"),!0):!1}}(t));if(0!==n.length&&F.USE_RAPID){var r=o(n),i={};U.aug(i,this),i.links=r,K.sendRefreshedContent(i,!1,{})}},removeHandlers:function(){U.rmEvent(s,"click",y),F.track_right_click&&U.rmEvent(s,"contextmenu",y)},getLinkAtPos:function(e){return e>d.length?null:d[e-1]},identifier:t},y=function(e){k(e,h)};return U.addEvent(s,"click",y),F.track_right_click&&U.addEvent(s,"contextmenu",y),h}function D(e,t,n){"object"==typeof e&&e||(e={}),F.ldbg&&f("beaconPageview called, pp="+U.fData(e)),t&&!F.persist_asid&&l(),(F.USE_RAPID||F.apv_always_send&&U.hasOwn(e,"A_apv"))&&K.sendRapidNoDelay([],!0,e,null,n),F.apv&&null!=X&&X.reInit()}function L(e,t,n,r){F.ldbg&&f('beaconEvent: event="'+e+'" data='+U.fData(t)+" outcome="+n);var i=E(0,e,t,n);K.sendEvents(i,r)}function M(){var e=null,t=(new Date).getTime(),n=t,r=U.getScrollY(),i=-1,o=function(){var e=U.getScrollY(),t=-1===i?e-r:e-i;Math.abs(t)>F.viewability_px&&(q.reevaluateModuleViewability(),i=e,n=(new Date).getTime())},a=function(){null!=e&&clearTimeout(e);var i=(new Date).getTime();i-t0?0:1;if(Math.abs(t)>F.apv_px){var o={A_apv:1,A_apx:e,A_asd:i};D(o,!1,!0),r=e,lastApvTime=(new Date).getTime(),F.apv_callback&&F.apv_callback.call(this,{pixel_pos:e,scroll_dir:i})}},o=function(){null!=e&&clearTimeout(e);var r=(new Date).getTime();r-to&&1>a)||s||l){var c=U.hasOwn(F.sample,"perf_navigationtime")?F.sample.perf_navigationtime:100,u=U.hasOwn(F.sample,"perf_resourcetime")?F.sample.perf_resourcetime:100,d=U.samplingSuccess(c),f=U.samplingSuccess(u);if(d||f)return(o>0||a>0)&&0===window.performance.timing.loadEventStart&&(te+=i,200>=te)?void setTimeout(function(){I(e,t)},i):void r()}}}function N(e,t,n,r,i,o){var a={},s=window.performance.timing;if(i&&e>0&&(H(s.responseStart,s.connectEnd,a,"A_pfb"),H(s.responseEnd,s.responseStart,a,"A_pbp"),H(s.responseEnd,s.requestStart,a,"A_psr"),H(s.loadEventStart,s.navigationStart,a,"A_pol"),H(s.domInteractive,s.navigationStart,a,"A_pdi")),i&&e>1&&(H(s.redirectEnd,s.redirectStart,a,"A_prd"),H(s.domainLookupEnd,s.domainLookupStart,a,"A_pdl"),H(s.connectEnd,s.secureConnectionStart,a,"A_psh"),H(s.connectEnd,s.connectStart,a,"A_psc"),H(s.loadEventStart,s.responseEnd,a,"A_pfe")),o&&t>0&&"undefined"!=typeof window.performance.getEntries){var l=[],c=window.performance.getEntries();c.sort(function(e,t){return e.duration>t.duration?-1:e.durationf;f++){var p={},m=u[f].name.replace(/\?.+$/,"");m=m.replace(/^.+\//,""),p.name=m,p.dur=Math.floor(u[f].duration),p.st=Math.floor(u[f].startTime),l.push(p)}a.A_res=U.sfy(l)}if(n&&(U.hasOwn(n,"initialPageLoad")&&(a.A_cmi=U.sfy(n.initialPageLoad)),U.hasOwn(n,"afterPageLoad")&&(a.A_cma=U.sfy(n.afterPageLoad))),r)for(var v=["utm"],f=0;f-1,o&&null!==t.match(/AppleWebKit/)),s=null!==t.match(/AppleWebKit/)&&null===t.match(/Chrome/),l=new RegExp(/\ufeff|\uffef|[\u0000-\u001f]|[\ue000-\uf8ff]/g),c=new RegExp(/[\u007f-\u00a0]|\s{2,}/g),u="http://",f="https://",m="class",v=" ",g=-1,h=["A_res","A_cmi","A_cma","A_utm"],_=-1,y="https:"===window.location.protocol;return r&&(document.documentMode?_=document.documentMode:(_=5,document.compatMode&&"CSS1Compat"==document.compatMode&&(_=7))),{$:function(e){return document.getElementById(e)},ca:"%01",cb:"%02",cc:"%03",cd:"%04",ce:"%05",cf:"%06",cg:"%07",ch:"%08",ylk_kv_delim:e.ylk_kv_delim||":",ylk_pair_delim:e.ylk_pair_delim||";",DATA_ACTION:"data-action",data_action_outcome:"data-action-outcome",isIE:r,isIOSSafari:a,isSafari:s,isWebkit:i,ieV:_,value_len_whitelist:h,hasOwn:function(e,t){return n.hasOwnProperty.call(e,t)},enc:encodeURIComponent,dec:decodeURIComponent,getQueryStringValue:function(e,t){return decodeURIComponent(e.replace(new RegExp("^(?:.*[&\\?]"+encodeURIComponent(t).replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"))},curProto:function(){return y?f:u},isSecure:function(){return y},isScrollHorizontalVisible:function(){return document.documentElement.scrollWidth>document.documentElement.clientWidth},getCompStyle:function(e,t){return void 0!==window.getComputedStyle?window.getComputedStyle(e,t):(this.el=e,this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;return"float"==t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:0},this)},getBorder:function(e,t){if(!e||!t)return 0;var n=parseInt(this.getCompStyle(e,null).getPropertyValue(t),10);return isNaN(n)&&(n=0),n},getElementHeight:function(e){if(!e)return 0;var t=e.offsetHeight||0;return t?t-this.getBorder(e,"border-top-width")-this.getBorder(e,"border-bottom-width"):0},getPositionTop:function(e){for(var t=0;e;)t+=e.offsetTop,e=e.offsetParent;return t},getScrollbarWidthHeight:function(){var e=this.make("div");e.style.overflow="scroll",e.style.visibility="hidden",e.style.position="absolute",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);var t={width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight};return this.rmBodyEl(e),t},isAboveFold:function(e){if(r&&7>=_)return!0;var t=U.getCompStyle(e);if("hidden"==t.visibility||"none"==t.display)return!1;var n=e.getBoundingClientRect(),i=this.getElementHeight(e),o=.5*i;if(n.top+o<0)return!1;var a=window.innerHeight||document.documentElement.clientHeight;if(this.isScrollHorizontalVisible()){var s=this.getScrollbarWidthHeight();a-=s.height}return n.bottom-o<=a?!0:void 0},strip:function(e){for(var t={"/":"P",";":"1","?":"P","&":"1","#":"P"},n={url:e,clean:"",cookie:"",keys:[]},r=0;-1!==e.indexOf("_yl",r);){var i=e.indexOf("_yl",r);if(i>r&&(n.clean+=e.slice(r,i-1)),r=i+3,t[e.charAt(i-1)]&&"="===e.charAt(i+4)){n.ult=1;var o="_yl"+e.charAt(i+3),a="";for(i+=5;ir;r++){try{e=t[r]()}catch(i){continue}break}return e}var t=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];return e()},hasLS:function(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}},hasCORS:function(){return r&&10>_?!1:"withCredentials"in new XMLHttpRequest?!0:"undefined"!=typeof XDomainRequest},hasWorkers:function(){return!!window.Worker},clearCookie:function(e,t,n){t=t?t:"/",n=n?n:"",document.cookie=e+"= ; path="+t+"; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Domain="+n+";"},uniqConcat:function(e,t,n){function r(e){for(var t=0,r=e.length;r>t;t++){var a=e[t];if(a){var s=n(a);o[s]||(o[s]=1,i.push(a))}}}var i=[],o={};return r(e),r(t),i},trim:function(e){return e?e.replace(/^\s\s*/,"").replace(/\s\s*$/,""):e},extDomain:function(e){var t=e.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return t&&t[1]},getAttribute:function(e,t){var n="";return document.documentElement.hasAttribute||t!==m||(t="className"),e&&e.getAttribute&&(n=e.getAttribute(t,2)),n},isDate:function(e){return"[object Date]"===n.toString.call(e)},isArr:function(e){return"[object Array]"===n.toString.apply(e)},isStr:function(e){return"string"==typeof e},isNum:function(e){return"number"==typeof e&&isFinite(e)},isNumeric:function(e){return e-0==e&&(e+"").replace(/^\s+|\s+$/g,"").length>0},isObj:function(e){return e&&"object"==typeof e},rTN:function(e){try{if(e&&3===e.nodeType)return e.parentNode}catch(t){d(t)}return e},getTarget:function(e){var t=e.target||e.srcElement;return t&&!t.nodeName&&(t=t.correspondingUseElement&&t.correspondingUseElement.parentNode?t.correspondingUseElement.parentNode:null),this.rTN(t)},addEvent:function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},rmEvent:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)},aug:function(e,t,n){if(t)for(var r in t)if(this.hasOwn(t,r)){if(n&&!n.call(null,r,t[r]))continue;e[r]=t[r]}},rmProto:function(e){return e?e.substr(0,7)===u?e.substr(7,e.length):e.substr(0,8)===f?e.substr(8,e.length):e:""},norm:function(e){return null===e?"":(e=""+e,this.trim(e.replace(c," ").replace(l,"")))},_hasClass:function(e,t){var n,r=!1;return e&&t&&(n=this.getAttribute(e,m)||"",r=t.exec?t.test(n):t&&(v+n+v).indexOf(v+t+v)>-1),r},hasClass:function(e,t){if(this.isArr(t)){for(var n=0,r=t.length;r>n;n++)if(this._hasClass(e,t[n]))return!0;

โญ 4 | ๐Ÿด 0
GitHub

Frankenmint/optoutloop

flood an optout loop of a fake spam opt out page

โญ 1 | ๐Ÿด 2