1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-10-18 09:00:11 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
173c38563e
remove embed, oops 2021-02-08 15:43:20 +00:00
d061721f56
explicitly set js mimetype 2021-02-08 15:25:02 +00:00
218882b7c6
remove debug console.log 2021-02-08 11:50:58 +00:00
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"io"
"io/ioutil"
"log"
"mime"
"net"
"net/http"
"os"
@ -569,6 +570,8 @@ func start(asDaemon, firstCall bool) {
}
cssHeader = app.loadCSSHeader()
mime.AddExtensionType(".js", "application/javascript")
app.info.Println("Loading routes")
if debugMode {
gin.SetMode(gin.DebugMode)

View File

@ -400,7 +400,6 @@ window.onpopstate = (event: PopStateEvent) => {
const card = cards[i];
const back = card.getElementsByClassName("back")[0] as HTMLSpanElement;
const next = card.getElementsByClassName("next")[0] as HTMLSpanElement;
console.log(cards[i]);
const titleEl = cards[i].querySelector("span.heading") as HTMLElement;
let title = titleEl.textContent.replace("/", "_").replace(" ", "-");
if (titleEl.classList.contains("welcome")) {