diff --git a/ArchiveState.go b/ArchiveState.go
index 20496b8..aaa10a6 100644
--- a/ArchiveState.go
+++ b/ArchiveState.go
@@ -7,6 +7,7 @@ import (
"io/ioutil"
"math"
"net/http"
+ "net/url"
"os"
"regexp"
"strings"
@@ -199,28 +200,34 @@ func (this *ArchiveState) renderTemplateHead(w http.ResponseWriter) {
-
+
`))
if showPageURLs {
w.Write([]byte(`
-
-
+
+
-
-
-
-
-
- «
- ‹
- ` + fmt.Sprintf("%d", this.page) + `
- ›
- »
+ «
+ ‹
+ ` + fmt.Sprintf("%d", this.page) + `
+ ›
+ »
`))
}
w.Write([]byte(`
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
+
`))
// Header ends
diff --git a/static/archive.js b/static/archive.js
index a2d0864..f43e63f 100755
--- a/static/archive.js
+++ b/static/archive.js
@@ -3,14 +3,8 @@
var alreadyLoaded = false;
var $chatArea = document.getElementById("chatarea");
-var $selHub = document.getElementById("selHub");
-var $frmHub = document.getElementById("frmHub");
var DEFAULT_FONT_SIZE = 12;
-function urldesc(s) {
- return decodeURIComponent(s.replace(/\+/g, " "));
-}
-
function cookie_set(key, value) {
document.cookie = (key+"="+value+"; expires=Sat, 20 Sep 2059 09:05:12; path=/");
}
@@ -29,7 +23,11 @@ function cookie_get(key) {
return null;
}
-function highlight(str) {
+function highlight(str) {
+ var urldesc = function(s) {
+ return decodeURIComponent(s.replace(/\+/g, " "));
+ };
+
return str
.replace(/(\[\d\d\d\d-\d\d-\d\d\s\d\d\:\d\d\:\d\d\] )(\*.+)/g, "$1$2")
.replace(
@@ -104,22 +102,6 @@ function onLoad() {
fontSize(0);
- //
-
- $selHub.onchange = function() {
- if ( /\/search\//.test(window.location.pathname) ) {
- window.location.pathname = $selHub.value + "/search/" + encodeURIComponent( i('searchbox').value );
-
- } else if ( /\/rx\//.test(window.location.pathname) ) {
- window.location.pathname = $selHub.value + "/rx/" + encodeURIComponent( i('searchbox').value )
-
- } else {
- $frmHub.submit();
- }
- };
-
- //
-
}
window.addEventListener('load', onLoad);