Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 96aac82

Browse files
author
sanex3339
committed
Added sponsor button
1 parent 56566f3 commit 96aac82

2 files changed

Lines changed: 59 additions & 4 deletions

File tree

App/styles/main.less

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,50 @@
55
#GithubBadges, #DonateBadges {
66
display: flex;
77

8+
& #donate {
9+
position: relative;
10+
display: inline-block;
11+
margin-left: 10px;
12+
padding: 3px 10px;
13+
font-size: 14px;
14+
line-height: 22px;
15+
font-weight: 600;
16+
color: #24292e;
17+
background-color: #eee;
18+
background-image: linear-gradient(to bottom,#fcfcfc 0,#eee 100%);
19+
white-space: nowrap;
20+
vertical-align: middle;
21+
cursor: pointer;
22+
user-select: none;
23+
background-repeat: repeat-x;
24+
background-position: -1px -1px;
25+
background-size: 110% 110%;
26+
border: 1px solid rgba(27,31,35,.2);
27+
border-radius: .25em;
28+
29+
&:hover {
30+
background-color: #ddd;
31+
background-image: linear-gradient(to bottom,#eee 0,#ddd 100%);
32+
border-color: #ccc;
33+
}
34+
35+
&:active {
36+
background-image: none;
37+
background-color: #dcdcdc;
38+
border-color: #b5b5b5;
39+
box-shadow: inset 0 2px 4px rgba(0,0,0,.15);
40+
}
41+
42+
& #donate-heart {
43+
display: inline-block;
44+
vertical-align: middle;
45+
color: #ea4aaa;
46+
fill: currentColor;
47+
margin-right: 2px;
48+
margin-bottom: 2px;
49+
}
50+
}
51+
852
@media only screen and (max-width: @largestMobileScreen) {
953
& {
1054
justify-content: center;
@@ -79,4 +123,4 @@ pre#Html {
79123
& code {
80124
width: 100%;
81125
}
82-
}
126+
}

templates/index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
content="JavaScript Obfuscator is a free online tool that obfuscates your source code, preventing it from being stolen and used without permission.">
99
<meta name="Keywords" content="obfuscator, javascript obfuscator, javascript obfuscator tool, obfuscation js, obfuscate tool, обфускатор, code obfuscator, obfuscator online, uglify, minify, js obfuscator, obfuscator io, obfuscator.io, obfuscate, protection">
1010

11-
<link rel="stylesheet" href="/static/dist/stylesheets/main.css" media="screen" title="no title">
11+
<link rel="stylesheet" href="/static/dist/stylesheets/bundle.css" media="screen" title="no title">
1212

1313
<!-- Global site tag (gtag.js) - Google Analytics -->
1414
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116652505-1"></script>
@@ -54,10 +54,10 @@ <h1>JavaScript Obfuscator Tool</h1>
5454
</p>
5555
<div id="GithubBadges">
5656
<iframe
57-
src="https://ghbtns.com/github-btn.html?user=javascript-obfuscator&repo=javascript-obfuscator&type=star&size=large"
57+
src="https://ghbtns.com/github-btn.html?user=javascript-obfuscator&repo=javascript-obfuscator&type=star&size=large&count=true"
5858
frameborder="0"
5959
scrolling="0"
60-
width="80px"
60+
width="150px"
6161
height="30px"
6262
></iframe>
6363
<iframe
@@ -67,6 +67,17 @@ <h1>JavaScript Obfuscator Tool</h1>
6767
width="90px"
6868
height="30px"
6969
></iframe>
70+
<a
71+
id="donate"
72+
href="#DonateBadges"
73+
title="Sponsor javascript-obfuscator/javascript-obfuscator"
74+
role="button"
75+
>
76+
<svg id="donate-heart" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true">
77+
<path fill-rule="evenodd" d="M8.727 3C7.091 3 6.001 4.65 6.001 4.65S4.909 3 3.273 3C1.636 3 0 4.1 0 6.3 0 9.6 6 14 6 14s6-4.4 6-7.7C12 4.1 10.364 3 8.727 3z"></path>
78+
</svg>
79+
Sponsor
80+
</a>
7081
</div>
7182
</div>
7283
</div>

0 commit comments

Comments
 (0)