index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Document</title>
  6. <meta charset="utf-8">
  7. <meta name="viewport" content="width=device-width">
  8. <title>eval</title>
  9. <link href="index.css" rel="stylesheet" type="text/css" />
  10. <link rel="stylesheet" href="normalize.min.css">
  11. <style>
  12. input {
  13. width: 100%;
  14. height: 30px;
  15. font-size: 20px;
  16. border-radius: 20px;
  17. border: 1px solid #ccc;
  18. margin-bottom: 10px;
  19. }
  20. input[type="text"] {
  21. /*color: #dbdbdb;*/
  22. padding: 5px;
  23. font-size: 15px;
  24. }
  25. input[type="button"] {
  26. background-color: #5a5491;
  27. color: #fff;
  28. }
  29. body {
  30. font-size: 20px;
  31. font-family: arial, sans-serif;
  32. background-color: #6962A8;
  33. margin: 0;
  34. padding: 0;
  35. color: #2d2d2d;
  36. }
  37. body * {
  38. -webkit-box-sizing: border-box;
  39. box-sizing: border-box;
  40. outline: none;
  41. }
  42. #result img {
  43. border-radius: 20px;
  44. }
  45. .container {
  46. position: fixed;
  47. width: 60%;
  48. background-color: #fff;
  49. bottom: 0px;
  50. z-index: 10;
  51. font-size: 25px;
  52. border-top-left-radius: 20px;
  53. border-top-right-radius: 20px;
  54. padding: 15px;
  55. padding-bottom: 5px;
  56. }
  57. .container input#input2 {
  58. margin-bottom: 5px;
  59. }
  60. #result {
  61. background-color: #DFE0E2;
  62. padding: 15px;
  63. margin-bottom: 155px;
  64. border-radius: 15px;
  65. padding-bottom: 30px;
  66. -webkit-box-shadow: inset 0px 0px 11px #474747;
  67. box-shadow: inset 0px 0px 11px #474747;
  68. min-height: 700px;
  69. }
  70. #result div {
  71. background-color: #F9F9F9;
  72. border-radius: 20px;
  73. margin-bottom: 20px;
  74. padding: 10px;
  75. width: 70%;
  76. }
  77. main {
  78. width: 60%;
  79. margin: 0 auto;
  80. border-radius: 20px;
  81. }
  82. span {
  83. color: #6962A8;
  84. display: block;
  85. }
  86. .draw {
  87. display: inline-block;
  88. }
  89. .draw img{
  90. width: 20px;
  91. height: 20px;
  92. position: relative;
  93. left: 5px;
  94. bottom: 4px;
  95. }
  96. .canvas {
  97. position: fixed;
  98. visibility: hidden;
  99. border-radius: 20px;
  100. background-color: #fff;
  101. width: 38%;
  102. font-size: 15px;
  103. padding: 10px;
  104. -webkit-box-shadow: inset 1px 1px 1px;
  105. box-shadow: inset 1px 1px 1px
  106. }
  107. .canvas select {
  108. border-right: 15px;
  109. font-size: 15px;
  110. }
  111. #emoji-block {
  112. display: inline-block;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <div class="canvas">
  118. <canvas id='canvas' width=500 height=400></canvas>
  119. <!--<br/>-->
  120. <!--<button id='+'>+</button>-->
  121. <input type="button" value="undo" id="undo">
  122. <input type="button" value="delete" id="delete">
  123. <input type="button" value="Send Image" id="to-data-url">
  124. <input type='color' id='color'>
  125. <select id='tool'>
  126. <option value='circle'>Circle</option>
  127. <option value='line' >Line</option>
  128. <option value='rectangle' >Rectangle</option>
  129. </select>
  130. <label for="size">Size(px): </label>
  131. <input type="number" id="size">
  132. <script src="index.js"></script>
  133. </div>
  134. <main>
  135. <div class="container">
  136. <!-- <label for="input1">nick:</label><br> -->
  137. <input type="text" id="input1" placeholder="Type a name..."><br>
  138. <!-- <label for="input2">message:</label><br> -->
  139. <input type="text" id="input2" placeholder="Type a message..."><br>
  140. <div id="emoji-block">
  141. <div id="emoji-button" style="display: inline-block;">
  142. <img src="https://cdn.iconscout.com/public/images/icon/free/png-512/emoji-sad-unhappy-3a93cdaae83e3bb7-512x512.png" alt="" width="30px" height="30px">
  143. </div>
  144. <div id="emoji" style="display: none">
  145. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/aggressive.gif" alt="img">
  146. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/dash3.gif" alt="img">
  147. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/crazy.gif" alt="img">
  148. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/curtsey.gif" alt="img">
  149. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/diablo.gif" alt="img">
  150. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/focus.gif" alt="img">
  151. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/girl_in_love.gif" alt="img">
  152. <img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/hunter.gif" alt="img">
  153. </div>
  154. </div>
  155. <div class="draw">
  156. <img src="https://cdn.iconscout.com/public/images/icon/premium/png-512/canvas-drawing-painting-color-paint-31e01478fb2fcadd-512x512.png" alt="canvas">
  157. </div>
  158. <input type="button" id="button" value="send">
  159. </div>
  160. <!--//////////////////////////////////////////////////-->
  161. <!--//////////////////////////////////////////////////-->
  162. <div id="result"></div>
  163. </main>
  164. <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  165. <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.1.3/papaparse.min.js"></script>
  166. <script src="http://gitlab.a-level.com.ua/gitgod/nanobind/raw/master/static/nb.js"></script>
  167. <script src="main.js"></script>
  168. <script src="emoji.js"></script>
  169. <script src="canvas/index.js"></script>
  170. </body>
  171. </html>