edited scilab

This commit is contained in:
SilicoFlare
2023-04-12 11:49:49 +05:30
committed by GitHub
parent 07d4be0ae4
commit e615547b96
2 changed files with 10 additions and 10 deletions

View File

@@ -59,11 +59,6 @@
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();
@@ -148,6 +143,11 @@
"\nxstring(0.5, 7, ['Y-AXIS: 1 pH (starts from 2)'])"; "\nxstring(0.5, 7, ['Y-AXIS: 1 pH (starts from 2)'])";
codeArea.innerText = finalCode; codeArea.innerText = finalCode;
} }
function copyCode() {
navigator.clipboard.writeText(finalCode);
window.alert("Copied to clipboard!");
}
</script> </script>
</body> </body>
</html> </html>

View File

@@ -59,11 +59,6 @@
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();
@@ -147,6 +142,11 @@
finalCode += "\nxstring(5.5, 525, ['SRN: "+document.getElementById("srn").value+"'])"; finalCode += "\nxstring(5.5, 525, ['SRN: "+document.getElementById("srn").value+"'])";
codeArea.innerText = finalCode; codeArea.innerText = finalCode;
} }
function copyCode() {
navigator.clipboard.writeText(finalCode);
window.alert("Copied to clipboard!");
}
</script> </script>
</body> </body>
</html> </html>