-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (109 loc) · 4.21 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.css" />
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="./css/site.css">
<script src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8" src="js/databaseLogic.js"></script>
<script type="text/javascript" charset="utf-8">
// Wait for PhoneGap to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
//
$( document ).delegate("#catalogPage", "pageinit", function() {
//alert('A page with an ID of "aboutPage" was just created by jQuery Mobile!');
console.log("getWine called");
getWine();
});
$( document ).delegate("#singleWinePage", "pageinit", function() {
//alert('A page with an ID of "aboutPage" was just created by jQuery Mobile!');
console.log("getWinebyId called from main");
getWineId(sessionStorage.idw);
});
function onDeviceReady(){
console.log("device ready");
}
// alert dialog dismissed
function alertDismissed(){
}
// Show a custom alert
//
function showAlert() {
navigator.notification.alert(
'You are the winner!', // message
alertDismissed, // callback
'Game Over', // title
'Done' // buttonName
);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1" />
<title>WineMemo - Remember the wine</title>
</head>
<body class="ui-mobile-viewport">
<div id="homePage" data-role="page" class="homeBody ui-page ui-page-active">
<div id="header-home" data-role="header" data-position="inline">
<a href="index.html" data-icon="home"> Home</a>
<h1>Welcome to WineMemo</h1>
</div>
<div id="OTHomeLogo" class="mainContentPanel">
<img src="images/header-logo.png" class="homeLogo">
</div>
<div class="ui-grid-a">
<div class="ui-block-a titleDiv ">
<a href="add.html" data-transition="slide" id="Add">
<img src="images/MenuItem-Add.png"/>
</a>
<div id="lblAdd" class="titleLabel">add</div>
</div>
<div class="ui-block-b titleDiv ">
<a href="catalog.html" data-transition="slide" id="Add">
<img src="images/MenuItem-catalog.png"/>
</a>
<div id="lblCatalog" class="titleLabel">catalog</div>
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a titleDiv ">
<center>
<div class="ui-grid-a wineLine ">
<div class="ui-block-a">
<a href="http://www.google.fr" id="Red">
<img src="images/Glass-Red.png"/>
</a>
</div>
<div class="ui-block-b">
<a href="http://www.google.fr" id="White">
<img src="images/Glass-White.png"/>
</a>
</div>
</div>
<div class="ui-grid-a wineLine">
<div class="ui-block-a ">
<a href="http://www.google.fr" id="Pink">
<img src="images/Glass-Pink.png"/>
</a>
</div>
<div class="ui-block-b ">
<a href="http://www.google.fr" id="Champagne">
<img src="images/Glass-Champagne.png"/>
</a>
</div>
</div>
</center>
<div id="lblColor" class="titleLabel">by Color</div>
</div>
<div class="ui-block-b titleDiv ">
<a href="#" onclick="showAlert(); return false;" id="Add">
<img src="images/MenuItem-about.png"/>
</a>
<div id="lblAbout" class="titleLabel">about</div>
</div>
</div>
</div>
</body>
</html>