mirror of
https://github.com/hrfee/jfa-go.git
synced 2025-01-01 05:50:12 +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"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
|
"mime"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
@ -569,6 +570,8 @@ func start(asDaemon, firstCall bool) {
|
|||||||
}
|
}
|
||||||
cssHeader = app.loadCSSHeader()
|
cssHeader = app.loadCSSHeader()
|
||||||
|
|
||||||
|
mime.AddExtensionType(".js", "application/javascript")
|
||||||
|
|
||||||
app.info.Println("Loading routes")
|
app.info.Println("Loading routes")
|
||||||
if debugMode {
|
if debugMode {
|
||||||
gin.SetMode(gin.DebugMode)
|
gin.SetMode(gin.DebugMode)
|
||||||
|
@ -400,7 +400,6 @@ window.onpopstate = (event: PopStateEvent) => {
|
|||||||
const card = cards[i];
|
const card = cards[i];
|
||||||
const back = card.getElementsByClassName("back")[0] as HTMLSpanElement;
|
const back = card.getElementsByClassName("back")[0] as HTMLSpanElement;
|
||||||
const next = card.getElementsByClassName("next")[0] as HTMLSpanElement;
|
const next = card.getElementsByClassName("next")[0] as HTMLSpanElement;
|
||||||
console.log(cards[i]);
|
|
||||||
const titleEl = cards[i].querySelector("span.heading") as HTMLElement;
|
const titleEl = cards[i].querySelector("span.heading") as HTMLElement;
|
||||||
let title = titleEl.textContent.replace("/", "_").replace(" ", "-");
|
let title = titleEl.textContent.replace("/", "_").replace(" ", "-");
|
||||||
if (titleEl.classList.contains("welcome")) {
|
if (titleEl.classList.contains("welcome")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user