diff options
Diffstat (limited to 'web/js/front.js')
-rw-r--r-- | web/js/front.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/js/front.js b/web/js/front.js index d2c814490..8471972d4 100644 --- a/web/js/front.js +++ b/web/js/front.js @@ -10,4 +10,9 @@ document.getElementById('pc').focus(); el.value = 1; form.insertBefore(el, form.firstChild); } + var around_links = document.querySelectorAll('a[href*="around"]'); + for (i=0; i<around_links.length; i++) { + var link = around_links[i]; + link.href = link.href + (link.href.indexOf('?') > -1 ? '&js=1' : '?js=1'); + } })(); |