blob: db022859730bc41f87aaeae8805ba64d1211a4e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
document.getElementById('pc').focus();
(function(){
var around_forms = document.querySelectorAll('form[action*="around"]');
for (var i=0; i<around_forms.length; i++) {
var form = around_forms[i];
var el = document.createElement('input');
el.type = 'hidden';
el.name = 'js';
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');
}
var lk = document.querySelector('span.report-a-problem-btn');
if (lk && lk.addEventListener) {
lk.addEventListener('click', function(){
scrollTo(0,0);
});
}
})();
|