123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <!DOCTYPE html>
- <html lang="en-US">
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
-
- <!--
- Copyright (c) 2016, 2024, 5 Mode
- All rights reserved.
- This file is part of BoxToBox.
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
- and associated documentation files (the "Software"), to deal in the Software
- without restriction, including without limitation the rights to use, copy, modify, merge, publish,
- distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following conditions:
- The above copyright notice and this permission notice shall be included in all copies or
- substantial portions of the Software.
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
- PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
- AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- https://opensource.org/licenses/MIT
- -->
-
- <title>BoxToBox</title>
- <link rel="shortcut icon" href="/favicon.ico" />
- <meta name="description" content="Welcome to BoxToBox! Let everyone have its code by boxes. Happy coding!"/>
- <meta name="keywords" content="BoxToBox,code,coding,pby,boxes,on,premise,solution"/>
- <meta name="robots" content="index,follow"/>
- <meta name="author" content="5 Mode"/>
-
- <script src="/js/jquery-3.6.0.min.js" type="text/javascript"></script>
- <script src="/js/common.js" type="text/javascript"></script>
-
- <link href="/css/style.css" type="text/css" rel="stylesheet">
-
- <link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet">
-
- </head>
- <body>
- <form id="frmUpload" role="form" method="post" action="/" target="_self" enctype="multipart/form-data">
- <div id="resizeBanner">
- BoxToBox is bigger!
- </div>
- <div id="content">
-
- <div id="header">
- <img src="/res/logo2.png" style="width:38px;position:relative;top:-5px;"> BoxToBox <a href="#" onclick="BOXTOBOXrun();"><img src="/res/run.png" style="width:21px;position:relative;top:-5px;"> Go!</a> <a href="#" onclick="BOXTOBOXclearAll()"><img src="/res/clear.png" style="width:21px;position:relative;top:-5px;"> Clear</a>
- </div>
- <div id="coding">
- <div id="boxHtml">
- <div class="title">HTML</div>
- <textarea id="txtHTMLCode" class="code"></textarea>
- </div>
- <div id="boxCss">
- <div class="title">CSS</div>
- <textarea id="txtCSSCode" class="code"></textarea>
- </div>
- <div id="boxJs">
- <div class="title">Javascript</div>
- <textarea id="txtJSCode" class="code"></textarea>
- </div>
- <div id="boxRendering">
- <div class="title">Rendering </div>
- <div id="finalResult">
-
- </div>
- </div>
- </div><!-- coding -->
- <div id="footerCont"> </div>
- <div id="footer"><span style="background:#FFFFFF; opacity:0.7;"> A <a href="http://5mode.com" class="aaa">5 Mode</a> project and <a href="http://demo.5mode.com" class="aaa">WYSIWYG</a> system. MIT</span></div>
-
- </div><!-- content -->
- </form>
- <script>
- function BOXTOBOXrun() {
- CSSCode = "<style>"+document.getElementById("txtCSSCode").value+"</style>";
- JSCode = "<script>"+document.getElementById("txtJSCode").value+"\<\/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 BOXTOBOXclearAll() {
- $("#txtHTMLCode").val("");
- $("#txtCSSCode").val("");
- $("#txtJSCode").val("");
- $("#finalResult").html("");
- }
- function BOXTOBOXshowNudity() {
- document.getElementById("finalResult").innerHTML = $("#finalResult").html();
- }
- </script>
- <script src="/js/home.js" type="text/javascript"></script>
- </body>
- </html>
|