-
Notifications
You must be signed in to change notification settings - Fork 0
/
clicks_counter.php
79 lines (76 loc) · 3.37 KB
/
clicks_counter.php
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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>URL Shortener</title>
<meta content="small-url" name="keywords">
<meta content="Small-URL is a url shortener to reduce a long link. Use our tool to shorten links for free and then share them anywhere" name="description">
<meta property="og:url" content="https://www.small-url.tk/">
<meta property="og:title" content="Small-URL - URL Shortener">
<meta property="og:type" content="website">
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style1.css">
</head>
<body style="background-color: #e6ebff">
<!--/ Nav Start /-->
<nav class="navbar navbar-b navbar-trans navbar-expand-md fixed-top" id="mainNav">
<div class="container block">
<a class="navbar-brand js-scroll" href="/">Small URL</a>
<button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarDefault"
aria-controls="navbarDefault" aria-expanded="false" aria-label="Toggle navigation">
<span></span>
<span></span>
<span></span>
</button>
<div class="navbar-collapse collapse justify-content-end" id="navbarDefault">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link js-scroll" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll active" href="clicks_counter.php">Clicks-Counter</a>
</li>
</ul>
</div>
</div>
</nav>
<div style="margin-bottom: 60px"></div>
<!--/ Nav End /-->
<div class="container pt-4 block">
<!-- <div class="row mb-3"><div class="col-sm-12 text-center text-primary"><h1 style="font-size: 50px"><a href="/">Small URL</a></h1></div></div> -->
<div class="jumbotron bg-light shadow p-5 rounded main">
<form id='login_form'>
<h4 class="text-center mb-3">Enter the URL to check how many clicks it has received</h4>
<div class="form-group">
<input type="text" class="form-control" placeholder="Enter URL" id="url" name="url">
<p class="mt-2">Example: https://small-url.tk/1</p>
</div>
<div align="center" class="form-group">
<button type="submit" class="btn btn-primary mr-2">Check Clicks</button>
</div>
</form>
<br/>
<div class="list-group">
<div class="list-group-item bg-warning mb-2 text-center d-none" id="message"></div>
</div>
<div class="list-group">
<div class="list-group-item" id="count" style="display: none;"></div>
</div>
</div>
</div>
<script type="text/javascript" src="js/clicks_counter.js"></script>
</body>
</html>