Skip to content

Commit

Permalink
Merge pull request #1 from DilemmaGX/dev
Browse files Browse the repository at this point in the history
Change the core to custom-icon-badges
  • Loading branch information
DilemmaGX authored Dec 12, 2023
2 parents 16ae05a + 7b4e252 commit 1f5ff0d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 26 deletions.
35 changes: 10 additions & 25 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,22 @@
<script src="./src/static.js"></script>
</head>

<svg xmlns="http://www.w3.org/2000/svg" class="d-none">
<symbol id="check-circle-fill" viewBox="0 0 16 16">
<path
d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" />
</symbol>
<symbol id="info-fill" viewBox="0 0 16 16">
<path
d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z" />
</symbol>
<symbol id="exclamation-triangle-fill" viewBox="0 0 16 16">
<path
d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" />
</symbol>
</svg>

<body>
<div style="max-width: 600px; margin: auto; margin-top: 50px;">
<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/badges/shields"><img src="https://img.shields.io/badge/Core-Shields.io-0059ff"
alt="core - DilemmaGX"></a>
<a href="http://github.com/dilemmaGX"><img src="https://img.shields.io/badge/Author-DilemmaGX-0059ff"
<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"
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://img.shields.io/badge/Version-v1.2.0-0059ff" alt="Version - v1.2.0"></a>
src="https://custom-icon-badges.demolab.com/badge/Version-v1.2.0-0059ff" alt="Version - v1.3.0"></a>
</div>
<br>
<div id="alerts"></div>
Expand Down Expand Up @@ -67,23 +52,23 @@ <h1>Static Badge Maker</h1>
<br><br>
<div id="o_img" class="img">
<a href="http://github.com/DilemmaGX"><img
src="https://img.shields.io/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff"
src="https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff"
alt="Hello - World"></a>
</div><br>
<div id="o_url" class="url">
<pre><code>https://img.shields.io/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff</code></pre>
<pre><code>https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff</code></pre>
</div>
<div id="o_md" class="md">
<pre><code>[![Hello](https://img.shields.io/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff)](http://github.com/DilemmaGX)</code></pre>
<pre><code>[![Hello](https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff)](http://github.com/DilemmaGX)</code></pre>
</div>
<div id="o_rst" class="rst">
<pre><code>.. image:: https://img.shields.io/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff</code></pre>
<pre><code>.. image:: https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff</code></pre>
</div>
<div id="o_ad" class="ad">
<pre><code>http://github.com/dilemmagx[image:https://img.shields.io/badge/Hello-World-ff9900?style=flat&logo=github&logoColor=ffffff[Static Badge]]</code></pre>
<pre><code>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">
<pre><code>&lt;a href="http://github.com/DilemmaGX"&gt;&lt;img src="https://img.shields.io/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff" alt="Hello - World"&gt;&lt;/a&gt;</code></pre>
<pre><code>&lt;a href="http://github.com/DilemmaGX"&gt;&lt;img src="https://custom-icon-badges.demolab.com/badge/Hello-World-ff9900?style=flat&amp;logo=github&amp;logoColor=ffffff" alt="Hello - World"&gt;&lt;/a&gt;</code></pre>
</div>
<div class="btn-group" role="group" aria-label="Copy">
<button type="button" class="btn btn-outline-primary" onclick="copy('o_url')">Copy URL</button>
Expand Down
2 changes: 1 addition & 1 deletion src/static.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function g_url(left = "", right, color = "default", style = "flat", logo = "", logoColor = "default") {
var url = "https://img.shields.io/badge/";
var url = "https://custom-icon-badges.demolab.com/badge/";
left += "-" || "";
if (right != "") {
url += left + right + "-" + color + "?style=" + style;
Expand Down

0 comments on commit 1f5ff0d

Please sign in to comment.