-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
106 lines (81 loc) · 3.22 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
<!--index.html-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Company Website</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- <link href="styling.css" rel="stylesheet"> -->
<link href='https://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link rel="stylesheet" href="/style.css">
<script src="/script.js"></script>
<script>
$(document).ready(function(){
$('#form1').on('submit', e => {
e.preventDefault();
$.post('/', $('#form1').serialize()).done(data => {
document.getElementById("linkBoard").innerHTML = data.shortURL;
});
});
});
</script>
</head>
<body>
<!--Create Nav bar-->
<nav role="navigation" class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#"><img src="images/weblogo.png" class="logo"></a><h4 style="color: azure">URL SHORTENER</h4>
<button type="button" class="navbar-toggle" data-target="#navbarCollapse" data-toggle="collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" id="navbarCollapse">
<ul class="nav navbar-nav">
<li onclick="window.location.reload(); return false;"><a href="#">Home</a></li>
<li><a onclick="aboutUs()">About</a></li>
</ul>
</div>
</div>
</nav>
<div id="a">
<div class="jumbotron">
<div class="container">
<h1>Looking For a Small URL?</h1><br>
<h2>URL Before..........</h2>
</div>
</div>
<!-- search form 6 -->
<div class="button_box2">
<form class="form-wrapper-2 cf" id="form1">
<input type="url" name="bigURL" placeholder="Paste URL..." required>
<button form="form1">Shorten</button>
</form>
</div>
<div class="jumbotron">
<div class="container">
<h2>URL After...........</h2>
</div>
</div>
<div class="button_box2">
<form class="form-wrapper-2 cf">
<h4 id="linkBoard">Your Shorted Link</h4>
</form>
</div>
<!--Create Footer-->
<div class="footer">
<div class="container">
<center><p>©ANURAG , KARTIK MEHMI , JATINDER KUMAR</p></center>
</div>
</div>
</div>
<div id="b"></div>
</body>
</html>