-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.html
More file actions
64 lines (60 loc) · 2.48 KB
/
Copy pathview.html
File metadata and controls
64 lines (60 loc) · 2.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<link rel="icon"href="app data/ico@max.png">
<!-- link for bs style -->
<link rel="stylesheet" href="res/bs.css">
<!-- gh@sindresorhus's markdown css -->
<link rel="stylesheet" href="res/ghmdsindre.css">
<!-- own style -->
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- meta -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
<style>
.fb-fab{
position:fixed;
bottom:5px;
right:5px;
}
</style>
<script>
if(localStorage.mode==="dark"){var styleFordark = document.createElement("style"); styleFordark.innerHTML=`div.markdown-body{color:#efefef;}body{background:#181614;}.form-control,.form-control[readonly],.form-control:focus{background: transparent;color:#efefef !important;}textarea:focus{color:#efefef;}.material-icons{ color:#efefef !important;}.markdown-body pre{background:#0d1e1f;}.markdown-body table th,.markdown-body td{background:#101025;}`;document.head.append(styleFordark);}
</script>
</head>
<body>
<nav class="navbar navbar-light bg-light">
<div class="container-fluid" style="overflow:scroll;">
<a class="navbar-brand" >title</a>
</div>
</nav>
<div style="width:100vw;padding:10px;"class="markdown-body">
</div>
<a href="index.html" class="fb-fab btn btn-dark">back</button>
<post-scripts>
<script src="res/sd.js"></script>
</post-scripts>
<script>
showdown.setFlavor('github');
showdown.setOption('ghMentions', 'true');
showdown.setOption('ghMentionsLink', '#{u}');
showdown.setOption('underline', 'true');
var converter = new showdown.Converter();
var text = sessionStorage.con||"";
if(sessionStorage.id){
txt=text.replaceAll("<","<");
html = converter.makeHtml(txt);
html = html.replaceAll("&gt","<");
document.querySelector(".markdown-body").innerHTML=html;
console.log(html); document.querySelector(".navbar-brand").innerHTML = `
${sessionStorage.title} <small style="font-size:10px;">${sessionStorage.id}</small>
`;
document.querySelector("title").innerHTML=`${sessionStorage.title}`
}else{
document.querySelector("body").innerHTML="<div class='markdown-body'><pre><code>invalid redirection</code></pre><hr><a href='index.html'>home</a></div>";
}
</script>
</body>
</html>