12 ms·
Dont understand your issue. the only javascript served by this page should be <script type="text/javascript"> function byId(id) { return document.getEl
by marlin 12y ago
Dont understand your issue.
the only javascript served by this page should be
<script type="text/javascript">
function byId(id) {
return document.getElementById(id);
}
function vote(node) {
var v = node.id.split(/_/); // {'up', '123'}
var item = v[1];
// hide arrows
byId('up_' + item).style.visibility = 'hidden';
byId('down_' + item).style.visibility = 'hidden';
// ping server
var ping = new Image();
ping.src = node.href;
return false; // cancel browser nav
} </script>
for the <a> links, as such:
<a id=up_7666264 onclick="return vote(this)" href="vote?for=7666264&dir=up&xxxx">
and this makes it surely works correctly even without javascript.
- nikentic 12y agoDid you make that up? There's like 10 jquery plugins loaded in the bottom of the body, including jquery.nicescroll
- joshstrange 12y agoMarlin, I believe he is talking about the linked page not the HN page.
- marlin 12y agoAh, i didnt realize that by the wording of OP. also, thx someone for downvoting a helpful attempt. i see the cancer found HN also
- deleted 12y ago[deleted]