Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: head.html

Issue 5119431676002304: Issue 1128 - Added ADC as supporter to Manifesto page (Closed)
Left Patch Set: Created Aug. 13, 2014, 11:08 a.m.
Right Patch Set: Created Aug. 19, 2014, 9:22 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « body.html ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 <link rel="canonical" href="http://acceptableads.org/"/> 1 <link rel="canonical" href="http://acceptableads.org/"/>
2 <meta property="og:type" content="website"/> 2 <meta property="og:type" content="website"/>
3 <meta property="og:image" content="http://acceptableads.org/images/manifesto/acc eptable-ads-manifesto-share.png?a=show"/> 3 <meta property="og:image" content="http://acceptableads.org/images/manifesto/acc eptable-ads-manifesto-share.png?a=show"/>
4 <meta property="og:url" content="http://acceptableads.org"/> 4 <meta property="og:url" content="http://acceptableads.org"/>
5 <meta name="google-site-verification" content="3deBAaPY4M2OuOe576R36TC28S5svlfRR sdaGS6WCXg"/> 5 <meta name="google-site-verification" content="3deBAaPY4M2OuOe576R36TC28S5svlfRR sdaGS6WCXg"/>
6 <meta charset="utf-8"/> 6 <meta charset="utf-8"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/> 7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <style type="text/css"> 8 <style type="text/css">
9 @font-face 9 @font-face
10 { 10 {
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 if ("textContent" in signeesCount) 486 if ("textContent" in signeesCount)
487 signeesCount.textContent = count; 487 signeesCount.textContent = count;
488 else 488 else
489 signeesCount.innerText = count; 489 signeesCount.innerText = count;
490 } 490 }
491 491
492 function addListener(obj, type, listener, useCapture) 492 function addListener(obj, type, listener, useCapture)
493 { 493 {
494 if ("addEventListener" in obj) 494 if ("addEventListener" in obj)
495 { 495 {
496 obj.addEventListener(type, listener, useCapture); 496 obj.addEventListener(type, function(ev)
497 {
498 if (listener(ev) === false)
499 ev.preventDefault();
500 }, useCapture);
497 } 501 }
498 else 502 else
499 { 503 {
500 if (type == "DOMContentLoaded") 504 if (type == "DOMContentLoaded")
501 type = "load"; 505 type = "load";
502 506
503 obj.attachEvent("on" + type, function() 507 obj.attachEvent("on" + type, function()
504 { 508 {
505 listener(event); 509 if (listener(event) === false)
510 event.returnValue = false;
506 }); 511 });
507 } 512 }
508 } 513 }
509 514
510 addListener(window, "DOMContentLoaded", function(ev) 515 addListener(window, "DOMContentLoaded", function(ev)
511 { 516 {
512 fetchNumberOfSignees(); 517 fetchNumberOfSignees();
513 518
514 var moreSupporters = document.getElementById("supporters-more-link"); 519 var moreSupporters = document.getElementById("supporters-more-link");
515 addListener(moreSupporters, "click", function(ev) 520 addListener(moreSupporters, "click", function(ev)
516 { 521 {
517 var overflow = document.getElementById("supporters-overflow"); 522 var overflow = document.getElementById("supporters-overflow");
518 overflow.removeAttribute("hidden"); 523 overflow.removeAttribute("hidden");
519 moreSupporters.parentNode.removeChild(moreSupporters); 524 moreSupporters.parentNode.removeChild(moreSupporters);
520 ev.preventDefault(); 525
Wladimir Palant 2014/08/13 20:44:47 Had to look up - this is only implemented starting
Thomas Greiner 2014/08/16 08:59:30 We already consider IE8 with the addListener() fun
526 return false;
521 }, false); 527 }, false);
522 528
523 var readmore = document.getElementById("readmore"); 529 var readmore = document.getElementById("readmore");
524 addListener(readmore, "click", function(ev) 530 addListener(readmore, "click", function(ev)
525 { 531 {
526 var fulltext = document.getElementById("fulltext"); 532 var fulltext = document.getElementById("fulltext");
527 if (fulltext.hasAttribute("hidden")) 533 if (fulltext.hasAttribute("hidden"))
528 fulltext.removeAttribute("hidden"); 534 fulltext.removeAttribute("hidden");
529 else 535 else
530 fulltext.hidden = "hidden"; 536 fulltext.hidden = "hidden";
531 537
532 ev.preventDefault(); 538 if ("stopPropagation" in ev)
533 ev.stopPropagation(); 539 ev.stopPropagation();
540
541 return false;
534 }, false); 542 }, false);
535 543
536 var shareTitle = document.getElementById("share-text-title")[textAttr]; 544 var shareTitle = document.getElementById("share-text-title")[textAttr];
537 var shareDescription = document.getElementById("share-text-description")[textA ttr]; 545 var shareDescription = document.getElementById("share-text-description")[textA ttr];
538 var facebookButton = document.getElementById("facebook"); 546 var facebookButton = document.getElementById("facebook");
539 facebookButton.href = "https://www.facebook.com/sharer/sharer.php?s=100&p%5Bti tle%5D=" 547 facebookButton.href = "https://www.facebook.com/sharer/sharer.php?s=100&p%5Bti tle%5D="
540 + encodeURIComponent(shareTitle) 548 + encodeURIComponent(shareTitle)
541 + "&p%5Bsummary%5D=" 549 + "&p%5Bsummary%5D="
542 + encodeURIComponent(shareDescription) 550 + encodeURIComponent(shareDescription)
543 + "&p%5Burl%5D=http%3A%2F%2Facceptableads.org%2F"; 551 + "&p%5Burl%5D=http%3A%2F%2Facceptableads.org%2F";
(...skipping 26 matching lines...) Expand all
570 } 578 }
571 } 579 }
572 else if (scrollTop < placeholder.offsetTop + placeholder.offsetHeight - 100) 580 else if (scrollTop < placeholder.offsetTop + placeholder.offsetHeight - 100)
573 { 581 {
574 classes.splice(classes.indexOf("collapsed"), 1); 582 classes.splice(classes.indexOf("collapsed"), 1);
575 placeholder.style.height = "0px"; 583 placeholder.style.height = "0px";
576 social.className = classes.join(" "); 584 social.className = classes.join(" ");
577 } 585 }
578 } 586 }
579 587
580 addListener(window, "scroll", checkCollapse); 588 addListener(window, "scroll", checkCollapse, false);
581 addListener(window, "resize", checkCollapse); 589 addListener(window, "resize", checkCollapse, false);
582 --></script> 590 --></script>
LEFTRIGHT
« body.html ('k') | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld