Skip to content

Commit

Permalink
change text sel, better formatting frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianMairinger committed Jan 15, 2024
1 parent 0652a52 commit 1c24f63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/_component/site/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default class Site extends Component {
let changes = (await ajax.get("/res/changes.json")) as {change: string, time: string}[]
console.log(changes)
for (let i = 0; i < changes.length; i++) {
const change = changes[i]
let change = changes[i]
change.change = change.change.split("\n").join("<br>")


const historyEntryElem = ce("history-entry")
historyWrapper.prepend(historyEntryElem)

Expand Down
2 changes: 1 addition & 1 deletion server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async function checkWithPup() {
await delay(3000)

const str = await page.evaluate(() => {
const els = document.querySelectorAll("#app > div.ui.container > div.ui.styled.fluid.accordion h5.ui.top.attached.header")
const els = document.querySelectorAll("#app > div.ui.container > div.ui.styled.fluid.accordion h5.ui.top.attached.header, #app > div.ui.container .title")
if (els === null) return null
let str = ""
for (const e of Array.from(els)) {
Expand Down

0 comments on commit 1c24f63

Please sign in to comment.