-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
227 lines (201 loc) · 5.62 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<html>
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
.input-field #last_name{
border-bottom:1px solid;
height:50%;
padding:0;
margin-top:15px;
transition-duration:0.5s
}
.input-field-search{
width:0px;
transition-duration:0.5s;
float:right;
}
.brand-logo{
margin-left:1%;
transition-duration:1s;
}
.main{
width:80%;
height:20%;
background-color:#EEE;
margin-left:10%;
margin-top:2%;
padding-top:2%;
}
.tag{
width:7.5%;
margin-left:3%;
}
.link{
width:25%;
margin-left:3%;
margin-right:3%;
}
.time{
width:20%;
margin-left:3%;
margin-right:3%;
color:#9e9e9e;
}
.password{
width:7.5%;
}
.share{
width:15%;
margin-left:3%;
margin-right:3%;
padding-top:10px;
}
.main2{
width: 80%;
background-color:#EEE;
margin-left:10%;
margin-top:2%;
padding-top:2%
}
.displaylink{
background-color: #0277bd;
width:90%;
margin-left:5%;
margin-right:5%;
}
.displaylink2{
color: #ffffff !important;
text-transform: none;
}
.displaylink3{
color: #ffffff !important;
display: none !important;
text-transform: none;
}
.card-title{
padding:1%;
}
.card-action{
margin-bottom:2%;
}
.linkcontainer{
margin-bottom:2%;
padding-bottom:2%;
}
#passwordlink{
width: 35%;
margin-left: 30%;
}
</style>
</head>
<body>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
<nav>
<div class="nav-wrapper blue darken-3 hide-on-med-and-down">
<a href="#!" class="brand-logo">ShareMe</a>
<ul class="right ">
<li><div class="input-field input-field-search col s2" >
<input id="last_name" placeholder="Search" type="text" class="validate" >
</div></li>
<li><a onclick="popup();"><i class="material-icons">search</i></a></li>
</ul>
</div><div class="nav-wrapper blue darken-3 hide-on-large-only">
<a href="#!" class="brand-logo" style="left:20%">ShareMe</a>
<ul class="right ">
<li><div class="input-field search input-field-mob col s2" >
<input id="last_name" placeholder="Search" type="text" class="validate">
</div></li>
<li><a onclick="popupmob();"><i class="material-icons">search</i></a></li>
</ul>
</div>
</nav>
<div class="main">
<div class="input-field tag col s2 left">
<input type="text" id="autocomplete-input" class="autocomplete"/>
<label for="autocomplete-input" id="tag">Tag</label>
</div>
<div class="input-field link col s2 left">
<input id="last_name1" type="text" class="validate"/>
<label for="last_name1" >Link</label>
</div>
<div class="input-field password col s2 left ">
<input id="password" type="password" class="validate">
<label for="password">Password</label>
</div>
<div class="input-field time col s2 left">
<select>
<option value="" disabled selected>Select Expire time for link</option>
<option value="1">1hr</option>
<option value="2">1 Day</option>
<option value="3">1 week</option>
<option value="3">1 month</option>
</select>
</div>
<div class="input-field share col s2 left">
<button class="btn wave s-effect waves-light right" type="submit" name="action" id="sharebutton" onclick="add();">Share
<i class="material-icons right">share</i>
</button>
</div>
</div>
<div class="main2">
<div class="col s12 m10 linkcontainer" id="linkcontainer" >
<div class="card displaylink">
<span class="card-title">Tag</span>
<div class="card-action ">
<u><a class="displaylink2" href="#">This is a link</a></u>
</div>
</div><div class="card displaylink">
<span class="card-title">Tag</span>
<div class="card-action ">
<u><a class="displaylink3" href="#">This is a link</a></u>
<div class="row">
<div class="input-field col s12 " id="passwordlink">
<input type="password" class="validate">
<label for="password">ENTER THE PASSWORD TO UNLOCK THE LINK</label>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
<script>
var x=1;
var y=1;
function popup(){
if(x==1){
$(".input-field-search").css("width","200%");
document.getElementById("last_name").focus();
//$(".brand-logo-mob").hide();
x=0;
}
else{
$(".input-field-search").css("width","0%");
//$(".brand-logo-mob").show();
x=1;}
}
function popupmob(){
if(y==1){
$(".input-field-mob").css("width","70%");
document.getElementById("last_name").focus();
y=0;
}
else{
$(".input-field-mob").css("width","0%");
y=1;}
}
$(document).ready(function() {
$('select').material_select();
});
</script>
</body>
</html>