add share button
This commit is contained in:
parent
941dfaf03d
commit
c8b149f0c4
2 changed files with 4 additions and 5 deletions
|
@ -29,7 +29,8 @@ async function on_load() {
|
|||
const urlVars = new URLSearchParams(window.location.search);
|
||||
|
||||
if (urlVars.get("game") && urlVars.get("name")) {
|
||||
handle("/games/"+urlVars.get("game"),urlVars.get("name"))
|
||||
console.log(urlVars.get("game")+' '+urlVars.get("name"))
|
||||
handle(urlVars.get("game"),urlVars.get("name"))
|
||||
} else if (options[0]) {
|
||||
const options_div = <HTMLDivElement> options[0];
|
||||
if (options_div.children[0]) {
|
||||
|
@ -40,8 +41,6 @@ async function on_load() {
|
|||
}
|
||||
window.addEventListener("load", on_load, false);
|
||||
|
||||
window.addEventListener("load", on_load);
|
||||
|
||||
export function handle(location, name: string) {
|
||||
game_file = location;
|
||||
game_name = name;
|
||||
|
|
|
@ -29,8 +29,8 @@ const COUNTER = new FPSCounter();
|
|||
const LOADER = document.getElementById("main");
|
||||
|
||||
const SLIDER = <HTMLInputElement>document.getElementById("turnSlider");
|
||||
const FILESELECTOR = <HTMLInputElement>document.getElementById("fileselect");
|
||||
const SPEED = <HTMLInputElement>document.getElementById("speed");
|
||||
const FILESELECTOR = <HTMLInputElement> document.getElementById("fileselect");
|
||||
const SPEED = <HTMLInputElement> document.getElementById("speed");
|
||||
|
||||
export function set_loading(loading: boolean) {
|
||||
if (loading) {
|
||||
|
|
Loading…
Reference in a new issue