mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-29 12:30:11 +00:00
Compare commits
3 Commits
fed3ee4c4f
...
173c38563e
Author | SHA1 | Date | |
---|---|---|---|
173c38563e | |||
d061721f56 | |||
218882b7c6 |
3
main.go
3
main.go
@ -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)
|
||||
|
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user