|
@@ -7,36 +7,115 @@
|
|
|
<meta name="viewport" content="width=device-width">
|
|
|
<title>eval</title>
|
|
|
<link href="index.css" rel="stylesheet" type="text/css" />
|
|
|
- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
|
|
|
- <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.1.3/papaparse.min.js"></script>
|
|
|
- <script src="http://gitlab.a-level.com.ua/gitgod/nanobind/raw/master/static/nb.js"></script>
|
|
|
+ <link rel="stylesheet" href="normalize.min.css">
|
|
|
+
|
|
|
<style>
|
|
|
input {
|
|
|
width: 100%;
|
|
|
height: 30px;
|
|
|
font-size: 20px;
|
|
|
+ border-radius: 20px;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ input[type="text"] {
|
|
|
+ /*color: #dbdbdb;*/
|
|
|
+ padding: 5px;
|
|
|
+ font-size: 15px;
|
|
|
+ }
|
|
|
+ input[type="button"] {
|
|
|
+ background-color: #5a5491;
|
|
|
}
|
|
|
body {
|
|
|
- font-size: 40px;
|
|
|
+ font-size: 25px;
|
|
|
font-family: arial, sans-serif;
|
|
|
+ background-color: #6962A8;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ color: #2d2d2d;
|
|
|
+ }
|
|
|
+ body * {
|
|
|
+ box-sizing: border-box;
|
|
|
+ outline: none;
|
|
|
+ }
|
|
|
+ #result img {
|
|
|
+ border-radius: 20px;
|
|
|
}
|
|
|
.container {
|
|
|
position: fixed;
|
|
|
- width: 100%;
|
|
|
+ width: 60%;
|
|
|
background-color: #fff;
|
|
|
- top: 0px;
|
|
|
+ bottom: 0px;
|
|
|
z-index: 10;
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 25px;
|
|
|
+ border-top-left-radius: 20px;
|
|
|
+ border-top-right-radius: 20px;
|
|
|
+ padding: 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #result {
|
|
|
+ background-color: #DFE0E2;
|
|
|
+ padding: 15px;
|
|
|
+ margin-bottom: 175px;
|
|
|
+ border-radius: 15px;
|
|
|
+ }
|
|
|
+ #result div {
|
|
|
+ background-color: #F9F9F9;
|
|
|
+ border-radius: 20px;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ padding: 10px;
|
|
|
+ width: 70%;
|
|
|
+ }
|
|
|
+ main {
|
|
|
+ width: 60%;
|
|
|
+ margin: 0 auto;
|
|
|
+ border-radius: 20px;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ color: #6962A8;
|
|
|
+ }
|
|
|
+ .draw img{
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ position: relative;
|
|
|
+ left: 5px;
|
|
|
+ bottom: 4px;
|
|
|
+ }
|
|
|
+ .canvas {
|
|
|
+ position: fixed;
|
|
|
+ visibility: hidden;
|
|
|
+ border-radius: 20px;
|
|
|
+ background-color: #fff;
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
+<div class="canvas">
|
|
|
+ <canvas id='canvas' width=400 height=400></canvas>
|
|
|
+ <!--<br/>-->
|
|
|
+ <!--<button id='+'>+</button>-->
|
|
|
+ <input type="button" value="undo" id="undo">
|
|
|
+ <input type="button" value="delete" id="delete">
|
|
|
+ <input type="button" value="Send Image" id="to-data-url">
|
|
|
+ <input type='color' id='color'>
|
|
|
|
|
|
- <div class="container">
|
|
|
- <label for="input1">nick:</label><br>
|
|
|
- <input type="text" id="input1"><br>
|
|
|
- <label for="input2">message:</label><br>
|
|
|
+ <select id='tool'>
|
|
|
+ <option value='circle'>Circle</option>
|
|
|
+ <option value='line' >Line</option>
|
|
|
+ <option value='rectangle' >Rectangle</option>
|
|
|
+ </select>
|
|
|
+ <label for="size">Size(px): </label>
|
|
|
+ <input type="number" id="size">
|
|
|
+ <script src="index.js"></script>
|
|
|
+ </div>
|
|
|
+ <main>
|
|
|
+ <div class="container">
|
|
|
+ <!-- <label for="input1">nick:</label><br> -->
|
|
|
+ <input type="text" id="input1" placeholder="Type a name..."><br>
|
|
|
+ <!-- <label for="input2">message:</label><br> -->
|
|
|
+
|
|
|
+ <input type="text" id="input2" placeholder="Type a message..."><br>
|
|
|
<div id="emoji-block">
|
|
|
<div id="emoji-button" style="display: inline-block;">
|
|
|
<img src="https://cdn.iconscout.com/public/images/icon/free/png-512/emoji-sad-unhappy-3a93cdaae83e3bb7-512x512.png" alt="" width="30px" height="30px">
|
|
@@ -52,32 +131,22 @@
|
|
|
<img class = "emoji-item" src="http://www.kolobok.us/smiles/light_skin/hunter.gif" alt="img">
|
|
|
</div>
|
|
|
</div>
|
|
|
- <input type="text" id="input2"><br>
|
|
|
+ <div class="draw">
|
|
|
+ <img src="https://cdn.iconscout.com/public/images/icon/premium/png-512/canvas-drawing-painting-color-paint-31e01478fb2fcadd-512x512.png" alt="canvas">
|
|
|
+ </div>
|
|
|
<input type="button" id="button" value="send">
|
|
|
|
|
|
</div>
|
|
|
<!--//////////////////////////////////////////////////-->
|
|
|
- <div class="canvas">
|
|
|
- <canvas id='canvas' width=400 height=400></canvas>
|
|
|
- <!--<br/>-->
|
|
|
- <!--<button id='+'>+</button>-->
|
|
|
- <input type="button" value="undo" id="undo">
|
|
|
- <input type="button" value="delete" id="delete">
|
|
|
- <input type="button" value="Send Image" id="to-data-url">
|
|
|
- <input type='color' id='color'>
|
|
|
-
|
|
|
- <select id='tool'>
|
|
|
- <option value='circle'>Circle</option>
|
|
|
- <option value='line' >Line</option>
|
|
|
- <option value='rectangle' >Rectangle</option>
|
|
|
- </select>
|
|
|
- <label for="size">Size(px): </label>
|
|
|
- <input type="number" id="size">
|
|
|
- <script src="index.js"></script>
|
|
|
- </div>
|
|
|
+
|
|
|
|
|
|
<!--//////////////////////////////////////////////////-->
|
|
|
<div id="result"></div>
|
|
|
+ </main>
|
|
|
+
|
|
|
+ <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
|
|
|
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.1.3/papaparse.min.js"></script>
|
|
|
+ <script src="http://gitlab.a-level.com.ua/gitgod/nanobind/raw/master/static/nb.js"></script>
|
|
|
<script src="main.js"></script>
|
|
|
<script src="emoji.js"></script>
|
|
|
<script src="canvas/index.js"></script>
|