forked from IonicaBizau/kindly-license
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (93 loc) · 4.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>The KINDLY License</title>
<link href='http://fonts.googleapis.com/css?family=Ubuntu+Mono:700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/2.2.2/octicons.min.css" type="text/css" media="screen" charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/urljs/1.1.0/url.min.js"></script>
<style>
pre {
font-family: 'Ubuntu Mono', monospace;
font-weight: bold;
margin: 80px auto;
padding: 18px;
border-radius: 4px;
width: 625px;
background-color: white;
color: #333;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.11);
border: 1px solid rgb(236, 236, 236);
}
.footer {
text-align: center;
position: fixed;
left: 0;
right: 0;
bottom: 25px;
font-family: "Open Sans", sans-serif;
font-weight: 400;
color: #333;
}
.footer a {
text-decoration: none;
color: #111;
font-weight: bold;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<pre id="license">The KINDLY License
Copyright (c) <year> <author>
You have the permission to use this software, read its source code, modify and
redistribute it under the following terms:
- if you want to use this software or include parts of its code in a
closed-source or commercial project you should kindly ask the
author (via a private message or email) and get a positive answer
- this license should be included in the modified versions of this software
- in case of redistributing modified copies, you are encouraged to clearly
indicate that the copies are based on this work
- if you think that your redistributed copy is awesome, you are encouraged to
show the author of this software what you did and how you helped the others
You are free to install and use this software on as many machines as you want,
free of charge, making sure you met the terms above.
You are encouraged to kindly support the software and its author by:
- sharing his/her work
- reporting issues/bugs and asking for feature requests
- donating money or any other things that can help the author
- contribute on the software code by fixing bugs and adding features
</pre>
<script type="text/javascript">
(function () {
var pre = document.getElementById("license")
, content = pre.innerHTML
, author = Url.queryString("author")
, year = Url.queryString("year")
, thisYear = new Date().getFullYear()
;
if (year && /^(1|2)[0-9][0-9][0-9]$/.test(year)) {
if (year < thisYear) {
year = year + "-" + thisYear;
}
} else {
year = null;
}
if (year) {
content = content.replace("<year>", year);
}
if (author) {
author = author.replace(/</g, "<").replace(/>/g, ">");
content = content.replace("<author>", author);
}
pre.innerHTML = content;
})();
</script>
<div class="footer">
<span class="octicon octicon-pencil"></span> with <span class="octicon octicon-heart"></span> by <a href="https://github.com/IonicaBizau">@IonicaBizau</a> | Contribute on <a href="https://github.com/IonicaBizau/kindly-license"><span class="octicon octicon-octoface"></span> GitHub</a>.
</div>
</body>
</html>