-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpage_bk.html
52 lines (40 loc) · 1.86 KB
/
webpage_bk.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<meta name="description" content="QRcode">
<meta name="author" content="edward">
<link rel="icon" href="favicon.ico">
<title>QRcode converter</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#txt_name").keyup(function(){
var encoded = encodeURIComponent($(this).val());
$.get( "/convert?s="+encoded, function( data ) {
$( "#qrcode-container" ).html( data );
});
});
});
</script>
</head>
<body>
<div class="container" style="padding-top: 100px;">
<div class="form-group">
<form>
<textarea class="form-control" id="txt_name" rows="2" placeholder="twitterhandle"></textarea>
</form>
</div>
</div>
<div id="qrcode-container" class="text-center">
</div>
</body>
</html>