UX improvements: Add page title, and display loading text
This commit is contained in:
parent
f3cb472a83
commit
3e96719cf4
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title></title>
|
<title>Virtual Metro</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#mainsvg {
|
#mainsvg {
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
@ -25,7 +25,7 @@
|
|||||||
var svg = document.getElementById("mainsvg").getSVGDocument().querySelector("svg");
|
var svg = document.getElementById("mainsvg").getSVGDocument().querySelector("svg");
|
||||||
var template = svg.innerHTML;
|
var template = svg.innerHTML;
|
||||||
|
|
||||||
svg.innerHTML = nunjucks.renderString(template, {});
|
svg.innerHTML = nunjucks.renderString(template, {"dest": "Loading..."});
|
||||||
|
|
||||||
function tick() {
|
function tick() {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
Reference in New Issue
Block a user