forked from Cavemanon/cavepaintings
move ext-specific js into that ext
This commit is contained in:
12
ext/view/script.js
Normal file
12
ext/view/script.js
Normal 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;
|
||||
});
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user