-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
banecss.html
180 lines (156 loc) · 7.48 KB
/
banecss.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JSVDE0W9KL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JSVDE0W9KL');
</script>
<meta charset="UTF-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="./css/banecss.css">
<link rel="icon" href="./files/logo.ico">
<link scrt="icon" href="./files/logo.js">
<title>Bane // CSS</title>
</head>
<body>
<div class="header">
<div class="logo">
<img class="logoImg" src="./files/logo.png" style="width:40px; height: 40px;">
<h1 style="line-height: 0.3;">BaneCSS</h1>
<a href="./index.html">
<span class="linkSpan"></span>
</a>
</div>
<h4 class="NavBar">
<a id="contact" href="https://twitter.com/Jordy_3D">Twitter</a>
<a id="support" href="https://github.com/Jordy3D/Jordy3D.github.io/issues">GitHub</a>
</h4>
</div>
<div class="crt">
<div class="scan"></div>
</div>
<div class="content">
<h1 class="separator-title">//Usage</h1>
<div class="section">
<div class="section-content">
<p>In order to download and use these styles, you need to install Stylus first.<br>Here is a link to each of the extensions, as well as the GitHub project.</p>
<div class="stylus-button-holder">
<a id="chrome" href="https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en">Chrome</a>
<a id="firefox" href="https://addons.mozilla.org/en-US/firefox/addon/styl-us/">Firefox</a>
<a id="opera" href="https://addons.opera.com/en/extensions/details/stylus/">Opera</a>
<a id="github-stylus" href="https://github.com/openstyles/stylus">GitHub</a>
</div>
<p>I would prefer that you get the styles from UserStyles when you can, as it provides me with analytics about how often it's been downloaded and the like, but if the site is down, the direct method is still available to you.</p>
</div>
</div>
<h1 class="separatorTitle">//Styles</h1>
<div class="styleListContainer">
<div class="column" id="styleCardContainer">
<!--
This is where the cards go!
-->
</div>
</div>
<!--
This is the template card!
-->
<div class="styleCard" id="styleCardTemplate" style="display:none">
<div class="styleData" style="background-image: url(%imageURL%); background-position: center; background-size: cover;">
<div class="styleBGFilter">
<div class="styleImageHolder">
<img loading="lazy" src="%imageURL%"></img>
</div>
<div class="styleInfo">
<h4 class="styleTitle">%title%</h4>
<h6 class="styleVersion">%version%</h6>
<p>%desc%</p>
<div class="styleButton">
<a href="%url1%" id="userstylelink">Get style from Userstyles</a>
<a href="%url2%" id="banestylelink" target="_blank" style="color: #3a9cd6;">Get style directly</a>
</div>
</div>
</div>
</div>
</div>
<h1 class="separator-title">//In Progress</h1>
<div class="section">
<div class="section-content">
<p>There's a number of styles I currently have in progress. <br><br>When/if they go up depends on a number of factors. <br>If you have a style you want to see made, or one of mine fast-tracked, drop an Issue at the GitHub link in the header.
Supporting below might help too...<br> <br>The main ones in progress at the moment are:
<ul id="inProgress">
<li>> eBay</li>
<li>> Etsy</li>
<li>> Gumtree</li>
<li>> Microsoft's various sites</li>
<li>> Domino's</li>
<li>> Trakt</li>
<li>> EBGames/Zing</li>
<li>> Unity's various sites</li>
<li>> Vimeo</li>
<li>> Patreon</li>
<li>> Menulog</li>
<li>> SoundCloud</li>
<li>> YouTube Studio</li>
<li>> Commbank</li>
<li>> PayPal</li>
<li>> IMDb</li>
<li>> The Loop</li>
</ul>
</p>
</div>
</div>
<h1 class="separator-title">//Support</h1>
<div class="section">
<div class="section-content">
<p>This isn't necessary, but any support would be greatly appreciated!</p>
<div class="supportLinks">
<a href="https://ko-fi.com/jordy3d">Ko-Fi</a>
<a href="https://www.buymeacoffee.com/jordy3d">Buymeacoffee</a>
</div>
</div>
</div>
</div>
</body>
<script>
// Get the template and container
let styleCardTemplate = $("#styleCardTemplate");
let styleCardContainer = $("#styleCardContainer");
// Get the information from the JSON catalogue
let styleInfoJson = $.getJSON("https://raw.githubusercontent.com/Jordy3D/Jordy3D.github.io/master/files/css/stylecatalogue.json", function(result) {
//let styleInfoJson = $.getJSON("./files/css/stylecatalogue.json", function(result) {
for (i = 0; i < result.styleList.length; i++) {
// Clone the template
let clone = styleCardTemplate.clone();
// Attach the clone to the container
clone.appendTo(styleCardContainer);
styleCardTemplate.id = result.styleList[i].title;
$("#styleCardTemplate").id = "FUCK";
// Set up the clone's info from the JSON catalogue
let clonesHtml = clone.html();
clonesHtml.id = "#test";
clonesHtml = clonesHtml.replace("%title%", result.styleList[i].title);
clonesHtml = clonesHtml.replace("%version%", result.styleList[i].version);
clonesHtml = clonesHtml.replace("%desc%", result.styleList[i].desc);
// I don't get why this doesn't work...
if (result.styleList[i].url1 != "")
clonesHtml = clonesHtml.replace("%url1%", result.styleList[i].url1);
else
clone.find("#userstylelink").remove();
clonesHtml = clonesHtml.replace("%url2%", result.styleList[i].url2);
clonesHtml = clonesHtml.replace("%imageURL%", result.styleList[i].imageURL);
clonesHtml = clonesHtml.replace("%imageURL%", result.styleList[i].imageURL);
// Yes, this second one is actually necessary
// Apply the info changes
clone.html(clonesHtml);
// Disable the hidden value of the template
clone.show();
}
});
// Remove the unneeded template
styleCardTemplate.remove();
</script>
</html>