added script abillity for UI

This commit is contained in:
2023-02-05 01:24:07 +01:00
parent 2e25143e0f
commit cd79310f3c
3 changed files with 138 additions and 14 deletions

View File

@ -13,22 +13,18 @@
<div class="content">
<h1 class="centered">Latest Version: V<span id="latest">0.0.0</span></h1>
<div class="row">
<div class="col-6">
<div class="col-5">
<h4 class="centered">Installed: V<span id="installed">0.0.0</span></h4>
<button class="download" id="download">Update to V<span id="latest">0.0.0</span></button>
</div>
<div class="col-6">
<h4 class="centered">Downloading...</h4>
<div id="myBar"><span id="progress-label">100%</span></div>
<div class="col-7" id="download-section">
<h4 class="centered" id="progress-step">Downloading...</h4>
<div id="progress-bar"><span id="progress-label">100%</span></div>
</div>
</div>
</div>
</div>
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
<script>
var str = window.getComputedStyle(document.getElementById("progress"), ':after').getPropertyValue('width');
console.log(str)
</script>
<script src="./render.js"></script>
</body>
</html>