blob: 91f9ff2feb894edd411db43bcde4daf381905061 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ink n switch</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Shantell+Sans&display=swap');
body {
margin: 0;
padding: 0;
font-family: 'Shantell Sans', cursive;
}
textarea {
font-family: 'Shantell Sans', cursive;
font-size: 1.75em;
padding: 1em;
border: 0;
outline: 0;
width: 100%;
}
canvas {
padding: 0;
width: 100%;
}
#noteArea, #drawingArea {
margin: 0 auto;
display: block;
}
</style>
</head>
<body>
<textarea id="noteArea" rows="10" cols="30" placeholder="This is a modal note taking tool. With it, you can type text that'll be saved to the browser, and you can draw images that'll also be saved to the browser. You are in typing mode right now. To toggle between modes tap cmd or ctrl + d. When in drawing mode, tap c to clear the canvas, tap s to save the contents of the canvas to a png."></textarea>
<canvas id="drawingArea" width="500" height="500"></canvas>
<script src="ink.js"></script>
</body>
</html>
|