-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (83 loc) · 2.59 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="google-site-verification" content="uzz6cdtAfKq9wEpWt-x3hyNcXa0a5a7-gJkxHvHOdco" />
<meta name="robots" content="no-index"/>
<meta name="description" content="{$siteDescription}"/>
<meta name="keywords" content="{$keywords}"/>
<meta http-equiv="imagetoolbar" content="no" />
<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>
<script>
function addToSession(){
var username = $("#username").value();
$.ajax({
type: "post", url: "test.php?addToSession=true&username="+username,
success: function (data) {
alert(data);
},
error: function (request, status, error) {
alert(error);
}
});
}
function getCoupon(){
var username = $("#usernameInput").value();
$.ajax({
type: "post", url: "test.php?getCoupon=true&username="+username,
success: function (data) {
alert(data);
},
error: function (request, status, error) {
alert(error);
}
});
}
</script>
</head>
<body>
<!-- Basic User Profile Page -->
<div data-role="page" id="profilePage">
<div id="header" data-role="header">
<h1>User Name</h1>
</div>
<div data-role="content">
<div class="profileContentHolder">
<img src="" alt="User Name"/>
<p class="userdata">
this is someone's profile page
</p>
<input id="username" type="checkbox" href="#" onClick="addToSession()" value="User Name"/>
</div>
</div>
</div>
<!-- ENter name for coupon -->
<div dat-role="page" id="getCoupon">
<div id="header" data-role="header">
<h1>User Name</h1>
</div>
<div data-role="content">
<div class="profileContentHolder">
<form method="post" enctype="multipart/form-data" action="#">
<input type="text" name="username" value=""/>
<input id="usernameInput" type="submit" href="#" onClick="getCoupon()" value="Get Coupon"/>
</form>
</div>
</div>
</div>
<!-- coupon -->
<div dat-role="page" id="getCoupon">
<div id="header" data-role="header">
<h1>User Name</h1>
</div>
<div data-role="content">
<div class="couponContentHolder">
<img src="http://vanessasierra.files.wordpress.com/2011/09/large_meetup_logo.png"/>
You get 10% off your next event!
</div>
</div>
</div>
</body>
</html>