-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
172 lines (157 loc) · 9.58 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>devBanner - Create Your Own devRant Banner!</title>
<!-- Responsive meta tags -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Browser color meta tags -->
<meta name="theme-color" content="#9e85a1"> <!-- Chrome, Firefox OS and Opera -->
<meta name="msapplication-navbutton-color" content="#9e85a1"> <!-- Windows Phone -->
<meta name="apple-mobile-web-app-status-bar-style" content="#9e85a1"> <!-- iOS Safari -->
<!-- Search engine meta tags -->
<meta name="description" content="devBanner creates your own personalized banner for you! Just type in your devRant username and your own subtext!">
<!-- Open Graph - Social media appearance -->
<meta property="og:title" content="devBanner - Create your own devRant Banner">
<meta property="og:image" content="res/images/db_icons/web_hi_res_512.png">
<meta property="og:description" content="devBanner creates your own personalized banner for you! Just type in your devRant username and your own subtext!">
<!-- Icons -->
<link rel="shortcut icon" type="image/x-icon" href="res/images/favicon.ico">
<link rel="apple-touch-icon" href="res/images/db_icons/web_hi_res_512.png" />
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" media="screen" href="lib/Bootstrap/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Comfortaa:400,700">
<link rel="stylesheet" type="text/css" media="screen" href="lib/AnimateCSS/animate.min.css" />
<link rel="stylesheet" type="text/css" media="screen" href="res/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" media="screen" href="res/css/spinner.css" />
</head>
<body>
<div class="content animated fadeIn">
<div id="header">
<span id="header-before" style="background-color: #9e85a1;"></span>
<img id="header-img" class="img-fluid" src="res/images/logo_transparent.png">
</div>
<div id="body" class="container">
<div id="generator" class="row">
<div class="col-md-8 col-centered">
<form id="generator-form">
<div class="form-group">
<label for="username">Username (not case-sensitive) :</label>
<input type="text" class="form-control clearable" name="username" id="username" placeholder="Enter your username..." autocomplete="off" required>
</div>
<div class="form-group">
<label for="subtext">Subtext :</label>
<input type="text" class="form-control clearable" name="subtext" id="subtext" placeholder="Enter your own subtext..." autocomplete="off" required>
</div>
<div class="form-row align-items-center mb-3">
<div class="col-sm-2 col-xs-3">
<label for="width">Width :</label>
</div>
<div class="col">
<input type="range" value="800" min="128" max="2048" class="form-control" name="width" id="width" required>
</div>
<div class="col-lg-2 col-md-2 col-sm-2 col-2 text-right">
<span id="widthText">800px</span>
</div>
</div>
<a id="downloadBtn" class="btn button-red float-right hidden-link disabled" download="banner.png" href="res/images/examplebanner.png">
<svg style="vertical-align: sub;" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
<path fill="#fff" d="M16 11h5l-9 10-9-10h5v-11h8v11zm1 11h-10v2h10v-2z" />
</svg>
Download
</a>
<button type="submit" class="btn button-red float-right" id="generateBtn">
<svg style="vertical-align: sub;" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24">
<path fill="#fff" d="M9 12l-4.463 4.969-4.537-4.969h3c0-4.97 4.03-9 9-9 2.395 0 4.565.942 6.179 2.468l-2.004 2.231c-1.081-1.05-2.553-1.699-4.175-1.699-3.309 0-6 2.691-6 6h3zm10.463-4.969l-4.463 4.969h3c0 3.309-2.691 6-6 6-1.623 0-3.094-.65-4.175-1.699l-2.004 2.231c1.613 1.526 3.784 2.468 6.179 2.468 4.97 0 9-4.03 9-9h3l-4.537-4.969z" />
</svg>
Generate
</button>
</form>
</div>
<div class="col-md-10 col-centered text-center">
<div id="result">
<h2 class="text-center">Your Generated Banner</h2>
<div id="banner-container" class="animated zoomIn">
<img width="800" height="192" class="img-fluid rounded" id="banner" src="res/images/examplebanner.png">
<div class="bannerOverlay errorOverlay rounded">
<p>
Couldn't generate banner.
<br />
Please try again later.
</p>
</div>
<div class="bannerOverlay forbiddenOverlay rounded">
<p>
The subtext contains
<br />
forbidden characters.
</p>
</div>
<div class="bannerOverlay spinnerOverlay rounded">
<div class="spinner">Loading...</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="footer" class="container">
<div id="text-links" class="text-center">
<!--<a href="https://devcredits.herokuapp.com/?title=devBanner&users=Kimmax,cozyplanes,Mitch528,tisbutabug,Skayo,skynet,JS96,dfox,trogus">Credits</a>-->
<a href="/credits.html" target="_blank">Credits</a>
</div>
<div id="icon-links" class="text-center">
<a href="https://github.com/devBanner/devBanner_Frontend" title="GitHub - Frontend" target="_blank" style="margin-left: 10px;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill="#C1C1CA" d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
</svg>
<sub>1</sub>
</a>
<a href="https://github.com/devBanner/devBanner" title="GitHub - Backend" target="_blank" style="margin-left: 10px;">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill="#C1C1CA" d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
</svg>
<sub>2</sub>
</a>
<a href="https://gitter.im/devbanner/Lobby" title="Gitter" target="_blank" style="margin-left: 10px;">
<svg aria-labelledby="simpleicons-gitter-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" height="24" width="24">
<path fill="#C1C1CA" d="M8.501 4.001H10.5V24H8.501V4.001zm6.999 0V24h-2V4.001h2zM3.5 0h2.001v15H3.5V0zm15 4.001h2V15h-2V4.001z" />
</svg>
</a>
</div>
</div>
</div>
<script type="text/javascript" src="lib/jQuery/jquery.min.js"></script>
<script type="text/javascript" src="lib/jQuery-Cookie/jquery.cookie.js"></script>
<script type="text/javascript" src="res/js/script.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#40415a",
"text": "#ffffff"
},
"button": {
"background": "#d55161",
"text": "#fff"
}
},
"theme": "classic"
})
});
</script>
<!-- Build instructions -->
<script type="text/javascript">
<!-- First alert -->
alert('\nANNOUNCEMENT\n\nHello, fellow devranters!\nI am here to deliver an important update.\nIf you came here to generate a new devBanner, I am sorry, but currently our servers are down.\nWe are looking for ways to host the project in another servers such as Azure.\nHowever, as we do not accept new generate requests, you should build the project yourself to create a banner.\nClick OK to see the instructions.\nWe are sorry for the inconvenience caused.\n');
<!-- Second alert -->
alert('\nHow to build and run the project\n\n1. Click the GitHub icon marked as 2 in the bottom of the website.\n2. Clone the repository with git.\n3. Install .NET Core libraries, as well as IIS. (You need Visual Studio to build the project and install dependencies.)\n4. Select the solution file, and edit the launchSettings.json file located under devRantBanner/Properties.\n5. Click the Green Play button in Visual Studio marked either as your browser name (e.g. Chrome) or IIS Express.\n6. Voila!\n');
<!-- Third alert -->
alert('\nIf you have any questions or suggestions, open an issue in the appropriate repository or drop me an email at [email protected] . \nThank you.\n');
</script>
</body>
</html>