MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / showPreview

Function showPreview

assets/js/Live_Code_Editor.js:1–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function showPreview() {
2 var htmlCode = document.getElementById("htmlCode").value;
3 var cssCode = "<style>" +document.getElementById("cssCode").value+"</style>";
4 var jsCode = "<scri"+"pt>" + document.getElementById("jsCode").value + "</scri"+"pt>";
5 var frame = document.getElementById("preview-window").contentWindow.document;
6 frame.open();
7 frame.write(htmlCode + cssCode + jsCode);
8 frame.close();
9}
10

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected