-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable.html
146 lines (129 loc) · 3.17 KB
/
table.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>replit</title>
<style>
html {
height: 100%;
width: 100%;
}
#topbar {
text-align: right;
justify-content: right;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
font-family: "Lexend", sans-serif;
position: relative;
}
.navButton {
font-weight: bold;
background-color: #2DAD90;
color: white;
padding:5px;
padding-right:10px;
padding-left:10px;
border-radius: 20px;
}
body {
background-color: #103140;
}
table, th, td {
border: 1px solid grey;
border-radius: 5px;
tr:nth-child(even) {background-color: #f2f2f2;}
text-align:center
}
#commentTable {
margin-left: auto;
margin-right: auto;
width: 90%;
border-radius: 5px;
}
#addCardSection {
text-align:center;
padding: 10px;
margin-bottom: 0px;
margin-top:0px;
border-radius: 5px;
background-color: white;
margin-left: auto;
margin-right: auto;
}
#addlabel {
font-decoration: bold;
margin-top: 0px;
margin-bottom: 0px;
padding-top: 0px;
padding-bottom: 0px;
}
#saveAndConvertRow {
margin-left: auto;
margin-right: auto;
text-align:center;
padding: 5px;
margin-top: 0px;
padding-top: 0px;
margin-bottom: 20px;
}
input {
border-color: #2DAD90;
border-radius: 5px;
text-align: center;
padding: 5px;
}
.tablePageButton {
padding-left: 7px;
padding-right: 7px;
padding-top: 5px;
padding-bottom: 5px;
background-color: #2DAD90;
border-radius: 5px;
color: white;
}
#tableSpace {
text-align:center;
background-color: white;
border-radius:5px;
padding-top: 10px;
padding-bottom: 10px;
width: 95%;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
}
.tablePageHeader {
text-align: center;
color: white;
}
</style>
<script src="script.js" defer></script>
</head>
<body onload = "loadTable()">
<div id = topbar>
<button class = navButton>Go to Flash Cards</button>
<button class = navButton>Go to PDF</button>
</div>
<h1 class = tablePageHeader>Flashcards - Table View</h1>
<h2 id = "addLabel" class = tablePageHeader>Add a new flashcard:</h2>
<div id = "addCardSection">
<input type="text" id="termText" placeholder="Term" size = "40"></input>
<input type="text" id="definitionText" placeholder="Definition" size = "40"></input>
<button id="addCardButton" class = tablePageButton>Add Card</button>
</div>
<h2 class = tablePageHeader>View and Edit Flashcards:</h2>
<div id ="saveAndConvertRow">
<button id="saveEdits" class=tablePageButton>Save Edits</button>
<button id="quizlet" class=tablePageButton>Convert to Quizlet</button>
</div>
<div id = "tableSpace">
<table id = "commentTable">
</table>
</div>
<script type ="module" src="/script.js"></script>
</body>
</html>