-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
233 lines (208 loc) · 9.46 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Page information -->
<meta charset="UTF-8" />
<meta name="node_id" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/favicon.ico" />
<!-- Set title -->
<title>Pulmonary Critical Care Notes</title>
<!-- Includes -->
<script src="/obs.html/static/obsidian_core.js"></script>
<script src="/obs.html/static/encoding.js"></script>
<link rel="stylesheet" href="/obs.html/static/master.css" />
<script src="/obs.html/static/mermaid.9.0.1.min.js"></script>
<script src="/obs.html/static/tex-chtml.js"></script>
<script src="/obs.html/static/load_mathjax.js"></script>
<script src="/obs.html/static/flexsearch.bundle.js"></script>
<script src="/obs.html/static/pako.js"></script>
<script src="/obs.html/static/search.js"></script>
<script src="/obs.html/static/dirtree.js"></script>
<!-- Onload tweaks -->
<script>
const CURRENT_NODE = 'index';
const HTML_URL_PREFIX = '';
</script>
</head>
<body class="theme-obs-light">
<div id="antiflash"></div>
<div id="search-master-div">
<div id="search-slab" king_ramses="return the slaaab">
<div id="search-controls">
<input id="search_string" placeholder="Type to search notes" type="text" />
<div class="tooltip" style="display: none;">
<input type="checkbox" id="hard_search" name="hard" />
<span class="tooltiptext">Hard search (require exact match)</span>
</div>
<div id="search-results-box">
<div id="search-results"></div>
</div>
<div id="search-instructions">
<div class="prompt-instruction">
<b>esc</b> to dismiss
</div>
</div>
</div>
</div>
</div>
<script>
document.getElementById("search-master-div").addEventListener('click', e => {
if(e.target !== e.currentTarget){
return
}
toggle('search-master-div', 'block');
})
document.getElementById("search_string").addEventListener("input", function(event) {
setTimeout( () =>run_search('search_string', 'hard_search'), 100 );
});
document.getElementById("hard_search").addEventListener("click", function(event) {
setTimeout( () =>run_search('search_string', 'hard_search'), 100 );
});
window.addEventListener('keydown', e => {
if((e.key=='Escape'||e.key=='Esc'||e.keyCode==27)){
document.getElementById('search-master-div').style.display = 'none';
return false;
}
}, true);
function click_list_link(element){
element.parentElement.getElementsByTagName('a')[0].click()
}
</script>
<div id="page_holder" class="flex_col">
<div id="header" class="header">
<div id="header_flex" class="flex_row">
<a href="/index.html" id="homelink" title="Clear screen and go to homepage">Pulmonary Critical Care Notes</a>
<div class="navbar-button" onclick="toggle_menu()">
≡
</div>
<div id="navbar" class="navbar">
<a class="navbar-link" href="/Pulmonary Medicine.html" title="Pulmonary">Pulmonary</a>
<a class="navbar-link" href="/Critical Care Medicine.html" title="Critical Care">Critical Care</a>
<div class="icon-tray">
<div>
<a href="/obs.html/tags/index.html" title="Open tag view">
<img src = "/obs.html/static/hashtag.svg" alt="RSS Feed link" style="width: 24px; margin-left: -2px; margin-top: -2px;"/>
</a>
</div>
<div >
<a id="dirtree_link" class="system-link" href="/obs.html/dir_index.html" title="View directory tree">
<img src = "/obs.html/static/dirtree.svg" style="width: 12px; padding: 4px;" alt="Directory tree link"/>
</a>
</div>
<div class="graph_header_div">
<a id="graph_link" class="system-link" href="/obs.html/graph/index.html?node=index" title="Open fullpage Graph">
<img class="graph_header_div_svg" src = "/obs.html/static/graph.svg" alt="Open fullpage Graph" style="margin: 2px; width: 17px;"/>
</a>
</div>
<div onclick="openSearch()">
<img src = "/obs.html/static/search.svg" alt="Search notes" title="Search notes" style="margin: 4px;"/>
</div>
<script>
function openSearch(){
// toggle search popup and continue with extra code if it is enabled this time
if (toggle('search-master-div', 'block')){
// clear input and put focus on it so that we can start typing immediately
let ss = document.getElementById('search_string');
ss.value = '';
ss.focus()
ss.select()
}
}
</script>
<div id="theme-button" class="theme-button" title="Change theme" onclick="toggle_theme_popup(this)">
T
</div>
<script>
function toggle_theme_popup(el){
// make theme button show that it's active by adding the .active class
cl_toggle(el.id, 'active');
// show the theme selector
toggle('theme-popup','block')
let h2 = document.getElementById('header2')
if (h2){
let pu = document.getElementById('header2').getElementsByClassName('popup')[0];
toggle_el(pu,'block');
}
}
</script>
</div>
</div>
</div>
<div class="popup" id="theme-popup">
<label for="cars">Theme </label>
<select name="theme" id="theme" onchange="set_theme(this.value)">
<option value="light">light</option>
<option value="obs-light" selected="selected">obsidian-light</option>
<option value="obs-dark">obsidian-dark</option>
</select>
</div>
</div>
<div class="flex_row">
<div id="left_pane"></div>
<div class="container">
<h1 id="pulmonary-medicine"><a href="/Pulmonary Medicine.html">Pulmonary Medicine</a></h1>
<div class="toc">
<ul>
<li><a href="#pulmonary-medicine" class="anchor-link">Pulmonary Medicine</a></li>
<li><a href="#critical-care-medicine" class="anchor-link">Critical Care Medicine</a></li>
</ul>
</div>
<h1 id="critical-care-medicine"><a href="/Critical Care Medicine.html">Critical Care Medicine</a></h1>
<script src="/obs.html/static/graph.js" type="text/javascript"></script>
<div class="graph">
<div id="A103382070932192922179755689767838946985{level}" class="graph_div"></div>
<button class="graph_button" id="B103382070932192922179755689767838946985{level}" level="{level}" onclick="run('103382070932192922179755689767838946985'+this.level, 'index');">Show Graph</button>
</div>
<script src="/obs.html/static/3d-force-graph.js"></script>
<script>
function grapher(args) {
window.Graph = ForceGraph3D()
(args.graph_container)
.jsonUrl(args.data)
.width(args.width)
.height(args.height)
.nodeLabel('id')
.linkDirectionalParticles("value")
.linkDirectionalParticleSpeed(0.010)
.linkDirectionalParticleWidth(2.0)
.nodeColor(node => {
if (node.id == current_node_id){
return '#ff0000'
}
let isConnected = false;
node.links.forEach(link => {
if (link == current_node_id){
isConnected = true;
}
})
if (isConnected){
return '#f7be49';
}
return '#ffffff'
})
.linkColor(link => {
if (link.source == current_node_id || link.target == current_node_id){
return '#ff0000'
}
return '#dadada'
})
.linkOpacity(0.3)
.onNodeClick(node => {
args.node = node;
graph_left_click(args)()
})
.onNodeRightClick(node => {
args.node = node;
graph_right_click(args)()
});
}
</script>
<!-- end content -->
</div>
<div id="right_pane"></div>
</div>
</div>
<script src="/obs.html/static/load_dirtree_footer.js" type="text/javascript"></script>
</body>
</html>