Index: head.html |
=================================================================== |
--- a/head.html |
+++ b/head.html |
@@ -219,7 +219,8 @@ |
margin-top: 6px; |
} |
-#join-org strong |
+#join-org strong, |
+#supporters-more-link |
{ |
font-weight: normal; |
font-size: 15px; |
@@ -227,6 +228,11 @@ |
text-decoration: underline; |
} |
+#supporters-more |
+{ |
+ margin-bottom: 20px; |
+} |
+ |
#social button |
{ |
width: 100%; |
@@ -487,7 +493,11 @@ |
{ |
if ("addEventListener" in obj) |
{ |
- obj.addEventListener(type, listener, useCapture); |
+ obj.addEventListener(type, function(ev) |
+ { |
+ if (listener(ev) === false) |
+ ev.preventDefault(); |
+ }, useCapture); |
} |
else |
{ |
@@ -496,7 +506,8 @@ |
obj.attachEvent("on" + type, function() |
{ |
- listener(event); |
+ if (listener(event) === false) |
+ event.returnValue = false; |
}); |
} |
} |
@@ -504,6 +515,16 @@ |
addListener(window, "DOMContentLoaded", function(ev) |
{ |
fetchNumberOfSignees(); |
+ |
+ var moreSupporters = document.getElementById("supporters-more-link"); |
+ addListener(moreSupporters, "click", function(ev) |
+ { |
+ var overflow = document.getElementById("supporters-overflow"); |
+ overflow.removeAttribute("hidden"); |
+ moreSupporters.parentNode.removeChild(moreSupporters); |
+ |
+ return false; |
+ }, false); |
var readmore = document.getElementById("readmore"); |
addListener(readmore, "click", function(ev) |
@@ -514,8 +535,10 @@ |
else |
fulltext.hidden = "hidden"; |
- ev.preventDefault(); |
- ev.stopPropagation(); |
+ if ("stopPropagation" in ev) |
+ ev.stopPropagation(); |
+ |
+ return false; |
}, false); |
var shareTitle = document.getElementById("share-text-title")[textAttr]; |
@@ -562,6 +585,6 @@ |
} |
} |
-addListener(window, "scroll", checkCollapse); |
-addListener(window, "resize", checkCollapse); |
+addListener(window, "scroll", checkCollapse, false); |
+addListener(window, "resize", checkCollapse, false); |
--></script> |