-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit2.html
More file actions
93 lines (73 loc) · 2.77 KB
/
Copy pathinit2.html
File metadata and controls
93 lines (73 loc) · 2.77 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>FitLife</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/init-style.css" rel="stylesheet">
</head>
<body>
<div class="container auth">
<div id="big-form" class="well auth-box">
<p>Next, let's set some goals for yourself. Keep them realistic, but fair!</p>
<form>
<fieldset>
<!-- goal -->
<div class="form-group">
<label class=" control-label" for="textarea">Goal 1</label>
<div class="">
<textarea class="form-control" id="textarea" name="textarea">default text</textarea>
</div>
</div>
<!-- goal -->
<div class="form-group">
<label class=" control-label" for="textarea">Goal 2</label>
<div class="">
<textarea class="form-control" id="textarea" name="textarea">default text</textarea>
</div>
</div>
<!-- submit -->
<div class="form-group">
<div class="">
<button id="submit" class="btn btn-default">Continue</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="clearfix"></div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="lib/jquery-1.8.2.min.js"></script>
<script src="js/storage/memory-store.js"></script>
<script src="js/main.js"></script>
<script>
$( document ).ready(function() {
$("#submit").mousedown(function (){
window.location.href = './init3.html';
});
$("#submit").click(function (){
window.location.href = './init3.html';
});
Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY
$("#upload").click(function (){
Camera.sourceType = Camera.PictureSourceType.PHOTOLIBRARY;
navigator.camera.getPicture(onSuccess(), onFail(), { quality: 50 });
function onSuccess(imageData) {
localStrorage.photo = "data:image/jpeg;base64," + imageData;
alert("success");
}
function onFail(message) {
alert('Failed because: ' + message);
}
});
});
</script>
</body>
</html>