initial checkin from subversion
52
www/config.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget id="com.accenture.flexsurvey" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
|
||||
<name>Flex-Survey</name>
|
||||
<description>
|
||||
Hello World sample application that responds to the deviceready event.
|
||||
</description>
|
||||
<author email="support@phonegap.com" href="http://phonegap.com">
|
||||
PhoneGap Team
|
||||
</author>
|
||||
<feature name="http://api.phonegap.com/1.0/device" />
|
||||
<preference name="permissions" value="none" />
|
||||
<preference name="orientation" value="default" />
|
||||
<preference name="target-device" value="universal" />
|
||||
<preference name="fullscreen" value="true" />
|
||||
<preference name="webviewbounce" value="true" />
|
||||
<preference name="prerendered-icon" value="true" />
|
||||
<preference name="stay-in-webview" value="false" />
|
||||
<preference name="ios-statusbarstyle" value="black-opaque" />
|
||||
<preference name="detect-data-types" value="true" />
|
||||
<preference name="exit-on-suspend" value="false" />
|
||||
<preference name="show-splash-screen-spinner" value="true" />
|
||||
<preference name="auto-hide-splash-screen" value="true" />
|
||||
<preference name="disable-cursor" value="false" />
|
||||
<preference name="android-minSdkVersion" value="7" />
|
||||
<preference name="android-installLocation" value="auto" />
|
||||
<icon src="icon.png" />
|
||||
<icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" />
|
||||
<icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" />
|
||||
<icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" />
|
||||
<icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" />
|
||||
<icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" />
|
||||
<icon gap:platform="blackberry" gap:state="hover" src="res/icon/blackberry/icon-80.png" />
|
||||
<icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" />
|
||||
<icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" />
|
||||
<icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" />
|
||||
<icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" />
|
||||
<icon gap:platform="webos" src="res/icon/webos/icon-64.png" />
|
||||
<icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" />
|
||||
<icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" />
|
||||
<gap:splash gap:density="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" />
|
||||
<gap:splash gap:density="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" />
|
||||
<gap:splash gap:density="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" />
|
||||
<gap:splash gap:density="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" />
|
||||
<gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" />
|
||||
<gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" />
|
||||
<gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" />
|
||||
<gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" />
|
||||
<gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" />
|
||||
<gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" />
|
||||
<access origin="*" />
|
||||
<content src="index.html" />
|
||||
</widget>
|
||||
115
www/css/index.css
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
* {
|
||||
-webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
|
||||
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
|
||||
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
|
||||
background-color:#E4E4E4;
|
||||
background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
|
||||
background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
|
||||
background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
|
||||
background-image:-webkit-gradient(
|
||||
linear,
|
||||
left top,
|
||||
left bottom,
|
||||
color-stop(0, #A7A7A7),
|
||||
color-stop(0.51, #E4E4E4)
|
||||
);
|
||||
background-attachment:fixed;
|
||||
font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
|
||||
font-size:12px;
|
||||
height:100%;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
text-transform:uppercase;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
/* Portrait layout (default) */
|
||||
.app {
|
||||
background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
|
||||
position:absolute; /* position in the center of the screen */
|
||||
left:50%;
|
||||
top:50%;
|
||||
height:50px; /* text area height */
|
||||
width:225px; /* text area width */
|
||||
text-align:center;
|
||||
padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
|
||||
margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
|
||||
/* offset horizontal: half of text area width */
|
||||
}
|
||||
|
||||
/* Landscape layout (with min-width) */
|
||||
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
|
||||
.app {
|
||||
background-position:left center;
|
||||
padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
|
||||
margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
|
||||
/* offset horizontal: half of image width and text area width */
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size:24px;
|
||||
font-weight:normal;
|
||||
margin:0px;
|
||||
overflow:visible;
|
||||
padding:0px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.event {
|
||||
border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
color:#FFFFFF;
|
||||
font-size:12px;
|
||||
margin:0px 30px;
|
||||
padding:2px 0px;
|
||||
}
|
||||
|
||||
.event.listening {
|
||||
background-color:#333333;
|
||||
display:block;
|
||||
}
|
||||
|
||||
.event.received {
|
||||
background-color:#4B946A;
|
||||
display:none;
|
||||
}
|
||||
|
||||
@keyframes fade {
|
||||
from { opacity: 1.0; }
|
||||
50% { opacity: 0.4; }
|
||||
to { opacity: 1.0; }
|
||||
}
|
||||
|
||||
@-webkit-keyframes fade {
|
||||
from { opacity: 1.0; }
|
||||
50% { opacity: 0.4; }
|
||||
to { opacity: 1.0; }
|
||||
}
|
||||
|
||||
.blink {
|
||||
animation:fade 3000ms infinite;
|
||||
-webkit-animation:fade 3000ms infinite;
|
||||
}
|
||||
3509
www/css/topcoat-desktop-dark.css
Normal file
1
www/css/topcoat-desktop-dark.min.css
vendored
Normal file
3509
www/css/topcoat-desktop-light.css
Normal file
1
www/css/topcoat-desktop-light.min.css
vendored
Normal file
3759
www/css/topcoat-mobile-dark.css
Normal file
1
www/css/topcoat-mobile-dark.min.css
vendored
Normal file
3759
www/css/topcoat-mobile-light.css
Normal file
1
www/css/topcoat-mobile-light.min.css
vendored
Normal file
93
www/font/LICENSE.txt
Normal file
@@ -0,0 +1,93 @@
|
||||
Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
|
||||
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
BIN
www/font/SourceCodePro-Black.otf
Normal file
BIN
www/font/SourceCodePro-Bold.otf
Normal file
BIN
www/font/SourceCodePro-ExtraLight.otf
Normal file
BIN
www/font/SourceCodePro-Light.otf
Normal file
BIN
www/font/SourceCodePro-Regular.otf
Normal file
BIN
www/font/SourceCodePro-Semibold.otf
Normal file
BIN
www/font/SourceSansPro-Black.otf
Normal file
BIN
www/font/SourceSansPro-BlackIt.otf
Normal file
BIN
www/font/SourceSansPro-Bold.otf
Normal file
BIN
www/font/SourceSansPro-BoldIt.otf
Normal file
BIN
www/font/SourceSansPro-ExtraLight.otf
Normal file
BIN
www/font/SourceSansPro-ExtraLightIt.otf
Normal file
BIN
www/font/SourceSansPro-It.otf
Normal file
BIN
www/font/SourceSansPro-Light.otf
Normal file
BIN
www/font/SourceSansPro-LightIt.otf
Normal file
BIN
www/font/SourceSansPro-Regular.otf
Normal file
BIN
www/font/SourceSansPro-Semibold.otf
Normal file
BIN
www/font/SourceSansPro-SemiboldIt.otf
Normal file
BIN
www/icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
www/img/avatar.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
www/img/bg_dark.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
www/img/breadcrumb.png
Normal file
|
After Width: | Height: | Size: 202 B |
BIN
www/img/checkbox_checked.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
www/img/checkbox_checked_dark.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
www/img/checkbox_unchecked.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
www/img/checkbox_unchecked_dark.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
15
www/img/checkmark_bw.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<path d="M38.512,7.65l-2.398-1.93c-1.182-0.95-1.87-0.939-2.881,0.311L15.803,27.54l-8.11-6.739c-1.12-0.94-1.82-0.89-2.74,0.26
|
||||
l-1.85,2.41c-0.94,1.182-0.82,1.852,0.29,2.78l11.56,9.562c1.19,1,1.86,0.897,2.78-0.222l21.08-25.061
|
||||
C39.803,9.341,39.742,8.63,38.512,7.65z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/img/dark-combo-box-bg.png
Normal file
|
After Width: | Height: | Size: 1023 B |
BIN
www/img/dark-combo-box-bg2x.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/img/dark-grips.png
Normal file
|
After Width: | Height: | Size: 220 B |
BIN
www/img/dark-sprites2x.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
www/img/dialog-zone-bg.png
Normal file
|
After Width: | Height: | Size: 587 KiB |
BIN
www/img/drop-down-triangle-dark.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/img/drop-down-triangle.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
1912
www/img/hamburger_bw.svg
Normal file
|
After Width: | Height: | Size: 139 KiB |
1935
www/img/hamburger_dark.svg
Normal file
|
After Width: | Height: | Size: 140 KiB |
1936
www/img/hamburger_light.svg
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
www/img/light-combo-box-bg.png
Normal file
|
After Width: | Height: | Size: 1023 B |
BIN
www/img/light-combo-box-bg2x.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/img/light-grips.png
Normal file
|
After Width: | Height: | Size: 248 B |
BIN
www/img/light-sprites2x.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
www/img/logo.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
www/img/pop-up-triangle-dark.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/img/pop-up-triangle.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
www/img/search-bg.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
www/img/search-bg2x.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
11
www/img/search.svg
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="41px" height="40px" viewBox="0 0 41 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<title>Slice 1</title>
|
||||
<description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description>
|
||||
<defs></defs>
|
||||
<g id="Page 1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="search" fill="#C6C8C8">
|
||||
<path d="M0.504,16.338 C0.504,25.085 7.635,32.165 16.444,32.165 C25.24,32.165 32.382,25.085 32.382,16.338 C32.382,7.591 25.24,0.5 16.444,0.5 C7.635,0.5 0.504,7.591 0.504,16.338 L0.504,16.338 Z M5.555,16.338 C5.555,10.359 10.423,5.521 16.445,5.521 C22.455,5.521 27.333,10.36 27.333,16.338 C27.333,22.317 22.455,27.156 16.445,27.156 C10.423,27.156 5.555,22.316 5.555,16.338 L5.555,16.338 Z M27.666,30.861 L34.521,38.67 C35.625,39.772 36.338,39.781 37.46,38.67 L39.661,36.489 C40.743,35.408 40.811,34.711 39.661,33.568 L31.765,26.793 L27.666,30.861 L27.666,30.861 Z M27.666,30.861" id="Shape"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
16
www/img/search_bw.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="search" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<path d="M1.504,17.338c0,8.747,7.131,15.827,15.94,15.827c8.796,0,15.938-7.08,15.938-15.827S26.24,1.5,17.444,1.5
|
||||
C8.635,1.5,1.504,8.591,1.504,17.338z M6.555,17.338c0-5.979,4.868-10.817,10.89-10.817c6.01,0,10.888,4.839,10.888,10.817
|
||||
c0,5.979-4.878,10.818-10.888,10.818C11.423,28.156,6.555,23.316,6.555,17.338z M28.666,31.861l6.855,7.809
|
||||
c1.104,1.102,1.817,1.111,2.939,0l2.201-2.181c1.082-1.081,1.15-1.778,0-2.921l-7.896-6.775L28.666,31.861z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
16
www/img/search_dark.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd" [
|
||||
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
|
||||
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
|
||||
<!ENTITY ns_ai "http://ns.adobe.com/AdobeIllustrator/10.0/">
|
||||
<!ENTITY ns_graphs "http://ns.adobe.com/Graphs/1.0/">
|
||||
]>
|
||||
<svg version="1.1" baseProfile="tiny" id="search" xmlns:x="&ns_extend;" xmlns:i="&ns_ai;" xmlns:graph="&ns_graphs;"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
|
||||
x="0px" y="0px" width="42px" height="42px" viewBox="0 0 42 42" xml:space="preserve">
|
||||
<path d="M1.504,17.338c0,8.747,7.131,15.827,15.94,15.827c8.796,0,15.938-7.08,15.938-15.827S26.24,1.5,17.444,1.5
|
||||
C8.635,1.5,1.504,8.591,1.504,17.338z M6.555,17.338c0-5.979,4.868-10.817,10.89-10.817c6.01,0,10.888,4.839,10.888,10.817
|
||||
c0,5.979-4.878,10.818-10.888,10.818C11.423,28.156,6.555,23.316,6.555,17.338z M28.666,31.861l6.855,7.809
|
||||
c1.104,1.102,1.817,1.111,2.939,0l2.201-2.181c1.082-1.081,1.15-1.778,0-2.921l-7.896-6.775L28.666,31.861z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
11
www/img/search_light.svg
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="41px" height="40px" viewBox="0 0 41 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<title>Slice 1</title>
|
||||
<description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description>
|
||||
<defs></defs>
|
||||
<g id="Page 1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="search" fill="#FFFFFF">
|
||||
<path d="M0.504,16.338 C0.504,25.085 7.635,32.165 16.444,32.165 C25.24,32.165 32.382,25.085 32.382,16.338 C32.382,7.591 25.24,0.5 16.444,0.5 C7.635,0.5 0.504,7.591 0.504,16.338 L0.504,16.338 Z M5.555,16.338 C5.555,10.359 10.423,5.521 16.445,5.521 C22.455,5.521 27.333,10.36 27.333,16.338 C27.333,22.317 22.455,27.156 16.445,27.156 C10.423,27.156 5.555,22.316 5.555,16.338 L5.555,16.338 Z M27.666,30.861 L34.521,38.67 C35.625,39.772 36.338,39.781 37.46,38.67 L39.661,36.489 C40.743,35.408 40.811,34.711 39.661,33.568 L31.765,26.793 L27.666,30.861 L27.666,30.861 Z M27.666,30.861" id="Shape"></path>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
BIN
www/img/spinner.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
www/img/spinner2x.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
73
www/index.html
Normal file
@@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
|
||||
<link rel="stylesheet" type="text/css" href="css/topcoat-mobile-light.css" />
|
||||
<title>Flex Survey</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
<div class="topcoat-navigation-bar">
|
||||
<div class="topcoat-navigation-bar__item center full">
|
||||
<h1 class="topcoat-navigation-bar__title">Flex-Survey</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- this will come at a later stage... -->
|
||||
<div class="topcoat-tab-bar" style="display:none">
|
||||
<label class="topcoat-tab-bar__item">
|
||||
<input type="radio" name="tab-bar">
|
||||
<button class="topcoat-tab-bar__button">Form</button>
|
||||
</label>
|
||||
<label class="topcoat-tab-bar__item">
|
||||
<input type="radio" name="tab-bar">
|
||||
<button class="topcoat-tab-bar__button">Config</button>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- here goes the form -->
|
||||
<fieldset><legend>Form</legend>
|
||||
<div id='allForm'>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<!-- debug only
|
||||
<button id="btnContent" onclick="$('#xxx').text(JSON.stringify($('#allForm').toJSO()))" class="topcoat-button--large">Serial</button>
|
||||
<textarea id="xxx" class="topcoat-textarea--large" rows="6" cols="36" placeholder="Textarea"></textarea>
|
||||
-->
|
||||
|
||||
<button onclick="$.post('http://devvm.uni.cx:2222/FormSubmit',$('#allForm').toJSO());" class="topcoat-button--large--cta">Submit</button>
|
||||
|
||||
<script type="text/javascript" src="phonegap.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-2.0.3.min.js"></script>
|
||||
<script type="text/javascript" src="js/handlebars-v1.1.2.js"></script>
|
||||
<script type="text/javascript" src="js/index.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
app.initialize();
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
2595
www/js/handlebars-v1.1.2.js
Normal file
160
www/js/index.js
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
var app = {
|
||||
// Application Constructor
|
||||
initialize: function() {
|
||||
this.bindEvents();
|
||||
|
||||
|
||||
app.templates.load("textInput","picture","linebreak","horizline","email","number").done(function (){
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"firstname",label:"First Name",style:"width:300px"}));
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"lastname",label:"Last Name",style:"width:300px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"company",label:"Company",style:"width:600px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"url",label:"Web-site url",style:"width:600px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("email")({id:"email",label:"E-mail",style:"width:600px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"address1",label:"Address1",style:"width:600px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"address2",label:"Address2",style:"width:600px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"address3",label:"Address3",style:"width:600px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("number")({id:"zipcode",label:"Zip",style:"width:200px"}));
|
||||
$("#allForm").append(app.templates.get("textInput")({id:"suburb",label:"Suburb",style:"width:400px"}));
|
||||
$("#allForm").append(app.templates.get("horizline")());
|
||||
$("#allForm").append(app.templates.get("picture")({id:"Photo",label:"(re)take picture of you",btnStyle:"width:450px"}));
|
||||
$("#allForm").append(app.templates.get("linebreak")());
|
||||
$("#allForm").append(app.templates.get("picture")({id:"Businesscard",label:"(re)take picture of your Business Card",btnStyle:"width:450px"}));
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
// Bind Event Listeners
|
||||
//
|
||||
// Bind any events that are required on startup. Common events are:
|
||||
// 'load', 'deviceready', 'offline', and 'online'.
|
||||
bindEvents: function() {
|
||||
document.addEventListener('deviceready', this.onDeviceReady, false);
|
||||
},
|
||||
// deviceready Event Handler
|
||||
//
|
||||
// The scope of 'this' is the event. In order to call the 'receivedEvent'
|
||||
// function, we must explicity call 'app.receivedEvent(...);'
|
||||
onDeviceReady: function() {
|
||||
app.receivedEvent('deviceready');
|
||||
|
||||
},
|
||||
// Update DOM on a Received Event
|
||||
receivedEvent: function(id) {
|
||||
var parentElement = document.getElementById(id);
|
||||
var listeningElement = parentElement.querySelector('.listening');
|
||||
var receivedElement = parentElement.querySelector('.received');
|
||||
|
||||
listeningElement.setAttribute('style', 'display:none;');
|
||||
receivedElement.setAttribute('style', 'display:block;');
|
||||
|
||||
console.log('Received Event: ' + id);
|
||||
}
|
||||
};
|
||||
|
||||
app.templates = (function(){
|
||||
var templates=[],
|
||||
load = function () {
|
||||
var deferreds = [];
|
||||
|
||||
$.each(arguments, function (index,tpl) {
|
||||
deferreds.push($.get("templates/" + tpl + ".html", function (text) {
|
||||
templates[tpl] = Handlebars.compile(text);
|
||||
}).fail(function (event, error){ window.console.log("Error loading Tempalte",tpl,event,error);}), 'html')
|
||||
});
|
||||
|
||||
return $.when.apply(null, deferreds);
|
||||
},
|
||||
|
||||
get = function(name) {
|
||||
return templates[name];
|
||||
};
|
||||
|
||||
// the public API
|
||||
return {
|
||||
load: load,
|
||||
get : get
|
||||
};
|
||||
}());
|
||||
|
||||
|
||||
app.myCamHandler=function(){
|
||||
var _imageData="";
|
||||
var _picElem=null;
|
||||
|
||||
var takePic= function (selfRef){
|
||||
console.log("Taking Picture");
|
||||
navigator.camera.getPicture(onSuccess, onFail, { quality: 50, destinationType: Camera.DestinationType.DATA_URL });
|
||||
_picElem=selfRef;
|
||||
},
|
||||
getPicUri=function(){
|
||||
return(_imageData)
|
||||
};
|
||||
|
||||
function onSuccess(imageData) {
|
||||
console.log("Success " + imageData);
|
||||
_imageData=imageData;
|
||||
$(_picElem).attr("value",imageData);
|
||||
var picId=$(_picElem).attr( 'id');
|
||||
$("#" + picId + "__image").attr("src","data:image/jpeg;base64," + imageData);
|
||||
|
||||
|
||||
|
||||
};
|
||||
function onFail(message) {
|
||||
console.log('Failed because: ' + message);
|
||||
};
|
||||
|
||||
return {
|
||||
takePic:takePic,
|
||||
getPicUri:getPicUri
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
$.fn.toJSO = function () {
|
||||
var obj = {},
|
||||
$kids = $(this).children('[name]');
|
||||
if (!$kids.length) {
|
||||
return $(this).val();
|
||||
}
|
||||
$kids.each(function () {
|
||||
var $el = $(this),
|
||||
name = $el.attr('name');
|
||||
if ($el.siblings("[name=" + name + "]").length) {
|
||||
if (!/radio|checkbox/i.test($el.attr('type')) || $el.prop('checked')) {
|
||||
obj[name] = obj[name] || [];
|
||||
obj[name].push($el.toJSO());
|
||||
}
|
||||
} else {
|
||||
obj[name] = $el.toJSO();
|
||||
}
|
||||
});
|
||||
return obj;
|
||||
};
|
||||
6
www/js/jquery-2.0.3.min.js
vendored
Normal file
BIN
www/res/icon/android/icon-36-ldpi.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
www/res/icon/android/icon-48-mdpi.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
www/res/icon/android/icon-72-hdpi.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
www/res/icon/android/icon-96-xhdpi.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
www/res/icon/bada-wac/icon-48-type5.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
www/res/icon/bada-wac/icon-50-type3.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
www/res/icon/bada-wac/icon-80-type4.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
www/res/icon/bada/icon-128.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
www/res/icon/blackberry/icon-80.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
www/res/icon/ios/icon-57-2x.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
www/res/icon/ios/icon-57.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
www/res/icon/ios/icon-72-2x.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
www/res/icon/ios/icon-72.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
www/res/icon/tizen/icon-128.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
www/res/icon/webos/icon-64.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
www/res/icon/windows-phone/icon-173-tile.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
www/res/icon/windows-phone/icon-48.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
www/res/icon/windows-phone/icon-62-tile.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
www/res/screen/android/screen-hdpi-landscape.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
www/res/screen/android/screen-hdpi-portrait.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
www/res/screen/android/screen-ldpi-landscape.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
www/res/screen/android/screen-ldpi-portrait.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
www/res/screen/android/screen-mdpi-landscape.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
www/res/screen/android/screen-mdpi-portrait.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
www/res/screen/android/screen-xhdpi-landscape.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
www/res/screen/android/screen-xhdpi-portrait.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
www/res/screen/bada-wac/screen-type3.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
www/res/screen/bada-wac/screen-type4.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
www/res/screen/bada-wac/screen-type5.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
www/res/screen/bada/screen-portrait.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
www/res/screen/blackberry/screen-225.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
www/res/screen/ios/screen-ipad-landscape-2x.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
www/res/screen/ios/screen-ipad-landscape.png
Normal file
|
After Width: | Height: | Size: 85 KiB |