-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
119 lines (118 loc) · 7.81 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
110
111
112
113
114
115
116
117
118
119
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="./src/bs.css" rel="stylesheet">
<link href="./src/docs.css" rel="stylesheet">
<title>Shields-Maker</title>
<script src="./src/bs.js"></script>
<script src="./src/static.js"></script>
</head>
<body>
<div class="row" style="margin: auto;">
<div class="col col-lg-7">
<div style="max-width: 700px; margin: auto; margin-top: 15px;">
<div align="middle">
<h1>Static Badge Maker</h1>
<a href="http://github.com/dilemmaGX/shields-maker"><img alt="GitHub License"
src="https://custom-icon-badges.demolab.com/badge/License-GPL--3.0-orange.svg?logo=law"></a>
<br>
<a href="https://github.com/DenverCoder1/custom-icon-badges"><img
src="https://custom-icon-badges.demolab.com/badge/Core-custom--icon--badges-0059ff?logo=cpu"
alt="core"></a>
<a href="http://github.com/dilemmaGX"><img
src="https://custom-icon-badges.demolab.com/badge/Author-DilemmaGX-0059ff?logo=person"
alt="Author - DilemmaGX"></a>
<a href="http://github.com/dilemmaGX/shields-maker"><img
src="https://custom-icon-badges.demolab.com/badge/Repo-Shields--maker-0059ff.svg?logo=repo"
alt="Contribute - Shields -- maker"></a>
<a href="http://github.com/dilemmaGX/shields-maker"><img
src="https://custom-icon-badges.demolab.com/badge/Version-v1.3.3-0059ff?logo=code"
alt="Version - v1.3.3"></a>
</div>
<br>
<div id="alerts"></div>
<div class="input-group input-group">
<select style="width: 20%;" id="source" class="form-select" aria-label="Default select example">
<option value="default" selected>Default</option>
<option value="feather">Feather</option>
</select>
<input id="logo" style="width: 20%" type="text" class="form-control" placeholder="Logo">
<input id="left" style="width: 20%" type="text" class="form-control" placeholder="Left Text">
<input id="right" style="width: 40%" type="text" class="form-control" placeholder="Right Text">
</div>
<br>
<div class="input-group mb-3">
<select style="width: 25%;" id="style" class="form-select" aria-label="Default select example">
<option value="flat" selected>Flat</option>
<option value="flat-square">Flat-Square</option>
<option value="plastic">Plastic</option>
<option value="for-the-badge">For-The-Badge</option>
<option value="social">Social</option>
</select>
<input id="logoColor" style="width: 25%" type="text" class="form-control" placeholder="Logo Color">
<input id="color" style="width: 25%" type="text" class="form-control" placeholder="Theme Color">
<input id="link" style="width: 25%" type="text" class="form-control" placeholder="URL">
</div>
<div align="middle">
<button id="g_button" type="button" class="btn btn-primary" style="width: 150px; " onclick="auto()"
disabled>Generate</button>
<br><br>
<div id="o_img" class="img">
<a href="http://github.com/DilemmaGX"><img
src="https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff"
alt="Hello - World"></a>
</div><br>
<div class="btn-group" role="group" aria-label="Copy">
<button type="button" class="btn btn-outline-primary" onclick="copy('o_url')">Copy URL</button>
<button type="button" class="btn btn-outline-primary" onclick="copy('o_md')">Copy MD</button>
<button type="button" class="btn btn-outline-primary" onclick="copy('o_rst')">Copy rSt</button>
<button type="button" class="btn btn-outline-primary" onclick="copy('o_ad')">Copy
AsciiDoc</button>
<button type="button" class="btn btn-outline-primary" onclick="copy('o_html')">Copy
HTML</button>
<button type="button" class="btn btn-outline-primary" onclick="copy('o_bbc')">Copy BBCode</button>
</div>
<br><br>
<div id="o_url" class="url">
<h4>URL</h4>
<pre><code style="white-space: pre-wrap;word-wrap: break-word;">https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff</code></pre>
</div>
<div id="o_md" class="md">
<h4>Markdown</h4>
<pre><code style="white-space: pre-wrap;word-wrap: break-word;">[![Hello](https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff)](http://github.com/DilemmaGX)</code></pre>
</div>
<div id="o_rst" class="rst">
<h4>rSt</h4>
<pre><code style="white-space: pre-wrap;word-wrap: break-word;">.. image:: https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff</code></pre>
</div>
<div id="o_ad" class="ad">
<h4>AsciiDoc</h4>
<pre><code style="white-space: pre-wrap;word-wrap: break-word;">http://github.com/dilemmagx[image:https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff[Static Badge]]</code></pre>
</div>
<div id="o_html" class="html">
<h4>HTML</h4>
<pre><code style="white-space: pre-wrap;word-wrap: break-word;"><a href="http://github.com/DilemmaGX"><img src="https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff" alt="Hello - World"></a></code></pre>
</div>
<div id="o_bbc" class="bbc">
<h4>BBCode</h4>
<pre><code style="white-space: pre-wrap;word-wrap: break-word;">[url=http://github.com/DilemmaGX][img]https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=white[/img][/url]</code></pre>
</div>
</div>
</div>
</div>
<div class="col col-lg-4">
<iframe src="./icons.html" height="100%" width="100%" style="margin-top: 15px;"></iframe>
</div>
</div>
<script>
var inputElement = document.getElementById("right");
var buttonElement = document.getElementById("g_button");
inputElement.addEventListener("input", function () {
if (inputElement.value === "") {
buttonElement.setAttribute("disabled", "");
} else {
buttonElement.removeAttribute("disabled");
}
});
</script>
</body>