index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  5. <!--
  6. Copyright (c) 2016, 2024, 5 Mode
  7. All rights reserved.
  8. This file is part of BoxToBox.
  9. Permission is hereby granted, free of charge, to any person obtaining a copy of this software
  10. and associated documentation files (the "Software"), to deal in the Software
  11. without restriction, including without limitation the rights to use, copy, modify, merge, publish,
  12. distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
  13. Software is furnished to do so, subject to the following conditions:
  14. The above copyright notice and this permission notice shall be included in all copies or
  15. substantial portions of the Software.
  16. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  17. INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
  18. PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  19. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  20. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  21. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. https://opensource.org/licenses/MIT
  23. -->
  24. <title>BoxToBox</title>
  25. <link rel="shortcut icon" href="/favicon.ico" />
  26. <meta name="description" content="Welcome to BoxToBox! Let everyone have its code by boxes. Happy coding!"/>
  27. <meta name="keywords" content="BoxToBox,code,coding,pby,boxes,on,premise,solution"/>
  28. <meta name="robots" content="index,follow"/>
  29. <meta name="author" content="5 Mode"/>
  30. <script src="/js/jquery-3.6.0.min.js" type="text/javascript"></script>
  31. <script src="/js/common.js" type="text/javascript"></script>
  32. <link href="/css/style.css" type="text/css" rel="stylesheet">
  33. <link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet">
  34. </head>
  35. <body>
  36. <form id="frmUpload" role="form" method="post" action="/" target="_self" enctype="multipart/form-data">
  37. <div id="resizeBanner">
  38. BoxToBox is bigger!
  39. </div>
  40. <div id="content">
  41. <div id="header">
  42. <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;
  43. </div>
  44. <div id="coding">
  45. <div id="boxHtml">
  46. <div class="title">HTML</div>
  47. <textarea id="txtHTMLCode" class="code"></textarea>
  48. </div>
  49. <div id="boxCss">
  50. <div class="title">CSS</div>
  51. <textarea id="txtCSSCode" class="code"></textarea>
  52. </div>
  53. <div id="boxJs">
  54. <div class="title">Javascript</div>
  55. <textarea id="txtJSCode" class="code"></textarea>
  56. </div>
  57. <div id="boxRendering">
  58. <div class="title">Rendering&nbsp;</div>
  59. <div id="finalResult">
  60. &nbsp;
  61. </div>
  62. </div>
  63. </div><!-- coding -->
  64. <div id="footerCont">&nbsp;</div>
  65. <div id="footer"><span style="background:#FFFFFF; opacity:0.7;">&nbsp;&nbsp;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>
  66. </div><!-- content -->
  67. </form>
  68. <script>
  69. function BOXTOBOXrun() {
  70. CSSCode = "<style>"+document.getElementById("txtCSSCode").value+"</style>";
  71. JSCode = "<script>"+document.getElementById("txtJSCode").value+"\<\/script\>";
  72. if (JSCode.indexOf("BOXTOBOX")>0) {
  73. alert("You can't use <BOXTOBOX> code inside your own script!");
  74. return;
  75. }
  76. HTMLCode = document.getElementById("txtHTMLCode").value;
  77. $("#finalResult").html(CSSCode+"\n"+JSCode+"\n"+HTMLCode+"\n");
  78. }
  79. function BOXTOBOXclearAll() {
  80. $("#txtHTMLCode").val("");
  81. $("#txtCSSCode").val("");
  82. $("#txtJSCode").val("");
  83. $("#finalResult").html("");
  84. }
  85. function BOXTOBOXshowNudity() {
  86. document.getElementById("finalResult").innerHTML = $("#finalResult").html();
  87. }
  88. </script>
  89. <script src="/js/home.js" type="text/javascript"></script>
  90. </body>
  91. </html>