-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditor.html
More file actions
152 lines (131 loc) · 3.62 KB
/
Copy patheditor.html
File metadata and controls
152 lines (131 loc) · 3.62 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Webresource Editor</title>
<!-- Include Monaco editor's CSS -->
<link rel="stylesheet" href="https://unpkg.com/monaco-editor@0.37.1/min/vs/editor/editor.main.css" />
<style>
html,
body {
height: 100%;
background-color: black;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
body {
padding: 0;
margin: 0;
overflow: hidden;
}
#editorContainer {
height: 100vh;
}
#notification {
padding: 10px;
width: 100%;
}
.error {
background-color: rgb(252, 194, 194)
/*light red*/
}
.success {
background-color: rgb(223, 246, 221)
}
.info {
background-color: lightgrey;
}
#webresourceslist {
list-style-type: none;
padding: 0;
margin-top: 10;
overflow: auto;
height: 90vh;
}
#webresourceslist li a {
padding: 12px;
text-decoration: none;
display: flex;
color: white;
background-color: rgb(27, 27, 27);
}
#webresourceslist li a:hover {
background-color: #333333;
}
#header {
display: none;
position: sticky;
top: 0;
}
.name,
.displayname {
flex-direction: row;
color: white;
flex: 0 0 37.5%;
}
.modifiedon,
.type {
flex-direction: row;
color: white;
flex: 0 0 12.5%;
}
input[type="search"] {
background-color: #191919;
border: none;
border-radius: 4px;
color: #fff;
padding: 12px;
margin-right: 10px;
width: 50%;
}
button#search {
background-color: #191919;
border: none;
border-radius: 4px;
color: #fff;
padding: 12px;
cursor: pointer;
}
button#search:hover {
background-color: #282828;
}
.spinner {
display: inline-block;
width: 10px;
height: 10px;
border: 2px solid #fff;
border-top-color: transparent;
border-radius: 50%;
animation: spin 0.8s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body onload="onLoad()">
<div id="notification"></div>
<div id="editorContainer"></div>
<div id="searchContainer">
<input id="searchInput" placeholder="Enter name of webresource" type="search" />
<button id="search" onClick="search()">
Search
<span id="spinner" class="spinner" style="display:none;"></span>
</button>
<ul id="webresourceslist">
<li id="header">
<a href="#" style="background-color: #2f2f2f;">
<div class="name">Name</div>
<div class="displayname">Display Name</div>
<div class="type">Type</div>
<div class="modifiedon">Modified On</div>
</a>
</li>
</ul>
</div>
<script src="https://unpkg.com/monaco-editor@0.37.1/min/vs/loader.js"></script>
<script src="/WebResources/web_editor.js"></script>
</body>
</html>