Works now (without edit)

This commit is contained in:
2023-06-07 14:51:30 -04:00
parent a9f3be99cb
commit 9a0576b2a4
6 changed files with 41 additions and 149 deletions

View File

@@ -18,6 +18,7 @@
inputs.forEach(i => i.addEventListener('input', inputListener));
});
document.documentElement.dataset.theme = localStorage.getItem('theme') || 'light';
let id;
</script>
</head>
<body>
@@ -50,7 +51,6 @@
<li><a class="active" href="#">Home</a></li>
<li><a href="install/">Install</a></li>
<li><a href="websocket/">WebSocket</a></li>
<li class="float-right"><a href="javascript:getCardToEdit()">Edit Card</a></li>
</ul>
</nav>
@@ -117,19 +117,8 @@
<footer>Made by the best intern!</footer>
<div class="hidden fade" id="fade"></div>
<div class="upload hidden" id="uploadDiv">
<a class="x h3" href="javascript:exitUpload()">
<div>x</div>
</a>
<div class="dotted" id="dottedDiv">
<label for="existingFile" id="uploadLabel">Click or drag here to edit existing card</label>
<img src="" alt="card" class="hidden" id="previewImg">
</div>
<button class="btn btn-primary disabled" id="editCardBtn">Edit Signature Card</button>
</div>
<input style="display: none" id="existingFile" type="file" accept="image/png" name="existingFile">
<script src="script.js"></script>
<script src="darkmode.js"></script>
<script src="websocket.js"></script>
</body>
</html>