-
Notifications
You must be signed in to change notification settings - Fork 0
/
final_page.html
77 lines (62 loc) · 1.52 KB
/
final_page.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
<script src="/socket.io/socket.io.js"></script>
<script src="jquery-3.2.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
var socket=io();
socket.on('sendingurl',function(msg){
var obj=JSON.parse(msg);
/* obj.given has actual url
obj.short helps to create short url
shorturl="http://localhost:8080/s/" + obj.short
*/
var temp="http://localhost:8080/s/" + obj.short;
$(".t1").attr("href",temp);
$(".t1").text(temp);
$(".t2").text(obj.given);
});
</script>
<body>
<img src="images/logo.png">
<div id="text"> SHORT URL FOR:</div>
<br>
<div class="t2"> 123122445263t648350464985765243415w673849040872625456879304 </div>
<br><br><br>
<a class="t1" href="#" target="_blank">45698104756 </a>
</body>
<style>
body{
background-image: url(images/pink.jpg);
background-repeat:no-repeat;
background-size: 100%;
position: relative;
}
#text{
color:white;
margin: 60px 0px 0px 100px;
font-size: 50px;
padding:30px 0;
}
img{
height: 110px;
width:120px;
margin-top:40px;
margin-left:650px;
}
.t2{
color:purple;
background-color: rgba(255,255,255,0.5);
font-size: 50px;
margin-left: 200px;
margin-right:200px;
padding: 10px 20px;
overflow:hidden;
}
.t1{
color:deeppink;
font-size: 50px;
background-color: rgba(255,255,255,0.5);
margin-left: 200px;
margin-right:200px;
padding: 10px 20px;
}
</style>