-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (31 loc) · 1.43 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
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="color-scheme" content="dark">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="favicon.png" type="image/x-icon" />
<!-- <link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css"> -->
<!-- <script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/js-yaml/dist/js-yaml.min.js"></script> -->
<script src="./libs/web-components.min.js"></script>
<script src="./libs/js-yaml.min.js"></script>
<script src="script.js" defer></script>
<title>StreamElements API</title>
</head>
<body>
<div id="elements-content" style="height: 100%;">
<elements-api style="height: 100%;" apiDescriptionUrl="api.yaml" router="hash" hideSchemas="true" />
</div>
<!-- Search button and popup -->
<button id="searchTerm" class="searchTerm" placeholder="Search" onclick="showSearchPopup()">🔎Search</button>
<div id="searchPopup" class="searchPopup">
<div class="searchPopupContent">
<button id="closeButton" class="closeButton">x</button>
<input type="text" id="popupSearchTerm" class="popupSearchTerm" placeholder="Search" oninput="performSearch()" />
<div id="popupResults" class="popupResults"></div>
</div>
</div>
</body>
</html>