diff options
author | Yorhel <git@yorhel.nl> | 2020-05-28 16:39:38 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-05-28 16:39:40 +0200 |
commit | e36bfde55478f4ae5d83ee73845a348a92386bca (patch) | |
tree | 932eea74bd2b29dbac5065c810691c731ef30e63 /data/js | |
parent | 002f165ed4823b7563e7443526d907d27b5b431b (diff) |
Drop ReleaseExtLinks.elm in favor of pure CSS solution
It's the only Elm module used on VN pages for not-logged-in visitors, so
doing this in CSS makes it possible to not load an Elm bundle on those
pages (when I get to splitting up the JS files).
This solution also simplifies code reuse with the producer pages, but a
v2rw migration of that page would have taken care of that as well.
Diffstat (limited to 'data/js')
-rw-r--r-- | data/js/misc.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/data/js/misc.js b/data/js/misc.js index 35d04849..9c151eae 100644 --- a/data/js/misc.js +++ b/data/js/misc.js @@ -37,25 +37,6 @@ })(); -// external links dropdown for releases (/p+) -(function(){ - var l = byClass('rllinks'); - for(var i=0; i<l.length; i++) { - var o = byName(l[i].parentNode, 'ul')[0]; - if(o) { - l[i].links_ul = l[i].parentNode.removeChild(o); - setClass(l[i].links_ul, 'hidden', false); - ddInit(l[i], 'left', function(acr) { - return acr.links_ul; - }); - if(l[i].href.match(/#$/)) { - l[i].onclick = function() { return false; }; - } - } - } -})(); - - // spam protection on all forms setTimeout(function() { for(var i=1; i<document.forms.length; i++) |