OLD | NEW |
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 margin: 0px; | 212 margin: 0px; |
213 } | 213 } |
214 | 214 |
215 #join-org img | 215 #join-org img |
216 { | 216 { |
217 width: 19px; | 217 width: 19px; |
218 height: 19px; | 218 height: 19px; |
219 margin-top: 6px; | 219 margin-top: 6px; |
220 } | 220 } |
221 | 221 |
222 #join-org strong | 222 #join-org strong, |
| 223 #supporters-more-link |
223 { | 224 { |
224 font-weight: normal; | 225 font-weight: normal; |
225 font-size: 15px; | 226 font-size: 15px; |
226 color: #78b364; | 227 color: #78b364; |
227 text-decoration: underline; | 228 text-decoration: underline; |
228 } | 229 } |
229 | 230 |
| 231 #supporters-more |
| 232 { |
| 233 margin-bottom: 20px; |
| 234 } |
| 235 |
230 #social button | 236 #social button |
231 { | 237 { |
232 width: 100%; | 238 width: 100%; |
233 margin: 0px; | 239 margin: 0px; |
234 margin-bottom: 10px; | 240 margin-bottom: 10px; |
235 } | 241 } |
236 | 242 |
237 #facebook button | 243 #facebook button |
238 { | 244 { |
239 background-color: #45658a; | 245 background-color: #45658a; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 if ("textContent" in signeesCount) | 486 if ("textContent" in signeesCount) |
481 signeesCount.textContent = count; | 487 signeesCount.textContent = count; |
482 else | 488 else |
483 signeesCount.innerText = count; | 489 signeesCount.innerText = count; |
484 } | 490 } |
485 | 491 |
486 function addListener(obj, type, listener, useCapture) | 492 function addListener(obj, type, listener, useCapture) |
487 { | 493 { |
488 if ("addEventListener" in obj) | 494 if ("addEventListener" in obj) |
489 { | 495 { |
490 obj.addEventListener(type, listener, useCapture); | 496 obj.addEventListener(type, function(ev) |
| 497 { |
| 498 if (listener(ev) === false) |
| 499 ev.preventDefault(); |
| 500 }, useCapture); |
491 } | 501 } |
492 else | 502 else |
493 { | 503 { |
494 if (type == "DOMContentLoaded") | 504 if (type == "DOMContentLoaded") |
495 type = "load"; | 505 type = "load"; |
496 | 506 |
497 obj.attachEvent("on" + type, function() | 507 obj.attachEvent("on" + type, function() |
498 { | 508 { |
499 listener(event); | 509 if (listener(event) === false) |
| 510 event.returnValue = false; |
500 }); | 511 }); |
501 } | 512 } |
502 } | 513 } |
503 | 514 |
504 addListener(window, "DOMContentLoaded", function(ev) | 515 addListener(window, "DOMContentLoaded", function(ev) |
505 { | 516 { |
506 fetchNumberOfSignees(); | 517 fetchNumberOfSignees(); |
| 518 |
| 519 var moreSupporters = document.getElementById("supporters-more-link"); |
| 520 addListener(moreSupporters, "click", function(ev) |
| 521 { |
| 522 var overflow = document.getElementById("supporters-overflow"); |
| 523 overflow.removeAttribute("hidden"); |
| 524 moreSupporters.parentNode.removeChild(moreSupporters); |
| 525 |
| 526 return false; |
| 527 }, false); |
507 | 528 |
508 var readmore = document.getElementById("readmore"); | 529 var readmore = document.getElementById("readmore"); |
509 addListener(readmore, "click", function(ev) | 530 addListener(readmore, "click", function(ev) |
510 { | 531 { |
511 var fulltext = document.getElementById("fulltext"); | 532 var fulltext = document.getElementById("fulltext"); |
512 if (fulltext.hasAttribute("hidden")) | 533 if (fulltext.hasAttribute("hidden")) |
513 fulltext.removeAttribute("hidden"); | 534 fulltext.removeAttribute("hidden"); |
514 else | 535 else |
515 fulltext.hidden = "hidden"; | 536 fulltext.hidden = "hidden"; |
516 | 537 |
517 ev.preventDefault(); | 538 if ("stopPropagation" in ev) |
518 ev.stopPropagation(); | 539 ev.stopPropagation(); |
| 540 |
| 541 return false; |
519 }, false); | 542 }, false); |
520 | 543 |
521 var shareTitle = document.getElementById("share-text-title")[textAttr]; | 544 var shareTitle = document.getElementById("share-text-title")[textAttr]; |
522 var shareDescription = document.getElementById("share-text-description")[textA
ttr]; | 545 var shareDescription = document.getElementById("share-text-description")[textA
ttr]; |
523 var facebookButton = document.getElementById("facebook"); | 546 var facebookButton = document.getElementById("facebook"); |
524 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=" |
525 + encodeURIComponent(shareTitle) | 548 + encodeURIComponent(shareTitle) |
526 + "&p%5Bsummary%5D=" | 549 + "&p%5Bsummary%5D=" |
527 + encodeURIComponent(shareDescription) | 550 + encodeURIComponent(shareDescription) |
528 + "&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 Loading... |
555 } | 578 } |
556 } | 579 } |
557 else if (scrollTop < placeholder.offsetTop + placeholder.offsetHeight - 100) | 580 else if (scrollTop < placeholder.offsetTop + placeholder.offsetHeight - 100) |
558 { | 581 { |
559 classes.splice(classes.indexOf("collapsed"), 1); | 582 classes.splice(classes.indexOf("collapsed"), 1); |
560 placeholder.style.height = "0px"; | 583 placeholder.style.height = "0px"; |
561 social.className = classes.join(" "); | 584 social.className = classes.join(" "); |
562 } | 585 } |
563 } | 586 } |
564 | 587 |
565 addListener(window, "scroll", checkCollapse); | 588 addListener(window, "scroll", checkCollapse, false); |
566 addListener(window, "resize", checkCollapse); | 589 addListener(window, "resize", checkCollapse, false); |
567 --></script> | 590 --></script> |
OLD | NEW |