Started working on scripts
This commit is contained in:
@ -1,4 +1,22 @@
|
||||
import {Greeter} from "scripts/hello"
|
||||
import { aero as app } from "./Aero/Aero"
|
||||
|
||||
var greeter = new Greeter()
|
||||
greeter.greet("World")
|
||||
class AnimeNotifier {
|
||||
constructor() {
|
||||
app.content = app.find("content")
|
||||
app.loading = app.find("loading")
|
||||
app.run()
|
||||
}
|
||||
}
|
||||
|
||||
document.onreadystatechange = function() {
|
||||
if(document.readyState === "interactive") {
|
||||
let arn = new AnimeNotifier()
|
||||
}
|
||||
}
|
||||
|
||||
window.onpopstate = e => {
|
||||
if(e.state)
|
||||
app.load(e.state, false)
|
||||
else if(app.currentURL !== app.originalURL)
|
||||
app.load(app.originalURL, false)
|
||||
}
|
Reference in New Issue
Block a user