blob: 535c41dff9cecff1441dbd75debac3cb650868fb (
plain) (
tree)
|
|
<!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;
}
#toggleButton {
border: 1px solid black;
background-color: transparent;
padding: 0.5em 1em;
position: fixed;
top: 10px;
right: 10px;
z-index: 1000;
}
#toggleButton:hover {
cursor: pointer;
}
</style>
</head>
<body>
<button id="toggleButton">Toggle</button>
<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>
|