about summary refs log tree commit diff stats
path: root/js/inknswitch/index.html
blob: c6fa0b60eb0e089111a86ed1c81acaf3d1383e9b (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="Start typing a note! When you wanna draw, toggle by hitting cmd, or ctrl + d then draw with the mouse, toggle back the same way. Tap the c key in draw mode to clear your drawing."></textarea>
    <canvas id="drawingArea" width="500" height="500"></canvas>
    <script src="ink.js"></script>
</body>
</html>