-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetbarcode.html
More file actions
40 lines (36 loc) · 1.28 KB
/
getbarcode.html
File metadata and controls
40 lines (36 loc) · 1.28 KB
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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="Shift-JIS" />
<title>pic2shopを使用したバーコード読み取りhtml</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0rc1/jquery.mobile-1.0rc1.min.js"></script>
<script LANGUAGE="JavaScript">
function clickB() {
setTimeout(function() {
// if pic2shop not installed yet, go to App Store
window.location = "http://itunes.com/apps/pic2shop";
}, 25);
// launch pic2shop and tell it to open Google Products with scan result
window.location="pic2shop://scan?callback=https://github.com/Usek2g/getJanCode/blob/master/getbarcode.html?%3DEAN";
}
$(document).ready(function(){
document.getElementById("result").value = location.search.substring(3);
});
</script>
</head>
<body>
<!--///////トップページ///////-->
<div data-role="page" id="top">
<div data-role="header" class="toppage">
<h1>pic2shopを使用したバーコード読み取りhtml</h1>
</div>
<div data-role="content">
<FORM>
<input type="text" id="result">
<input type=button OnClick="clickB();" value="Scan Barcode">
</FORM>
</div>
</div>