-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (97 loc) · 4.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- icon -->
<meta name="apple-mobile-web-app-title" content="TweakList-UI">
<link rel="apple-touch-icon" href="https://avatars.githubusercontent.com/u/82734468?s=128">
<link rel="image_src" href="https://avatars.githubusercontent.com/u/82734468?s=256">
<link id="icon60" rel="apple-touch-icon" href="https://avatars.githubusercontent.com/u/82734468?s=60">
<link id="icon76" rel="apple-touch-icon" sizes="76x76" href="https://avatars.githubusercontent.com/u/82734468?s=76">
<link id="icon120" rel="apple-touch-icon" sizes="120x120" href="https://avatars.githubusercontent.com/u/82734468?s=120">
<link id="icon152" rel="apple-touch-icon" sizes="152x152" href="https://avatars.githubusercontent.com/u/82734468?s=152">
<!-- social embeds -->
<meta property="og:title" content="TweakList-UI">
<meta property="og:description" content="user interface for tweaklist">
<meta name="description" content="user interface for tweaklist">
<meta name="twitter:description" content="user interface for tweaklist">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://github.com/couleur-tweak-tips/TweakList-UI/releases/download/readme-assets/tlui.webp">
<meta property="og:image" content="https://github.com/couleur-tweak-tips/TweakList-UI/releases/download/readme-assets/tlui.webp">
<meta property="og:url" content="https://tweaklist.ctt.cx/">
<meta property="og:type" content="website">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="manifest" href="pwa-manifest.json">
<link rel="stylesheet" href="styles.css">
<title>TweakList-UI</title>
<!--
notable global variables:
conf holds the user defined parameters, loaded from localStorage at page load
writeParameter and getParameter always update conf and localStorage in tandem
-->
<script src="storageManager.js"></script>
</head>
<body>
<div class="nav">
<a href="https://ctt.cx" target="_blank">
<img
src="https://avatars.githubusercontent.com/u/82734468?s=38"
style="width: 38px; height: 38px; border-radius: 100%"
alt="CTT Logo"
>
</a>
<a
style="padding-right: 0"
href="https://github.com/couleur-tweak-tips/TweakList"
target="_blank"
class="nav-link"
title="Repository for the source code of the PowerShell module this website helps you generate commands of"
>TweakList</a>
<span style="margin: 0;">–</span>
<a
style="padding-left: 0" href="https://github.com/couleur-tweak-tips/TweakList-UI"
target="_blank"
class="nav-link"
title="Repository for the source code of this website"
>UI</a>
</div> <!--nav-->
<div id="export"></div>
<div id="container">
<div id="functions">
<h2>Functions</h2>
<ul id="functions-list"><!--automatically generated --></ul>
<button style="align-self: center; width: auto" onclick="exportCode()">Export</button>
</div>
<div id="parameters">
<h2>Parameters</h2>
<div id="parameters-pane"><!--automatically generated --></div>
</div>
</div>
<span id="hidden-buttons">
<a target="_blank" href='https://raw.githubusercontent.com/couleur-tweak-tips/TweakList/master/Manifests.json'>view manifest</a>
<button
onclick="if (confirm('you sure you wanna nuke all of your settings?\n\nthere is no coming back')){localStorage.clear(); location.reload();}"
>reset conf
</button>
</span>
<script src="main.js"></script>
<script>
let tlui = {};
const fetch_error = "Failed fetching the latest version of the TweakList manifest\n\nPlease open the console report this:\n\nhttps://github.com/couleur-tweak-tips/TweakList"
fetch('https://raw.githubusercontent.com/couleur-tweak-tips/TweakList/master/Manifests.json')
.catch(error => {
alert(fetch_error)
console.log(fetch_error)
})
.then(response => {
if (!response.ok) {
throw new Error(fetch_error);
}
return response.json();
})
.then(data => {
tlui = data
loadList(tlui);
})
</script>
</body>
</html>