-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ejs
109 lines (102 loc) · 3.9 KB
/
index.ejs
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
<html>
<head>
<title>
<%=pageHeader%>
</title>
<link rel="stylesheet" type="text/css" href="./index.css">
</head>
<body>
<div id="container"> </div>
<div id="menu-bar">
<div id="file-menu" data-content="file-menu-container">
File
</div>
<div id="home-menu" data-content="home-menu-container">Home</div>
<div id="data-menu" data-content="data-menu-container">Data</div>
</div>
<div id="menu-content-container">
<div class="menu-container" id="file-menu-container">
<div id="new">New</div>
<div id="open">Open</div>
<div id="save">Save</div>
</div>
<div class="menu-container" id="home-menu-container">
<div class="menu-group" id="font-menu-container">
<div class="menu-row">
<select id="font-family">
<option value="Georgia">Georgia</option>
<option value="Arial">Arial</option>
<option value="Impact">Impact</option>
<option value="Tahoma">Tahoma</option>
</select>
<select id="font-size">
<option value="8">8</option>
<option value="10">10</option>
<option value="12">12</option>
<option value="14">14</option>
</select>
</div>
<div class="menu-row">
<input id="bold" type="button" value="B">
<input id="italic" type="button" value="I">
<input id="underline" type="button" value="U">
<input id="bg-color" type="color" value="#FFFFFF">
<input id="text-color" type="color" value="#000000">
</div>
</div>
<div class="menu-group" id="allignment-menu-container">
<div class="menu-row">
<input id="top-align" type="button" prop-val="top" class="valign" value="T">
<input id="middle-align" type="button" prop-val="middle" class="valign" value="M">
<input id="bottom-align" type="button" prop-val="bottom" class="valign" value="B">
</div>
<div class="menu-row">
<input id="left-align" type="button" prop-val="left" class="halign" value="L">
<input id="center-align" type="button" prop-val="center" class="halign" value="C">
<input id="right-align" type="button" prop-val="right" class="halign" value="R">
</div>
</div>
</div>
<div class="menu-container" id="data-menu-container">
data
</div>
</div>
<div id="formula-bar">
<input type="text" id="cellFormula" readonly = 'true'>
<div id="seperator">:</div>
<input type="text" id="txtFormula">
</div>
<div id="content-container">
<div id="tl-cell"></div>
<div id="first-row">
<% for(let j=0;j<cols;j++) { %>
<div class="cell">
<%= String.fromCharCode('A'.charCodeAt(0) + j ) %>
</div>
<% } %>
</div>
<div id="first-col">
<% for(let i=0;i<rows;i++) { %>
<div class="cell">
<%= i+1 %>
</div>
<% } %>
</div>
<div id="grid">
<% for(let i=0;i<rows;i++) { %>
<div class="row">
<% for(let j=0;j<cols;j++) { %>
<div class="cell" contenteditable="true" rid="<%= i%>" cid="<%= j%>">
</div>
<% } %>
</div>
<% } %>
</div>
</div>
<div id="sheets-bar">
<div id="add">Sheets 1</div>
<div>+</div>
</div>
<script src="./index.js"></script>
</body>
</html>