move ext-specific js into that ext

This commit is contained in:
Shish
2018-11-05 22:59:53 +00:00
parent b2f10ea5ab
commit 9d3f4ea4b3
7 changed files with 65 additions and 82 deletions

12
ext/view/script.js Normal file
View File

@ -0,0 +1,12 @@
$(document).ready(function() {
if(document.location.hash.length > 3) {
var query = document.location.hash.substring(1);
$('#prevlink').attr('href', function(i, attr) {
return attr + '?' + query;
});
$('#nextlink').attr('href', function(i, attr) {
return attr + '?' + query;
});
}
});