-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.php
116 lines (106 loc) · 2.03 KB
/
create.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
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
<html>
<head>
<meta name="description" content="QRCode scanner" />
<meta name="keywords" content="qrcode,scanner,barcode, javascript" />
<meta name="language" content="English" />
<meta name="Revisit-After" content="1 Days"/>
<meta name="robots" content="index, follow"/>
<title>Web QR</title>
<style type="text/css">
body{
width:100%;
text-align:center;
}
img{
border:0;
}
#main{
margin: 15px auto;
background:white;
overflow: auto;
width: 750px;
}
#header{
background:white;
}
#mainbody{
background: white;
width:100%;
}
#footer{
background:white;
}
#mp1{
text-align:center;
font-size:35px;
}
#header ul{
margin-bottom:0;
margin-right:40px;
}
#header li{
display:inline;
padding-right: 0.5em;
padding-left: 0.5em;
font-weight: bold;
border-right: 1px solid #333333;
}
#header li a{
text-decoration: none;
color: black;
}
p.quote1{
font-weight:bold;
margin-left:10%;
margin-right:10%;
color: black;
}
a{
color: black;
}
div.button{
border: 2px solid #333333;;
border-radius:15px;
width:100px;
cursor:pointer;
font-weight:bold;
}
</style>
<script type="text/javascript">
function create()
{
var data=document.getElementById("data").value;
document.getElementById("qrimage").innerHTML="<img src='https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl="+encodeURIComponent(data)+"'/>";
}
</script>
</head>
<body >
<div id="main">
<div id="header">
<p id="mp1">
QR Code scanner
</p>
<ul>
<li><a href="index.php">Scan</a></li>
<li><a href="create.php">Create</a></li>
</ul>
</div>
<div id="mainbody">
<p style="font-size:25px;text-align:center;">Create QR Code</p>
<table border="0" align="center">
<tr><td>
<p style="font-size:20px;text-align:center;">Enter URL or text:</p>
<textarea cols="40" rows="3" id="data"></textarea>
</td></tr>
<tr><td align="center">
<div class="button" onclick="create()">Create</div>
</td></tr>
<tr><td align="center">
<div id="qrimage">
</div>
</td></tr>
</table>
</div>
</div>
</body>
</html>