diff options
Diffstat (limited to 'views/load.html')
-rw-r--r-- | views/load.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/views/load.html b/views/load.html index d19b8b7..c6e45bf 100644 --- a/views/load.html +++ b/views/load.html @@ -33,8 +33,14 @@ </head> <body style="overflow:hidden;margin:0;padding:0;background-color:#4b4e50;"> <img src="splash.png" style="width:100%;"> + <div id="bar" style="position:fixed;top:300px;left:0;width:0;background:white;z-index:99999;height:4px;"></div> <span style="position: fixed;color: white;z-index: 99;top: 122px;font-size: 18px;display: inline-block;right: 309px;font-family: 'Milliard SB', sans-serif;"> <script> + var ipcRenderer = require('electron').ipcRenderer; + ipcRenderer.on('progress', function (event, progress) { + document.getElementById("bar").style.width = progress + "%"; + }); + switch (require('../package.json').channel) { case "git": document.write(`<span style="font-family: 'Milliard', sans-serif;">TRUNK </span>`); |