-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
65 lines (65 loc) · 2.53 KB
/
index.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Protocol Writer</title>
<link rel="shortcut icon" type="image/ico" href="./favicon.ico"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,700,700i" rel="stylesheet">
<link href="./css/lemon.min.css" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.0/vue.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/fecha/2.3.3/fecha.min.js"></script>
<style>
body, button, input {
font-family: Courier New;
}
input[type="text"] {
outline: none;
border: none;
padding: 0;
font-size: 17px;
margin: -8px 0 10px 0;
border-bottom: 1px solid #c2c2c257;
border-radius: 0;
}
</style>
</head>
<body>
<div id="app"></div>
<template id="user">
<div class="container">
<div class="row">
<div class="column">
<h1>
Protocol
<button v-if="!isDark" @click="toggleTheme">Dark theme</button>
<button v-if="isDark" @click="toggleTheme">Bright theme</button>
</h1>
<ul>
<li v-for="logItem in log" class="row">
<div class="colum">
{{ formatDate(logItem.date) }}
</div>
<div class="column">
<input type="text" v-model="logItem.text" @keyup.enter="append"/>
</div>
<div class="colum">
<button v-if="log.length > 1" @click="removeLine">x</button>
</div>
</li>
</ul>
<div class="row">
<div class="column">
<button @click="copy">Copy</button>
</div>
<div class="column">
<button @click="clear">Clear</button>
</div>
</div>
</div>
</div>
</div>
</template>
</body>
<script type="module" src="./js/main.js"></script>
</html>