-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (86 loc) · 3.56 KB
/
index.html
File metadata and controls
100 lines (86 loc) · 3.56 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Open Notes</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700;800&family=Source+Code+Pro:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<!-- KaTeX for LaTeX rendering -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css">
</head>
<body>
<div class="app" role="application" aria-label="Open Notes vault">
<!-- SIDEBAR -->
<aside class="sidebar" aria-label="Sidebar">
<div class="sidebar-header">
<div class="logo" aria-hidden="true">ON</div>
<div>
<div class="sidebar-title">Open Notes</div>
<div class="sidebar-sub">Study Vault</div>
</div>
</div>
<div class="search-bar" role="search" aria-label="Search notes">
<input id="globalSearch" placeholder="Search notes…" aria-label="Search notes" />
<span class="kbd"></span>
</div>
<div class="subjects-dropdown" id="subjectsDropdown" aria-label="Subjects">
<div class="subject-header">Subjects</div>
<!-- branches injected here -->
</div>
</aside>
<!-- MAIN -->
<main class="main">
<header class="topbar" role="banner">
<div class="topbar-left">
<span class="brush" aria-hidden="true">Open Notes</span>
<div class="topbar-title" id="currentPath">Loading vault…</div>
</div>
<div class="topbar-right">
<div id="status">Fetching from GitHub…</div>
<button id="shareBtn" title="Copy link to this note">Share</button>
</div>
</header>
<section class="note-view-wrap" id="noteViewWrap">
<div class="note-card" id="noteCard">
<nav class="breadcrumbs" id="breadcrumbs" aria-label="Breadcrumbs" style="display:none"></nav>
<div class="note-meta">
<span class="badge" id="noteTopic">Topic</span>
<div id="noteInfo" style="color:var(--muted)">Select a note from the sidebar</div>
</div>
<h1 class="note-title" id="noteTitle">Welcome to Open Notes</h1>
<div class="markdown" id="noteContent">
<p>This vault reads <code>.md</code> files from a GitHub repo and renders them in a clean, Obsidian-style workspace.</p>
<p>Structure your repo like:</p>
<pre><code>science/
biology/
cells.md
enzymes.md
chemistry/
bonding.md
maths/
calculus.md
</code></pre>
<p>If no note is selected, here are some you have viewed recently!</p>
<div id="recentSection" style="margin-top:1rem;">
<h3 style="margin:0 0 0.6rem 0; color:var(--muted)">Recent notes</h3>
<div class="recent-list" id="recentList"></div>
</div>
</div>
</div>
<div class="search-results" id="searchResults" role="listbox" aria-label="Search results"></div>
</section>
</main>
</div>
<!-- marked for markdown rendering -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- mermaid (UMD) -->
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
<!-- KaTeX + auto-render (for LaTeX in markdown) -->
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js"></script>
<!-- mhchem for chemical formulas (\ce{}) -->
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/mhchem.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js"></script>
<script src="script.js"></script>
</body>
</html>