archive
This commit is contained in:
13
gollum/custom.js
Executable file
13
gollum/custom.js
Executable file
@@ -0,0 +1,13 @@
|
||||
function load_segment() {
|
||||
var elem = document.getElementById("last_segment")
|
||||
if (elem) {
|
||||
var arr = window.location.href.split('/')
|
||||
elem.innerHTML = arr[arr.length-1]
|
||||
elem.setAttribute("href", window.location.href.split('#')[0])
|
||||
} else {
|
||||
setTimeout(function() {
|
||||
load_segment()
|
||||
}, 50)
|
||||
}
|
||||
}
|
||||
load_segment()
|
||||
Reference in New Issue
Block a user