1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2025-01-03 23:10:11 +00:00

Compare commits

..

No commits in common. "173c38563eeb7730bb685e8924fd1c25aadfe952" and "fed3ee4c4ff3dee4a814fbffb1b0ba31d5e7e8c1" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,6 @@ import (
"io"
"io/ioutil"
"log"
"mime"
"net"
"net/http"
"os"
@ -570,8 +569,6 @@ 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,6 +400,7 @@ 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")) {