Add files via upload

This commit is contained in:
steevLP 2022-03-12 18:46:37 +01:00 committed by GitHub
parent 843bc72654
commit 5f0c339cc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
dist/steevcss.js vendored Normal file
View File

@ -0,0 +1,25 @@
var code = document.querySelectorAll("code");
// code embed
code.forEach(c => {
let code = c.innerHTML.toString();
var output = "";
for(let i = 0; i < code.length; i++){
switch(code.charAt(i)){
default: output += code.charAt(i); break;
case ">": output += "&gt;"; break;
case "<": output += "&lt;"; break;
case "&": output += "&amp;"; break;
case "\"": output += "&quot;"; break;
}
}
c.innerHTML = output;
});
// TODO JavaScript Input value return
// Current way..
// -------------------------------------
// get input by getting the input object
// catch oninput event inside a function
// Handle it inside the function
// -------------------------------------