Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
par7133 authored Oct 30, 2022
1 parent 335b6bb commit 73e894b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
<form id="frmUpload" role="form" method="post" action="/" target="_self" enctype="multipart/form-data">

<div id="resizeBanner">
BoxMe is bigger!
BoxToBox is bigger!
</div>

<div id="content">

<div id="header">
<img src="/res/logo2.png" style="width:38px;position:relative;top:-5px;">&nbsp;BoxToBox&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="BOXMErun();"><img src="/res/run.png" style="width:21px;position:relative;top:-5px;">&nbsp;Go!</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="BOXMEclearAll()"><img src="/res/clear.png" style="width:21px;position:relative;top:-5px;">&nbsp;Clear</a>&nbsp;&nbsp;&nbsp;
<img src="/res/logo2.png" style="width:38px;position:relative;top:-5px;">&nbsp;BoxToBox&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="BOXTOBOXrun();"><img src="/res/run.png" style="width:21px;position:relative;top:-5px;">&nbsp;Go!</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="BOXTOBOXclearAll()"><img src="/res/clear.png" style="width:21px;position:relative;top:-5px;">&nbsp;Clear</a>&nbsp;&nbsp;&nbsp;
</div>

<div id="coding">
Expand Down Expand Up @@ -95,25 +95,25 @@
</form>

<script>
function BOXMErun() {
function BOXTOBOXrun() {
CSSCode = "<style>"+document.getElementById("txtCSSCode").value+"</style>";
JSCode = "<script>"+document.getElementById("txtJSCode").value+"\<\/script\>";
if (JSCode.indexOf("BOXME")>0) {
alert("You can't use <BOXME> code inside your own script!");
if (JSCode.indexOf("BOXTOBOX")>0) {
alert("You can't use <BOXTOBOX> code inside your own script!");
return;
}
HTMLCode = document.getElementById("txtHTMLCode").value;
$("#finalResult").html(CSSCode+"\n"+JSCode+"\n"+HTMLCode+"\n");
}

function BOXMEclearAll() {
function BOXTOBOXclearAll() {
$("#txtHTMLCode").val("");
$("#txtCSSCode").val("");
$("#txtJSCode").val("");
$("#finalResult").html("");
}

function BOXMEshowNudity() {
function BOXTOBOXshowNudity() {
document.getElementById("finalResult").innerHTML = $("#finalResult").html();
}
</script>
Expand Down

0 comments on commit 73e894b

Please sign in to comment.