-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (74 loc) · 3.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124578712-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-124578712-2');
</script>
<!-- End Google Analytics-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>EZ Git.io: custom GitHub shortlinks!</title>
<link rel="stylesheet" href="resources/bootstrap.min.css">
</head>
<body onpageshow="encodeURL()">
<div class="container" style="max-width: 540px">
<div class="page-header">
<h1 class="mt-4">EZ Git.io</h1>
<p class="lead">A simple custom URL shortener for GitHub links.</p>
</div>
<div class="form-group">
<textarea class="form-control" id="gitIoCode"
placeholder="Vanity URL Term (will appear after the / in git.io/)" oninput="encodeURL()" type="text" autocorrect="off" autocapitalize="none"></textarea>
</div>
<div class="form-group">
<textarea class="form-control" id="githubURL" placeholder="Original GitHub URL (https://github.com/...)"
oninput="toggleRequestButton()" type="text" autocorrect="off" autocapitalize="none"></textarea>
</div>
<div class="form-group d-flex justify-content-center">
<button class="centeredObject btn btn-info" id="requestGitIo" disabled>Request Shortlink</button>
</div>
<div class="card border-secondary mb-3 bg-light">
<div class="card-body">
<p class="card-text text-muted" id="output">Please enter a Vanity URL term.</p>
</div>
</div>
</div>
</div>
<footer class="footer mb-3">
<div class="container text-center">
<span class="text-muted">
© 2018 <a href="https://nick.marcopo.li/">Nick Marcopoli</a> - <a
href="https://git.io/EZGitVanity">View Source on GitHub</a>
</span>
</div>
</footer>
</body>
<!-- Modal -->
<div class="modal fade" id="invalidModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Invalid GitHub URL</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Please format your original GitHub URL using http:// or https://, and make sure it uses a TLD (like
.com).
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!--Scripts at bottom for faster loading-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="./resources/main.js"></script>
<script src="./resources/bootstrap.min.js"></script>
</html>