You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
1.7 KiB
HTML
74 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<script data-main="main" src="/bower_components/requirejs/require.js"></script>
|
|
<style>
|
|
html, body{
|
|
padding: 0px;
|
|
margin: 0px;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
}
|
|
textarea{
|
|
width: 100%;
|
|
height: 100vh;
|
|
max-width: 100%;
|
|
max-height: 100vh;
|
|
|
|
font-size: 18px;
|
|
background-color: #073642;
|
|
color: #839496;
|
|
|
|
overflow-x: hidden;
|
|
|
|
/* disallow textarea resizes */
|
|
resize: none;
|
|
}
|
|
canvas {
|
|
border: 5px solid black;
|
|
}
|
|
#clear {
|
|
display: inline;
|
|
}
|
|
#colors {
|
|
z-index: 100;
|
|
border: 3px solid black;
|
|
padding: 5px;
|
|
}
|
|
span.palette {
|
|
height: 50px;
|
|
width: 50px;
|
|
display: inline-block;
|
|
margin: 5px;
|
|
border: 2px solid black;
|
|
}
|
|
#controls {
|
|
display: block;
|
|
position: relative;
|
|
border: 3px solid black;
|
|
}
|
|
#width, #colors {
|
|
position: relative;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<canvas id="canvas" width="600" height="600" ></canvas>
|
|
|
|
<h2>Welcome to CryptCanvas!</h2>
|
|
<h3>Zero Knowledge Realtime Collaborative Canvas Editing</h3>
|
|
|
|
<div id="controls">
|
|
<button id="clear">Clear</button>
|
|
<input id="width" type="number" value="5"></input>
|
|
<div id="colors"> </div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|