This commit is contained in:
SilicoFlare
2023-03-24 20:58:12 +05:30
committed by GitHub
parent b9b4802751
commit f942bf7652

View File

@@ -48,7 +48,7 @@
</form> </form>
<br><br> <br><br>
<h3>Copy your code from here:</h3> <h3>Copy your code from here:</h3>
<button type="button" onclick="copy" <button type="button" onclick="copyCode()">COPY</button>
<div id="code"> <div id="code">
Enter all values and click 'Submit' Enter all values and click 'Submit'
</div> </div>
@@ -60,6 +60,11 @@
var count = 0 var count = 0
var finalCode = "" var finalCode = ""
function copyCode() {
navigator.clipboard.writeText(finalCode);
window.alert("Copied to clipboard!");
}
function delValue(num) { function delValue(num) {
var divi = document.getElementById("value"+num); var divi = document.getElementById("value"+num);
divi.remove(); divi.remove();