-
Notifications
You must be signed in to change notification settings - Fork 3
/
QRcode.html
170 lines (143 loc) · 4.3 KB
/
QRcode.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="Image/logo.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code Generator </title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
</head>
<style type="text/css" media="screen">
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Quicksand;
font-family: 'Heebo', sans-serif;
}
body {
width: 100%;
height: 100vh;
background-color: #738bdc;
background-image: linear-gradient(315deg, #738bdc 0%, #48c3eb 74%);
display: flex;
justify-content: center;
align-items: center;
}
.main {
width: 60%;
height: 90%;
padding: 50px 15px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #fff;
box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
border-radius: 5px;
}
@media screen and (max-width: 563px) {
.main{
width: 80%;
}
}
.main p {
font-size: 36px;
margin: 10px;
}
.main .input {
width: 90%;
padding: 10px 25px;
border: 3px solid #9e9e9e;
outline: none;
margin: 15px 0 40px;
}
.main .input:focus {
border: 3px solid #439cfb;
}
.btn,
.input {
font-size: 1.1rem;
border-radius: 5px;
}
.main .btn {
width: 30%;
padding: 12px 0px;
outline: none;
border: none;
border-radius: 5px;
background: #439cfb;
color: #fff;
transition: 0.3s;
margin: 0 0 25px 0;
cursor: pointer;
min-width: 100px;
}
.main .minibtn {
width: 30%;
padding: 12px 0;
outline: none;
border: none;
border-radius: 5px;
background: #439cfb;
color: #fff;
transition: 0.3s;
margin: 0 0 25px 0;
cursor: pointer;
visibility: hidden;
font-weight: 500;
}
.main .code {
margin: 25px 0;
}
.main .btn:hover {
box-shadow: 0 10px 25px -10px #439cfb;
}
.main #note {
font-size: 1.2rem;
font-family: 'Courier New', Courier, monospace;
}
#toast {
position: absolute;
bottom: 0;
border-radius: 5px;
padding: 15px 50px;
background: #07f49e;
opacity: 0;
visibility: hidden;
box-shadow: 0 10px 25px -10px #07f49e;
transition: 0.3s;
}
#toast.show {
visibility: visible;
opacity: 1;
bottom: 50px;
}
</style>
<body>
<div class="main" data-aos="zoom-out-down">
<p> Generate QR Code </p>
<input type="text" class="input" value="" id="textvalue" placeholder="Paste Your Link Here">
<button class="btn">Generate</button>
<img src="Image/qr-code.png" alt="Your QR Code will be show here..." class="code" height="300" width="100">
<button class="minibtn" id="copy">Copy QR Code Link To Clipboard</button>
<!-- <div>Icons made by <a href="https://www.flaticon.com/authors/srip" title="srip">srip</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div> -->
<p id="note">Made with ❤️ by Random Script</p>
</div>
<div id="toast">Successfully Generated</div>
<!---- <a href="https://api.qrserver.com/v1/create-qr-code/?size=165x165&data=${data}" download="smile.jpg">Download image</a> -->
<!-- AOS -->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
offset: 150,
duration: 500,
});
</script>
</body>
</html>
<script src="Script.js/QRcode.js">
</script>