-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdefault.html
187 lines (182 loc) · 6.58 KB
/
default.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
<!-- ::
STUFF HERE IS IGNORED
MIGHT BE USFEUL ;]
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" ng-app="HTADOC" xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
$for(author-meta)$
<meta name="author" content="$author-meta$" />
$endfor$
$if(date-meta)$
<meta name="date" content="$date-meta$" />
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
$endif$
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<HTA:APPLICATION
ID="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$.$VERSION_STRING$"
APPLICATIONNAME="$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$"
CAPTION="Yes"
BORDER="thick"
ICON="#"
SHOWINTASKBAR="Yes"
SINGLEINSTANCE="Yes"
SYSMENU=""
WINDOWSTATE="maximize"
VERSION="$VERSION_STRING$"
INNERBORDER="No"
SELECTION="Yes"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
NAVIGABLE="No"
CONTEXTMENU=""
BORDERSTYLE=""
SCROLL="No"
SCROLLFLAT="No"
>
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">code{white-space: pre;}</style>
$if(quotes)$
<style type="text/css">q { quotes: "“" "”" "‘" "’"; }</style>
$endif$
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
</style>
$endif$
$for(css)$
<link rel="stylesheet" href="$css$" type="text/css" />
$endfor$
$if(math)$
$math$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
<!-- Bootstrap core CSS -->
<link href="$docroot$/_common/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="$docroot$/_common/assets/css/style.css" rel="stylesheet">
<link href="$docroot$/_common/assets/css/docforms.css" rel="stylesheet">
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class="sidebar-nav">
<li class="sidebar-brand">
<a href="#" id="home">Home</a>
</li>
$for(sections)$
<li>
<a href="#" id="$sections.id$" class="section_link">$sections.name$</a>
</li>
$endfor$
</ul>
</div>
<!-- /#sidebar-wrapper -->
<div id="topnav">
<a href="#" class="menu-toggle">Toggle Sidebar</a>
<a href="#" id="topnav-home">Home</a>
<a href="#" id="requirements" class="powershell">Run Powershell Command!
<!--
'Hello from Powershell!'
&pause
-->
</a>
<a href="#" class="shell" data-shell="cmd" data-keep-open="1">Start cmd!</a>
<a href="#" id="rebuild" class="powershell" data-interactive="0">Rebuild
<!--
.\build.bat -s .\_template\default.markdown -o default.hta -t .\_template\templates\default.html
-->
</a>
<a href="#" id="about">About
<!--
HTA Interactive Document
Author: Bert Tejeda
Version: $VERSION_STRING$
-->
</a>
<a href="#" id="console">Console</a>
<a href="#" id="elevate">Elevate</a>
</div>
<!-- Page Content -->
<div id="page-content-wrapper">
<div class="container-fluid">
$for(include-before)$
$include-before$
$endfor$
$if(title)$
<div id="$idprefix$header">
<h1 class="title">$title$</h1>
$if(subtitle)$
<span class="subtitle">$subtitle$|</span>
$endif$
$if(author)$
$for(author)$
<span class="author">$author.name$ $if(author.affiliation)$($author.affiliation$)$endif$|</span>
$endfor$
$endif$
$if(date)$<span class="date">$date$|</span>$endif$
</div>
$endif$
<hr class="style-eight">
$if(toc)$
<div id="$idprefix$TOC">
$toc$
</div>
$endif$
<div id="content">
$body$
</div>
$for(include-after)$
$include-after$
$endfor$
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- JavaScript -->
<script type="text/javascript">
// Instantiate Windows Script Host ShellObject
var WshShell = new ActiveXObject("WScript.Shell");
// Instantiate Scripting FileSystemObject
var FileManager = new ActiveXObject("Scripting.FileSystemObject");
var ForReading = 1
var ForWriting = 2
var ForAppending = 8
var CWD = window.document.location.pathname;
var date = new Date();
</script>
<script type="text/javascript">
function run_as_admin(){
hta_path = CWD.substring(1)
var objShell = new ActiveXObject("Shell.Application");
console.log("Relaunching with elevated privileges")
console.log("Process Path is C:\\Windows\\System32\\mshta.exe " + hta_path )
objShell.ShellExecute("C:\\Windows\\System32\\mshta.exe", hta_path, '', 'runas', 1)
self.close()
}
</script>
<script src="_common/assets/js/jquery.min.js"></script>
<script src="_common/assets/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="_common/assets/js/string.js"></script>
<script src="_common/assets/js/misc.js"></script>
<script src="_common/assets/js/web.js"></script>
<script src="_common/assets/js/shell.js"></script>
<script src="_common/assets/js/start.js"></script>
<script src="_common/assets/js/console.js"></script>
<script src="_common/assets/js/ui.js"></script>
<script src="_common/assets/js/docforms.js"></script>
<script src="_common/assets/js/debugging.js"></script>
</body>
</html>