-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (67 loc) · 2.47 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
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="script-src 'self'; object-src 'self'">
<title>Markdown Generator</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/theme-toggle.css">
<!-- icon -->
<link rel="icon" href="build/icon.png" type="image/x-icon">
</head>
<body>
<div class="container">
<!-- 表单部分 -->
<div class="form-container">
<div class="input-group-row">
<!-- 第一列:Date 和 Category -->
<div class="input-column">
<div class="input-group">
<label for="dateInput">Date</label>
<input type="date" id="dateInput" />
</div>
<div class="input-group">
<label for="categoryInput">Category</label>
<select id="categoryInput">
<!-- Category options will be populated here -->
</select>
</div>
</div>
<!-- 第二列:Author 和 Email -->
<div class="input-column">
<div class="input-group">
<label for="authorInput">Author</label>
<input type="text" id="authorInput" />
</div>
<div class="input-group">
<label for="emailInput">Email</label>
<input type="email" id="emailInput" />
</div>
</div>
</div>
<!-- Markdown Content 部分 -->
<div class="input-group">
<label for="markdownContent">Markdown Content</label>
<textarea id="markdownContent" name="markdownContent"></textarea>
</div>
<!-- Save as Markdown 按钮单独一行 -->
<div class="save-button-container">
<button id="saveButton">Save as Markdown</button>
</div>
</div>
<!-- Footer -->
<footer>
<p id="jsonFilePath">Configuration File: <a href="#">F:\GitHub_mine\LabLog\settings.json</a></p>
<p>© 2024 Lab Log | Powered by <a href="mailto:[email protected]">Jie Hua</a></p>
</footer>
<!-- 主题切换按钮 -->
<button data-toggle-theme="dark,light" data-act-class="ACTIVECLASS"></button>
</div>
<!-- 引入 js 文件 -->
<script src="js/ipcRenderer.js"></script>
<script src="js/loadSettings.js"></script>
<script src="js/themeToggle.js"></script>
<script src="js/saveMarkdown.js"></script>
</body>
</html>