-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (111 loc) · 3.79 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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>FaceShop</title>
<style type="text/css">
html, body {
height: 100%;
background-color: #1985D0
}
#appLoadingIndicator {
position: absolute;
top: 50%;
margin-top: -15px;
text-align: center;
width: 100%;
height: 30px;
-webkit-animation-name: appLoadingIndicator;
-webkit-animation-duration: 0.5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: linear;
}
#appLoadingIndicator > * {
background-color: #FFFFFF;
display: inline-block;
height: 30px;
-webkit-border-radius: 15px;
margin: 0 5px;
width: 30px;
opacity: 0.8;
}
@-webkit-keyframes appLoadingIndicator{
0% {
opacity: 0.8
}
50% {
opacity: 0
}
100% {
opacity: 0.8
}
}
</style>
<script type="text/javascript" charset="utf-8">
var SERVER_ADDR='http://faceware.cafe24.com/';
</script>
<script type="text/javascript" src="kinetic-v4.0.5.min.js"></script>
<!-- The line below must be kept intact for Sencha Command to build your application -->
<script id="microloader" type="text/javascript" src="touch/microloader/development.js"></script>
<script type="text/javascript" src="ios_cordova-2.2.0.js"></script>
<script type="text/javascript" charset="utf-8">
var pictureSource; // picture source
var destinationType; // sets the format of returned value
document.addEventListener("deviceready",onDeviceReady,false);
function onDeviceReady() {
pictureSource=navigator.camera.PictureSourceType;
destinationType=navigator.camera.DestinationType;
};
function capturePhotoBase64(onPhotoDataSuccess, onFail, size) {
navigator.camera.getPicture(onPhotoDataSuccess,
onFail,
{
destinationType: destinationType.DATA_URL,
quality: 90,
allowEdit:false,
targetWidth:size.width,
targetHeight:size.height,
correctOrientation:true
});
};
function capturePhotoFile(onPhotoDataSuccess, onFail, size) {
navigator.camera.getPicture(onPhotoDataSuccess,
onFail,
{
destinationType: destinationType.FILE_URI,
quality: 90,
allowEdit:false,
targetWidth:size.width,
targetHeight:size.height,
correctOrientation:true
});
};
function getPhotoFile(onPhotoDataSuccess, onFail, size) {
navigator.camera.getPicture(onPhotoDataSuccess,
onFail,
{
destinationType: destinationType.FILE_URI,
quality: 90,
allowEdit:false,
targetWidth:size.width,
targetHeight:size.height,
sourceType: pictureSource.SAVEDPHOTOALBUM
});
};
function getPhotoBase64(onPhotoDataSuccess, onFail, size) {
navigator.camera.getPicture(onPhotoDataSuccess,
onFail,
{
destinationType: destinationType.DATA_URL,
quality: 90,
allowEdit:false,
targetWidth:size.width,
targetHeight:size.height,
sourceType: pictureSource.SAVEDPHOTOALBUM
});
};
</script>
</head>
<body id="loading" style="width:100%;height:100%;background: url(resources/images/background.png) center no-repeat;background-size:100% 100%;">
</body>
</html>