Started working on scripts

This commit is contained in:
2017-06-19 16:20:46 +02:00
parent d6acc8a9b2
commit f7732295a2
8 changed files with 170 additions and 12 deletions

View File

@ -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)
}