First revision
11
.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# editor backup files
|
||||||
|
*~
|
||||||
|
|
||||||
|
android/bin
|
||||||
|
blackberry/build
|
||||||
|
images/markets
|
||||||
|
|
||||||
|
# idea project files
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
|
49
android/AndroidManifest.xml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
|
||||||
|
package="com.moparisthebest.pointswatcher" android:versionName="0.1" android:versionCode="1" android:hardwareAccelerated="true">
|
||||||
|
<supports-screens
|
||||||
|
android:largeScreens="true"
|
||||||
|
android:normalScreens="true"
|
||||||
|
android:smallScreens="true"
|
||||||
|
android:xlargeScreens="true"
|
||||||
|
android:resizeable="true"
|
||||||
|
android:anyDensity="true"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.VIBRATE" />
|
||||||
|
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
|
||||||
|
|
||||||
|
|
||||||
|
<application android:icon="@drawable/icon" android:label="@string/app_name"
|
||||||
|
android:hardwareAccelerated="true"
|
||||||
|
android:debuggable="true">
|
||||||
|
<activity android:name="Points Watcher" android:label="@string/app_name"
|
||||||
|
android:theme="@android:style/Theme.Black.NoTitleBar"
|
||||||
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
|
</intent-filter>
|
||||||
|
</activity>
|
||||||
|
</application>
|
||||||
|
|
||||||
|
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="8"/>
|
||||||
|
</manifest>
|
19
android/ant.properties
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# This file is used to override default values used by the Ant build system.
|
||||||
|
#
|
||||||
|
# This file must be checked into Version Control Systems, as it is
|
||||||
|
# integral to the build system of your project.
|
||||||
|
|
||||||
|
# This file is only used by the Ant script.
|
||||||
|
|
||||||
|
# You can use this to override default values such as
|
||||||
|
# 'source.dir' for the location of your java source folder and
|
||||||
|
# 'out.dir' for the location of your output folder.
|
||||||
|
|
||||||
|
# You can also use it define how the release builds are signed by declaring
|
||||||
|
# the following properties:
|
||||||
|
# 'key.store' for the location of your keystore and
|
||||||
|
# 'key.alias' for the name of the key to use.
|
||||||
|
# The password will be asked during the build when you use the 'release' target.
|
||||||
|
|
||||||
|
key.store=/home/mopar/.config/android.keystore
|
||||||
|
key.alias=android_market
|
1
android/assets/www
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../www
|
92
android/build.xml
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project name="PointsWatcher" default="help">
|
||||||
|
|
||||||
|
<!-- The local.properties file is created and updated by the 'android' tool.
|
||||||
|
It contains the path to the SDK. It should *NOT* be checked into
|
||||||
|
Version Control Systems. -->
|
||||||
|
<property file="local.properties" />
|
||||||
|
|
||||||
|
<!-- The ant.properties file can be created by you. It is only edited by the
|
||||||
|
'android' tool to add properties to it.
|
||||||
|
This is the place to change some Ant specific build properties.
|
||||||
|
Here are some properties you may want to change/update:
|
||||||
|
|
||||||
|
source.dir
|
||||||
|
The name of the source directory. Default is 'src'.
|
||||||
|
out.dir
|
||||||
|
The name of the output directory. Default is 'bin'.
|
||||||
|
|
||||||
|
For other overridable properties, look at the beginning of the rules
|
||||||
|
files in the SDK, at tools/ant/build.xml
|
||||||
|
|
||||||
|
Properties related to the SDK location or the project target should
|
||||||
|
be updated using the 'android' tool with the 'update' action.
|
||||||
|
|
||||||
|
This file is an integral part of the build system for your
|
||||||
|
application and should be checked into Version Control Systems.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<property file="ant.properties" />
|
||||||
|
|
||||||
|
<!-- if sdk.dir was not set from one of the property file, then
|
||||||
|
get it from the ANDROID_HOME env var.
|
||||||
|
This must be done before we load project.properties since
|
||||||
|
the proguard config can use sdk.dir -->
|
||||||
|
<property environment="env" />
|
||||||
|
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
|
||||||
|
<isset property="env.ANDROID_HOME" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- The project.properties file is created and updated by the 'android'
|
||||||
|
tool, as well as ADT.
|
||||||
|
|
||||||
|
This contains project specific properties such as project target, and library
|
||||||
|
dependencies. Lower level build properties are stored in ant.properties
|
||||||
|
(or in .classpath for Eclipse projects).
|
||||||
|
|
||||||
|
This file is an integral part of the build system for your
|
||||||
|
application and should be checked into Version Control Systems. -->
|
||||||
|
<loadproperties srcFile="project.properties" />
|
||||||
|
|
||||||
|
<!-- quick check on sdk.dir -->
|
||||||
|
<fail
|
||||||
|
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
||||||
|
unless="sdk.dir"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Import per project custom build rules if present at the root of the project.
|
||||||
|
This is the place to put custom intermediary targets such as:
|
||||||
|
-pre-build
|
||||||
|
-pre-compile
|
||||||
|
-post-compile (This is typically used for code obfuscation.
|
||||||
|
Compiled code location: ${out.classes.absolute.dir}
|
||||||
|
If this is not done in place, override ${out.dex.input.absolute.dir})
|
||||||
|
-post-package
|
||||||
|
-post-build
|
||||||
|
-pre-clean
|
||||||
|
-->
|
||||||
|
<import file="custom_rules.xml" optional="true" />
|
||||||
|
|
||||||
|
<!-- Import the actual build file.
|
||||||
|
|
||||||
|
To customize existing targets, there are two options:
|
||||||
|
- Customize only one target:
|
||||||
|
- copy/paste the target into this file, *before* the
|
||||||
|
<import> task.
|
||||||
|
- customize it to your needs.
|
||||||
|
- Customize the whole content of build.xml
|
||||||
|
- copy/paste the content of the rules files (minus the top node)
|
||||||
|
into this file, replacing the <import> task.
|
||||||
|
- customize to your needs.
|
||||||
|
|
||||||
|
***********************
|
||||||
|
****** IMPORTANT ******
|
||||||
|
***********************
|
||||||
|
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
|
||||||
|
in order to avoid having your file be overridden by tools such as "android update project"
|
||||||
|
-->
|
||||||
|
<!-- version-tag: 1 -->
|
||||||
|
<import file="${sdk.dir}/tools/ant/build.xml" />
|
||||||
|
|
||||||
|
</project>
|
BIN
android/cordova/appinfo.jar
Normal file
24
android/cordova/build
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||||
|
|
||||||
|
bash "$CORDOVA_PATH"/cordova build
|
24
android/cordova/clean
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||||
|
|
||||||
|
bash "$CORDOVA_PATH"/cordova clean
|
167
android/cordova/cordova
Executable file
@ -0,0 +1,167 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
PROJECT_PATH=$( cd "$( dirname "$0" )/.." && pwd )
|
||||||
|
|
||||||
|
function check_devices {
|
||||||
|
# FIXME
|
||||||
|
local devices=`adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep device`
|
||||||
|
if [ -z "$devices" ] ; then
|
||||||
|
echo "1"
|
||||||
|
else
|
||||||
|
echo "0"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function emulate {
|
||||||
|
declare -a avd_list=($(android list avd | grep "Name:" | cut -f 2 -d ":" | xargs))
|
||||||
|
# we need to start adb-server
|
||||||
|
adb start-server 1>/dev/null
|
||||||
|
|
||||||
|
# Do not launch an emulator if there is already one running or if a device is attached
|
||||||
|
if [ $(check_devices) == 0 ] ; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
local avd_id="1000" #FIXME: hopefully user does not have 1000 AVDs
|
||||||
|
# User has no AVDs
|
||||||
|
if [ ${#avd_list[@]} == 0 ]
|
||||||
|
then
|
||||||
|
echo "You don't have any Android Virtual Devices. Please create at least one AVD."
|
||||||
|
echo "android"
|
||||||
|
fi
|
||||||
|
# User has only one AVD
|
||||||
|
if [ ${#avd_list[@]} == 1 ]
|
||||||
|
then
|
||||||
|
emulator -cpu-delay 0 -no-boot-anim -cache /tmp/cache -avd ${avd_list[0]} 1> /dev/null 2>&1 &
|
||||||
|
# User has more than 1 AVD
|
||||||
|
elif [ ${#avd_list[@]} -gt 1 ]
|
||||||
|
then
|
||||||
|
while [ -z ${avd_list[$avd_id]} ]
|
||||||
|
do
|
||||||
|
echo "Choose from one of the following Android Virtual Devices [0 to $((${#avd_list[@]}-1))]:"
|
||||||
|
for(( i = 0 ; i < ${#avd_list[@]} ; i++ ))
|
||||||
|
do
|
||||||
|
echo "$i) ${avd_list[$i]}"
|
||||||
|
done
|
||||||
|
read -t 5 -p "> " avd_id
|
||||||
|
# default value if input timeout
|
||||||
|
if [ $avd_id -eq 1000 ] ; then avd_id=0 ; fi
|
||||||
|
done
|
||||||
|
emulator -cpu-delay 0 -no-boot-anim -cache /tmp/cache -avd ${avd_list[$avd_id]} 1> /dev/null 2>&1 &
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function clean {
|
||||||
|
ant clean
|
||||||
|
}
|
||||||
|
# has to be used independently and not in conjunction with other commands
|
||||||
|
function log {
|
||||||
|
adb logcat
|
||||||
|
}
|
||||||
|
|
||||||
|
function run {
|
||||||
|
clean && emulate && wait_for_device && install && launch
|
||||||
|
}
|
||||||
|
|
||||||
|
function install {
|
||||||
|
|
||||||
|
declare -a devices=($(adb devices | awk '/List of devices attached/ { while(getline > 0) { print }}' | grep device | cut -f 1))
|
||||||
|
local device_id="1000" #FIXME: hopefully user does not have 1000 AVDs
|
||||||
|
|
||||||
|
if [ ${#devices[@]} == 0 ]
|
||||||
|
then
|
||||||
|
# should not reach here. Emulator should launch or device should be attached
|
||||||
|
echo "Emulator not running or device not attached. Could not install debug package"
|
||||||
|
exit 70
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ${#devices[@]} == 1 ]
|
||||||
|
then
|
||||||
|
export ANDROID_SERIAL=${devices[0]}
|
||||||
|
# User has more than 1 AVD
|
||||||
|
elif [ ${#devices[@]} -gt 1 ]
|
||||||
|
then
|
||||||
|
while [ -z ${devices[$device_id]} ]
|
||||||
|
do
|
||||||
|
echo "Choose from one of the following devices/emulators [0 to $((${#devices[@]}-1))]:"
|
||||||
|
for(( i = 0 ; i < ${#devices[@]} ; i++ ))
|
||||||
|
do
|
||||||
|
echo "$i) ${devices[$i]}"
|
||||||
|
done
|
||||||
|
read -t 5 -p "> " device_id
|
||||||
|
# default value if input timeout
|
||||||
|
if [ $device_id -eq 1000 ] ; then device_id=0 ; fi
|
||||||
|
done
|
||||||
|
export ANDROID_SERIAL=${devices[$device_id]}
|
||||||
|
fi
|
||||||
|
|
||||||
|
ant debug install
|
||||||
|
}
|
||||||
|
|
||||||
|
function clean_after_build(){
|
||||||
|
rm -f assets/www/cordova.js
|
||||||
|
}
|
||||||
|
|
||||||
|
function build {
|
||||||
|
trap clean_after_build EXIT
|
||||||
|
cp libs/cordova-2.5.0.js assets/www/cordova.js
|
||||||
|
ant debug
|
||||||
|
}
|
||||||
|
|
||||||
|
function release {
|
||||||
|
trap clean_after_build EXIT
|
||||||
|
cp libs/cordova-2.5.0.js assets/www/cordova.js
|
||||||
|
ant release
|
||||||
|
}
|
||||||
|
|
||||||
|
function wait_for_device {
|
||||||
|
local i="0"
|
||||||
|
echo -n "Waiting for device..."
|
||||||
|
|
||||||
|
while [ $i -lt 300 ]
|
||||||
|
do
|
||||||
|
if [ $(check_devices) -eq 0 ]
|
||||||
|
then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
sleep 1
|
||||||
|
i=$[i+1]
|
||||||
|
echo -n "."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
# Device timeout: emulator has not started in time or device not attached
|
||||||
|
if [ $i -eq 300 ]
|
||||||
|
then
|
||||||
|
echo "device timeout!"
|
||||||
|
exit 69
|
||||||
|
else
|
||||||
|
echo "connected!"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function launch {
|
||||||
|
local launch_str=$(java -jar "$PROJECT_PATH"/cordova/appinfo.jar "$PROJECT_PATH"/AndroidManifest.xml)
|
||||||
|
adb shell am start -n $launch_str
|
||||||
|
}
|
||||||
|
|
||||||
|
# TODO parse arguments
|
||||||
|
(cd "$PROJECT_PATH" && $1)
|
24
android/cordova/log
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CORDOVA_PATH=$( cd "$( dirname "$0" )/.." && pwd )
|
||||||
|
|
||||||
|
bash "$CORDOVA_PATH"/cordova/cordova log
|
24
android/cordova/release
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||||
|
|
||||||
|
bash "$CORDOVA_PATH"/cordova release
|
24
android/cordova/run
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||||
|
|
||||||
|
bash "$CORDOVA_PATH"/cordova run
|
15
android/gen/R.java.d
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/gen/com/moparisthebest/pointswatcher/R.java \
|
||||||
|
: /home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/drawable-mdpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/drawable-xhdpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/layout/main.xml \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/drawable-hdpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/drawable/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/xml/config.xml \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/values/strings.xml \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/res/drawable-ldpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/bin/res/drawable-mdpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/bin/res/drawable-xhdpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/bin/res/drawable-hdpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/bin/res/drawable/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/bin/res/drawable-ldpi/icon.png \
|
||||||
|
/home/mopar/devel/priv/pointsplus/PointsWatcher/android/bin/AndroidManifest.xml \
|
@ -0,0 +1,6 @@
|
|||||||
|
/** Automatically generated file. DO NOT MODIFY */
|
||||||
|
package com.moparisthebest.pointswatcher;
|
||||||
|
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = true;
|
||||||
|
}
|
25
android/gen/com/moparisthebest/pointswatcher/R.java
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/* AUTO-GENERATED FILE. DO NOT MODIFY.
|
||||||
|
*
|
||||||
|
* This class was automatically generated by the
|
||||||
|
* aapt tool from the resource data it found. It
|
||||||
|
* should not be modified by hand.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.moparisthebest.pointswatcher;
|
||||||
|
|
||||||
|
public final class R {
|
||||||
|
public static final class attr {
|
||||||
|
}
|
||||||
|
public static final class drawable {
|
||||||
|
public static final int icon=0x7f020000;
|
||||||
|
}
|
||||||
|
public static final class layout {
|
||||||
|
public static final int main=0x7f030000;
|
||||||
|
}
|
||||||
|
public static final class string {
|
||||||
|
public static final int app_name=0x7f050000;
|
||||||
|
}
|
||||||
|
public static final class xml {
|
||||||
|
public static final int config=0x7f040000;
|
||||||
|
}
|
||||||
|
}
|
BIN
android/libs/cordova-2.5.0.jar
Normal file
6461
android/libs/cordova-2.5.0.js
vendored
Normal file
10
android/local.properties
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# This file is automatically generated by Android Tools.
|
||||||
|
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||||
|
#
|
||||||
|
# This file must *NOT* be checked into Version Control Systems,
|
||||||
|
# as it contains information specific to your local configuration.
|
||||||
|
|
||||||
|
# location of the SDK. This is only used by Ant
|
||||||
|
# For customization when using a Version Control System, please read the
|
||||||
|
# header note.
|
||||||
|
sdk.dir=/home/mopar/apps/android-sdk-linux
|
20
android/proguard-project.txt
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# To enable ProGuard in your project, edit project.properties
|
||||||
|
# to define the proguard.config property as described in that file.
|
||||||
|
#
|
||||||
|
# Add project specific ProGuard rules here.
|
||||||
|
# By default, the flags in this file are appended to flags specified
|
||||||
|
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||||
|
# You can edit the include path and order by changing the ProGuard
|
||||||
|
# include property in project.properties.
|
||||||
|
#
|
||||||
|
# For more details, see
|
||||||
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||||
|
|
||||||
|
# Add any project specific keep options here:
|
||||||
|
|
||||||
|
# If your project uses WebView with JS, uncomment the following
|
||||||
|
# and specify the fully qualified class name to the JavaScript interface
|
||||||
|
# class:
|
||||||
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||||
|
# public *;
|
||||||
|
#}
|
14
android/project.properties
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# This file is automatically generated by Android Tools.
|
||||||
|
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||||
|
#
|
||||||
|
# This file must be checked in Version Control Systems.
|
||||||
|
#
|
||||||
|
# To customize properties used by the Ant build system edit
|
||||||
|
# "ant.properties", and override values to adapt the script to your
|
||||||
|
# project structure.
|
||||||
|
#
|
||||||
|
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||||
|
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||||
|
|
||||||
|
# Project target.
|
||||||
|
target=Google Inc.:Google APIs:17
|
1
android/res/drawable-hdpi/icon.png
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../www/res/icon/android/icon-72-hdpi.png
|
1
android/res/drawable-ldpi/icon.png
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../www/res/icon/android/icon-36-ldpi.png
|
1
android/res/drawable-mdpi/icon.png
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../www/res/icon/android/icon-48-mdpi.png
|
1
android/res/drawable-xhdpi/icon.png
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../www/res/icon/android/icon-96-xhdpi.png
|
1
android/res/drawable/icon.png
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../www/res/icon/android/icon-96-xhdpi.png
|
13
android/res/layout/main.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
|
>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Hello World, PointsWatcher"
|
||||||
|
/>
|
||||||
|
</LinearLayout>
|
||||||
|
|
4
android/res/values/strings.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">Points Watcher</string>
|
||||||
|
</resources>
|
48
android/res/xml/config.xml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<cordova>
|
||||||
|
<!--
|
||||||
|
access elements control the Android whitelist.
|
||||||
|
Domains are assumed blocked unless set otherwise
|
||||||
|
-->
|
||||||
|
|
||||||
|
<access origin="http://127.0.0.1*"/> <!-- allow local pages -->
|
||||||
|
|
||||||
|
<!-- <access origin="https://example.com" /> allow any secure requests to example.com -->
|
||||||
|
<!-- <access origin="https://example.com" subdomains="true" /> such as above, but including subdomains, such as www -->
|
||||||
|
<access origin=".*"/>
|
||||||
|
|
||||||
|
<!-- <content src="http://mysite.com/myapp.html" /> for external pages -->
|
||||||
|
<content src="index.html" />
|
||||||
|
|
||||||
|
<log level="DEBUG"/>
|
||||||
|
<preference name="useBrowserHistory" value="false" />
|
||||||
|
<preference name="exit-on-suspend" value="false" />
|
||||||
|
<plugins>
|
||||||
|
<plugin name="App" value="org.apache.cordova.App"/>
|
||||||
|
<plugin name="Device" value="org.apache.cordova.Device"/>
|
||||||
|
<plugin name="Notification" value="org.apache.cordova.Notification"/>
|
||||||
|
<plugin name="Storage" value="org.apache.cordova.Storage"/>
|
||||||
|
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
|
||||||
|
<plugin name="Echo" value="org.apache.cordova.Echo" />
|
||||||
|
<plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser"/>
|
||||||
|
</plugins>
|
||||||
|
</cordova>
|
||||||
|
|
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.moparisthebest.pointswatcher;
|
||||||
|
|
||||||
|
import android.os.Bundle;
|
||||||
|
import org.apache.cordova.*;
|
||||||
|
|
||||||
|
public class PointsWatcher extends DroidGap
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void onCreate(Bundle savedInstanceState)
|
||||||
|
{
|
||||||
|
super.onCreate(savedInstanceState);
|
||||||
|
// Set by <content src="index.html" /> in config.xml
|
||||||
|
super.loadUrl(Config.getStartUrl());
|
||||||
|
//super.loadUrl("file:///android_asset/www/index.html")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
456
blackberry/blackberry.xml
Normal file
@ -0,0 +1,456 @@
|
|||||||
|
<project default="help">
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<!-- LOAD PROPERTIES -->
|
||||||
|
|
||||||
|
<property prefix="properties" file="project.properties" />
|
||||||
|
<property name="build.dir" location="build" />
|
||||||
|
<property name="widget.dir" location="${build.dir}/widget" />
|
||||||
|
<property name="code.sign" value="false" />
|
||||||
|
<property name="generate.ext" value="cod" />
|
||||||
|
<property name="globalization" value="false" />
|
||||||
|
|
||||||
|
<!-- BlackBerry WebWorks Packager directory is required. -->
|
||||||
|
<fail unless="properties.blackberry.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'blackberry.bbwp.dir' in your 'project.properties' file." />
|
||||||
|
|
||||||
|
<!-- OS identification -->
|
||||||
|
<condition property="isMacOSX" else="false">
|
||||||
|
<and>
|
||||||
|
<os family="mac" />
|
||||||
|
<os family="unix" />
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="javaloader" value="${properties.blackberry.bbwp.dir}/bin/javaloader" else="${properties.blackberry.bbwp.dir}/bin/javaloader">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="bbwp" value="${properties.blackberry.bbwp.dir}/bbwp" else="${properties.blackberry.bbwp.dir}/bbwp">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- LOAD DEVICE -->
|
||||||
|
|
||||||
|
<target name="load-device" depends="package-app">
|
||||||
|
<bbwp code-sign="true" />
|
||||||
|
<exec executable="${javaloader}" dir="." failonerror="true">
|
||||||
|
<arg value="-u" />
|
||||||
|
<arg value="-w${properties.blackberry.sim.password}" />
|
||||||
|
<arg value="load" />
|
||||||
|
<arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- DEBUG-LOAD DEVICE -->
|
||||||
|
|
||||||
|
<target name="debug-device" depends="package-app">
|
||||||
|
<bbwp code-sign="true" debug="true" />
|
||||||
|
<exec executable="${javaloader}" dir="." failonerror="true">
|
||||||
|
<arg value="-u" />
|
||||||
|
<arg value="-w${properties.blackberry.sim.password}" />
|
||||||
|
<arg value="load" />
|
||||||
|
<arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- LOAD SIMULATOR -->
|
||||||
|
|
||||||
|
<target name="load-simulator" depends="build">
|
||||||
|
|
||||||
|
<!-- Find the simulator directory -->
|
||||||
|
<set-simulator-dir />
|
||||||
|
|
||||||
|
<!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
|
||||||
|
<path id="bbwp.sim.path">
|
||||||
|
<first>
|
||||||
|
<fileset dir="${properties.blackberry.bbwp.dir}/simpack">
|
||||||
|
<include name="**/handhelds.manifest.txt" />
|
||||||
|
</fileset>
|
||||||
|
</first>
|
||||||
|
</path>
|
||||||
|
<dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
|
||||||
|
|
||||||
|
<!-- Simulator directory: Use sim.dir property if set in project.properties file.
|
||||||
|
Otherwise, use bbwp simulator directory. -->
|
||||||
|
<condition
|
||||||
|
property="simulator.dir"
|
||||||
|
value="${properties.blackberry.sim.dir}"
|
||||||
|
else="${bbwp.sim.dir}">
|
||||||
|
<available file="${properties.blackberry.sim.dir}" type="dir" />
|
||||||
|
</condition>
|
||||||
|
<echo message="Simulator directory=${simulator.dir}" />
|
||||||
|
|
||||||
|
<!-- Simulator binary: Use sim.bin property if set in project.properties file
|
||||||
|
or try setting to 'defaultSimulator.bat' in simulator directory. -->
|
||||||
|
<condition
|
||||||
|
property="sim.bin"
|
||||||
|
value="${properties.blackberry.sim.bin}"
|
||||||
|
else="defaultSimulator.bat">
|
||||||
|
<available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- If simulator executable does not exist, use the first device listed
|
||||||
|
in the 'handhelds.manifest.txt' file in the simulator directory. -->
|
||||||
|
<loadfile
|
||||||
|
property="device.list"
|
||||||
|
srcFile="${simulator.dir}/handhelds.manifest.txt">
|
||||||
|
<filterchain>
|
||||||
|
<tokenFilter>
|
||||||
|
<stringtokenizer/>
|
||||||
|
</tokenFilter>
|
||||||
|
</filterchain>
|
||||||
|
</loadfile>
|
||||||
|
|
||||||
|
<propertyregex property="device"
|
||||||
|
input="${device.list}"
|
||||||
|
regexp="^\d{4}"
|
||||||
|
select="\0"
|
||||||
|
override="true" />
|
||||||
|
<property name="device.bin" value="${device}.bat" />
|
||||||
|
|
||||||
|
<condition
|
||||||
|
property="simulator.bin"
|
||||||
|
value="${sim.bin}"
|
||||||
|
else="${device.bin}">
|
||||||
|
<available file="${simulator.dir}/${sim.bin}" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
|
||||||
|
|
||||||
|
<!-- Close running simulators -->
|
||||||
|
<echo message="Closing all running simulators..." />
|
||||||
|
<exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
|
||||||
|
<arg value="/execute=kill" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<!-- MDS directory: Use mds.dir property if set in project.properties file.
|
||||||
|
Otherwise, use bbwp MDS directory. -->
|
||||||
|
<condition
|
||||||
|
property="mds.dir"
|
||||||
|
value="${properties.blackberry.mds.dir}"
|
||||||
|
else="${properties.blackberry.bbwp.dir}/mds">
|
||||||
|
<available file="${properties.blackberry.mds.dir}" type="dir" />
|
||||||
|
</condition>
|
||||||
|
<echo message="MDS directory=${mds.dir}" />
|
||||||
|
|
||||||
|
<copy todir="${simulator.dir}">
|
||||||
|
<fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
|
||||||
|
</copy>
|
||||||
|
<exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
|
||||||
|
<exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
|
||||||
|
|
||||||
|
<!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
|
||||||
|
WebWorks SDK do not include it. -->
|
||||||
|
<if>
|
||||||
|
<available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
|
||||||
|
<then>
|
||||||
|
<exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="debug-simulator" depends="package-app">
|
||||||
|
<bbwp code-sign="false" debug="true" />
|
||||||
|
|
||||||
|
<!-- Find the simulator directory -->
|
||||||
|
<set-simulator-dir />
|
||||||
|
|
||||||
|
<!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
|
||||||
|
<path id="bbwp.sim.path">
|
||||||
|
<first>
|
||||||
|
<fileset dir="${properties.blackberry.bbwp.dir}/simpack">
|
||||||
|
<include name="**/handhelds.manifest.txt" />
|
||||||
|
</fileset>
|
||||||
|
</first>
|
||||||
|
</path>
|
||||||
|
<dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
|
||||||
|
|
||||||
|
<!-- Simulator directory: Use sim.dir property if set in project.properties file.
|
||||||
|
Otherwise, use bbwp simulator directory. -->
|
||||||
|
<condition
|
||||||
|
property="simulator.dir"
|
||||||
|
value="${properties.blackberry.sim.dir}"
|
||||||
|
else="${bbwp.sim.dir}">
|
||||||
|
<available file="${properties.blackberry.sim.dir}" type="dir" />
|
||||||
|
</condition>
|
||||||
|
<echo message="Simulator directory=${simulator.dir}" />
|
||||||
|
|
||||||
|
<!-- Simulator binary: Use sim.bin property if set in project.properties file
|
||||||
|
or try setting to 'defaultSimulator.bat' in simulator directory. -->
|
||||||
|
<condition
|
||||||
|
property="sim.bin"
|
||||||
|
value="${properties.blackberry.sim.bin}"
|
||||||
|
else="defaultSimulator.bat">
|
||||||
|
<available file="${simulator.dir}/${properties.blackberry.sim.bin}"/>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- If simulator executable does not exist, use the first device listed
|
||||||
|
in the 'handhelds.manifest.txt' file in the simulator directory. -->
|
||||||
|
<loadfile
|
||||||
|
property="device.list"
|
||||||
|
srcFile="${simulator.dir}/handhelds.manifest.txt">
|
||||||
|
<filterchain>
|
||||||
|
<tokenFilter>
|
||||||
|
<stringtokenizer/>
|
||||||
|
</tokenFilter>
|
||||||
|
</filterchain>
|
||||||
|
</loadfile>
|
||||||
|
|
||||||
|
<propertyregex property="device"
|
||||||
|
input="${device.list}"
|
||||||
|
regexp="^\d{4}"
|
||||||
|
select="\0"
|
||||||
|
override="true" />
|
||||||
|
<property name="device.bin" value="${device}.bat" />
|
||||||
|
|
||||||
|
<condition
|
||||||
|
property="simulator.bin"
|
||||||
|
value="${sim.bin}"
|
||||||
|
else="${device.bin}">
|
||||||
|
<available file="${simulator.dir}/${sim.bin}" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<echo message="Simulator executable=${simulator.dir}/${simulator.bin}" />
|
||||||
|
|
||||||
|
<!-- Close running simulators -->
|
||||||
|
<echo message="Closing all running simulators..." />
|
||||||
|
<exec executable="${simulator.dir}/fledgecontroller.exe" dir="${simulator.dir}" spawn="false">
|
||||||
|
<arg value="/execute=kill" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<!-- MDS directory: Use mds.dir property if set in project.properties file.
|
||||||
|
Otherwise, use bbwp MDS directory. -->
|
||||||
|
<condition
|
||||||
|
property="mds.dir"
|
||||||
|
value="${properties.blackberry.mds.dir}"
|
||||||
|
else="${properties.blackberry.bbwp.dir}/mds">
|
||||||
|
<available file="${properties.blackberry.mds.dir}" type="dir" />
|
||||||
|
</condition>
|
||||||
|
<echo message="MDS directory=${mds.dir}" />
|
||||||
|
|
||||||
|
<copy todir="${simulator.dir}">
|
||||||
|
<fileset dir="${build.dir}/StandardInstall" includes="*.cod, *.cso, *.csl, *.alx" />
|
||||||
|
</copy>
|
||||||
|
<exec executable="${mds.dir}/run.bat" dir="${mds.dir}" spawn="true" />
|
||||||
|
<exec executable="${simulator.dir}/${simulator.bin}" dir="${simulator.dir}" spawn="true" />
|
||||||
|
|
||||||
|
<!-- Only invoke FledgeHook.exe if it is found. Newer versions of the
|
||||||
|
WebWorks SDK do not include it. -->
|
||||||
|
<if>
|
||||||
|
<available file="${properties.blackberry.bbwp.dir}/FledgeHook.exe" />
|
||||||
|
<then>
|
||||||
|
<exec executable="${properties.blackberry.bbwp.dir}/FledgeHook.exe" dir="${properties.blackberry.bbwp.dir}" spawn="true" />
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- PACKAGE-APP -->
|
||||||
|
|
||||||
|
<target name="package-app" depends="generate-cod-name, clean">
|
||||||
|
<!-- Copy the WebWorks application -->
|
||||||
|
<mkdir dir="${widget.dir}" />
|
||||||
|
<copy todir="${widget.dir}" overwrite="true">
|
||||||
|
<fileset dir="www" >
|
||||||
|
<exclude name="ext-air/**"/>
|
||||||
|
<exclude name="ext-qnx/**"/>
|
||||||
|
<exclude name="res/resourceBundles/**" unless="${globalization}"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Package the WebWorks app by zipping the widget dir. -->
|
||||||
|
<mkdir dir="${build.dir}" />
|
||||||
|
<zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- BUILD -->
|
||||||
|
|
||||||
|
<target name="build" depends="package-app">
|
||||||
|
<bbwp code-sign="${code.sign}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- BBWP MACRO -->
|
||||||
|
|
||||||
|
<macrodef name="bbwp">
|
||||||
|
<attribute name="code-sign" default="false" />
|
||||||
|
<attribute name="debug" default="false" />
|
||||||
|
<sequential>
|
||||||
|
<!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
|
||||||
|
<if>
|
||||||
|
<equals arg1="@{debug}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<property name="debug.flag" value="/d" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<property name="debug.flag" value="" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<!-- Ensure bbwp executable exists. -->
|
||||||
|
<property name="properties.blackberry.bbwp.bin" location="${bbwp}" />
|
||||||
|
<available file="${properties.blackberry.bbwp.bin}" property="properties.blackberry.bbwp.exists" />
|
||||||
|
<fail unless="properties.blackberry.bbwp.exists" message="Cannot find ${properties.blackberry.bbwp.bin}. Please edit 'blackberry.bbwp.dir' in your 'project.properties' file." />
|
||||||
|
|
||||||
|
<if>
|
||||||
|
<equals arg1="@{code-sign}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<exec executable="${properties.blackberry.bbwp.bin}">
|
||||||
|
<arg file="${build.dir}/${cod.name}.zip" />
|
||||||
|
<arg value="-g" />
|
||||||
|
<arg value="${properties.blackberry.sigtool.password}" />
|
||||||
|
<arg line="${debug.flag} /o" />
|
||||||
|
<arg file="${build.dir}" />
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<exec executable="${properties.blackberry.bbwp.bin}">
|
||||||
|
<arg file="${build.dir}/${cod.name}.zip" />
|
||||||
|
<arg line="${debug.flag} /o" />
|
||||||
|
<arg file="${build.dir}" />
|
||||||
|
</exec>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<!-- CLEAN -->
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${build.dir}" />
|
||||||
|
<delete dir="${widget.dir}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- CLEAN DEVICE -->
|
||||||
|
|
||||||
|
<target name="clean-device" depends="generate-cod-name">
|
||||||
|
<exec executable="${javaloader}">
|
||||||
|
<arg value="-usb" />
|
||||||
|
<arg value="erase" />
|
||||||
|
<arg value="-f" />
|
||||||
|
<arg value="${cod.name}.cod" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- CLEAN SIMULATOR -->
|
||||||
|
|
||||||
|
<target name="clean-simulator">
|
||||||
|
<!-- Find the simulator directory -->
|
||||||
|
<set-simulator-dir />
|
||||||
|
|
||||||
|
<exec executable="${simulator.dir}/clean.bat" dir="${simulator.dir}" />
|
||||||
|
|
||||||
|
<delete>
|
||||||
|
<fileset dir="${simulator.dir}" includes="*.cod,*.csl,*.cso,*.debug,*.jar" />
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- HELPER TASKS -->
|
||||||
|
|
||||||
|
<target name="generate-cod-name">
|
||||||
|
<xmlproperty file="res/config.xml" prefix="config.xml" />
|
||||||
|
<propertyregex property="cod.name"
|
||||||
|
input="${config.xml.widget.name}"
|
||||||
|
regexp="(\W+)"
|
||||||
|
replace=""
|
||||||
|
casesensitive="false"
|
||||||
|
global="true"
|
||||||
|
defaultValue="${config.xml.widget.name}" />
|
||||||
|
<echo message="Generated name: ${cod.name}.cod" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- MACRO: SET SIMULATOR DIRECTORY -->
|
||||||
|
|
||||||
|
<macrodef name="set-simulator-dir">
|
||||||
|
<sequential>
|
||||||
|
<!-- Locate BBWP simulator directory. There may be multiple, so choose the first. -->
|
||||||
|
<path id="bbwp.sim.path">
|
||||||
|
<first>
|
||||||
|
<fileset dir="${properties.blackberry.bbwp.dir}/simpack">
|
||||||
|
<include name="**/handhelds.manifest.txt" />
|
||||||
|
</fileset>
|
||||||
|
</first>
|
||||||
|
</path>
|
||||||
|
<dirname property="bbwp.sim.dir" file="${toString:bbwp.sim.path}" />
|
||||||
|
|
||||||
|
<!-- Simulator directory: Use sim.dir property if set in project.properties file.
|
||||||
|
Otherwise, use bbwp simulator directory. -->
|
||||||
|
<condition
|
||||||
|
property="simulator.dir"
|
||||||
|
value="${properties.blackberry.sim.dir}"
|
||||||
|
else="${bbwp.sim.dir}">
|
||||||
|
<available file="${properties.blackberry.sim.dir}" type="dir" />
|
||||||
|
</condition>
|
||||||
|
<echo message="Simulator directory=${simulator.dir}" />
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<!-- HELP -->
|
||||||
|
|
||||||
|
<target name="help">
|
||||||
|
<echo>
|
||||||
|
NAME
|
||||||
|
${ant.project.name}
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
ant TARGET COMMAND [-D<argument>=<value>]...
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
You can build and deploy your project to a device or simulator.
|
||||||
|
|
||||||
|
TARGETS
|
||||||
|
blackberry ........ Builds a cod file and deploys to a device or simulator
|
||||||
|
|
||||||
|
playbook .......... Builds a bar file and deploys to a device or simulator
|
||||||
|
|
||||||
|
COMMANDS
|
||||||
|
help .............. Show this help menu.
|
||||||
|
ant, ant help
|
||||||
|
|
||||||
|
load-device ....... Builds and deploys project to a connected USB device.
|
||||||
|
ant load-device
|
||||||
|
|
||||||
|
load-simulator .... Builds and deploys project to default simulator.
|
||||||
|
ant load-simulator
|
||||||
|
|
||||||
|
build ............. Compiles and packages the project for deployment.
|
||||||
|
ant build
|
||||||
|
|
||||||
|
clean ............. Remove all files from the build/ directory.
|
||||||
|
ant clean
|
||||||
|
|
||||||
|
clean-device ...... Remove this project from the connected USB device.
|
||||||
|
ant clean-device
|
||||||
|
|
||||||
|
clean-simulator ... Remove this project from the simulator (takes a while).
|
||||||
|
ant clean-simulator
|
||||||
|
|
||||||
|
GETTING STARTED
|
||||||
|
1. Edit project.properties
|
||||||
|
|
||||||
|
2. <ant load-simulator> to run the project on the simulator
|
||||||
|
|
||||||
|
3. Customize your project by editing res/config.xml
|
||||||
|
|
||||||
|
4. To run the project on a BlackBerry device, you will need to obtain
|
||||||
|
code signing keys from RIM. Once you have the key, a project is
|
||||||
|
installed by connecting a BlackBerry via USB and running
|
||||||
|
<ant load-device>.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
160
blackberry/build.xml
Normal file
@ -0,0 +1,160 @@
|
|||||||
|
<project name="Build and Deploy a Cordova BlackBerry WebWorks Project" default="help">
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<!-- LOAD ANT-CONTRIB LIBRARY -->
|
||||||
|
|
||||||
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="./lib/ant-contrib/ant-contrib-1.0b3.jar" />
|
||||||
|
</classpath>
|
||||||
|
</taskdef>
|
||||||
|
|
||||||
|
<!-- LOAD PROPERTIES -->
|
||||||
|
|
||||||
|
<property prefix="properties" file="project.properties" />
|
||||||
|
<property name="build.dir" location="build" />
|
||||||
|
<property name="widget.dir" location="${build.dir}/widget" />
|
||||||
|
<property name="code.sign" value="false" />
|
||||||
|
<property name="globalization" value="false" />
|
||||||
|
|
||||||
|
<target name="blackberry" >
|
||||||
|
<property name="subant.file" value="blackberry.xml" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="playbook" >
|
||||||
|
<property name="subant.file" value="playbook.xml" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="qnx" >
|
||||||
|
<property name="subant.file" value="qnx.xml" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="load-device">
|
||||||
|
<subant target="load-device">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="load-simulator">
|
||||||
|
<subant target="load-simulator">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="debug-simulator">
|
||||||
|
<subant target="debug-simulator">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="debug-device">
|
||||||
|
<subant target="debug-device">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="build">
|
||||||
|
<subant target="build">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<subant target="clean">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean-device">
|
||||||
|
<subant target="clean-device">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="package-app">
|
||||||
|
<subant target="package-app">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean-simulator">
|
||||||
|
<subant target="clean-simulator">
|
||||||
|
<fileset dir="." includes="${subant.file}"/>
|
||||||
|
</subant>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- HELP -->
|
||||||
|
|
||||||
|
<target name="help">
|
||||||
|
<echo>
|
||||||
|
NAME
|
||||||
|
${ant.project.name}
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
ant TARGET COMMAND [-D<argument>=<value>]...
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
You can build and deploy your project to a device or simulator.
|
||||||
|
|
||||||
|
TARGETS
|
||||||
|
blackberry ........ Builds a cod file and deploys to a device or simulator
|
||||||
|
|
||||||
|
playbook .......... Builds a bar file and deploys to a device or simulator
|
||||||
|
|
||||||
|
qnx ............... Builds a bar file and deploys to a device or simulator
|
||||||
|
|
||||||
|
COMMANDS
|
||||||
|
help .............. Show this help menu.
|
||||||
|
ant, ant help
|
||||||
|
|
||||||
|
load-device ....... Builds and deploys project to a connected USB device.
|
||||||
|
ant TARGET load-device
|
||||||
|
|
||||||
|
load-simulator .... Builds and deploys project to default simulator.
|
||||||
|
ant TARGET load-simulator
|
||||||
|
|
||||||
|
build ............. Compiles and packages the project for deployment.
|
||||||
|
ant TARGET build
|
||||||
|
|
||||||
|
package-app ....... Packages the app into a WebWorks-compatible .zip file.
|
||||||
|
ant TARGET package-app
|
||||||
|
|
||||||
|
clean ............. Remove all files from the build/ directory.
|
||||||
|
ant TARGET clean
|
||||||
|
|
||||||
|
clean-device ...... Remove this project from the connected USB device.
|
||||||
|
ant TARGET clean-device
|
||||||
|
|
||||||
|
clean-simulator ... Remove this project from the simulator (takes a while).
|
||||||
|
ant TARGET clean-simulator
|
||||||
|
|
||||||
|
GETTING STARTED
|
||||||
|
1. Edit project.properties
|
||||||
|
|
||||||
|
2. <ant load-simulator> to run the project on the simulator
|
||||||
|
|
||||||
|
3. Customize your project by editing res/config.xml
|
||||||
|
|
||||||
|
4. To run the project on a BlackBerry device, you will need to obtain
|
||||||
|
code signing keys from RIM. Once you have the key, a project is
|
||||||
|
installed by connecting a BlackBerry via USB and running
|
||||||
|
<ant load-device>.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
44
blackberry/cordova/build
Executable file
@ -0,0 +1,44 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
ANT=$(which ant)
|
||||||
|
|
||||||
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
|
echo 'usage: build <platform>'
|
||||||
|
echo 'where <platform> can be one of "blackberry", "playbook" or "qnx"'
|
||||||
|
echo 'NOTE: please customize the project.properties file first before using this command!'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
function clean_after_build(){
|
||||||
|
rm www/cordova.js
|
||||||
|
mv www/config.main.xml www/config.xml
|
||||||
|
}
|
||||||
|
|
||||||
|
cd "$( dirname "$0" )"/..
|
||||||
|
|
||||||
|
if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
|
||||||
|
then
|
||||||
|
trap clean_after_build EXIT
|
||||||
|
cp lib/cordova.2.5.0/javascript/cordova-2.5.0.js www/cordova.js
|
||||||
|
mv www/config.xml www/config.main.xml && cp res/config.xml www/config.xml
|
||||||
|
$ANT $1 build
|
||||||
|
else
|
||||||
|
echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
|
||||||
|
fi
|
43
blackberry/cordova/run
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
ANT=$(which ant)
|
||||||
|
|
||||||
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
|
echo 'usage: run <platform>'
|
||||||
|
echo 'where <platform> can be one of "blackberry", "playbook" or "qnx"'
|
||||||
|
echo 'NOTE: please customize the project.properties file first before using this command!'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$( dirname "$0" )"/..
|
||||||
|
|
||||||
|
if [ "$1" == "blackberry" -o "$1" == "playbook" -o "$1" == "qnx" ]
|
||||||
|
then
|
||||||
|
echo 'Do you have a BlackBerry device connected to your computer? (y/n)'
|
||||||
|
read DEVICE
|
||||||
|
if [ $DEVICE == "y" ]
|
||||||
|
then
|
||||||
|
$ANT $1 debug-device
|
||||||
|
else
|
||||||
|
$ANT $1 load-simulator
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo 'Platform not recognized! Please use one of "blackberry", "playbook", or "qnx" for the platform parameter.'
|
||||||
|
fi
|
BIN
blackberry/lib/ant-contrib/ant-contrib-1.0b3.jar
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<library isWhitelist="true">
|
||||||
|
<extension>
|
||||||
|
<entryClass>org.apache.cordova.network.Network</entryClass>
|
||||||
|
</extension>
|
||||||
|
|
||||||
|
<platforms>
|
||||||
|
<platform value="AIR">
|
||||||
|
<target version="default" config="AIR_XHR" />
|
||||||
|
</platform>
|
||||||
|
</platforms>
|
||||||
|
|
||||||
|
<configurations>
|
||||||
|
<configuration name="AIR_XHR" version="1.0" comment="For XHR architecture for Java implementation">
|
||||||
|
<src type="text/actionscript" path="src" comment="ActionScript implementation" />
|
||||||
|
</configuration>
|
||||||
|
</configurations>
|
||||||
|
|
||||||
|
<features>
|
||||||
|
<feature id="org.apache.cordova" version="1.0.0" />
|
||||||
|
</features>
|
||||||
|
</library>
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2011, Research In Motion Limited.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.apache.cordova.network {
|
||||||
|
import flash.net.NetworkInfo;
|
||||||
|
import flash.net.NetworkInterface;
|
||||||
|
import flash.events.Event;
|
||||||
|
import qnx.system.Device;
|
||||||
|
|
||||||
|
import webworks.extension.DefaultExtension;
|
||||||
|
|
||||||
|
public class Network extends DefaultExtension{
|
||||||
|
|
||||||
|
private var _jsFunctionCallbackIDs:Array = [];
|
||||||
|
private const FEATURE_ID:Array = [ "org.apache.cordova" ];
|
||||||
|
|
||||||
|
public function Network() {
|
||||||
|
//Attach event listener once only
|
||||||
|
NetworkInfo.networkInfo.addEventListener(flash.events.Event.NETWORK_CHANGE, networkChange);
|
||||||
|
}
|
||||||
|
|
||||||
|
override public function getFeatureList():Array {
|
||||||
|
return FEATURE_ID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getConnectionInfo(param:String):void{
|
||||||
|
if(_jsFunctionCallbackIDs.indexOf(param) < 0){
|
||||||
|
_jsFunctionCallbackIDs.push(param);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDeviceInfo(id:String):void{
|
||||||
|
evalJavaScriptEvent(id, [{
|
||||||
|
"uuid" : Device.device.pin,
|
||||||
|
"version": Device.device.scmBundle
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function networkChange( event: Event ) : void {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Right now, we only care if there is a connection or not, since PlayBook only has WiFi
|
||||||
|
* At the JS layer, we will map this from offline/online.
|
||||||
|
* At some point in the future where there are more connection types on PlayBook,
|
||||||
|
* we will want to attempt to map this to the real Cordova connection types...
|
||||||
|
*/
|
||||||
|
|
||||||
|
var haveCoverage : Boolean = false;
|
||||||
|
var networkStatus : String = "offline";
|
||||||
|
var connectionType = "none";
|
||||||
|
|
||||||
|
NetworkInfo.networkInfo.findInterfaces().some(
|
||||||
|
function callback(item:NetworkInterface, index:int, vector:Vector.<NetworkInterface>):Boolean {
|
||||||
|
this.webView.executeJavaScript("alert('Network Interface ' + item.name)");
|
||||||
|
haveCoverage = item.active || haveCoverage;
|
||||||
|
return haveCoverage;
|
||||||
|
}, this);
|
||||||
|
|
||||||
|
if (haveCoverage) {
|
||||||
|
networkStatus = "online";
|
||||||
|
connectionType = "wifi";
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var i:Number=0; i<_jsFunctionCallbackIDs.length ; i++){
|
||||||
|
evalJavaScriptEvent(_jsFunctionCallbackIDs[i], [{"type" : connectionType, "event" : networkStatus }] );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2011 Research In Motion Limited.
|
||||||
|
*
|
||||||
|
* Licensed 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.
|
||||||
|
*/
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2011 Research In Motion Limited.
|
||||||
|
*
|
||||||
|
* Licensed 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 Whitelist = require("../../lib/policy/whitelist").Whitelist,
|
||||||
|
whitelist = new Whitelist(),
|
||||||
|
noop = function () {};
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
isWhitelisted: function (success, fail, args) {
|
||||||
|
var url = JSON.parse(decodeURIComponent(args[0])),
|
||||||
|
success = success || noop,
|
||||||
|
fail = fail || noop;
|
||||||
|
|
||||||
|
if (url) {
|
||||||
|
success(whitelist.isAccessAllowed(url));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
error("please provide an url");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"global": false,
|
||||||
|
"namespace": "org.apache.cordova",
|
||||||
|
"dependencies": []
|
||||||
|
}
|
1
blackberry/lib/cordova.2.5.0/ext-qnx/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Placeholder for native extensions needed on qnx
|
BIN
blackberry/lib/cordova.2.5.0/ext/cordova.2.5.0.jar
Normal file
10569
blackberry/lib/cordova.2.5.0/javascript/cordova-2.5.0.js
vendored
Normal file
338
blackberry/playbook.xml
Normal file
@ -0,0 +1,338 @@
|
|||||||
|
<project default="help">
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<!-- LOAD PROPERTIES -->
|
||||||
|
|
||||||
|
<property prefix="properties" file="project.properties" />
|
||||||
|
<property name="build.dir" location="build" />
|
||||||
|
<property name="widget.dir" location="${build.dir}/widget" />
|
||||||
|
<property name="code.sign" value="false" />
|
||||||
|
<property name="generate.ext" value="cod" />
|
||||||
|
<property name="build.num.file" value="buildId.txt" />
|
||||||
|
|
||||||
|
<!-- BlackBerry WebWorks Packager for Tablets directory is required. -->
|
||||||
|
<fail unless="properties.playbook.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'playbook.bbwp.dir' in your 'project.properties' file." />
|
||||||
|
|
||||||
|
<!-- OS identification -->
|
||||||
|
<condition property="isMacOSX" else="false">
|
||||||
|
<and>
|
||||||
|
<os family="mac" />
|
||||||
|
<os family="unix" />
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="bbwp" value="${properties.playbook.bbwp.dir}/bbwp" else="${properties.playbook.bbwp.dir}/bbwp.exe">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="blackberry-deploy" value="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-deploy" else="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-deploy.bat">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="blackberry-debugtokenrequest" value="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-debugtokenrequest" else="${properties.playbook.bbwp.dir}/blackberry-tablet-sdk/bin/blackberry-debugtokenrequest.bat">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- LOAD DEVICE -->
|
||||||
|
|
||||||
|
<target name="load-device" depends="package-app">
|
||||||
|
<bbwp code-sign="true" />
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- DEBUG-LOAD DEVICE -->
|
||||||
|
|
||||||
|
<target name="debug-device" depends="package-app">
|
||||||
|
<if>
|
||||||
|
<equals arg1="${properties.playbook.device.pin}" arg2="" />
|
||||||
|
<then>
|
||||||
|
<echo>
|
||||||
|
If you fill in the playbook.device.pin value you can use debug tokens!
|
||||||
|
This means you won't have to worry about having a unique version in config.xml every time.
|
||||||
|
</echo>
|
||||||
|
<bbwp code-sign="true" debug="true" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<generate-debug-token />
|
||||||
|
<bbwp code-sign="false" debug="true" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- LOAD SIMULATOR -->
|
||||||
|
|
||||||
|
<target name="load-simulator" depends="build">
|
||||||
|
|
||||||
|
<echo>This tool will not open the simulator for you </echo>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.sim.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.sim.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="debug-simulator" depends="package-app">
|
||||||
|
<bbwp code-sign="false" debug="true" />
|
||||||
|
<echo>This tool will not open the simulator for you </echo>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.sim.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.sim.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
<!-- PACKAGE-APP -->
|
||||||
|
|
||||||
|
<target name="package-app" depends="generate-cod-name, clean">
|
||||||
|
<!-- Copy the WebWorks application -->
|
||||||
|
<mkdir dir="${widget.dir}" />
|
||||||
|
<copy todir="${widget.dir}" overwrite="true">
|
||||||
|
<fileset dir="www" >
|
||||||
|
<exclude name="ext/**"/>
|
||||||
|
<exclude name="ext-air/**"/>
|
||||||
|
<exclude name="res/resourceBundles/**"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Update WebWorks Packager with the AIR APIs -->
|
||||||
|
<copy todir="${properties.playbook.bbwp.dir}\ext" overwrite="true">
|
||||||
|
<fileset dir="www/ext-air" excludes="README.md" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Package the WebWorks app by zipping the widget dir. -->
|
||||||
|
<mkdir dir="${build.dir}" />
|
||||||
|
<zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- BUILD -->
|
||||||
|
|
||||||
|
<target name="build" depends="package-app">
|
||||||
|
<bbwp code-sign="${code.sign}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- BBWP MACRO -->
|
||||||
|
|
||||||
|
<macrodef name="bbwp">
|
||||||
|
<attribute name="code-sign" default="false" />
|
||||||
|
<attribute name="debug" default="false" />
|
||||||
|
<sequential>
|
||||||
|
<!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
|
||||||
|
<if>
|
||||||
|
<equals arg1="@{debug}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<property name="debug.flag" value="-d" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<property name="debug.flag" value="" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
<buildnumber file="${build.num.file}" />
|
||||||
|
<if>
|
||||||
|
<equals arg1="@{code-sign}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<exec executable="${bbwp}">
|
||||||
|
<arg file="${build.dir}/${cod.name}.zip" />
|
||||||
|
<arg value="-gcsk" />
|
||||||
|
<arg value="${properties.playbook.sigtool.csk.password}" />
|
||||||
|
<arg value="-gp12" />
|
||||||
|
<arg value="${properties.playbook.sigtool.p12.password}" />
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg file="${build.dir}" />
|
||||||
|
<arg line="${debug.flag} -buildId" />
|
||||||
|
<arg value="${build.number}" />
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<exec executable="${bbwp}">
|
||||||
|
<arg file="${build.dir}/${cod.name}.zip" />
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg file="${build.dir}" />
|
||||||
|
<arg line="${debug.flag} -buildId" />
|
||||||
|
<arg value="${build.number}" />
|
||||||
|
</exec>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<!-- install debug token" -->
|
||||||
|
<macrodef name="generate-debug-token">
|
||||||
|
<sequential>
|
||||||
|
<exec executable="${blackberry-debugtokenrequest}" dir="." failonerror="true">
|
||||||
|
<arg value="-storepass" />
|
||||||
|
<arg value="${properties.playbook.sigtool.csk.password}" />
|
||||||
|
<arg value="-deviceID" />
|
||||||
|
<arg value="0x${properties.playbook.device.pin}" />
|
||||||
|
<arg file="${properties.playbook.bbwp.dir}/debugtoken.bar" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${properties.playbook.bbwp.dir}/debugtoken.bar" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<replaceregexp
|
||||||
|
file="${properties.playbook.bbwp.dir}/bin/bbwp.properties"
|
||||||
|
match='<debug_token>.*<\/debug_token>'
|
||||||
|
replace='<debug_token>${properties.playbook.bbwp.dir}/debugtoken.bar</debug_token>'
|
||||||
|
byline='true'/>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<!-- CLEAN -->
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${build.dir}" />
|
||||||
|
<delete dir="${widget.dir}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- CLEAN DEVICE -->
|
||||||
|
|
||||||
|
<target name="clean-device" depends="generate-cod-name">
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-uninstallApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- CLEAN SIMULATOR -->
|
||||||
|
|
||||||
|
<target name="clean-simulator" depends="generate-cod-name">
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-uninstallApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.playbook.sim.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.playbook.sim.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- HELPER TASKS -->
|
||||||
|
|
||||||
|
<target name="generate-cod-name">
|
||||||
|
<xmlproperty file="res/config.xml" prefix="config.xml" />
|
||||||
|
<propertyregex property="cod.name"
|
||||||
|
input="${config.xml.widget.name}"
|
||||||
|
regexp="(\W+)"
|
||||||
|
replace=""
|
||||||
|
casesensitive="false"
|
||||||
|
global="true"
|
||||||
|
defaultValue="${config.xml.widget.name}" />
|
||||||
|
<echo message="Generated name: ${cod.name}.bar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- HELP -->
|
||||||
|
|
||||||
|
<target name="help">
|
||||||
|
<echo>
|
||||||
|
NAME
|
||||||
|
${ant.project.name}
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
ant TARGET COMMAND [-D<argument>=<value>]...
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
You can build and deploy your project to a device or simulator.
|
||||||
|
|
||||||
|
TARGETS
|
||||||
|
blackberry ........ Builds a cod file and deploys to a device or simulator
|
||||||
|
|
||||||
|
playbook .......... Builds a bar file and deploys to a device or simulator
|
||||||
|
|
||||||
|
COMMANDS
|
||||||
|
help .............. Show this help menu.
|
||||||
|
ant, ant help
|
||||||
|
|
||||||
|
load-device ....... Builds and deploys project to a connected USB device.
|
||||||
|
ant load-device
|
||||||
|
|
||||||
|
load-simulator .... Builds and deploys project to default simulator.
|
||||||
|
ant load-simulator
|
||||||
|
|
||||||
|
build ............. Compiles and packages the project for deployment.
|
||||||
|
ant build
|
||||||
|
|
||||||
|
clean ............. Remove all files from the build/ directory.
|
||||||
|
ant clean
|
||||||
|
|
||||||
|
clean-device ...... Remove this project from the connected USB device.
|
||||||
|
ant clean-device
|
||||||
|
|
||||||
|
clean-simulator ... Remove this project from the simulator (takes a while).
|
||||||
|
ant clean-simulator
|
||||||
|
|
||||||
|
GETTING STARTED
|
||||||
|
1. Edit project.properties
|
||||||
|
|
||||||
|
2. <ant <TARGET> load-simulator> to run the project on the simulator
|
||||||
|
|
||||||
|
3. Customize your project by editing res/config.xml
|
||||||
|
|
||||||
|
4. To run the project on a BlackBerry device, you will need to obtain
|
||||||
|
code signing keys from RIM. Once you have the key, a project is
|
||||||
|
installed by connecting a BlackBerry via USB and running
|
||||||
|
<ant <TARGET> load-device>.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
137
blackberry/project.properties
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
# BlackBerry WebWorks Packager Directory
|
||||||
|
#
|
||||||
|
# The BlackBerry WebWorks Packager (bbwp) is required for compiling and packaging
|
||||||
|
# BlackBerry WebWorks applications for deployment to a BlackBerry device
|
||||||
|
# or simulator. The bbwp utility is installed with the standalone BlackBerry
|
||||||
|
# WebWorks SDK, and as part of the BlackBerry Web Plugin for Eclipse.
|
||||||
|
#
|
||||||
|
# Please specify the location of the BlackBerry WebWorks Packager in your
|
||||||
|
# environment.
|
||||||
|
#
|
||||||
|
# Typical location of bbwp for standalone BlackBerry WebWorks SDK installation:
|
||||||
|
# C:\Program Files (x86)\Research In Motion\BlackBerry Widget Packager
|
||||||
|
#
|
||||||
|
# Typical location of bbwp for BlackBerry Web Plugin for Eclipse installation:
|
||||||
|
# C:\Eclipse-3.5.2\plugins\net.rim.browser.tools.wcpc_1.0.0.201003191451-126\wcpc
|
||||||
|
#
|
||||||
|
# The ANT script is brittle and requires you to escape the backslashes.
|
||||||
|
# e.g. C:\some\path must be C:\\some\\path
|
||||||
|
#
|
||||||
|
# Please remember to:
|
||||||
|
# - Double escape your backslahses (i.e. \ must be \\)
|
||||||
|
# - Do not add a trailing slash (e.g. C:\some\path)
|
||||||
|
#
|
||||||
|
blackberry.bbwp.dir=/home/mopar/devel/priv/BB10-WebWorks-SDK-Linux
|
||||||
|
playbook.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\\bbwp
|
||||||
|
qnx.bbwp.dir=/Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.4.7
|
||||||
|
|
||||||
|
# (Optional) Simulator Directory
|
||||||
|
#
|
||||||
|
# If sim.dir is not specified, the build script will use the simulator directory
|
||||||
|
# within the BlackBerry WebWorks Packager.
|
||||||
|
#
|
||||||
|
blackberry.sim.dir=C:\\Program Files\\Research In Motion\BlackBerry WebWorks Packager\\simpack\\6.0.0.227
|
||||||
|
|
||||||
|
# (Optional) Simulator Binary
|
||||||
|
#
|
||||||
|
# If sim.bin is not specified, the build script will attempt to use the default
|
||||||
|
# simulator in the simulator directory.
|
||||||
|
#
|
||||||
|
#blackberry.sim.bin=9700.bat
|
||||||
|
|
||||||
|
# (Optional) MDS Directory
|
||||||
|
#
|
||||||
|
# If mds.dir is not specified, the build script will attempt to use the MDS that
|
||||||
|
# is installed with the BlackBerry WebWorks Packager.
|
||||||
|
#
|
||||||
|
blackberry.mds.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks Packager\\mds
|
||||||
|
|
||||||
|
# BlackBerry Code Signing Password
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# the signing tool will prompt you each time
|
||||||
|
#
|
||||||
|
blackberry.sigtool.password=
|
||||||
|
|
||||||
|
# Playbook Code Signing Password
|
||||||
|
#
|
||||||
|
# If you leave these fields blank, then
|
||||||
|
# signing will fail
|
||||||
|
#
|
||||||
|
playbook.sigtool.csk.password=
|
||||||
|
playbook.sigtool.p12.password=
|
||||||
|
|
||||||
|
# BB10 Code Signing Password
|
||||||
|
qnx.sigtool.password=
|
||||||
|
|
||||||
|
# BlackBerry Simulator Password
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to simulator
|
||||||
|
#
|
||||||
|
blackberry.sim.password=
|
||||||
|
|
||||||
|
# Playbook Simulator IP
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to simulator
|
||||||
|
#
|
||||||
|
playbook.sim.ip=
|
||||||
|
|
||||||
|
# Playbook Simulator Password
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to simulator
|
||||||
|
#
|
||||||
|
playbook.sim.password=
|
||||||
|
|
||||||
|
# Playbook Device IP
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to device
|
||||||
|
#
|
||||||
|
playbook.device.ip=
|
||||||
|
|
||||||
|
# Playbook Device Password
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to device
|
||||||
|
#
|
||||||
|
playbook.device.password=
|
||||||
|
# PlayBook Device PIN
|
||||||
|
#
|
||||||
|
# Fill this value in to use debug tokens when debuging on the device
|
||||||
|
playbook.device.pin=
|
||||||
|
|
||||||
|
# QNX Simulator IP
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to simulator
|
||||||
|
#
|
||||||
|
qnx.sim.ip=
|
||||||
|
|
||||||
|
# QNX Simulator Password
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to simulator
|
||||||
|
#
|
||||||
|
qnx.sim.password=
|
||||||
|
|
||||||
|
# QNX Device IP
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to device
|
||||||
|
#
|
||||||
|
qnx.device.ip=
|
||||||
|
|
||||||
|
# QNX Device Password
|
||||||
|
#
|
||||||
|
# If you leave this field blank, then
|
||||||
|
# you cannot deploy to device
|
||||||
|
#
|
||||||
|
qnx.device.password=
|
||||||
|
|
||||||
|
# QNX Device PIN
|
||||||
|
#
|
||||||
|
# Fill this value in to use debug tokens when debuging on the device
|
||||||
|
qnx.device.pin=
|
336
blackberry/qnx.xml
Normal file
@ -0,0 +1,336 @@
|
|||||||
|
<project default="help">
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<!-- LOAD PROPERTIES -->
|
||||||
|
|
||||||
|
<property prefix="properties" file="project.properties" />
|
||||||
|
<property name="build.dir" location="build" />
|
||||||
|
<property name="widget.dir" location="${build.dir}/widget" />
|
||||||
|
<property name="code.sign" value="false" />
|
||||||
|
<property name="generate.ext" value="cod" />
|
||||||
|
<property name="build.num.file" value="buildId.txt" />
|
||||||
|
|
||||||
|
<!-- BlackBerry WebWorks Packager for Tablets directory is required. -->
|
||||||
|
<fail unless="properties.qnx.bbwp.dir" message="Please specify BlackBerry WebWorks Packager directory using 'qnx.bbwp.dir' in your 'project.properties' file." />
|
||||||
|
|
||||||
|
<!-- OS identification -->
|
||||||
|
<condition property="isMacOSX" else="false">
|
||||||
|
<and>
|
||||||
|
<os family="mac" />
|
||||||
|
<os family="unix" />
|
||||||
|
</and>
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="bbwp" value="${properties.qnx.bbwp.dir}/bbwp" else="${properties.qnx.bbwp.dir}/bbwp.bat">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="blackberry-deploy" value="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-deploy" else="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-deploy.bat">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<condition property="blackberry-debugtokenrequest" value="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-debugtokenrequest" else="${properties.qnx.bbwp.dir}/dependencies/tools/bin/blackberry-debugtokenrequest.bat">
|
||||||
|
<equals arg1="${isMacOSX}" arg2="true" />
|
||||||
|
</condition>
|
||||||
|
|
||||||
|
<!-- LOAD DEVICE -->
|
||||||
|
|
||||||
|
<target name="load-device" depends="package-app">
|
||||||
|
<bbwp code-sign="true" />
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/device/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- DEBUG-LOAD DEVICE -->
|
||||||
|
|
||||||
|
<target name="debug-device" depends="package-app">
|
||||||
|
<if>
|
||||||
|
<equals arg1="${properties.qnx.device.pin}" arg2="" />
|
||||||
|
<then>
|
||||||
|
<echo>
|
||||||
|
If you fill in the qnx.device.pin value you can use debug tokens!
|
||||||
|
This means you won't have to worry about having a unique version in config.xml every time.
|
||||||
|
</echo>
|
||||||
|
<bbwp code-sign="true" debug="true" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<generate-debug-token />
|
||||||
|
<bbwp code-sign="false" debug="true" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/device/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- LOAD SIMULATOR -->
|
||||||
|
|
||||||
|
<target name="load-simulator" depends="build">
|
||||||
|
|
||||||
|
<echo>This tool will not open the simulator for you </echo>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.sim.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.sim.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/simulator/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="debug-simulator" depends="package-app">
|
||||||
|
|
||||||
|
<bbwp code-sign="false" debug="true" />
|
||||||
|
<echo>This tool will not open the simulator for you </echo>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-launchApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.sim.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.sim.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/simulator/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- PACKAGE-APP -->
|
||||||
|
|
||||||
|
<target name="package-app" depends="generate-cod-name, clean">
|
||||||
|
<!-- Copy the WebWorks application -->
|
||||||
|
<mkdir dir="${widget.dir}" />
|
||||||
|
<copy todir="${widget.dir}" overwrite="true">
|
||||||
|
<fileset dir="www" >
|
||||||
|
<exclude name="ext/**"/>
|
||||||
|
<exclude name="ext-air/**"/>
|
||||||
|
<exclude name="res/resourceBundles/**"/>
|
||||||
|
</fileset>
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Update WebWorks Packager with the QNX APIs -->
|
||||||
|
<copy todir="${properties.qnx.bbwp.dir}\Framework\ext" overwrite="true">
|
||||||
|
<fileset dir="www/ext-qnx" excludes="readme.md" />
|
||||||
|
</copy>
|
||||||
|
|
||||||
|
<!-- Package the WebWorks app by zipping the widget dir. -->
|
||||||
|
<mkdir dir="${build.dir}" />
|
||||||
|
<zip compress="false" destfile="${build.dir}/${cod.name}.zip" basedir="${widget.dir}" excludes="**/build/**,**/.settings/**,**/.project" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- BUILD -->
|
||||||
|
|
||||||
|
<target name="build" depends="package-app">
|
||||||
|
<bbwp code-sign="${code.sign}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- BBWP MACRO -->
|
||||||
|
|
||||||
|
<macrodef name="bbwp">
|
||||||
|
<attribute name="code-sign" default="false" />
|
||||||
|
<attribute name="debug" default="false" />
|
||||||
|
<sequential>
|
||||||
|
<!-- check if debug flag was passed in and set an appropriate flag for CLI exec of bbwp -->
|
||||||
|
<if>
|
||||||
|
<equals arg1="@{debug}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<property name="debug.flag" value="-d" />
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<property name="debug.flag" value="" />
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
<buildnumber file="${build.num.file}" />
|
||||||
|
<if>
|
||||||
|
<equals arg1="@{code-sign}" arg2="true" />
|
||||||
|
<then>
|
||||||
|
<exec executable="${bbwp}">
|
||||||
|
<arg file="${build.dir}/${cod.name}.zip" />
|
||||||
|
<arg value="-g" />
|
||||||
|
<arg value="${properties.qnx.sigtool.password}" />
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg file="${build.dir}" />
|
||||||
|
<arg line="${debug.flag} -b" />
|
||||||
|
<arg value="${build.number}" />
|
||||||
|
<arg value="--loglevel" />
|
||||||
|
<arg value="error" />
|
||||||
|
</exec>
|
||||||
|
</then>
|
||||||
|
<else>
|
||||||
|
<exec executable="${bbwp}">
|
||||||
|
<arg file="${build.dir}/${cod.name}.zip" />
|
||||||
|
<arg value="-o" />
|
||||||
|
<arg file="${build.dir}" />
|
||||||
|
<arg line="${debug.flag}" />
|
||||||
|
<arg value="--loglevel" />
|
||||||
|
<arg value="error" />
|
||||||
|
</exec>
|
||||||
|
</else>
|
||||||
|
</if>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
<!-- install debug token" -->
|
||||||
|
<macrodef name="generate-debug-token">
|
||||||
|
<sequential>
|
||||||
|
<exec executable="${blackberry-debugtokenrequest}" dir="." failonerror="true">
|
||||||
|
<arg value="-storepass" />
|
||||||
|
<arg value="${properties.qnx.sigtool.password}" />
|
||||||
|
<arg value="-deviceID" />
|
||||||
|
<arg value="0x${properties.qnx.device.pin}" />
|
||||||
|
<arg file="${properties.qnx.bbwp.dir}/debugtoken.bar" />
|
||||||
|
</exec>
|
||||||
|
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-installApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${properties.qnx.bbwp.dir}/debugtoken.bar" />
|
||||||
|
</exec>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- CLEAN -->
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${build.dir}" />
|
||||||
|
<delete dir="${widget.dir}" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- CLEAN DEVICE -->
|
||||||
|
|
||||||
|
<target name="clean-device" depends="generate-cod-name">
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-uninstallApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.device.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.device.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/device/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- CLEAN SIMULATOR -->
|
||||||
|
|
||||||
|
<target name="clean-simulator" depends="generate-cod-name">
|
||||||
|
<exec executable="${blackberry-deploy}" dir="." failonerror="true">
|
||||||
|
<arg value="-uninstallApp" />
|
||||||
|
<arg value="-device" />
|
||||||
|
<arg value="${properties.qnx.sim.ip}" />
|
||||||
|
<arg value="-password" />
|
||||||
|
<arg value="${properties.qnx.sim.password}" />
|
||||||
|
<arg value="-package" />
|
||||||
|
<arg file="${build.dir}/simulator/${cod.name}.bar" />
|
||||||
|
</exec>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- HELPER TASKS -->
|
||||||
|
|
||||||
|
<target name="generate-cod-name">
|
||||||
|
<xmlproperty file="res/config.xml" prefix="config.xml" />
|
||||||
|
<propertyregex property="cod.name"
|
||||||
|
input="${config.xml.widget.name}"
|
||||||
|
regexp="(\W+)"
|
||||||
|
replace=""
|
||||||
|
casesensitive="false"
|
||||||
|
global="true"
|
||||||
|
defaultValue="${config.xml.widget.name}" />
|
||||||
|
<echo message="Generated name: ${cod.name}.bar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- HELP -->
|
||||||
|
|
||||||
|
<target name="help">
|
||||||
|
<echo>
|
||||||
|
NAME
|
||||||
|
${ant.project.name}
|
||||||
|
|
||||||
|
SYNOPSIS
|
||||||
|
ant TARGET COMMAND [-D<argument>=<value>]...
|
||||||
|
|
||||||
|
DESCRIPTION
|
||||||
|
You can build and deploy your project to a device or simulator.
|
||||||
|
|
||||||
|
TARGETS
|
||||||
|
blackberry ........ Builds a cod file and deploys to a device or simulator
|
||||||
|
|
||||||
|
playbook .......... Builds a bar file and deploys to a device or simulator
|
||||||
|
|
||||||
|
COMMANDS
|
||||||
|
help .............. Show this help menu.
|
||||||
|
ant, ant help
|
||||||
|
|
||||||
|
load-device ....... Builds and deploys project to a connected USB device.
|
||||||
|
ant load-device
|
||||||
|
|
||||||
|
load-simulator .... Builds and deploys project to default simulator.
|
||||||
|
ant load-simulator
|
||||||
|
|
||||||
|
build ............. Compiles and packages the project for deployment.
|
||||||
|
ant build
|
||||||
|
|
||||||
|
clean ............. Remove all files from the build/ directory.
|
||||||
|
ant clean
|
||||||
|
|
||||||
|
clean-device ...... Remove this project from the connected USB device.
|
||||||
|
ant clean-device
|
||||||
|
|
||||||
|
clean-simulator ... Remove this project from the simulator (takes a while).
|
||||||
|
ant clean-simulator
|
||||||
|
|
||||||
|
GETTING STARTED
|
||||||
|
1. Edit project.properties
|
||||||
|
|
||||||
|
2. <ant <TARGET> load-simulator> to run the project on the simulator
|
||||||
|
|
||||||
|
3. Customize your project by editing res/config.xml
|
||||||
|
|
||||||
|
4. To run the project on a BlackBerry device, you will need to obtain
|
||||||
|
code signing keys from RIM. Once you have the key, a project is
|
||||||
|
installed by connecting a BlackBerry via USB and running
|
||||||
|
<ant <TARGET> load-device>.
|
||||||
|
</echo>
|
||||||
|
</target>
|
||||||
|
</project>
|
112
blackberry/res/config.xml
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
Widget Configuration Reference:
|
||||||
|
http://docs.blackberry.com/en/developers/deliverables/15274/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<widget xmlns="http://www.w3.org/ns/widgets"
|
||||||
|
xmlns:rim="http://www.blackberry.com/ns/widgets"
|
||||||
|
version="0.1" id="PointsWatcher">
|
||||||
|
|
||||||
|
<name>Points Watcher</name>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
Points Watcher is the easiest way to keep track of your Weight Watcher's Points Plus system.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<author href="http://android.moparisthebest.org" email="android@moparisthebest.com">
|
||||||
|
Travis Burtrum (moparisthebest)
|
||||||
|
</author>
|
||||||
|
|
||||||
|
<license href="https://www.gnu.org/licenses/gpl.html">
|
||||||
|
Copyright (C) 2013 Travis Burtrum (moparisthebest)
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
</license>
|
||||||
|
|
||||||
|
<!-- Cordova API -->
|
||||||
|
<feature id="blackberry.system" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="org.apache.cordova" required="true" version="1.0.0" />
|
||||||
|
<feature id="blackberry.find" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.identity" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.identity.phone" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.pim.Address" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.pim.Contact" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.io.file" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.utils" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.io.dir" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.app" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.app.event" required="true" version="1.0.0.0" />
|
||||||
|
<feature id="blackberry.system.event" required="true" version="1.0.0.0"/>
|
||||||
|
<feature id="blackberry.widgetcache" required="true" version="1.0.0.0"/>
|
||||||
|
<feature id="blackberry.media.camera" />
|
||||||
|
<feature id="blackberry.ui.dialog" />
|
||||||
|
<feature id="blackberry.connection" />
|
||||||
|
<feature id="blackberry.bbm.platform" />
|
||||||
|
<feature id="blackberry.invoke.card" />
|
||||||
|
<feature id="blackberry.pim.contacts" />
|
||||||
|
<feature id="blackberry.ui.contextmenu" />
|
||||||
|
<feature id="blackberry.io.filetransfer" />
|
||||||
|
<feature id="blackberry.io" />
|
||||||
|
<feature id="blackberry.invoke" />
|
||||||
|
<feature id="blackberry.invoked" />
|
||||||
|
<feature id="blackberry.push" />
|
||||||
|
<feature id="blackberry.media.microphone" required="true" version="1.0.0.0"/>
|
||||||
|
|
||||||
|
<!-- Cordova API -->
|
||||||
|
<access subdomains="true" uri="file:///store/home" />
|
||||||
|
<access subdomains="true" uri="file:///SDCard" />
|
||||||
|
|
||||||
|
<!-- Expose access to all URIs, including the file and http protocols -->
|
||||||
|
<access subdomains="true" uri="*" />
|
||||||
|
|
||||||
|
<icon rim:hover="false" src="res/icon/blackberry/icon-80.png" />
|
||||||
|
<icon rim:hover="true" src="res/icon/blackberry/icon-80.png" />
|
||||||
|
|
||||||
|
<rim:loadingScreen backgroundColor="#CFCFCF"
|
||||||
|
foregroundImage="res/screen/blackberry/screen-225.png"
|
||||||
|
onFirstLaunch="true">
|
||||||
|
<rim:transitionEffect type="fadeOut" />
|
||||||
|
</rim:loadingScreen>
|
||||||
|
|
||||||
|
<content src="index.html" />
|
||||||
|
|
||||||
|
<rim:permissions>
|
||||||
|
<rim:permit>use_camera</rim:permit>
|
||||||
|
<rim:permit>read_device_identifying_information</rim:permit>
|
||||||
|
<rim:permit>access_shared</rim:permit>
|
||||||
|
<rim:permit>read_geolocation</rim:permit>
|
||||||
|
<rim:permit>record_audio</rim:permit>
|
||||||
|
<rim:permit>access_pimdomain_contacts</rim:permit>
|
||||||
|
</rim:permissions>
|
||||||
|
|
||||||
|
</widget>
|
1
blackberry/www
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../www
|
71
images/convert.sh
Executable file
@ -0,0 +1,71 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
# create directory for market images
|
||||||
|
mkdir -p ./markets
|
||||||
|
convert -background none -resize 512x512\! ./icon.svg ./markets/512x512.png
|
||||||
|
|
||||||
|
# icons
|
||||||
|
# create required directories
|
||||||
|
mkdir -p ../www/res/icon/android ../www/res/icon/blackberry ../www/res/icon/ios ../www/res/icon/webos ../www/res/icon/windows-phone
|
||||||
|
# default
|
||||||
|
convert -background none -resize 96x96\! ./icon.svg ../www/icon.png
|
||||||
|
# android
|
||||||
|
convert -background none -resize 96x96\! ./icon.svg ../www/res/icon/android/icon-96-xhdpi.png
|
||||||
|
convert -background none -resize 72x72\! ./icon.svg ../www/res/icon/android/icon-72-hdpi.png
|
||||||
|
convert -background none -resize 48x48\! ./icon.svg ../www/res/icon/android/icon-48-mdpi.png
|
||||||
|
convert -background none -resize 36x36\! ./icon.svg ../www/res/icon/android/icon-36-ldpi.png
|
||||||
|
# blackberry
|
||||||
|
convert -background none -resize 80x80\! ./icon.svg ../www/res/icon/blackberry/icon-80.png
|
||||||
|
# ios
|
||||||
|
convert -background none -resize 57x57\! ./icon.svg ../www/res/icon/ios/icon-57.png
|
||||||
|
convert -background none -resize 72x72\! ./icon.svg ../www/res/icon/ios/icon-72.png
|
||||||
|
convert -background none -resize 114x114\! ./icon.svg ../www/res/icon/ios/icon-57-2x.png
|
||||||
|
convert -background none -resize 144x144\! ./icon.svg ../www/res/icon/ios/icon-72-2x.png
|
||||||
|
# webos
|
||||||
|
convert -background none -resize 64x64\! ./icon.svg ../www/res/icon/webos/icon-64.png
|
||||||
|
# windows phone
|
||||||
|
convert -background none -resize 48x48\! ./icon.svg ../www/res/icon/windows-phone/icon-48.png
|
||||||
|
convert -background none -resize 173x173\! ./icon.svg ../www/res/icon/windows-phone/icon-173.png
|
||||||
|
|
||||||
|
function splash_screen(){
|
||||||
|
x="$1"
|
||||||
|
y="$2"
|
||||||
|
in_file="$3"
|
||||||
|
out_file="$4"
|
||||||
|
|
||||||
|
gradient="gradient:gray-white"
|
||||||
|
gradient="gradient:#A7A7A7-#E4E4E4"
|
||||||
|
#gradient="radial-gradient:#555555-#222222"
|
||||||
|
|
||||||
|
convert -background none "$in_file" -resize 96x96\! \
|
||||||
|
\( -size 1x10 xc:none \) \
|
||||||
|
\( -size "${x}x" -background none -font Arial -pointsize 36 -fill "black" -gravity center caption:"Points Watcher" \) \
|
||||||
|
-gravity center -append \
|
||||||
|
\( -size "${x}x${y}" "$gradient" \) \
|
||||||
|
+swap -gravity center -compose over -composite "$out_file"
|
||||||
|
}
|
||||||
|
|
||||||
|
# splash screens
|
||||||
|
# create required directories
|
||||||
|
mkdir -p ../www/res/screen/android ../www/res/screen/blackberry ../www/res/screen/ios ../www/res/screen/windows-phone
|
||||||
|
# default
|
||||||
|
splash_screen 480 800 ./icon.svg ../www/screen.png
|
||||||
|
# android
|
||||||
|
splash_screen 200 320 ./icon.svg ../www/res/screen/android/screen-ldpi-portrait.png
|
||||||
|
splash_screen 320 480 ./icon.svg ../www/res/screen/android/screen-mdpi-portrait.png
|
||||||
|
splash_screen 480 800 ./icon.svg ../www/res/screen/android/screen-hdpi-portrait.png
|
||||||
|
splash_screen 720 1280 ./icon.svg ../www/res/screen/android/screen-xhdpi-portrait.png
|
||||||
|
splash_screen 200 320 ./icon.svg ../www/res/screen/android/screen-ldpi-portrait.png
|
||||||
|
# blackberry (appears to be just the icon)
|
||||||
|
#splash_screen 225 225 ./icon.svg ../www/res/screen/blackberry/screen-225.png
|
||||||
|
convert -background none -resize 225x225\! ./icon.svg ../www/res/screen/blackberry/screen-225.png
|
||||||
|
# ios
|
||||||
|
splash_screen 320 480 ./icon.svg ../www/res/screen/ios/screen-iphone-portrait.png
|
||||||
|
splash_screen 640 960 ./icon.svg ../www/res/screen/ios/screen-iphone-portrait-2x.png
|
||||||
|
splash_screen 768 1024 ./icon.svg ../www/res/screen/ios/screen-ipad-portrait.png
|
||||||
|
splash_screen 1024 768 ./icon.svg ../www/res/screen/ios/screen-ipad-landscape.png
|
||||||
|
# windows phone
|
||||||
|
splash_screen 480 800 ./icon.svg ../www/res/screen/windows-phone/screen-portrait.jpg
|
||||||
|
# screen shots
|
||||||
|
#convert -resize 480x854\! ./ss1.png ./markets/ss1.png
|
132
images/icon.svg
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
version="1.1"
|
||||||
|
x="0px"
|
||||||
|
y="0px"
|
||||||
|
width="100px"
|
||||||
|
height="100px"
|
||||||
|
viewBox="0 0 100 100"
|
||||||
|
enable-background="new 0 0 100 100"
|
||||||
|
xml:space="preserve"
|
||||||
|
id="svg2"
|
||||||
|
inkscape:version="0.48.3.1 r9886"
|
||||||
|
sodipodi:docname="point_watcher2.svg"><metadata
|
||||||
|
id="metadata47"><rdf:RDF><cc:Work
|
||||||
|
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
|
||||||
|
id="defs45" /><sodipodi:namedview
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1"
|
||||||
|
objecttolerance="10"
|
||||||
|
gridtolerance="10"
|
||||||
|
guidetolerance="10"
|
||||||
|
inkscape:pageopacity="0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:window-width="1440"
|
||||||
|
inkscape:window-height="845"
|
||||||
|
id="namedview43"
|
||||||
|
showgrid="false"
|
||||||
|
inkscape:zoom="4.72"
|
||||||
|
inkscape:cx="31.388566"
|
||||||
|
inkscape:cy="48.52389"
|
||||||
|
inkscape:window-x="-2"
|
||||||
|
inkscape:window-y="-3"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="Your_Icon" />
|
||||||
|
<g
|
||||||
|
id="Captions">
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="Your_Icon"
|
||||||
|
style="fill:#00000f;fill-opacity:1">
|
||||||
|
<path
|
||||||
|
d="m 29.888359,47.120689 c -0.866137,0 -1.60781,-0.653422 -1.694765,-1.529737 -0.09207,-0.930554 0.591633,-1.761104 1.529381,-1.852634 l 19.854673,-1.948402 c 0.03836,-0.0051 0.07672,-0.0068 0.115087,-0.0085 0.651308,-0.03136 2.194329,-0.27798 2.158524,-1.885687 -0.01279,-0.617827 -0.227617,-0.885637 -0.387886,-1.034797 -0.601011,-0.557655 -1.825198,-0.633929 -2.103112,-0.612742 l -29.790535,0.14749 c -0.0026,0 -0.006,0 -0.0085,0 -0.937747,0 -1.700733,-0.753427 -1.704995,-1.686524 -0.0043,-0.936488 0.755313,-1.69839 1.69647,-1.703475 l 29.715515,-0.14577 c 0.213125,-0.01356 2.785963,-0.08899 4.521648,1.522957 0.934338,0.865297 1.441574,2.056034 1.470559,3.440001 0.0844,3.762052 -3.159357,5.250261 -5.399721,5.345181 l -19.802696,1.944164 c -0.05712,0.0051 -0.113382,0.0085 -0.169647,0.0085 z"
|
||||||
|
id="path6"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<g
|
||||||
|
id="g8"
|
||||||
|
style="fill:#00000f;fill-opacity:1">
|
||||||
|
|
||||||
|
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g18"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
transform="matrix(0.85249777,0,0,0.84749971,-6.6590725,0.50820521)">
|
||||||
|
<path
|
||||||
|
d="m 20.735,81.311 c -1.456,0 -3.132,-0.334 -5.041,-1.184 -6.52,-2.926 -7.625,-9.234 -7.668,-9.502 -0.179,-1.09 0.56,-2.119 1.65,-2.297 1.085,-0.178 2.118,0.559 2.297,1.648 0.03,0.17 0.846,4.477 5.354,6.498 3.526,1.572 5.339,0.635 6.397,-0.207 0.864,-0.689 2.122,-0.543 2.81,0.32 0.688,0.865 0.544,2.123 -0.321,2.811 -1.243,0.989 -3.054,1.913 -5.478,1.913 z"
|
||||||
|
id="path20"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g22"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
transform="matrix(0.85249777,0,0,0.84749971,-6.6590725,0.50820521)">
|
||||||
|
<path
|
||||||
|
d="m 24.039,64.719 c -0.946,0 -1.787,-0.674 -1.964,-1.639 -0.2,-1.086 0.519,-2.129 1.604,-2.328 0.15,-0.031 4.088,-0.881 5.806,-5.51 2.092,-5.604 -2.031,-10.941 -2.073,-10.994 -0.579,-0.736 -0.574,-1.781 0.018,-2.508 1.892,-2.316 2.259,-4.533 2.235,-5.984 -0.012,-0.525 -0.25,-3.346 -3.776,-6.225 -1.687,-1.383 -2.381,-1.521 -3.137,-1.25 0.148,0.549 0.514,1.402 0.755,1.965 0.587,1.369 1.193,2.785 1.155,4.109 -0.062,2.08 -0.191,6.404 -4.005,11.637 -3.713,5.1 -8.306,6.455 -8.5,6.51 -1.063,0.301 -2.169,-0.314 -2.471,-1.375 -0.302,-1.059 0.309,-2.16 1.363,-2.469 0.086,-0.025 3.534,-1.119 6.375,-5.021 3.086,-4.232 3.183,-7.467 3.24,-9.398 0.013,-0.441 -0.497,-1.629 -0.833,-2.416 -0.87,-2.031 -2.326,-5.428 0.631,-6.896 3.173,-1.562 5.477,-0.527 7.96,1.51 4.759,3.887 5.215,8.057 5.242,9.244 0.026,1.537 -0.257,4.375 -2.237,7.371 1.462,2.377 3.996,7.723 1.806,13.588 -2.528,6.812 -8.574,8 -8.83,8.047 -0.122,0.02 -0.244,0.032 -0.364,0.032 z"
|
||||||
|
id="path24"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g26"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
transform="matrix(0.85249777,0,0,0.84749971,-6.6590725,0.50820521)">
|
||||||
|
<path
|
||||||
|
d="m 45.416,70.979 c -3.97,0 -8.533,-1.039 -10.274,-2.963 -1.49,-1.648 -2.16,-5.039 -0.783,-7.461 0.777,-1.365 2.835,-3.502 7.901,-2.486 1.083,0.219 1.784,1.273 1.566,2.355 -0.218,1.082 -1.267,1.781 -2.355,1.566 -0.896,-0.18 -3.046,-0.488 -3.635,0.543 -0.504,0.887 -0.069,2.422 0.272,2.799 1.075,1.188 7.982,2.342 10.797,1.178 1.102,-0.451 2.489,-1.293 2.85,-2.73 0.46,-1.832 -0.679,-4.48 -3.294,-7.66 -0.702,-0.854 -0.579,-2.113 0.274,-2.816 0.854,-0.699 2.113,-0.578 2.815,0.275 3.504,4.26 4.878,8.02 4.084,11.176 -0.6,2.385 -2.448,4.322 -5.207,5.455 -1.258,0.519 -3.063,0.769 -5.011,0.769 z"
|
||||||
|
id="path28"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g30"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
transform="matrix(0.85249777,0,0,0.84749971,-6.6590725,0.50820521)">
|
||||||
|
<path
|
||||||
|
d="m 38.603,77.508 c -3.449,0 -7.14,-1.105 -8.808,-2.947 -1.517,-1.682 -2.246,-5.439 -0.872,-8.15 0.704,-1.389 2.555,-3.654 7.051,-3.193 1.099,0.111 1.899,1.092 1.788,2.191 -0.111,1.099 -1.101,1.912 -2.192,1.787 -2.433,-0.244 -2.917,0.705 -3.077,1.02 -0.663,1.299 -0.081,3.271 0.269,3.664 1.242,1.373 6.17,2.234 8.778,1.16 1.003,-0.412 1.713,-2.352 1.896,-4.053 0.118,-1.098 1.101,-1.895 2.203,-1.773 1.098,0.117 1.893,1.104 1.775,2.201 -0.146,1.359 -0.892,5.9 -4.35,7.324 -1.278,0.525 -2.843,0.769 -4.461,0.769 z"
|
||||||
|
id="path32"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g34"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
transform="matrix(0.85249777,0,0,0.84749971,-6.6590725,0.50820521)">
|
||||||
|
<path
|
||||||
|
d="m 31.938,82.521 c -2.889,0 -5.951,-0.939 -7.388,-2.52 -1.312,-1.451 -1.945,-4.693 -0.76,-7.029 0.615,-1.213 2.225,-3.186 6.089,-2.793 1.099,0.113 1.898,1.096 1.785,2.195 -0.113,1.098 -1.096,1.908 -2.194,1.783 -1.108,-0.111 -1.81,0.082 -2.088,0.578 -0.449,0.803 -0.13,2.234 0.145,2.594 0.813,0.895 4.653,1.666 6.683,0.83 0.584,-0.238 1.154,-1.541 1.299,-2.965 0.112,-1.098 1.088,-1.912 2.193,-1.785 1.099,0.111 1.898,1.094 1.787,2.191 -0.118,1.156 -0.737,5.02 -3.76,6.26 -1.1,0.452 -2.426,0.661 -3.791,0.661 z"
|
||||||
|
id="path36"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g38"
|
||||||
|
style="fill:#00000f;fill-opacity:1"
|
||||||
|
transform="matrix(0.85249777,0,0,0.84749971,-7.2009143,0.23887261)">
|
||||||
|
<path
|
||||||
|
stroke-miterlimit="10"
|
||||||
|
d="M 52.4,59.086"
|
||||||
|
id="path40"
|
||||||
|
style="fill:#00000f;fill-opacity:1;stroke:#d9272e;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
d="M 89.065189,32.116839 V 13.463983 c 0,-2.228688 -1.909741,-4.0360168 -4.266623,-4.0360168 H 69.438721 c -2.356882,0 -4.266622,1.8073288 -4.266622,4.0360168 v 18.652856 c -6.151617,3.73493 -10.239896,10.25794 -10.239896,17.671297 0,7.413355 4.088279,13.937173 10.239896,17.671296 v 18.652855 c 0,2.229496 1.90974,4.036016 4.266622,4.036016 h 15.359845 c 2.356882,0 4.266623,-1.80652 4.266623,-4.036016 V 67.459432 c 6.151616,-3.734123 10.239894,-10.257941 10.239894,-17.671296 0,-7.413357 -4.088278,-13.936367 -10.239894,-17.671297 z m 0,31.359851 c -3.248607,2.54027 -7.411978,4.06992 -11.946545,4.06992 -4.534567,0 -8.697938,-1.52965 -11.946545,-4.06992 -4.166784,-3.259487 -6.826598,-8.186657 -6.826598,-13.688554 0,-5.502706 2.659814,-10.428261 6.826598,-13.688555 3.248607,-2.541077 7.411978,-4.06992 11.946545,-4.06992 4.534567,0 8.697938,1.528843 11.946545,4.06992 4.166784,3.260294 6.826597,8.185849 6.826597,13.688555 0,5.501897 -2.659813,10.429067 -6.826597,13.688554 z"
|
||||||
|
id="path3" /><path
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
d="m 90.771838,41.716102 c 0,-0.891153 -0.764579,-1.614408 -1.706649,-1.614408 -0.370343,0 -0.709966,0.114623 -0.989857,0.30351 l -0.0017,-0.0024 -10.838077,7.323757 -6.662758,-5.601992 -0.0042,0.0049 c -0.301224,-0.254268 -0.694607,-0.413288 -1.129803,-0.413288 -0.942069,0 -1.706648,0.723254 -1.706648,1.614407 0,0.479478 0.22613,0.90649 0.576847,1.201926 l -0.0042,0.0049 7.679922,6.457628 0.0042,-0.0049 c 0.301224,0.253461 0.694606,0.412481 1.129801,0.412481 0.370344,0 0.709966,-0.114623 0.989857,-0.303509 l 0.0017,0.0024 11.946545,-8.072034 -0.0017,-0.0024 c 0.431782,-0.293016 0.716793,-0.769266 0.716793,-1.310899 z"
|
||||||
|
id="path5" /></g>
|
||||||
|
<g
|
||||||
|
id="Layer_3">
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 8.5 KiB |
BIN
www/assets/fonts/sansation/SansationBoldItalicWebfont.eot
Executable file
145
www/assets/fonts/sansation/SansationBoldItalicWebfont.svg
Executable file
@ -0,0 +1,145 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
This is a custom SVG webfont generated by Font Squirrel.
|
||||||
|
Copyright : 2011 Bernd Montag
|
||||||
|
Designer : Bernd Montag
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="SansationBoldItalic" horiz-adv-x="700" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="450" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="450" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="450" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="450" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="565" d="M8 0l49 245h265l-49 -245h-265zM82 370l212 1060h265l-212 -1060h-265z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="815" d="M187 995l57 435h245l-117 -435h-185zM557 995l57 435h245l-117 -435h-185z" />
|
||||||
|
<glyph unicode="#" horiz-adv-x="1893" d="M27 344l61 154h402l164 378h-401l61 154h412l179 395h180l-179 -395h378l182 400h180l-181 -400h392l-61 -154h-402l-164 -378h401l-61 -154h-412l-160 -349h-180l160 349h-378l-160 -349h-180l159 349h-392zM671 498h377l165 378h-377z" />
|
||||||
|
<glyph unicode="$" horiz-adv-x="1025" d="M29 230l44 220q161 -70 390 -70q171 0 193 110q20 100 -95 100h-190q-320 0 -256 320q55 275 388 321l40 199h255l-39 -195q134 -12 250 -55l-44 -220q-161 70 -366 70q-215 0 -237 -110q-20 -100 105 -100h170q350 0 286 -320q-55 -276 -375 -321l-36 -179h-255l35 175 q-146 12 -263 55z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1502" d="M-42 0l1303 1430h265l-1303 -1430h-265zM186 1140q60 300 388 300q324 0 264 -300q-64 -319 -388 -319q-328 0 -264 319zM376 1142q-29 -147 109 -147q134 0 163 147q25 124 -109 124q-138 0 -163 -124zM668 299q62 310 390 310q324 0 262 -310q-62 -309 -386 -309 q-328 0 -266 309zM858 301q-27 -137 111 -137q134 0 161 137q27 134 -107 134q-138 0 -165 -134z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1335" d="M40 414q46 227 246 313q-166 85 -121 308q79 395 589 395q185 0 350 -50l-42 -210q-165 50 -337 50q-258 0 -294 -180q-42 -210 163 -210h338l28 142h143l74 -142h182l-42 -210h-162l-26 -130q-99 -493 -647 -493q-525 0 -442 417zM306 419q-41 -209 220 -209 q282 0 338 282l26 128h-336q-207 0 -248 -201z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="445" d="M187 995l57 435h245l-117 -435h-185z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="640" d="M63 525q90 453 381 905h265q-291 -452 -381 -905q-91 -453 19 -905h-265q-110 452 -19 905z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="640" d="M-143 -380q290 452 381 905t-19 905h265q110 -452 19 -905t-381 -905h-265z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="810" d="M188 1150l78 150l190 -103l16 233h156l-76 -232l229 101l18 -147l-236 -43l125 -170l-142 -92l-72 205l-153 -204l-107 89l196 171z" />
|
||||||
|
<glyph unicode="+" horiz-adv-x="950" d="M42 420l42 210h270l54 270h210l-54 -270h270l-42 -210h-270l-54 -270h-210l54 270h-270z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="465" d="M-167 -250l237 435h265l-237 -435h-265z" />
|
||||||
|
<glyph unicode="-" d="M42 420l42 210h500l-42 -210h-500z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="465" d="M-42 0l49 245h265l-49 -245h-265z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="1060" d="M-117 0l1011 1430h285l-1011 -1430h-285z" />
|
||||||
|
<glyph unicode="0" horiz-adv-x="1445" d="M91 713q145 727 783 727q627 0 482 -727q-145 -723 -772 -723q-638 0 -493 723zM367 719q-100 -499 263 -499q352 0 452 499q98 491 -254 491q-363 0 -461 -491z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="690" d="M108 0l242 1211h-150l22 109l443 140l-292 -1460h-265z" />
|
||||||
|
<glyph unicode="2" horiz-adv-x="1180" d="M-42 0l40 200q814 497 879 820q38 190 -222 190q-220 0 -437 -110l48 240q215 100 435 100q525 0 441 -420q-74 -370 -731 -790h573l-46 -230h-980z" />
|
||||||
|
<glyph unicode="3" horiz-adv-x="1115" d="M-32 50l48 240q186 -70 406 -70q270 0 306 180q42 210 -150 210h-348l46 230h345q195 0 237 210q32 160 -238 160q-220 0 -434 -70l48 240q212 60 432 60q535 0 457 -390q-47 -236 -253 -325q171 -85 123 -325q-82 -410 -617 -410q-220 0 -408 60z" />
|
||||||
|
<glyph unicode="4" horiz-adv-x="1220" d="M-20 310l40 200l769 920h284l-748 -910h419l96 478h265l-96 -478l121 -136l-15 -74h-148l-62 -310h-265l62 310h-722z" />
|
||||||
|
<glyph unicode="5" horiz-adv-x="1160" d="M-7 50l44 220q186 -70 396 -70q285 0 335 250q46 230 -229 230q-225 0 -430 -50l210 800h854l-42 -210h-626l-94 -352q61 22 170 22q540 0 452 -440q-92 -460 -652 -460q-200 0 -388 60z" />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1250" d="M68 550q111 556 873 923l84 -207q-384 -161 -562 -389q130 43 255 43q524 0 436 -440q-98 -490 -661 -490q-537 0 -425 560zM324 556q-71 -356 220 -356q293 0 349 280q46 230 -226 230q-154 0 -304 -48q-26 -40 -39 -106z" />
|
||||||
|
<glyph unicode="7" horiz-adv-x="1170" d="M45 0l892 1200h-739l46 230h1020l-42 -210l-886 -1220h-291z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1280" d="M23 424q44 223 278 331q-153 95 -107 323q73 366 593 366t447 -366q-46 -228 -242 -323q195 -108 151 -331q-87 -434 -637 -434q-570 0 -483 434zM287 418q-40 -198 270 -198q280 0 320 198q42 212 -251 212q-297 0 -339 -212zM453 1048q-38 -188 222 -188q250 0 288 188 q32 162 -221 162q-257 0 -289 -162z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1265" d="M151 963q96 480 659 480q537 0 425 -560q-111 -556 -873 -923l-84 207q374 161 564 399q-132 -53 -257 -53q-524 0 -434 450zM412 963q-48 -240 224 -240q154 0 304 48q26 40 39 106q71 356 -220 356q-293 0 -347 -270z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="490" d="M-17 0l49 245h265l-49 -245h-265zM144 805l49 245h265l-49 -245h-265z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="615" d="M-92 -250l237 435h265l-237 -435h-265zM269 805l49 245h265l-49 -245h-265z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="1100" d="M44 430l38 190l976 380l-50 -250l-619 -229l529 -221l-50 -250z" />
|
||||||
|
<glyph unicode="=" horiz-adv-x="950" d="M6 240l42 210h750l-42 -210h-750zM78 600l42 210h750l-42 -210h-750z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="1100" d="M-32 50l50 250l617 221l-527 229l50 250l824 -380l-38 -190z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1115" d="M108 0l49 245h265l-49 -245h-265zM182 370l88 440h265q255 0 301 230q36 180 -234 180q-190 0 -410 -50l42 210q220 50 410 50q515 0 437 -390q-88 -440 -588 -440l-46 -230h-265z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="2190" d="M66 540q180 900 1174 900q996 0 816 -900q-138 -690 -615 -690q-301 0 -256 224l28 150l4 46q-172 -270 -408 -270q-368 0 -266 511q108 539 653 539q183 0 433 -43l-177 -889q-12 -58 68 -58q175 0 271 480q138 690 -578 690q-744 0 -882 -690q-142 -710 533 -710 l-42 -210q-940 0 -756 920zM806 513q-59 -293 98 -293q194 0 358 274l63 318q-60 24 -200 24q-255 0 -319 -323z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1562" d="M-117 0l893 1430h285l334 -1430h-275l-85 390h-475l137 230h288l-118 537l-702 -1157h-282z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1321" d="M8 0l286 1430h670q350 0 350 -246q0 -40 -9 -87q-48 -244 -335 -349q228 -44 228 -241q0 -39 -9 -84q-85 -423 -532 -423h-649zM319 230h373q176 0 212 180q7 33 7 60q0 163 -225 163h-80l34 171q341 55 385 276q3 17 3 31q0 89 -127 89h-388z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1390" d="M105 735q141 705 911 705q235 0 406 -70l-48 -240q-169 80 -384 80q-515 0 -610 -475q-17 -86 -17 -157q0 -358 429 -358q215 0 416 80l-48 -240q-199 -70 -434 -70q-645 0 -645 523q0 101 24 222z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1495" d="M8 0l286 1430h560q597 0 597 -477q0 -91 -22 -199q-151 -754 -861 -754h-560zM319 230h295q445 0 550 524q15 74 15 136q0 310 -371 310h-295z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1238" d="M8 0l286 1430h979l-46 -228h-716l-72 -360h682l-47 -237h-685l-75 -375h733l-46 -230h-993z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1164" d="M8 0l286 1430h939l-46 -228h-676l-72 -360h642l-47 -237h-645l-121 -605h-260z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1390" d="M105 735q141 705 911 705q235 0 406 -70l-48 -240q-169 80 -384 80q-515 0 -610 -475q-18 -90 -18 -164q0 -351 401 -351q72 0 169 24l83 416h265l-119 -594q-188 -76 -448 -76q-633 0 -633 520q0 102 25 225z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1535" d="M8 0l286 1430h265l-118 -590h705l118 590h265l-286 -1430h-265l122 610h-705l-122 -610h-265z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="565" d="M8 0l286 1430h265l-286 -1430h-265z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="740" d="M-117 0l46 230q300 0 336 182l204 1018h265l-204 -1018q-82 -412 -647 -412z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1450" d="M8 0l286 1430h265l-286 -1430h-265zM487 668l34 172l670 590h334l-793 -694l581 -736h-347z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="1083" d="M8 0l286 1430h265l-240 -1200h568l-46 -230h-833z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1800" d="M8 0l286 1430h275l268 -1085l692 1085h265l-286 -1430h-245l199 996l-587 -996h-226l-197 996l-199 -996h-245z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1575" d="M8 0l286 1430h265l551 -1022l204 1022h255l-286 -1430h-265l-546 1044l-209 -1044h-255z" />
|
||||||
|
<glyph unicode="O" horiz-adv-x="1625" d="M101 713q145 727 863 727q587 0 587 -501q0 -103 -25 -226q-145 -723 -852 -723q-589 0 -589 533q0 88 16 190zM377 719q-18 -92 -18 -167q0 -332 361 -332q432 0 532 499q18 91 18 165q0 326 -352 326q-443 0 -541 -491z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1253" d="M8 0l286 1430h640q370 0 370 -287q0 -53 -13 -116q-87 -437 -704 -529l9 236q373 65 417 285q6 29 6 54q0 124 -149 124h-358l-239 -1197h-265z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1625" d="M101 713q145 727 863 727q587 0 587 -501q0 -102 -25 -226q-132 -657 -729 -717q39 -173 260 -176q130 0 216 30l-42 -210q-86 -30 -216 -30q-447 0 -447 375v10q-483 46 -483 528q0 88 16 190zM377 719q-18 -92 -18 -167q0 -332 361 -332q432 0 532 499q18 91 18 165 q0 326 -352 326q-443 0 -541 -491z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1315" d="M8 2l286 1428h650q373 0 373 -277q0 -49 -12 -106q-61 -303 -427 -429l330 -618h-309l-311 623l24 121q368 65 414 295q5 24 5 44q0 114 -151 114h-363l-239 -1195h-270z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1280" d="M-5 60l48 240q199 -80 470 -80q329 0 373 220q4 22 4 41q0 119 -174 119h-224q-371 0 -371 286q0 52 12 114q88 440 713 440q240 0 441 -70l-48 -240q-199 80 -439 80q-360 0 -402 -210q-5 -25 -5 -46q0 -114 147 -114h224q399 0 398 -292q0 -50 -11 -108 q-90 -450 -684 -450q-271 0 -472 70z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1085" d="M98 1200l46 230h1085l-46 -230h-410l-240 -1200h-265l240 1200h-410z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1530" d="M120 562l174 868h265l-174 -868q-11 -56 -11 -102q0 -240 293 -240q350 0 418 342l174 868h265l-174 -868q-114 -572 -729 -572q-519 0 -519 407q0 76 18 165z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1512" d="M144 1430h305l224 -1095l661 1095h322l-913 -1430h-285z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="1890" d="M128 0l51 1430h259l-52 -1027l577 1027h255l151 -987l359 987h271l-555 -1430h-252l-169 1122l-646 -1122h-249z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1502" d="M-117 0l706 715l-420 715h325l291 -532l499 532h345l-705 -715l419 -715h-325l-291 532l-499 -532h-345z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1300" d="M169 1430h275l264 -689l516 689h285l-712 -930l-100 -500h-265l100 500z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1250" d="M-17 0l46 230l968 970h-754l46 230h1040l-46 -230l-955 -970h761l-46 -230h-1060z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="680" d="M-118 -380l362 1810h530l-42 -210h-265l-278 -1390h265l-42 -210h-530z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="1050" d="M169 1430h275l439 -1430h-275z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="680" d="M-168 -380l42 210h265l278 1390h-265l42 210h530l-362 -1810h-530z" />
|
||||||
|
<glyph unicode="^" horiz-adv-x="1050" d="M48 700l546 730h150l254 -730h-230l-154 473l-336 -473h-230z" />
|
||||||
|
<glyph unicode="_" horiz-adv-x="1050" d="M-159 -210l42 210h1000l-42 -210h-1000z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="663" d="M244 1430h319l92 -259h-224z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1187" d="M35 511q108 539 653 539q183 0 433 -43l-201 -1007h-235l24 270q-172 -270 -408 -270q-288 0 -288 313q0 87 22 198zM298 513q-16 -80 -16 -138q0 -155 114 -155q194 0 358 274l63 318q-60 24 -200 24q-255 0 -319 -323z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1178" d="M-8 43l277 1387h265l-126 -630q169 250 415 250q273 0 273 -297q0 -82 -21 -187q-114 -566 -627 -566q-216 0 -456 43zM297 243q85 -29 205 -29q240 0 310 349q12 62 12 109q0 158 -136 158q-164 0 -324 -254z" />
|
||||||
|
<glyph unicode="c" horiz-adv-x="940" d="M25 535q103 515 643 515q150 0 274 -30l-42 -210q-124 30 -254 30q-295 0 -356 -305q-13 -66 -13 -119q0 -206 203 -206q170 0 326 130l-42 -210q-156 -130 -346 -130q-412 0 -412 363q0 78 19 172z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1187" d="M35 511q108 539 653 539q81 0 175 -8l78 388h265l-286 -1430h-235l24 270q-172 -270 -408 -270q-288 0 -288 313q0 87 22 198zM298 513q-16 -80 -16 -138q0 -155 114 -155q194 0 358 274l63 318q-60 24 -200 24q-255 0 -319 -323z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1081" d="M25 537q103 513 606 513q393 0 393 -241q0 -34 -8 -73q-63 -314 -486 -314h-263q-6 -28 -5 -52q0 -160 239 -160q209 0 394 130l-42 -210q-165 -130 -414 -130q-432 0 -432 370q0 76 18 167zM306 616h265q165 0 188 113q2 12 2 22q0 91 -172 91q-220 0 -283 -226z" />
|
||||||
|
<glyph unicode="f" horiz-adv-x="692" d="M-201 -293q152 135 200 373l194 970q86 432 558 432q129 0 226 -40l-42 -210q-91 40 -207 40q-226 0 -270 -222h315l-42 -210h-315l-152 -760q-64 -318 -286 -518z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1187" d="M-53 -330l42 210q143 -50 336 -50q296 0 330 170l54 270q-172 -270 -408 -270q-288 0 -288 313q0 87 22 198q108 539 653 539q183 0 433 -43l-201 -1007q-76 -380 -639 -380q-194 0 -334 50zM298 513q-16 -80 -16 -138q0 -155 114 -155q194 0 358 274l63 318 q-60 24 -200 24q-255 0 -319 -323z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1235" d="M-17 0l286 1430h265l-143 -714q191 334 484 334q247 0 248 -227q0 -51 -13 -114l-142 -709h-265l142 712q4 18 4 34q0 90 -122 90q-189 0 -378 -333l-101 -503h-265z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="515" d="M-17 0l210 1050h265l-210 -1050h-265zM227 1220l42 210h265l-42 -210h-265z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="515" d="M-201 -293q152 135 200 373l194 970h265l-194 -970q-64 -318 -286 -518zM227 1220l42 210h265l-42 -210h-265z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="1211" d="M-17 0l286 1430h265l-132 -662q219 282 479 282q274 0 273 -204q0 -36 -8 -79q-40 -200 -356 -341l239 -426h-304l-203 396l17 83q311 80 347 259q2 13 2 24q0 78 -122 78q-183 0 -409 -294l-109 -546h-265z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="515" d="M-17 0l286 1430h265l-286 -1430h-265z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1835" d="M-17 0l210 1050h235l-38 -342q180 342 408 342q244 0 244 -227q0 -52 -13 -117q201 344 427 344q258 0 258 -256q0 -64 -16 -143l-130 -651h-265l132 661q8 40 8 71q0 104 -91 104q-168 0 -344 -336l-100 -500h-265l132 658q8 41 8 73q0 105 -89 105q-176 0 -346 -336 l-100 -500h-265z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1235" d="M-17 0l210 1050h235l-41 -354q195 354 488 354q247 0 248 -227q0 -51 -13 -114l-142 -709h-265l142 712q4 18 4 34q0 90 -122 90q-189 0 -378 -333l-101 -503h-265z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1170" d="M38 525q107 535 617 535q422 0 421 -366q0 -77 -18 -169q-107 -534 -617 -534q-421 0 -421 367q0 76 18 167zM304 529q-14 -70 -14 -125q0 -204 193 -204q245 0 311 329q13 66 13 119q0 202 -194 202q-245 0 -309 -321z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1178" d="M-93 -380l286 1430h235l-20 -250q169 250 415 250q272 0 272 -296q0 -82 -21 -188q-113 -566 -626 -566q-97 0 -198 9l-78 -389h-265zM297 243q85 -29 205 -29q240 0 310 349q12 62 12 109q0 158 -136 158q-164 0 -325 -254z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1187" d="M35 511q108 539 653 539q183 0 433 -43l-277 -1387h-265l130 650q-172 -270 -408 -270q-288 0 -288 313q0 87 22 198zM298 513q-16 -80 -16 -138q0 -155 114 -155q194 0 358 274l63 318q-60 24 -200 24q-255 0 -319 -323z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="730" d="M-17 0l210 1050h235l-37 -334q178 334 382 334l-45 -224q-198 0 -379 -323l-101 -503h-265z" />
|
||||||
|
<glyph unicode="s" horiz-adv-x="1025" d="M-7 50l44 220q161 -70 390 -70q171 0 193 110q3 15 3 27q0 73 -98 73h-190q-267 0 -267 222q0 44 11 98q66 330 533 330q198 0 361 -60l-44 -220q-161 70 -366 70q-215 0 -237 -110q-3 -14 -3 -26q0 -74 108 -74h170q296 0 296 -229q0 -42 -10 -91q-66 -330 -512 -330 q-219 0 -382 60z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="680" d="M40 283l187 937h196l6 -170h244l-42 -210h-215l-97 -483q-5 -27 -5 -50q0 -97 103 -97h88l-42 -210h-216q-217 0 -217 191q0 42 10 92z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1235" d="M51 341l142 709h265l-142 -712q-4 -18 -3 -34q0 -90 121 -90q189 0 378 333l101 503h265l-210 -1050h-235l41 354q-195 -354 -488 -354q-247 0 -247 227q0 51 12 114z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="1080" d="M68 1050h280l108 -734l412 734h280l-637 -1050h-252z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1585" d="M43 550q55 275 200 500h265q-145 -225 -200 -500q-21 -103 -21 -173q0 -147 92 -147q185 0 249 320l100 500h265l-100 -500q-16 -82 -16 -143q0 -177 137 -177q135 0 199 320q28 138 27.5 262.5t-27.5 237.5h265q28 -112 27.5 -237t-27.5 -263q-110 -550 -510 -550 q-235 0 -262 289q-138 -289 -373 -289q-314 0 -314 338q0 93 24 212z" />
|
||||||
|
<glyph unicode="x" horiz-adv-x="1080" d="M-142 0l498 525l-288 525h285l179 -338l311 338h305l-497 -525l287 -525h-285l-179 338l-311 -338h-305z" />
|
||||||
|
<glyph unicode="y" horiz-adv-x="1235" d="M-5 -330l42 210q143 -50 336 -50q296 0 330 170l71 354q-195 -354 -488 -354q-247 0 -247 227q0 51 12 114l142 709h265l-142 -712q-4 -18 -4 -34q0 -90 122 -90q189 0 378 333l101 503h265l-210 -1050q-76 -380 -639 -380q-194 0 -334 50z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="960" d="M-62 0l40 200l633 640h-485l42 210h780l-42 -210l-635 -640h487l-40 -200h-780z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="755" d="M40 410l46 230q210 0 272 312q61 302 226 478h265q-165 -176 -226 -478q-70 -352 -335 -427q235 -75 165 -427q-61 -302 34 -478h-265q-95 176 -34 478q62 312 -148 312z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="565" d="M-68 -380l362 1810h265l-362 -1810h-265z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="755" d="M-168 -380q165 176 226 478q70 352 255 427q-155 75 -85 427q61 302 -34 478h265q95 -176 34 -478q-62 -312 148 -312l-46 -230q-210 0 -272 -312q-61 -302 -226 -478h-265z" />
|
||||||
|
<glyph unicode="~" horiz-adv-x="950" d="M38 400l42 210q70 61 174 61q86 0 195 -41q109 -40 199 -40q109 0 190 60l-42 -210q-70 -60 -174 -60q-86 0 -195 40q-109 41 -199 41q-109 0 -190 -61z" />
|
||||||
|
<glyph unicode="¢" horiz-adv-x="940" d="M64 729q86 431 479 501l40 200h255l-37 -189q96 -7 180 -27l-42 -210q-124 30 -254 30q-295 0 -356 -305q-65 -325 190 -325q170 0 326 130l-42 -210q-97 -81 -208 -112l-43 -212h-255l41 203q-367 60 -274 526z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1217" d="M-48 -30l42 212q201 75 233 231q23 117 -19 291t-13 323q83 413 641 413q270 0 407 -100l-48 -240q-132 130 -408 130q-274 0 -314 -201q-29 -144 -5 -199h386l-42 -210h-314q18 -104 -2 -204q-27 -137 -99 -178q22 4 49 4q84 0 205 -43q45 -17 97 -17q125 0 283 98 l-46 -230q-137 -84 -301 -84q-94 0 -195 28q-123 32 -240 32q-153 0 -297 -56z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1250" d="M66 239l42 210h319l22 111h-319l42 210h277l-255 660h265l190 -510l400 510h295l-545 -660h283l-42 -210h-326l-22 -111h326l-42 -210h-326l-48 -239h-265l48 239h-319z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1785" d="M153 723q143 717 891 717q737 0 594 -717q-147 -733 -884 -733q-748 0 -601 733zM257 719q-128 -639 495 -639q652 0 780 639q126 631 -506 631q-643 0 -769 -631zM481 728q83 416 499 416q165 0 280 -51l-20 -98q-113 58 -264 58q-325 0 -390 -325q-71 -352 254 -352 q151 0 288 58l-20 -98q-135 -51 -300 -51q-416 0 -327 443z" />
|
||||||
|
<glyph unicode="­" d="M42 420l42 210h500l-42 -210h-500z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1163" d="M213 1023q85 427 515 427q433 0 348 -427q-83 -415 -516 -415q-418 0 -347 415zM286 1025q-72 -361 285 -361q360 0 432 361q74 369 -286 369q-357 0 -431 -369zM414 756l107 536h229q153 0 127 -128q-21 -105 -181 -155l134 -253h-91l-123 241l9 45q159 25 178 119 q14 74 -72 74h-153l-95 -479h-69z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="663" d="M192 1171l196 259h319l-291 -259h-224z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="494" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="185" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="82" />
|
||||||
|
<glyph unicode="‐" d="M42 420l42 210h500l-42 -210h-500z" />
|
||||||
|
<glyph unicode="‑" d="M42 420l42 210h500l-42 -210h-500z" />
|
||||||
|
<glyph unicode="‒" d="M42 420l42 210h500l-42 -210h-500z" />
|
||||||
|
<glyph unicode="–" horiz-adv-x="1200" d="M42 420l42 210h1000l-42 -210h-1000z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1700" d="M42 420l42 210h1500l-42 -210h-1500z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="495" d="M107 995l237 435h245l-237 -435h-245z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="495" d="M107 995l237 435h245l-237 -435h-245z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="925" d="M107 995l237 435h245l-237 -435h-245zM537 995l237 435h245l-237 -435h-245z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="925" d="M107 995l237 435h245l-237 -435h-245zM537 995l237 435h245l-237 -435h-245z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="630" d="M103 725q43 215 258 215t172 -215t-258 -215t-172 215z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1465" d="M-42 0l49 245h265l-49 -245h-265zM458 0l49 245h265l-49 -245h-265zM958 0l49 245h265l-49 -245h-265z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode="€" horiz-adv-x="1385" d="M105 735q141 705 891 705q215 0 388 -60l-48 -240q-171 70 -366 70q-418 0 -531 -228h673l-42 -210h-693l-14 -70h693l-42 -210h-673q3 -272 431 -272q195 0 394 70l-48 -240q-197 -60 -412 -60q-750 0 -601 745z" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1606" d="M280 1359l14 71h511l-14 -71h-212l-120 -602h-87l120 602h-212zM760 757l134 673h110l136 -561l354 561h106l-134 -673h-78l108 543l-347 -543h-69l-135 543l-108 -543h-77z" />
|
||||||
|
<glyph unicode="" horiz-adv-x="1050" d="M0 1050h1050v-1050h-1050v1050z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 21 KiB |
BIN
www/assets/fonts/sansation/SansationBoldItalicWebfont.ttf
Executable file
BIN
www/assets/fonts/sansation/SansationBoldItalicWebfont.woff
Executable file
BIN
www/assets/fonts/sansation/SansationBoldWebfont.eot
Executable file
145
www/assets/fonts/sansation/SansationBoldWebfont.svg
Executable file
@ -0,0 +1,145 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
This is a custom SVG webfont generated by Font Squirrel.
|
||||||
|
Copyright : 2011 Bernd Montag
|
||||||
|
Designer : Bernd Montag
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="SansationBold" horiz-adv-x="700" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="450" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="450" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="450" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="450" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="565" d="M150 0v245h265v-245h-265zM150 370v1060h265v-1060h-265z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="815" d="M100 1430h245l-30 -435h-185zM470 1430h245l-30 -435h-185z" />
|
||||||
|
<glyph unicode="#" horiz-adv-x="1893" d="M100 344l30 154h402l89 378h-401l30 154h412l100 395h180l-100 -395h378l102 400h180l-101 -400h392l-30 -154h-402l-89 -378h401l-30 -154h-412l-90 -349h-180l90 349h-378l-90 -349h-180l89 349h-392zM713 498h377l90 378h-377z" />
|
||||||
|
<glyph unicode="$" horiz-adv-x="1025" d="M75 910q0 275 324 321v199h255v-195q136 -12 261 -55v-220q-175 70 -380 70q-215 0 -215 -110q0 -105 125 -105h170q350 0 350 -315q0 -276 -311 -321v-179h-255v175q-148 12 -274 55v220q175 -70 404 -70q171 0 171 110q0 105 -115 105h-190q-320 0 -320 315z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1502" d="M100 0l1017 1430h265l-1017 -1430h-265zM100 1140q0 300 328 300q324 0 324 -300q0 -319 -324 -319q-328 0 -328 319zM290 1142q0 -147 138 -147q134 0 134 147q0 124 -134 124q-138 0 -138 -124zM750 299q0 310 328 310q324 0 324 -310q0 -309 -324 -309 q-328 0 -328 309zM940 301q0 -137 138 -137q134 0 134 137q0 134 -134 134q-138 0 -138 -134z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1335" d="M100 414q0 227 183 313q-183 85 -183 308q0 395 510 395q185 0 360 -50v-210q-175 50 -347 50q-258 0 -258 -180q0 -210 205 -210h338v142h143l102 -142h182v-210h-162v-130q0 -493 -548 -493q-525 0 -525 417zM365 419q0 -209 261 -209q282 0 282 282v128h-336 q-207 0 -207 -201z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="445" d="M100 1430h245l-30 -435h-185z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="640" d="M100 525q0 453 200 905h265q-200 -452 -200 -905t200 -905h-265q-200 452 -200 905z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="640" d="M75 -380q200 452 200 905t-200 905h265q200 -452 200 -905t-200 -905h-265z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="810" d="M100 1150l48 150l211 -103l-31 233h156l-30 -232l209 101l48 -147l-228 -43l159 -170l-123 -92l-113 205l-113 -204l-124 89l161 171z" />
|
||||||
|
<glyph unicode="+" horiz-adv-x="950" d="M100 420v210h270v270h210v-270h270v-210h-270v-270h-210v270h-270z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="465" d="M25 -250l150 435h265l-150 -435h-265z" />
|
||||||
|
<glyph unicode="-" d="M100 420v210h500v-210h-500z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="465" d="M100 0v245h265v-245h-265z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="1060" d="M25 0l725 1430h285l-725 -1430h-285z" />
|
||||||
|
<glyph unicode="0" horiz-adv-x="1445" d="M90 713q0 727 638 727q627 0 627 -727q0 -723 -627 -723q-638 0 -638 723zM365 719q0 -499 363 -499q352 0 352 499q0 491 -352 491q-363 0 -363 -491z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="690" d="M100 1211v109l415 140v-1460h-265v1211h-150z" />
|
||||||
|
<glyph unicode="2" horiz-adv-x="1180" d="M100 0v200q715 497 715 820q0 190 -260 190q-220 0 -415 -110v240q195 100 415 100q525 0 525 -420q0 -370 -573 -790h573v-230h-980z" />
|
||||||
|
<glyph unicode="3" horiz-adv-x="1115" d="M100 50v240q200 -70 420 -70q270 0 270 180q0 210 -192 210h-348v230h345q195 0 195 210q0 160 -270 160q-220 0 -420 -70v240q200 60 420 60q535 0 535 -390q0 -236 -188 -325q188 -85 188 -325q0 -410 -535 -410q-220 0 -420 60z" />
|
||||||
|
<glyph unicode="4" horiz-adv-x="1220" d="M60 310v200l585 920h284l-566 -910h419v478h265v-478l148 -136v-74h-148v-310h-265v310h-722z" />
|
||||||
|
<glyph unicode="5" horiz-adv-x="1160" d="M125 50v220q200 -70 410 -70q285 0 285 250q0 230 -275 230q-225 0 -420 -50l50 800h854v-210h-626l-24 -352q57 22 166 22q540 0 540 -440q0 -460 -560 -460q-200 0 -400 60z" />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1250" d="M100 550q0 556 688 923l126 -207q-352 -161 -484 -389q121 43 246 43q524 0 524 -440q0 -490 -563 -490q-537 0 -537 560zM355 556q0 -356 291 -356q293 0 293 280q0 230 -272 230q-154 0 -294 -48q-18 -40 -18 -106z" />
|
||||||
|
<glyph unicode="7" horiz-adv-x="1170" d="M100 1200v230h1020v-210l-642 -1220h-291l652 1200h-739z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1280" d="M80 424q0 223 212 331q-172 95 -172 323q0 366 520 366t520 -366q0 -228 -177 -323q217 -108 217 -331q0 -434 -550 -434q-570 0 -570 434zM345 418q0 -198 310 -198q280 0 280 198q0 212 -293 212q-297 0 -297 -212zM385 1048q0 -188 260 -188q250 0 250 188 q0 162 -253 162q-257 0 -257 -162z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1265" d="M100 963q0 480 563 480q537 0 537 -560q0 -556 -688 -923l-126 207q342 161 484 399q-121 -53 -246 -53q-524 0 -524 450zM361 963q0 -240 272 -240q154 0 294 48q18 40 18 106q0 356 -291 356q-293 0 -293 -270z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="490" d="M125 0v245h265v-245h-265zM125 805v245h265v-245h-265z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="615" d="M100 -250l150 435h265l-150 -435h-265zM250 805v245h265v-245h-265z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="1100" d="M100 430v190l900 380v-250l-573 -229l573 -221v-250z" />
|
||||||
|
<glyph unicode="=" horiz-adv-x="950" d="M100 240v210h750v-210h-750zM100 600v210h750v-210h-750z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="1100" d="M100 50v250l573 221l-573 229v250l900 -380v-190z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1115" d="M100 1170v210q210 50 400 50q515 0 515 -390q0 -440 -500 -440v-230h-265v440h265q255 0 255 230q0 180 -270 180q-190 0 -400 -50zM250 0v245h265v-245h-265z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="2130" d="M100 540q0 900 964 900q966 0 966 -900q0 -690 -447 -690q-281 0 -291 244q-137 -94 -302 -94q-385 0 -385 327q0 313 456 313q107 0 214 -20v79q0 141 -203 141q-172 0 -382 -50v210q210 50 382 50q468 0 468 -346v-586q0 -58 80 -58q145 0 145 480q0 690 -686 690 q-714 0 -714 -690q0 -710 645 -710v-210q-910 0 -910 920zM870 330q0 -140 160 -140q132 0 245 82v168q-100 20 -214 20q-191 0 -191 -130z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1562" d="M25 0l607 1430h285l620 -1430h-285l-163 390h-475l91 230h288l-225 537l-471 -1157h-272z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1321" d="M150 0v1430h670q408 0 408 -333q0 -244 -266 -349q284 -53 284 -325q0 -423 -447 -423h-649zM415 230h373q176 0 176 180q0 223 -263 223h-80v171q330 55 330 276q0 120 -148 120h-388v-970z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1390" d="M100 735q0 705 770 705q235 0 420 -70v-240q-185 80 -400 80q-515 0 -515 -475q0 -515 515 -515q215 0 400 80v-240q-185 -70 -420 -70q-770 0 -770 745z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1495" d="M150 0v1430h560q710 0 710 -676q0 -754 -710 -754h-560zM415 230h295q445 0 445 524q0 446 -445 446h-295v-970z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1238" d="M150 0v1430h979v-228h-716v-360h682v-237h-685v-375h733v-230h-993z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1164" d="M150 0v1430h939v-228h-676v-360h642v-237h-645v-605h-260z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1390" d="M100 735q0 705 770 705q235 0 420 -70v-240q-185 80 -400 80q-515 0 -515 -475q0 -515 486 -515q72 0 164 24v416h265v-594q-173 -76 -433 -76q-757 0 -757 745z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1535" d="M150 0v1430h265v-590h705v590h265v-1430h-265v610h-705v-610h-265z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="565" d="M150 0v1430h265v-1430h-265z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="740" d="M25 0v230q300 0 300 182v1018h265v-1018q0 -412 -565 -412z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1435" d="M150 0v1430h265v-1430h-265zM565 668v172l532 590h324l-610 -667l674 -763h-367z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="1083" d="M150 0v1430h265v-1200h568v-230h-833z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1800" d="M150 0v1430h275l485 -1085l475 1085h265v-1430h-245v996l-388 -996h-226l-396 996v-996h-245z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1575" d="M150 0v1430h265l755 -1042v1042h255v-1430h-265l-755 1064v-1064h-255z" />
|
||||||
|
<glyph unicode="O" horiz-adv-x="1625" d="M100 713q0 727 718 727q707 0 707 -727q0 -723 -707 -723q-686 0 -718 723zM375 719q0 -499 443 -499q432 0 432 499q0 491 -432 491q-443 0 -443 -491z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1253" d="M150 0v1430h640q438 0 438 -403q0 -437 -599 -529l-38 236q360 65 360 285q0 178 -178 178h-358v-1197h-265z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1625" d="M100 713q0 727 718 727q707 0 707 -727q0 -598 -445 -706l232 -270l-209 -159l-325 412q-646 0 -678 723zM375 719q0 -499 443 -499q432 0 432 499q0 491 -432 491q-443 0 -443 -491z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1325" d="M150 2v1428h650q438 0 438 -383q0 -259 -341 -429l453 -618h-334l-435 623v121q380 65 380 295q0 158 -178 158h-363v-1195h-270z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1280" d="M75 1000q0 440 625 440q240 0 455 -70v-240q-215 80 -455 80q-360 0 -360 -210q0 -160 174 -160h224q467 0 467 -400q0 -450 -594 -450q-271 0 -486 70v240q215 -80 486 -80q329 0 329 220q0 160 -202 160h-224q-439 0 -439 400z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1085" d="M0 1200v230h1085v-230h-410v-1200h-265v1200h-410z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1530" d="M150 562v868h265v-868q0 -342 350 -342t350 342v868h265v-868q0 -572 -615 -572t-615 572z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1512" d="M0 1430h315l443 -1095l442 1095h312l-627 -1430h-285z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="1890" d="M35 1430h269l153 -1027l372 1027h255l348 -987l162 987h261l-269 -1430h-252l-393 1122l-422 -1122h-249z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1502" d="M25 0l563 715l-563 715h335l395 -522l395 522h335l-562 -715l562 -715h-335l-395 522l-395 -522h-335z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1300" d="M25 1430h285l402 -689l378 689h275l-526 -930v-500h-265v500z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1250" d="M125 0v230l794 970h-774v230h1040v-230l-761 -970h761v-230h-1060z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="680" d="M100 -380v1810h530v-210h-265v-1390h265v-210h-530z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="1060" d="M25 1430h285l725 -1430h-285z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="680" d="M50 -170h265v1390h-265v210h530v-1810h-530v210z" />
|
||||||
|
<glyph unicode="^" horiz-adv-x="1050" d="M50 700l400 730h150l400 -730h-230l-249 473l-241 -473h-230z" />
|
||||||
|
<glyph unicode="_" horiz-adv-x="1050" d="M25 0h1000v-210h-1000v210z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="663" d="M100 1430h319l144 -259h-224z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1135" d="M75 327q0 313 456 313q107 0 214 -20v79q0 141 -203 141q-172 0 -382 -50v210q210 50 382 50q468 0 468 -346v-704h-154l-94 94q-137 -94 -302 -94q-385 0 -385 327zM340 330q0 -140 160 -140q132 0 245 82v168q-100 20 -214 20q-191 0 -191 -130z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1178" d="M125 43v1387h265v-460q119 80 265 80q448 0 448 -504q0 -546 -513 -546q-216 0 -465 43zM390 243q91 -29 211 -29q240 0 240 339q0 277 -207 277q-134 0 -244 -54v-533z" />
|
||||||
|
<glyph unicode="c" horiz-adv-x="950" d="M70 545q0 505 560 505q140 0 270 -30v-210q-130 30 -250 30q-315 0 -315 -295q0 -335 315 -335q120 0 250 30v-210q-130 -30 -270 -30q-560 0 -560 545z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1180" d="M75 546q0 504 498 504q106 0 217 -50v430h265v-1367q-241 -63 -471 -63q-509 0 -509 546zM337 553q0 -329 257 -329q104 0 196 29v523q-82 54 -206 54q-247 0 -247 -277z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1120" d="M75 537q0 513 493 513q478 0 478 -488q0 -65 -9 -130h-697q0 -222 326 -222q159 0 318 30v-210q-139 -30 -338 -30q-571 0 -571 537zM340 616h448v8q0 218 -220 218q-210 0 -228 -226z" />
|
||||||
|
<glyph unicode="f" horiz-adv-x="671" d="M125 0v1050q0 432 472 432q129 0 234 -40v-210q-99 40 -215 40q-226 0 -226 -222h315v-210h-315v-840h-265z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1187" d="M75 531q0 519 545 519q183 0 442 -43v-927q0 -460 -553 -460q-194 0 -344 50v210q153 -50 346 -50q286 0 286 240q-118 -50 -254 -50q-468 0 -468 511zM337 533q0 -293 237 -293q114 0 223 54v518q-65 24 -185 24q-275 0 -275 -303z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1205" d="M125 0v1430h265v-514q124 134 317 134q373 0 373 -388v-662h-265v662q0 174 -173 174q-129 0 -252 -103v-733h-265z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="515" d="M125 0v1050h265v-1050h-265zM125 1220v210h265v-210h-265z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="515" d="M0 -293q125 135 125 373v970h265v-970q0 -318 -182 -518zM125 1220v210h265v-210h-265z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="1206" d="M125 0v1430h265v-462q163 82 343 82q402 0 402 -303q0 -220 -280 -344l326 -403h-324l-274 375v123q287 61 287 200q0 142 -190 142q-133 0 -290 -84v-756h-265z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="515" d="M125 0v1430h265v-1430h-265z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1795" d="M125 0v1050h205l31 -152q141 152 339 152t271 -144q161 144 337 144q362 0 362 -399v-651h-265v661q0 175 -158 175q-118 0 -227 -106v-730h-265v658q0 178 -146 178q-116 0 -219 -106v-730h-265z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1205" d="M125 0v1050h205l33 -154q151 154 344 154q373 0 373 -388v-662h-265v662q0 174 -173 174q-129 0 -252 -103v-733h-265z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1190" d="M75 525q0 528 520 528t520 -528q0 -527 -520 -527q-518 0 -520 527zM340 529q0 -329 255 -329t255 329q0 321 -255 321t-255 -321z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1177" d="M125 -380v1387q209 43 442 43q535 0 535 -499q0 -551 -498 -551q-106 0 -214 50v-430h-265zM390 274q99 -54 213 -54q237 0 237 333q0 283 -262 283q-113 0 -188 -14v-548z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1187" d="M75 531q0 519 545 519q203 0 442 -43v-1387h-265v430q-108 -50 -244 -50q-478 0 -478 531zM337 533q0 -313 247 -313q124 0 213 54v538q-95 24 -175 24q-285 0 -285 -303z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="680" d="M125 0v1050h205l33 -134q138 134 292 134v-214q-148 0 -265 -123v-713h-265z" />
|
||||||
|
<glyph unicode="s" horiz-adv-x="1025" d="M75 730q0 330 467 330q198 0 373 -60v-220q-175 70 -380 70q-215 0 -215 -110q0 -105 125 -105h170q350 0 350 -315q0 -330 -446 -330q-219 0 -394 60v220q175 -70 404 -70q171 0 171 110q0 105 -115 105h-190q-320 0 -320 315z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="665" d="M110 283v937h196l40 -170h264v-210h-235v-483q0 -147 127 -147h108v-210h-236q-264 0 -264 283z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1195" d="M125 381v669h265v-662q0 -174 152 -174q129 0 263 103v733h265v-1050h-207l-32 134q-181 -134 -384 -134q-322 0 -322 381z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="1080" d="M0 1050h280l255 -734l265 734h280l-427 -1050h-252z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1599" d="M35 1050h267l136 -731l243 731h227l262 -731l118 731h276l-274 -1050h-249l-247 745l-250 -745h-253z" />
|
||||||
|
<glyph unicode="x" horiz-adv-x="1080" d="M0 0l393 525l-393 525h295l245 -328l245 328h295l-392 -525l392 -525h-295l-245 328l-245 -328h-295z" />
|
||||||
|
<glyph unicode="y" horiz-adv-x="1081" d="M0 1050h281l265 -756l259 756h276l-436 -1081q-116 -286 -371 -407l-128 181q176 77 256 251z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="990" d="M100 0v200l545 640h-525v210h810v-210l-537 -640h517v-200h-810z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="755" d="M100 410v230q210 0 210 312q0 302 130 478h265q-130 -176 -130 -478q0 -352 -250 -427q250 -75 250 -427q0 -302 130 -478h-265q-130 176 -130 478q0 312 -210 312z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="565" d="M150 -380v1810h265v-1810h-265z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="755" d="M50 -380q130 176 130 478q0 352 170 427q-170 75 -170 427q0 302 -130 478h265q130 -176 130 -478q0 -312 210 -312v-230q-210 0 -210 -312q0 -302 -130 -478h-265z" />
|
||||||
|
<glyph unicode="~" horiz-adv-x="950" d="M100 400v210q58 61 162 61q86 0 203 -41q117 -40 207 -40q109 0 178 60v-210q-58 -60 -162 -60q-86 0 -203 40q-117 41 -207 41q-109 0 -178 -61z" />
|
||||||
|
<glyph unicode="¢" horiz-adv-x="980" d="M60 735q0 435 430 495v200h255v-193q99 -7 185 -27v-210q-130 30 -270 30q-335 0 -335 -295q0 -335 335 -335q140 0 270 30v-210q-86 -20 -185 -27v-193h-255v201q-430 65 -430 534z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1217" d="M100 -30v212q186 75 186 231q0 117 -77 291t-77 323q0 413 558 413q270 0 427 -100v-240q-158 130 -434 130q-274 0 -274 -201q0 -144 35 -199h386v-210h-314q39 -104 39 -204q0 -137 -64 -178q22 4 49 4q84 0 213 -43q49 -17 101 -17q125 0 263 98v-230 q-120 -84 -284 -84q-94 0 -201 28q-129 32 -246 32q-153 0 -286 -56z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1250" d="M50 1430h275l292 -510l298 510h285l-413 -660h283v-210h-326v-111h326v-210h-326v-239h-265v239h-319v210h319v111h-319v210h277z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1785" d="M150 723q0 717 748 717q737 0 737 -717q0 -733 -737 -733q-748 0 -748 733zM255 719q0 -639 623 -639q652 0 652 639q0 631 -632 631q-643 0 -643 -631zM477 728q0 416 416 416q165 0 290 -51v-98q-125 58 -276 58q-325 0 -325 -325q0 -352 325 -352q151 0 276 58v-98 q-125 -51 -290 -51q-416 0 -416 443z" />
|
||||||
|
<glyph unicode="­" d="M100 420v210h500v-210h-500z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1163" d="M150 1023q0 427 430 427q433 0 433 -427q0 -415 -433 -415q-418 0 -430 415zM223 1025q0 -361 357 -361q360 0 360 361q0 369 -360 369q-357 0 -357 -369zM404 756v536h229q153 0 153 -128q0 -105 -150 -155l184 -253h-91l-171 241v45q154 25 154 119q0 74 -86 74h-153 v-479h-69z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="663" d="M100 1171l144 259h319l-239 -259h-224z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="494" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="185" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="82" />
|
||||||
|
<glyph unicode="‐" d="M100 420v210h500v-210h-500z" />
|
||||||
|
<glyph unicode="‑" d="M100 420v210h500v-210h-500z" />
|
||||||
|
<glyph unicode="‒" d="M100 420v210h500v-210h-500z" />
|
||||||
|
<glyph unicode="–" horiz-adv-x="1200" d="M100 420v210h1000v-210h-1000z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1700" d="M100 420v210h1500v-210h-1500z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="495" d="M50 995l150 435h245l-150 -435h-245z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="495" d="M50 995l150 435h245l-150 -435h-245z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="925" d="M50 995l150 435h245l-150 -435h-245zM480 995l150 435h245l-150 -435h-245z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="925" d="M50 995l150 435h245l-150 -435h-245zM480 995l150 435h245l-150 -435h-245z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="630" d="M100 725q0 215 215 215t215 -215t-215 -215t-215 215z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1465" d="M100 0v245h265v-245h-265zM600 0v245h265v-245h-265zM1100 0v245h265v-245h-265z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode="€" horiz-adv-x="1385" d="M100 735q0 705 750 705q215 0 400 -60v-240q-185 70 -380 70q-418 0 -485 -228h673v-210h-693v-70h693v-210h-673q57 -272 485 -272q195 0 380 70v-240q-185 -60 -400 -60q-750 0 -750 745z" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1606" d="M150 1359v71h511v-71h-212v-602h-87v602h-212zM750 757v673h110l248 -561l242 561h106v-673h-78v543l-239 -543h-69l-243 543v-543h-77z" />
|
||||||
|
<glyph unicode="" horiz-adv-x="1050" d="M0 1050h1050v-1050h-1050v1050z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 18 KiB |
BIN
www/assets/fonts/sansation/SansationBoldWebfont.ttf
Executable file
BIN
www/assets/fonts/sansation/SansationBoldWebfont.woff
Executable file
BIN
www/assets/fonts/sansation/SansationItalicWebfont.eot
Executable file
145
www/assets/fonts/sansation/SansationItalicWebfont.svg
Executable file
@ -0,0 +1,145 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
This is a custom SVG webfont generated by Font Squirrel.
|
||||||
|
Copyright : 2011 Bernd Montag
|
||||||
|
Designer : Bernd Montag
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="SansationItalic" horiz-adv-x="700" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="485" d="M8 0l37 185h185l-37 -185h-185zM82 370l212 1060h185l-212 -1060h-185z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="755" d="M187 995l57 435h185l-117 -435h-125zM557 995l57 435h185l-117 -435h-125z" />
|
||||||
|
<glyph unicode="#" horiz-adv-x="1893" d="M27 344l61 154h402l164 378h-401l61 154h412l179 395h180l-179 -395h378l182 400h180l-181 -400h392l-61 -154h-402l-164 -378h401l-61 -154h-412l-160 -349h-180l160 349h-378l-160 -349h-180l159 349h-392zM671 498h377l165 378h-377z" />
|
||||||
|
<glyph unicode="$" horiz-adv-x="1050" d="M46 240l32 160q173 -60 362 -60q251 0 281 150q28 140 -147 140h-150q-340 0 -278 310q55 276 429 298l38 192h175l-39 -194q132 -10 257 -46l-32 -160q-173 60 -361 60q-262 0 -292 -150q-28 -140 137 -140h150q360 0 298 -310q-50 -251 -364 -292l-40 -198h-175l38 191 q-165 5 -319 49z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1422" d="M-42 0l1303 1430h205l-1303 -1430h-205zM194 1180q52 260 330 260q274 0 222 -260q-52 -259 -326 -259q-278 0 -226 259zM324 1182q-29 -147 119 -147q144 0 173 147q29 144 -115 144q-148 0 -177 -144zM678 249q52 260 330 260q274 0 222 -260q-52 -259 -326 -259 q-278 0 -226 259zM808 251q-29 -147 119 -147q144 0 173 147q29 144 -115 144q-148 0 -177 -144z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1275" d="M36 394q50 247 260 333q-176 85 -129 318q77 385 587 385q185 0 350 -50l-30 -150q-165 50 -337 50q-338 0 -384 -230q-50 -250 205 -250h388l28 142h63l74 -142h182l-30 -150h-162l-32 -160q-99 -493 -617 -493q-495 0 -416 397zM222 399q-49 -249 252 -249 q342 0 410 342l32 158h-386q-257 0 -308 -251z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="385" d="M187 995l57 435h185l-117 -435h-125z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="585" d="M63 525q90 453 381 905h185q-291 -452 -381 -905q-91 -453 19 -905h-185q-110 452 -19 905z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="585" d="M-118 -380q290 452 381 905t-19 905h185q110 -452 19 -905t-381 -905h-185z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="810" d="M188 1150l78 150l190 -103l16 233h156l-76 -232l229 101l18 -147l-236 -43l125 -170l-142 -92l-72 205l-153 -204l-107 89l196 171z" />
|
||||||
|
<glyph unicode="+" horiz-adv-x="950" d="M48 450l30 150h300l60 300h150l-60 -300h300l-30 -150h-300l-60 -300h-150l60 300h-300z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="385" d="M-167 -250l237 435h185l-237 -435h-185z" />
|
||||||
|
<glyph unicode="-" d="M48 450l30 150h500l-30 -150h-500z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="385" d="M-42 0l37 185h185l-37 -185h-185z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="980" d="M-117 0l1011 1430h205l-1011 -1430h-205z" />
|
||||||
|
<glyph unicode="0" horiz-adv-x="1445" d="M111 713q145 727 763 727q607 0 462 -727q-145 -723 -752 -723q-618 0 -473 723zM307 719q-116 -579 307 -579q412 0 528 579q114 571 -298 571q-423 0 -537 -571z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="645" d="M108 0l250 1251h-150l18 89l355 100l-288 -1440h-185z" />
|
||||||
|
<glyph unicode="2" horiz-adv-x="1145" d="M-82 0l30 150q904 547 969 870q54 270 -286 270q-220 0 -437 -110l32 160q215 100 435 100q525 0 441 -420q-74 -370 -889 -870h715l-30 -150h-980z" />
|
||||||
|
<glyph unicode="3" horiz-adv-x="1150" d="M-32 50l32 160q186 -70 386 -70q330 0 382 260q50 250 -202 250h-328l30 150h325q255 0 305 250q48 240 -282 240q-200 0 -414 -70l32 160q212 60 412 60q515 0 437 -390q-47 -236 -253 -325q171 -85 123 -325q-82 -410 -597 -410q-200 0 -388 60z" />
|
||||||
|
<glyph unicode="4" horiz-adv-x="1220" d="M-14 340l30 150l763 940h194l-764 -940h559l102 508h185l-102 -508l133 -76l-15 -74h-148l-68 -340h-185l68 340h-752z" />
|
||||||
|
<glyph unicode="5" horiz-adv-x="1175" d="M-7 50l32 160q186 -70 386 -70q365 0 427 310q52 260 -303 260q-225 0 -418 -40l182 760h864l-30 -150h-706l-112 -442q121 22 250 22q540 0 458 -410q-92 -460 -652 -460q-190 0 -378 60z" />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1260" d="M68 550q111 556 843 923l70 -127q-397 -176 -610 -479q142 53 327 53q514 0 424 -450q-96 -480 -639 -480q-527 0 -415 560zM244 556q-83 -416 278 -416q353 0 419 330q60 300 -282 300q-214 0 -354 -48q-40 -60 -61 -166z" />
|
||||||
|
<glyph unicode="7" horiz-adv-x="1090" d="M70 0l878 1280h-769l30 150h950l-30 -150l-858 -1280h-201z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1240" d="M43 424q44 223 276 321q-151 105 -105 333q73 366 553 366t407 -366q-46 -228 -244 -333q197 -98 153 -321q-87 -434 -607 -434t-433 434zM227 418q-56 -278 284 -278q330 0 386 278q50 252 -293 252q-327 0 -377 -252zM395 1058q-48 -238 252 -238q290 0 338 238 q46 232 -257 232q-287 0 -333 -232z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1260" d="M149 953q96 480 639 480q527 0 415 -560q-111 -556 -843 -923l-70 127q397 176 610 479q-144 -63 -329 -63q-514 0 -422 460zM330 953q-60 -300 282 -300q214 0 354 48q40 60 61 166q83 416 -278 416q-353 0 -419 -330z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="435" d="M8 0l37 185h185l-37 -185h-185zM181 865l37 185h185l-37 -185h-185z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="535" d="M-92 -250l237 435h185l-237 -435h-185zM281 865l37 185h185l-37 -185h-185z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="1100" d="M48 450l30 150l980 400l-30 -150l-809 -329l679 -321l-30 -150z" />
|
||||||
|
<glyph unicode="=" horiz-adv-x="950" d="M18 300l30 150h750l-30 -150h-750zM78 600l30 150h750l-30 -150h-750z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="1100" d="M-32 50l30 150l807 321l-677 329l30 150l820 -400l-30 -150z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1115" d="M108 0l37 185h185l-37 -185h-185zM182 370l86 430h265q315 0 363 240t-282 240q-190 0 -410 -50l30 150q220 50 410 50q515 0 437 -390t-575 -390h-83l-56 -280h-185z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="2150" d="M116 540q180 900 1104 900q926 0 746 -900q-138 -690 -535 -690q-288 0 -235 264l25 126q-171 -240 -402 -240q-358 0 -256 511q108 539 633 539q213 0 363 -43l-177 -889q-24 -118 86 -118q205 0 313 540q150 750 -576 750q-754 0 -904 -750q-154 -770 531 -770 l-30 -150q-870 0 -686 920zM746 513q-71 -353 136 -353q214 0 374 254l91 458q-50 24 -190 24q-335 0 -411 -383z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1472" d="M-117 0l893 1430h205l324 -1430h-195l-95 450h-473l81 150h360l-137 648l-761 -1248h-202z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1330" d="M28 0l286 1430h610q350 0 350 -246q0 -40 -9 -87q-48 -244 -335 -349q228 -44 228 -241q0 -39 -9 -84q-85 -423 -532 -423h-589zM243 150h393q256 0 308 260q7 33 7 61q0 192 -299 192h-80l24 121q421 55 469 296q6 30 6 55q0 145 -194 145h-408z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1385" d="M105 735q141 705 891 705q215 0 388 -60l-32 -160q-171 70 -366 70q-585 0 -696 -555q-20 -101 -20 -184q0 -411 486 -411q195 0 394 70l-32 -160q-197 -60 -412 -60q-626 0 -626 519q0 103 25 226z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1500" d="M28 0l286 1430h520q597 0 597 -477q0 -91 -22 -199q-151 -754 -861 -754h-520zM243 150h335q525 0 646 604q18 88 18 161q0 365 -438 365h-335z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1230" d="M28 0l286 1430h935l-30 -150h-750l-96 -480h715l-30 -150h-715l-100 -500h765l-30 -150h-950z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1155" d="M28 0l286 1430h935l-30 -150h-750l-96 -480h715l-30 -150h-715l-130 -650h-185z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1385" d="M105 735q141 705 891 705q215 0 388 -60l-32 -160q-171 70 -366 70q-585 0 -696 -555q-20 -102 -20 -186q0 -409 477 -409q92 0 209 24l97 486h185l-119 -594q-186 -66 -386 -66q-652 0 -652 525q0 100 24 220z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1555" d="M28 0l286 1430h185l-126 -630h845l126 630h185l-286 -1430h-185l130 650h-845l-130 -650h-185z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="585" d="M58 0l286 1430h185l-286 -1430h-185z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="690" d="M-117 0l30 150q300 0 352 262l204 1018h185l-204 -1018q-82 -412 -567 -412z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1435" d="M28 0l286 1430h185l-286 -1430h-185zM513 698l22 112l706 620h244l-790 -681l568 -749h-247z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="1153" d="M28 0l286 1430h185l-256 -1280h748l-30 -150h-933z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1840" d="M28 0l286 1430h235l286 -1193l754 1193h225l-286 -1430h-165l231 1153l-739 -1153h-146l-285 1153l-231 -1153h-165z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1575" d="M28 0l286 1430h185l641 -1169l234 1169h175l-286 -1430h-185l-638 1189l-237 -1189h-175z" />
|
||||||
|
<glyph unicode="O" horiz-adv-x="1665" d="M121 713q145 727 863 727q587 0 587 -501q0 -103 -25 -226q-145 -723 -852 -723q-597 0 -597 500q0 102 24 223zM317 719q-21 -105 -21 -191q0 -388 428 -388q512 0 628 579q21 104 21 189q0 382 -419 382q-523 0 -637 -571z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1263" d="M28 0l286 1430h580q373 0 372 -277q0 -49 -11 -106q-83 -417 -700 -509l-7 156q453 65 509 345q7 37 7 68q0 170 -218 170h-378l-255 -1277h-185z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1665" d="M121 713q145 727 863 727q587 0 587 -501q0 -102 -25 -226q-135 -673 -764 -719q26 -231 283 -234q110 0 196 30l-30 -150q-86 -30 -186 -30q-443 0 -445 383q-504 34 -504 495q0 102 25 225zM317 719q-21 -105 -21 -191q0 -388 428 -388q512 0 628 579q21 104 21 189 q0 382 -419 382q-523 0 -637 -571z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1305" d="M28 0l286 1430h610q349 0 349 -251q0 -42 -10 -92q-55 -279 -481 -433l356 -654h-224l-326 643l24 121q403 65 453 315q6 29 6 54q0 144 -195 144h-408l-255 -1277h-185z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1290" d="M18 50l34 170q209 -80 470 -80q369 0 423 270q7 33 7 62q0 168 -233 168h-184q-383 0 -383 283q0 49 12 107q82 410 657 410q250 0 453 -60l-34 -170q-199 80 -449 80q-390 0 -442 -260q-7 -34 -7 -63q0 -167 225 -167h184q390 0 391 -285q0 -49 -12 -105 q-84 -420 -638 -420q-261 0 -474 60z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1185" d="M164 1280l30 150h1085l-30 -150h-450l-256 -1280h-185l256 1280h-450z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1510" d="M128 552l176 878h185l-176 -878q-14 -69 -14 -126q0 -286 342 -286q410 0 492 412l176 878h185l-176 -878q-112 -562 -707 -562q-501 0 -501 398q0 75 18 164z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1472" d="M169 1430h185l276 -1238l759 1238h202l-893 -1430h-205z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="1900" d="M143 0l51 1430h179l-48 -1244l653 1244h185l184 -1244l476 1244h171l-555 -1430h-252l-164 1198l-631 -1198h-249z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1410" d="M-117 0l706 715l-420 715h215l336 -572l564 572h235l-705 -715l419 -715h-215l-336 572l-564 -572h-235z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1300" d="M169 1430h198l263 -747l567 747h222l-732 -930l-100 -500h-185l100 500z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1330" d="M-17 0l30 150l1090 1130h-844l30 150h1060l-30 -150l-1083 -1130h837l-30 -150h-1060z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="650" d="M-68 -380l362 1810h450l-30 -150h-265l-302 -1510h265l-30 -150h-450z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="970" d="M169 1430h195l439 -1430h-195z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="650" d="M-168 -380l30 150h265l302 1510h-265l30 150h450l-362 -1810h-450z" />
|
||||||
|
<glyph unicode="^" horiz-adv-x="1050" d="M48 700l546 730h150l254 -730h-150l-208 603l-442 -603h-150z" />
|
||||||
|
<glyph unicode="_" horiz-adv-x="1050" d="M-147 -150l30 150h1000l-30 -150h-1000z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="603" d="M244 1430h239l116 -239h-164z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1147" d="M60 511q108 539 633 539q213 0 363 -43l-201 -1007h-165l30 250q-168 -250 -404 -250q-279 0 -279 310q0 88 23 201zM243 513q-18 -90 -19 -157q0 -196 155 -196q214 0 374 254l91 458q-50 24 -190 24q-335 0 -411 -383z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1148" d="M17 43l277 1387h185l-126 -630q169 250 405 250q282 0 283 -301q0 -81 -21 -183q-114 -566 -637 -566q-226 0 -366 43zM230 183q45 -29 175 -29q350 0 432 409q16 78 16 138q0 189 -158 189q-214 0 -374 -254z" />
|
||||||
|
<glyph unicode="c" horiz-adv-x="965" d="M65 535q103 515 603 515q150 0 274 -30l-30 -150q-124 30 -284 30q-305 0 -378 -365q-17 -87 -17 -154q0 -231 205 -231q200 0 356 130l-30 -150q-156 -130 -366 -130q-354 0 -354 346q0 84 21 189z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1147" d="M60 511q108 539 633 539q99 0 185 -9l78 389h185l-286 -1430h-165l30 250q-168 -250 -404 -250q-279 0 -279 310q0 88 23 201zM243 513q-18 -90 -19 -157q0 -196 155 -196q214 0 374 254l91 458q-50 24 -190 24q-335 0 -411 -383z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1085" d="M65 537q103 513 586 513q360 0 359 -228q0 -33 -7 -71q-58 -289 -433 -289h-335q-11 -54 -10 -99q0 -213 244 -213q229 0 394 130l-30 -150q-165 -130 -394 -130q-393 0 -393 359q0 80 19 178zM266 616h335q190 0 218 138q3 17 3 32q0 116 -201 116q-280 0 -355 -286z " />
|
||||||
|
<glyph unicode="f" horiz-adv-x="660" d="M-176 -293q152 135 200 373l204 1021q76 381 488 381q129 0 236 -40l-30 -150q-101 40 -237 40q-226 0 -271 -223l-11 -59h325l-30 -150h-325l-164 -820q-64 -318 -251 -478z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1147" d="M-38 -330l30 150q143 -50 336 -50q296 0 342 230l50 250q-168 -250 -404 -250q-279 0 -279 310q0 88 23 201q108 539 633 539q213 0 363 -43l-201 -1007q-76 -380 -559 -380q-194 0 -334 50zM243 513q-18 -90 -18 -157q0 -196 154 -196q214 0 374 254l91 458 q-50 24 -190 24q-335 0 -411 -383z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1205" d="M8 0l286 1430h185l-137 -684q195 304 488 304q238 0 238 -225q0 -52 -13 -116l-142 -709h-185l142 712q6 31 6 57q0 127 -152 127q-209 0 -418 -333l-113 -563h-185z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="525" d="M28 0l210 1050h185l-210 -1050h-185zM279 1255l35 175h185l-35 -175h-185z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="525" d="M-156 -293q152 135 200 373l194 970h185l-194 -970q-64 -318 -251 -478zM279 1255l35 175h185l-35 -175h-185z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="1176" d="M8 0l286 1430h185l-132 -662q209 282 479 282q272 0 272 -209q0 -38 -9 -84q-44 -220 -381 -358l266 -399h-234l-227 385l19 93q333 81 371 270q5 24 5 44q0 108 -135 108q-233 0 -459 -294l-121 -606h-185z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="505" d="M18 0l286 1430h185l-286 -1430h-185z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1805" d="M8 0l210 1050h165l-42 -312q184 312 462 312q201 0 200 -196q0 -48 -11 -108q193 304 469 304q208 0 208 -213q0 -55 -14 -125l-142 -712h-185l142 712q7 37 7 66q0 118 -118 118q-198 0 -393 -333l-113 -563h-185l142 712q7 37 7 67q0 117 -116 117q-206 0 -395 -333 l-113 -563h-185z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1205" d="M8 0l210 1050h165l-45 -324q199 324 492 324q238 0 238 -225q0 -52 -13 -116l-142 -709h-185l142 712q6 31 6 57q0 127 -152 127q-209 0 -418 -333l-113 -563h-185z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1160" d="M63 525q105 525 585 525q394 0 394 -353q0 -77 -19 -172q-105 -524 -585 -524q-393 0 -393 355q0 76 18 169zM249 529q-16 -78 -15 -139q0 -240 234 -240q295 0 371 379q15 74 15 134q0 237 -236 237q-295 0 -369 -371z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1148" d="M-68 -380l286 1430h165l-30 -250q169 250 405 250q282 0 282 -300q0 -81 -21 -184q-113 -566 -636 -566q-103 0 -188 9l-78 -389h-185zM230 183q45 -29 175 -29q350 0 432 409q16 78 16 138q0 189 -158 189q-214 0 -375 -254z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1147" d="M60 511q108 539 633 539q213 0 363 -43l-277 -1387h-185l126 630q-168 -250 -404 -250q-279 0 -279 310q0 88 23 201zM243 513q-18 -90 -18 -157q0 -196 154 -196q214 0 374 254l91 458q-50 24 -190 24q-335 0 -411 -383z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="710" d="M8 0l210 1050h165l-47 -334q178 334 422 334l-33 -164q-238 0 -419 -323l-113 -563h-185z" />
|
||||||
|
<glyph unicode="s" horiz-adv-x="1020" d="M-12 50l32 160q173 -60 362 -60q251 0 281 150q4 19 4 36q0 104 -151 104h-140q-288 0 -288 222q0 40 10 88q60 300 497 300q188 0 363 -50l-32 -160q-173 60 -361 60q-262 0 -292 -150q-4 -20 -4 -38q0 -102 141 -102h140q307 0 307 -226q0 -39 -9 -84 q-60 -300 -496 -300q-189 0 -364 50z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="675" d="M65 283l187 937h116l6 -170h284l-30 -150h-255l-121 -603q-5 -27 -5 -50q0 -97 103 -97h128l-30 -150h-176q-217 0 -217 191q0 42 10 92z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1205" d="M76 341l142 709h185l-142 -712q-6 -31 -6 -57q0 -127 152 -127q209 0 418 333l113 563h185l-210 -1050h-165l45 324q-199 -324 -492 -324q-238 0 -238 225q0 52 13 116z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="1000" d="M68 1050h200l136 -823l464 823h200l-637 -1050h-172z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1675" d="M88 550q55 275 200 500h185q-145 -225 -200 -500q-22 -108 -22 -188q0 -212 157 -212q225 0 305 400l100 500h185l-100 -500q-21 -105 -21 -182q0 -218 166 -218q215 0 295 400q28 138 28 262.5t-28 237.5h185q28 -112 28 -237t-28 -263q-110 -550 -510 -550 q-235 0 -268 259q-132 -259 -367 -259q-314 0 -314 338q0 93 24 212z" />
|
||||||
|
<glyph unicode="x" horiz-adv-x="1050" d="M-117 0l498 535l-288 515h205l219 -411l361 411h215l-497 -535l287 -515h-205l-219 401l-361 -401h-215z" />
|
||||||
|
<glyph unicode="y" horiz-adv-x="1205" d="M20 -330l30 150q143 -50 336 -50q296 0 342 230l65 324q-199 -324 -492 -324q-238 0 -238 225q0 52 13 116l142 709h185l-142 -712q-6 -31 -6 -57q0 -127 152 -127q209 0 418 333l113 563h185l-210 -1050q-76 -380 -559 -380q-194 0 -334 50z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="1000" d="M-42 0l28 140l747 760h-575l30 150h780l-30 -150l-739 -760h577l-28 -140h-790z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="675" d="M48 450l30 150q210 0 280 352q61 302 226 478h185q-165 -176 -226 -478q-70 -352 -295 -427q195 -75 125 -427q-61 -302 34 -478h-185q-95 176 -34 478q70 352 -140 352z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="485" d="M-68 -380l362 1810h185l-362 -1810h-185z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="675" d="M-168 -380q165 176 226 478q70 352 295 427q-195 75 -125 427q61 302 -34 478h185q95 -176 34 -478q-70 -352 140 -352l-30 -150q-210 0 -280 -352q-61 -302 -226 -478h-185z" />
|
||||||
|
<glyph unicode="~" horiz-adv-x="950" d="M44 430l30 150q70 61 174 61q86 0 195 -41q109 -40 199 -40q109 0 190 60l-30 -150q-70 -60 -174 -60q-86 0 -195 40q-109 41 -199 41q-109 0 -190 -61z" />
|
||||||
|
<glyph unicode="¢" horiz-adv-x="980" d="M102 723q92 457 496 509l40 198h175l-39 -194q110 -5 205 -28l-30 -150q-124 30 -284 30q-305 0 -378 -365q-77 -385 188 -385q200 0 356 130l-30 -150q-104 -87 -234 -116l-40 -202h-175l38 190q-389 27 -288 533z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1217" d="M-48 -30l30 152q201 75 245 291q23 117 -19 291t-13 323q83 413 641 413q270 0 407 -100l-36 -180q-132 130 -408 130q-354 0 -406 -261q-29 -144 -1 -229h376l-30 -150h-324q22 -134 2 -234q-27 -137 -111 -238q22 4 51 4q91 0 243 -43q57 -17 117 -17q145 0 303 98 l-34 -170q-137 -84 -301 -84q-94 0 -195 28q-123 32 -240 32q-153 0 -297 -56z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1250" d="M92 319l30 150h349l22 111h-349l30 150h287l-267 700h198l237 -627l493 627h222l-573 -700h313l-30 -150h-376l-22 -111h376l-30 -150h-376l-64 -319h-185l64 319h-349z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1785" d="M153 723q143 717 891 717q737 0 594 -717q-147 -733 -884 -733q-748 0 -601 733zM257 719q-128 -639 495 -639q652 0 780 639q126 631 -506 631q-643 0 -769 -631zM481 728q83 416 499 416q165 0 280 -51l-20 -98q-113 58 -264 58q-325 0 -390 -325q-71 -352 254 -352 q151 0 288 58l-20 -98q-135 -51 -300 -51q-416 0 -327 443z" />
|
||||||
|
<glyph unicode="­" d="M48 450l30 150h500l-30 -150h-500z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1163" d="M213 1023q85 427 515 427q433 0 348 -427q-83 -415 -516 -415q-418 0 -347 415zM286 1025q-72 -361 285 -361q360 0 432 361q74 369 -286 369q-357 0 -431 -369zM414 756l107 536h229q153 0 127 -128q-21 -105 -181 -155l134 -253h-91l-123 241l9 45q159 25 178 119 q14 74 -72 74h-153l-95 -479h-69z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="603" d="M196 1191l212 239h239l-287 -239h-164z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="494" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="185" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="82" />
|
||||||
|
<glyph unicode="‐" d="M48 450l30 150h500l-30 -150h-500z" />
|
||||||
|
<glyph unicode="‑" d="M48 450l30 150h500l-30 -150h-500z" />
|
||||||
|
<glyph unicode="‒" d="M48 450l30 150h500l-30 -150h-500z" />
|
||||||
|
<glyph unicode="–" horiz-adv-x="1200" d="M48 450l30 150h1000l-30 -150h-1000z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1700" d="M48 450l30 150h1500l-30 -150h-1500z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="410" d="M107 995l237 435h185l-237 -435h-185z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="435" d="M107 995l237 435h185l-237 -435h-185z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="780" d="M107 995l237 435h185l-237 -435h-185zM477 995l237 435h185l-237 -435h-185z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="780" d="M107 995l237 435h185l-237 -435h-185zM477 995l237 435h185l-237 -435h-185z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="630" d="M103 725q43 215 258 215t172 -215t-258 -215t-172 215z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1185" d="M-42 0l37 185h185l-37 -185h-185zM358 0l37 185h185l-37 -185h-185zM758 0l37 185h185l-37 -185h-185z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode="€" horiz-adv-x="1385" d="M105 735q141 705 891 705q215 0 388 -60l-32 -160q-171 70 -366 70q-498 0 -655 -348h773l-30 -150h-793l-22 -110h793l-30 -150h-773q-1 -392 507 -392q195 0 394 70l-32 -160q-197 -60 -412 -60q-750 0 -601 745z" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1606" d="M280 1359l14 71h511l-14 -71h-212l-120 -602h-87l120 602h-212zM760 757l134 673h110l136 -561l354 561h106l-134 -673h-78l108 543l-347 -543h-69l-135 543l-108 -543h-77z" />
|
||||||
|
<glyph unicode="" horiz-adv-x="1050" d="M0 1050h1050v-1050h-1050v1050z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 21 KiB |
BIN
www/assets/fonts/sansation/SansationItalicWebfont.ttf
Executable file
BIN
www/assets/fonts/sansation/SansationItalicWebfont.woff
Executable file
BIN
www/assets/fonts/sansation/SansationLightItalicWebfont.eot
Executable file
145
www/assets/fonts/sansation/SansationLightItalicWebfont.svg
Executable file
@ -0,0 +1,145 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
This is a custom SVG webfont generated by Font Squirrel.
|
||||||
|
Copyright : 2011 Bernd Montag
|
||||||
|
Designer : Bernd Montag
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="SansationLightLightItalic" horiz-adv-x="970" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="425" d="M18 0l21 105h105l-21 -105h-105zM92 370l212 1060h105l-212 -1060h-105z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="625" d="M197 995l57 435h115l-117 -435h-55zM487 995l57 435h115l-117 -435h-55z" />
|
||||||
|
<glyph unicode="#" horiz-adv-x="1903" d="M43 374l39 94h392l196 438h-401l39 94h402l195 425h100l-195 -425h458l198 430h100l-197 -430h482l-39 -94h-482l-196 -438h491l-39 -94h-492l-176 -379h-100l176 379h-458l-176 -379h-100l175 379h-392zM575 468h457l197 438h-457z" />
|
||||||
|
<glyph unicode="$" horiz-adv-x="1030" d="M46 240l20 100q163 -60 332 -60q331 0 373 210q34 170 -211 170h-130q-330 0 -274 280q55 276 429 298l38 192h95l-38 -190q154 -4 306 -50l-20 -100q-163 60 -331 60q-332 0 -374 -210q-36 -180 189 -180h130q350 0 296 -270q-53 -267 -405 -296l-39 -194h-95l38 190 q-167 1 -329 50z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1362" d="M-32 0l1303 1430h125l-1303 -1430h-125zM204 1180q52 260 330 260q274 0 222 -260q-52 -259 -326 -259q-278 0 -226 259zM304 1182q-35 -177 143 -177q174 0 209 177q35 174 -139 174q-178 0 -213 -174zM608 249q52 260 330 260q274 0 222 -260q-52 -259 -326 -259 q-278 0 -226 259zM708 251q-35 -177 143 -177q174 0 209 177q35 174 -139 174q-178 0 -213 -174z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1295" d="M46 394q50 247 290 333q-210 65 -159 318q77 385 587 385q185 0 350 -50l-18 -90q-175 50 -347 50q-408 0 -466 -290q-56 -280 279 -280h468l34 172h73l-12 -172h172l-18 -90h-162l-38 -190q-99 -493 -617 -493q-495 0 -416 397zM152 399q-61 -309 320 -309 q422 0 502 402l38 188h-466q-337 0 -394 -281z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="335" d="M197 995l57 435h115l-117 -435h-55z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="525" d="M73 525q90 453 381 905h105q-291 -452 -381 -905q-91 -453 19 -905h-105q-110 452 -19 905z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="525" d="M-108 -380q290 452 381 905t-19 905h105q110 -452 19 -905t-381 -905h-105z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="830" d="M198 1150l78 150l190 -103l16 233h156l-76 -232l229 101l18 -147l-236 -43l125 -170l-142 -92l-72 205l-153 -204l-107 89l196 171z" />
|
||||||
|
<glyph unicode="+" d="M64 480l18 90h330l66 330h100l-66 -330h320l-18 -90h-320l-66 -330h-100l66 330h-330z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="305" d="M-167 -250l237 435h105l-237 -435h-105z" />
|
||||||
|
<glyph unicode="-" horiz-adv-x="720" d="M64 480l18 90h500l-18 -90h-500z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="355" d="M-32 0l25 125h135l-25 -125h-135z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="985" d="M-107 0l1011 1430h115l-1011 -1430h-115z" />
|
||||||
|
<glyph unicode="0" horiz-adv-x="1445" d="M111 713q145 727 763 727q607 0 462 -727q-145 -723 -752 -723q-586 0 -473 723zM227 719q-128 -639 375 -639q492 0 620 639q126 631 -366 631q-503 0 -629 -631z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="605" d="M118 0l262 1311h-150l12 59l269 70l-288 -1440h-105z" />
|
||||||
|
<glyph unicode="2" horiz-adv-x="1230" d="M-32 0l18 90q996 607 1061 930q66 330 -354 330q-220 0 -437 -110l20 100q215 100 435 100q525 0 441 -420q-74 -370 -1010 -930h824l-18 -90h-980z" />
|
||||||
|
<glyph unicode="3" horiz-adv-x="1160" d="M-22 50l20 100q186 -70 386 -70q410 0 474 320q56 280 -276 280h-328l18 90h325q335 0 391 280q60 300 -350 300q-200 0 -414 -70l20 100q212 60 412 60q515 0 437 -390q-51 -256 -303 -325q225 -65 173 -325q-82 -410 -597 -410q-200 0 -388 60z" />
|
||||||
|
<glyph unicode="4" horiz-adv-x="1220" d="M-14 340l18 90l825 1000h114l-826 -1000h709l114 568h105l-114 -568l151 -36l-11 -54h-158l-68 -340h-105l68 340h-822z" />
|
||||||
|
<glyph unicode="5" horiz-adv-x="1145" d="M-17 50l20 100q186 -70 396 -70q415 0 487 360q62 310 -343 310q-225 0 -430 -50l196 730h824l-18 -90h-736l-138 -522q191 22 320 22q510 0 430 -400q-90 -450 -620 -450q-200 0 -388 60z" />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1250" d="M78 550q111 556 843 923l30 -77q-491 -263 -652 -539q194 63 369 63q524 0 434 -450q-96 -480 -609 -480q-527 0 -415 560zM174 556q-95 -476 346 -476q403 0 481 390q72 360 -350 360q-214 0 -398 -68q-52 -70 -79 -206z" />
|
||||||
|
<glyph unicode="7" horiz-adv-x="1135" d="M155 0l940 1340h-859l18 90h970l-18 -90l-930 -1340h-121z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1260" d="M53 424q48 243 316 321q-195 85 -145 333q73 366 553 366t407 -366q-50 -248 -284 -333q241 -78 193 -321q-87 -434 -607 -434t-433 434zM157 418q-68 -338 352 -338q410 0 478 338q56 282 -367 282q-407 0 -463 -282zM325 1058q-54 -268 326 -268q370 0 424 268 q58 292 -325 292q-367 0 -425 -292z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1210" d="M161 963q96 480 609 480q527 0 415 -560q-111 -556 -843 -923l-40 77q501 263 662 539q-194 -63 -369 -63q-524 0 -434 450zM262 963q-72 -360 350 -360q214 0 398 68q52 70 79 206q95 476 -346 476q-403 0 -481 -390z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="395" d="M8 0l25 125h135l-25 -125h-135zM193 925l25 125h135l-25 -125h-135z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="545" d="M-82 -250l237 435h105l-237 -435h-105zM293 925l25 125h135l-25 -125h-135z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="1120" d="M62 470l22 110l984 420l-22 -110l-887 -369l741 -361l-22 -110z" />
|
||||||
|
<glyph unicode="=" d="M34 330l18 90h750l-18 -90h-750zM94 630l18 90h750l-18 -90h-750z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="1120" d="M-22 50l22 110l885 361l-739 369l22 110l816 -420l-22 -110z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1135" d="M158 0l21 105h105l-21 -105h-105zM226 1290l18 90q220 50 410 50q515 0 437 -390t-575 -390h-123l-56 -280h-105l74 370h225q395 0 455 300t-350 300q-190 0 -410 -50z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="2170" d="M126 540q180 900 1104 900q926 0 746 -900q-138 -690 -525 -690q-248 0 -203 224l35 176q-208 -250 -444 -250q-358 0 -254 521q106 529 591 529q213 0 363 -43l-183 -919q-30 -148 110 -148q285 0 405 600q162 810 -644 810q-834 0 -996 -810q-166 -830 599 -830 l-18 -90q-870 0 -686 920zM688 523q-85 -423 172 -423q244 0 444 254l115 578q-130 24 -270 24q-375 0 -461 -433z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1492" d="M-107 0l933 1430h125l364 -1430h-118l-116 480h-601l49 90h531l-187 778l-861 -1348h-119z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1330" d="M18 0l286 1430h610q350 0 350 -246q0 -40 -9 -87q-48 -244 -365 -349q256 -45 256 -253q0 -38 -9 -82q-83 -413 -530 -413h-589zM141 90h473q346 0 410 320q7 33 7 62q0 221 -383 221h-80l14 71q509 45 565 326q7 35 7 65q0 185 -265 185h-498z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1405" d="M115 735q141 705 891 705q205 0 388 -60l-18 -90q-183 60 -368 60q-665 0 -788 -615q-22 -108 -22 -198q0 -457 556 -457q185 0 392 60l-18 -90q-207 -60 -412 -60q-626 0 -626 519q0 103 25 226z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1470" d="M18 0l286 1430h510q587 0 587 -475q0 -92 -22 -201q-151 -754 -861 -754h-500zM141 90h395q595 0 728 664q19 96 19 177q0 409 -497 409h-395z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1248" d="M18 0l286 1430h939l-18 -90h-834l-114 -570h800l-18 -90h-800l-118 -590h848l-18 -90h-953z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1174" d="M18 0l286 1430h939l-18 -90h-834l-114 -570h800l-18 -90h-800l-136 -680h-105z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1405" d="M115 735q141 705 891 705q205 0 388 -60l-18 -90q-183 60 -368 60q-665 0 -788 -615q-22 -110 -22 -202q0 -453 537 -453q132 0 303 44l105 526h105l-119 -594q-196 -66 -396 -66q-642 0 -642 522q0 102 24 223z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1505" d="M18 0l286 1430h105l-132 -660h975l132 660h105l-286 -1430h-105l136 680h-975l-136 -680h-105z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="525" d="M68 0l286 1430h105l-286 -1430h-105z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="650" d="M-107 0l18 90q350 0 414 322l204 1018h105l-204 -1018q-82 -412 -537 -412z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1325" d="M18 0l286 1430h105l-286 -1430h-105zM448 698l14 72l774 660h154l-833 -701l601 -729h-147z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="1143" d="M18 0l286 1430h105l-268 -1340h828l-18 -90h-933z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1770" d="M18 0l286 1430h105l384 -1307l866 1307h95l-286 -1430h-95l247 1237l-815 -1237h-86l-357 1247l-249 -1247h-95z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1505" d="M18 0l286 1430h115l720 -1276l255 1276h95l-286 -1430h-85l-743 1312l-262 -1312h-95z" />
|
||||||
|
<glyph unicode="O" horiz-adv-x="1645" d="M111 713q145 727 863 727q587 0 587 -501q0 -103 -25 -226q-145 -723 -852 -723q-597 0 -597 500q0 102 24 223zM227 719q-22 -112 -22 -204q0 -435 497 -435q592 0 720 639q22 111 22 202q0 429 -488 429q-603 0 -729 -631z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1263" d="M18 0l286 1430h600q352 0 352 -278q0 -53 -13 -115q-77 -387 -767 -493l1 96q586 79 648 389q10 50 10 91q0 217 -267 217h-478l-267 -1337h-105z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1645" d="M110 713q146 727 864 727q586 0 586 -499q0 -104 -25 -228q-141 -704 -814 -723q44 -286 342 -290q100 0 186 30l-18 -90q-86 -30 -186 -30q-405 0 -432 382q-527 29 -527 499q0 101 24 222zM226 719q-22 -111 -22 -203q0 -436 498 -436q592 0 719 639q22 111 22 203 q0 428 -487 428q-603 0 -730 -631z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1235" d="M18 0l286 1430h590q329 0 330 -247q0 -44 -11 -96q-64 -318 -505 -421l350 -666h-124l-342 663l14 73q433 63 489 343q8 39 8 72q0 186 -245 186h-468l-267 -1337h-105z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1310" d="M18 50l22 110q209 -80 480 -80q449 0 517 340q7 37 7 68q0 182 -249 182h-294q-338 0 -338 258q0 47 11 102q82 410 667 410q240 0 453 -60l-20 -100q-211 70 -451 70q-480 0 -544 -320q-8 -39 -8 -72q0 -188 250 -188h294q337 0 337 -253q0 -45 -10 -97 q-86 -430 -640 -430q-271 0 -484 60z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1095" d="M136 1340l18 90h1075l-18 -90h-490l-268 -1340h-105l268 1340h-480z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1470" d="M128 552l176 878h105l-176 -878q-16 -79 -15 -144q0 -328 391 -328q470 0 564 472l176 878h105l-176 -878q-112 -562 -687 -562q-481 0 -481 394q0 76 18 168z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1492" d="M179 1430h108l331 -1349l864 1349h119l-913 -1430h-165z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="1869" d="M148 0l31 1430h99l-23 -1329l728 1329h105l207 -1342l543 1342h91l-575 -1430h-152l-191 1306l-714 -1306h-149z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1320" d="M-107 0l706 715l-420 715h120l373 -636l627 636h130l-705 -715l419 -715h-119l-373 636l-627 -636h-131z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1250" d="M179 1430h125l297 -830l643 830h115l-722 -930l-100 -500h-105l100 500z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1270" d="M-7 0l16 80l1136 1260h-864l18 90h980l-18 -90l-1117 -1250h847l-18 -90h-980z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="565" d="M-58 -380l362 1810h370l-18 -90h-275l-326 -1630h275l-18 -90h-370z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="975" d="M179 1430h105l439 -1430h-105z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="565" d="M-183 -380l18 90h275l326 1630h-275l18 90h370l-362 -1810h-370z" />
|
||||||
|
<glyph unicode="^" horiz-adv-x="1070" d="M58 700l546 730h150l254 -730h-110l-234 673l-496 -673h-110z" />
|
||||||
|
<glyph unicode="_" horiz-adv-x="1070" d="M-125 -90l18 90h1000l-18 -90h-1000z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="523" d="M244 1430h159l116 -239h-84z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1127" d="M72 521q106 529 591 529q213 0 363 -43l-201 -1007h-85l30 250q-208 -250 -444 -250q-277 0 -277 313q0 91 23 208zM175 523q-21 -105 -21 -184q0 -239 193 -239q244 0 444 254l115 578q-130 24 -270 24q-375 0 -461 -433z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1128" d="M27 43l277 1387h105l-126 -630q249 250 465 250q262 0 262 -297q0 -86 -22 -197q-112 -556 -555 -556q-226 0 -406 43zM148 123q165 -29 295 -29q350 0 444 469q18 92 18 162q0 225 -188 225q-214 0 -454 -254z" />
|
||||||
|
<glyph unicode="c" d="M75 535q103 515 593 515q150 0 274 -30l-18 -90q-134 30 -264 30q-385 0 -470 -425q-19 -93 -19 -167q0 -278 265 -278q180 0 348 140l-20 -100q-156 -130 -356 -130q-354 0 -354 346q0 84 21 189z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1127" d="M72 521q106 529 591 529q146 0 263 -20l80 400h105l-286 -1430h-85l30 250q-208 -250 -444 -250q-277 0 -277 313q0 91 23 208zM175 523q-21 -105 -21 -184q0 -239 193 -239q244 0 444 254l115 578q-130 24 -270 24q-375 0 -461 -433z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1075" d="M75 537q103 513 576 513q334 0 334 -209q0 -30 -7 -65q-57 -284 -427 -284h-380q-14 -71 -14 -129q0 -273 310 -273q209 0 376 140l-20 -100q-165 -130 -374 -130q-393 0 -393 359q0 80 19 178zM190 586h378q267 0 306 193q4 21 4 40q0 143 -245 143q-350 0 -443 -376z " />
|
||||||
|
<glyph unicode="f" horiz-adv-x="612" d="M-168 -303q142 85 202 383l204 1021q76 381 448 381q129 0 226 -40l-18 -90q-91 40 -227 40q-266 0 -325 -293l-9 -49h395l-18 -90h-395l-176 -880q-64 -318 -245 -448z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1127" d="M-48 -330l18 90q143 -50 336 -50q356 0 414 290l50 250q-208 -250 -444 -250q-277 0 -277 313q0 91 23 208q106 529 591 529q213 0 363 -43l-201 -1007q-76 -380 -539 -380q-194 0 -334 50zM175 523q-21 -105 -21 -184q0 -239 193 -239q244 0 444 254l115 578 q-130 24 -270 24q-375 0 -461 -433z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1165" d="M18 0l286 1430h105l-139 -694q247 314 510 314q243 0 243 -209q0 -44 -11 -96l-149 -745h-105l149 745q8 38 8 69q0 142 -159 142q-259 0 -508 -333l-125 -623h-105z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="465" d="M38 0l210 1050h105l-210 -1050h-105zM290 1310l24 120h125l-24 -120h-125z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="465" d="M-148 -303q142 85 202 383l194 970h105l-194 -970q-64 -318 -245 -448zM290 1310l24 120h125l-24 -120h-125z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="1111" d="M8 0l286 1430h105l-132 -662q249 282 519 282q246 0 246 -193q0 -36 -9 -80q-46 -230 -422 -364l293 -413h-129l-265 395l13 63q364 111 404 310q6 29 6 54q0 138 -178 138q-243 0 -499 -294l-133 -666h-105z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="465" d="M38 0l286 1430h105l-286 -1430h-105z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1795" d="M18 0l210 1050h85l-42 -312q204 312 452 312q240 0 239 -208q0 -44 -10 -96q213 304 459 304q238 0 238 -222q0 -51 -13 -113l-143 -715h-105l143 715q10 49 10 88q0 153 -150 153q-258 0 -454 -336l-124 -620h-105l143 715q9 47 9 85q0 156 -157 156q-246 0 -456 -336 l-124 -620h-105z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1165" d="M18 0l210 1050h85l-43 -314q247 314 510 314q243 0 243 -209q0 -44 -11 -96l-149 -745h-105l149 745q8 38 8 69q0 142 -159 142q-259 0 -508 -333l-125 -623h-105z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1160" d="M73 525q107 535 577 535q383 0 383 -355q0 -81 -20 -180q-107 -534 -577 -534q-382 0 -382 356q0 80 19 178zM179 529q-18 -89 -18 -160q0 -289 293 -289q365 0 455 449q17 86 17 155q0 286 -294 286q-365 0 -453 -441z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1128" d="M-58 -380l286 1429h85l-30 -249q249 250 465 250q261 0 261 -296q0 -86 -22 -198q-111 -556 -554 -556q-165 0 -305 23l-81 -403h-105zM148 123q165 -29 295 -29q350 0 444 469q18 92 18 162q0 225 -188 225q-214 0 -455 -254z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1127" d="M72 521q106 529 591 529q213 0 363 -43l-277 -1387h-105l126 630q-208 -250 -444 -250q-277 0 -277 313q0 91 23 208zM175 523q-21 -105 -21 -184q0 -239 193 -239q244 0 444 254l115 578q-130 24 -270 24q-375 0 -461 -433z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="685" d="M18 0l210 1050h85l-55 -374q216 374 460 374l-21 -104q-238 0 -457 -363l-117 -583h-105z" />
|
||||||
|
<glyph unicode="s" horiz-adv-x="1030" d="M8 50l20 100q163 -60 332 -60q331 0 373 210q4 21 4 39q0 131 -215 131h-130q-282 0 -282 205q0 35 8 75q60 300 497 300q168 0 333 -50l-20 -100q-163 60 -331 60q-332 0 -374 -210q-5 -25 -5 -46q0 -134 194 -134h130q303 0 303 -203q0 -31 -7 -67q-60 -300 -496 -300 q-169 0 -334 50z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="627" d="M71 283l187 937h64l-15 -170h305l-18 -90h-286l-133 -663q-9 -44 -8 -79q0 -128 119 -128h134l-18 -90h-132q-209 0 -209 189q0 42 10 94z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1165" d="M79 305l149 745h105l-149 -745q-8 -41 -8 -74q0 -137 139 -137q279 0 528 333l125 623h105l-210 -1050h-85l43 314q-247 -314 -530 -314q-223 0 -223 204q0 45 11 101z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="1030" d="M78 1050h120l192 -959l578 959h120l-657 -1050h-122z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1675" d="M82 520q61 305 206 530h105q-145 -225 -206 -530q-22 -108 -21 -190q0 -240 190 -240q305 0 397 460l100 500h105l-100 -500q-21 -107 -22 -188q0 -272 235 -272q255 0 341 430q32 160 32 299q0 125 -26 231h105q26 -107 26 -231q0 -138 -32 -299q-104 -520 -464 -520 q-293 0 -293 312q0 13 1 27q-118 -339 -423 -339q-279 0 -279 313q0 90 23 207z" />
|
||||||
|
<glyph unicode="x" horiz-adv-x="1010" d="M-107 0l513 525l-303 525h120l256 -444l434 444h130l-512 -525l302 -525h-120l-256 444l-434 -444h-130z" />
|
||||||
|
<glyph unicode="y" horiz-adv-x="1165" d="M-10 -330l18 90q143 -50 336 -50q356 0 414 290l63 314q-247 -314 -530 -314q-223 0 -223 204q0 45 11 101l149 745h105l-149 -745q-8 -41 -8 -74q0 -137 139 -137q279 0 528 333l125 623h105l-210 -1050q-76 -380 -539 -380q-194 0 -334 50z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="990" d="M-32 0l18 90l819 870h-625l18 90h750l-18 -90l-821 -870h627l-18 -90h-750z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="590" d="M64 480l18 90q210 0 286 382q61 302 226 478h105q-165 -176 -226 -478q-70 -352 -275 -427q175 -75 105 -427q-61 -302 34 -478h-105q-95 176 -34 478q76 382 -134 382z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="425" d="M-58 -380l362 1810h105l-362 -1810h-105z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="590" d="M-183 -380q165 176 226 478q70 352 275 427q-175 75 -105 427q61 302 -34 478h105q95 -176 34 -478q-76 -382 134 -382l-18 -90q-210 0 -286 -382q-61 -302 -226 -478h-105z" />
|
||||||
|
<glyph unicode="~" d="M60 460l18 90q70 61 174 61q86 0 195 -41q109 -40 199 -40q109 0 190 60l-18 -90q-70 -60 -174 -60q-86 0 -195 40q-109 41 -199 41q-109 0 -190 -61z" />
|
||||||
|
<glyph unicode="¢" d="M103 726q95 472 514 511l38 193h115l-38 -189q130 -4 238 -30l-18 -90q-134 30 -264 30q-385 0 -470 -425q-89 -445 246 -445q180 0 348 140l-20 -100q-121 -101 -268 -123l-40 -198h-115l39 192q-408 17 -305 534z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1237" d="M-38 -30l18 92q201 75 257 351q23 117 -19 291t-13 323q83 413 621 413q290 0 427 -100l-24 -120q-132 130 -418 130q-424 0 -488 -321q-29 -144 3 -259h446l-18 -90h-414q26 -164 6 -264q-27 -137 -123 -298q41 4 85 4q137 0 289 -43q57 -17 117 -17q145 0 303 98 l-22 -110q-137 -84 -301 -84q-94 0 -195 28q-123 32 -240 32q-153 0 -297 -56z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1270" d="M114 379l18 90h389l34 171h-389l18 90h347l-327 700h125l310 -661l580 661h135l-633 -700h373l-18 -90h-416l-34 -171h416l-18 -90h-416l-76 -379h-105l76 379h-389z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1785" d="M153 723q143 717 891 717q737 0 594 -717q-147 -733 -884 -733q-748 0 -601 733zM257 719q-128 -639 495 -639q652 0 780 639q126 631 -506 631q-643 0 -769 -631zM481 728q83 416 499 416q165 0 280 -51l-20 -98q-113 58 -264 58q-325 0 -390 -325q-71 -352 254 -352 q151 0 288 58l-20 -98q-135 -51 -300 -51q-416 0 -327 443z" />
|
||||||
|
<glyph unicode="­" horiz-adv-x="720" d="M64 480l18 90h500l-18 -90h-500z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1183" d="M223 1023q85 427 515 427q433 0 348 -427q-83 -415 -516 -415q-418 0 -347 415zM296 1025q-72 -361 285 -361q360 0 432 361q74 369 -286 369q-357 0 -431 -369zM424 756l107 536h229q153 0 127 -128q-21 -105 -181 -155l134 -253h-91l-123 241l9 45q159 25 178 119 q14 74 -72 74h-153l-95 -479h-69z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="523" d="M196 1191l212 239h159l-287 -239h-84z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="494" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="185" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="82" />
|
||||||
|
<glyph unicode="‐" horiz-adv-x="720" d="M64 480l18 90h500l-18 -90h-500z" />
|
||||||
|
<glyph unicode="‑" horiz-adv-x="720" d="M64 480l18 90h500l-18 -90h-500z" />
|
||||||
|
<glyph unicode="‒" horiz-adv-x="720" d="M64 480l18 90h500l-18 -90h-500z" />
|
||||||
|
<glyph unicode="–" horiz-adv-x="1220" d="M64 480l18 90h1000l-18 -90h-1000z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1720" d="M64 480l18 90h1500l-18 -90h-1500z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="350" d="M117 995l237 435h115l-237 -435h-115z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="375" d="M117 995l237 435h115l-237 -435h-115z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="650" d="M117 995l237 435h115l-237 -435h-115zM417 995l237 435h115l-237 -435h-115z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="650" d="M117 995l237 435h115l-237 -435h-115zM417 995l237 435h115l-237 -435h-115z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="610" d="M113 725q39 195 234 195t156 -195t-234 -195t-156 195z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1055" d="M-32 0l25 125h135l-25 -125h-135zM318 0l25 125h135l-25 -125h-135zM668 0l25 125h135l-25 -125h-135z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode="€" horiz-adv-x="1405" d="M115 735q141 705 891 705q215 0 388 -60l-20 -100q-171 70 -366 70q-568 0 -733 -438h833l-18 -90h-843l-34 -170h843l-18 -90h-833q-19 -482 549 -482q195 0 394 70l-20 -100q-197 -60 -412 -60q-750 0 -601 745z" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1626" d="M290 1359l14 71h511l-14 -71h-212l-120 -602h-87l120 602h-212zM770 757l134 673h110l136 -561l354 561h106l-134 -673h-78l108 543l-347 -543h-69l-135 543l-108 -543h-77z" />
|
||||||
|
<glyph unicode="" horiz-adv-x="1050" d="M0 1050h1050v-1050h-1050v1050z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 21 KiB |
BIN
www/assets/fonts/sansation/SansationLightItalicWebfont.ttf
Executable file
BIN
www/assets/fonts/sansation/SansationLightItalicWebfont.woff
Executable file
BIN
www/assets/fonts/sansation/SansationLightWebfont.eot
Executable file
145
www/assets/fonts/sansation/SansationLightWebfont.svg
Executable file
@ -0,0 +1,145 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
This is a custom SVG webfont generated by Font Squirrel.
|
||||||
|
Copyright : 2011 Bernd Montag
|
||||||
|
Designer : Bernd Montag
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="SansationLight" horiz-adv-x="720" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="425" d="M160 0v105h105v-105h-105zM160 370v1060h105v-1060h-105z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="625" d="M110 1430h115l-30 -435h-55zM400 1430h115l-30 -435h-55z" />
|
||||||
|
<glyph unicode="#" horiz-adv-x="1903" d="M110 374l20 94h392l109 438h-401l20 94h402l110 425h100l-110 -425h458l112 430h100l-111 -430h482l-20 -94h-482l-109 -438h491l-20 -94h-492l-100 -379h-100l100 379h-458l-100 -379h-100l99 379h-392zM623 468h457l110 438h-457z" />
|
||||||
|
<glyph unicode="$" horiz-adv-x="1030" d="M110 940q0 276 369 298v192h95v-190q155 -4 316 -50v-100q-175 60 -343 60q-332 0 -332 -210q0 -180 225 -180h130q350 0 350 -270q0 -267 -346 -296v-194h-95v190q-167 1 -339 50v100q175 -60 344 -60q331 0 331 210q0 170 -245 170h-130q-330 0 -330 280z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1362" d="M110 0l1017 1430h125l-1017 -1430h-125zM110 1180q0 260 278 260q274 0 274 -260q0 -259 -274 -259q-278 0 -278 259zM210 1182q0 -177 178 -177q174 0 174 177q0 174 -174 174q-178 0 -178 -174zM700 249q0 260 278 260q274 0 274 -260q0 -259 -274 -259 q-278 0 -278 259zM800 251q0 -177 178 -177q174 0 174 177q0 174 -174 174q-178 0 -178 -174z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1295" d="M110 394q0 247 223 333q-223 65 -223 318q0 385 510 385q185 0 360 -50v-90q-185 50 -357 50q-408 0 -408 -290q0 -280 335 -280h468v172h73l22 -172h172v-90h-162v-190q0 -493 -518 -493q-495 0 -495 397zM215 399q0 -309 381 -309q422 0 422 402v188h-466 q-337 0 -337 -281z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="335" d="M110 1430h115l-30 -435h-55z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="525" d="M110 525q0 453 200 905h105q-200 -452 -200 -905t200 -905h-105q-200 452 -200 905z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="525" d="M110 -380q200 452 200 905t-200 905h105q200 -452 200 -905t-200 -905h-105z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="830" d="M110 1150l48 150l211 -103l-31 233h156l-30 -232l209 101l48 -147l-228 -43l159 -170l-123 -92l-113 205l-113 -204l-124 89l161 171z" />
|
||||||
|
<glyph unicode="+" horiz-adv-x="970" d="M110 480v90h330v330h100v-330h320v-90h-320v-330h-100v330h-330z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="305" d="M25 -250l150 435h105l-150 -435h-105z" />
|
||||||
|
<glyph unicode="-" d="M110 480v90h500v-90h-500z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="355" d="M110 0v125h135v-125h-135z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="985" d="M35 0l725 1430h115l-725 -1430h-115z" />
|
||||||
|
<glyph unicode="0" horiz-adv-x="1445" d="M110 713q0 727 618 727q607 0 607 -727q0 -723 -607 -723q-586 0 -618 723zM225 719q0 -639 503 -639q492 0 492 639q0 631 -492 631q-503 0 -503 -631z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="605" d="M110 1311v59l255 70v-1440h-105v1311h-150z" />
|
||||||
|
<glyph unicode="2" horiz-adv-x="1230" d="M110 0v90q875 607 875 930q0 330 -420 330q-220 0 -415 -110v100q195 100 415 100q525 0 525 -420q0 -370 -824 -930h824v-90h-980z" />
|
||||||
|
<glyph unicode="3" horiz-adv-x="1160" d="M110 50v100q200 -70 400 -70q410 0 410 320q0 280 -332 280h-328v90h325q335 0 335 280q0 300 -410 300q-200 0 -400 -70v100q200 60 400 60q515 0 515 -390q0 -256 -238 -325q238 -65 238 -325q0 -410 -515 -410q-200 0 -400 60z" />
|
||||||
|
<glyph unicode="4" horiz-adv-x="1220" d="M60 340v90l625 1000h114l-626 -1000h709v568h105v-568l158 -36v-54h-158v-340h-105v340h-822z" />
|
||||||
|
<glyph unicode="5" horiz-adv-x="1145" d="M115 50v100q200 -70 410 -70q415 0 415 360q0 310 -405 310q-225 0 -420 -50l50 730h824v-90h-736l-34 -522q187 22 316 22q510 0 510 -400q0 -450 -530 -450q-200 0 -400 60z" />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1250" d="M110 550q0 556 658 923l46 -77q-439 -263 -544 -539q181 63 356 63q524 0 524 -450q0 -480 -513 -480q-527 0 -527 560zM205 556q0 -476 441 -476q403 0 403 390q0 360 -422 360q-214 0 -384 -68q-38 -70 -38 -206z" />
|
||||||
|
<glyph unicode="7" horiz-adv-x="1135" d="M110 1340v90h970v-90l-662 -1340h-121l672 1340h-859z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1260" d="M110 424q0 243 252 321q-212 85 -212 333q0 366 480 366t480 -366q0 -248 -217 -333q257 -78 257 -321q0 -434 -520 -434t-520 434zM215 418q0 -338 420 -338q410 0 410 338q0 282 -423 282q-407 0 -407 -282zM255 1058q0 -268 380 -268q370 0 370 268q0 292 -383 292 q-367 0 -367 -292z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1210" d="M110 963q0 480 513 480q527 0 527 -560q0 -556 -658 -923l-56 77q449 263 554 539q-181 -63 -356 -63q-524 0 -524 450zM211 963q0 -360 422 -360q214 0 384 68q38 70 38 206q0 476 -441 476q-403 0 -403 -390z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="395" d="M150 0v125h135v-125h-135zM150 925v125h135v-125h-135z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="545" d="M110 -250l150 435h105l-150 -435h-105zM250 925v125h135v-125h-135z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="1120" d="M110 470v110l900 420v-110l-813 -369l813 -361v-110z" />
|
||||||
|
<glyph unicode="=" horiz-adv-x="970" d="M110 330v90h750v-90h-750zM110 630v90h750v-90h-750z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="1120" d="M110 50v110l813 361l-813 369v110l900 -420v-110z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1135" d="M110 1290v90q210 50 400 50q515 0 515 -390t-497 -390h-123v-280h-105v370h225q395 0 395 300t-410 300q-190 0 -400 -50zM300 0v105h105v-105h-105z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="2170" d="M160 540q0 900 924 900q926 0 926 -900q0 -690 -377 -690q-248 0 -248 254q-180 -104 -365 -104q-365 0 -365 297q0 313 416 313q147 0 314 -20v129q0 241 -303 241q-172 0 -342 -50v90q170 50 342 50q408 0 408 -326v-626q0 -158 150 -158q265 0 265 600q0 810 -806 810 q-834 0 -834 -810q0 -830 765 -830v-90q-870 0 -870 920zM760 300q0 -210 260 -210q192 0 365 102v308q-167 20 -314 20q-311 0 -311 -220z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1492" d="M35 0l647 1430h125l650 -1430h-125l-212 480h-601l41 90h521l-343 778l-591 -1348h-112z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1330" d="M160 0v1430h610q408 0 408 -333q0 -244 -296 -349q314 -53 314 -335q0 -413 -447 -413h-589zM265 90h473q346 0 346 320q0 283 -433 283h-80v71q500 45 500 326q0 250 -308 250h-498v-1250z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1405" d="M110 735q0 705 750 705q205 0 400 -60v-90q-195 60 -380 60q-665 0 -665 -615q0 -655 665 -655q185 0 380 60v-90q-195 -60 -400 -60q-750 0 -750 745z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1470" d="M160 0v1430h510q700 0 700 -676q0 -754 -710 -754h-500zM265 90h395q595 0 595 664q0 586 -595 586h-395v-1250z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1248" d="M160 0v1430h939v-90h-834v-570h800v-90h-800v-590h848v-90h-953z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1174" d="M160 0v1430h939v-90h-834v-570h800v-90h-800v-680h-105z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1405" d="M110 735q0 705 750 705q205 0 400 -60v-90q-195 60 -380 60q-665 0 -665 -615q0 -655 646 -655q132 0 294 44v526h105v-594q-183 -66 -383 -66q-767 0 -767 745z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1505" d="M160 0v1430h105v-660h975v660h105v-1430h-105v680h-975v-680h-105z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="525" d="M210 0v1430h105v-1430h-105z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="650" d="M35 0v90q350 0 350 322v1018h105v-1018q0 -412 -455 -412z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1300" d="M160 0v1430h105v-1430h-105zM460 718v62l642 650h144l-681 -677l705 -753h-157z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="1143" d="M160 0v1430h105v-1340h828v-90h-933z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1770" d="M160 0v1430h105l645 -1307l605 1307h95v-1430h-95v1237l-568 -1237h-86l-606 1247v-1247h-95z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1505" d="M160 0v1430h135l955 -1252v1252h95v-1430h-85l-1005 1312v-1312h-95z" />
|
||||||
|
<glyph unicode="O" horiz-adv-x="1645" d="M110 713q0 727 718 727q707 0 707 -727q0 -723 -707 -723q-718 0 -718 723zM225 719q0 -639 603 -639q592 0 592 639q0 631 -592 631q-603 0 -603 -631z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1263" d="M160 0v1430h600q418 0 418 -393q0 -387 -669 -493l-18 96q570 79 570 389q0 308 -318 308h-478v-1337h-105z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1645" d="M110 713q0 727 718 727q707 0 707 -727q0 -598 -535 -716l262 -300l-94 -68l-310 361q-748 0 -748 723zM225 719q0 -629 603 -629q592 0 592 629q0 631 -592 631q-603 0 -603 -631z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1235" d="M160 0v1430h590q388 0 388 -343q0 -297 -421 -421l483 -666h-144l-475 663v71q440 65 440 345q0 258 -288 258h-468v-1337h-105z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1310" d="M110 1030q0 410 585 410q240 0 465 -60v-100q-225 70 -465 70q-480 0 -480 -320q0 -260 294 -260h294q397 0 397 -350q0 -430 -554 -430q-271 0 -496 60v110q225 -80 496 -80q449 0 449 340q0 250 -292 250h-294q-399 0 -399 360z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1095" d="M10 1340v90h1075v-90h-490v-1340h-105v1340h-480z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1470" d="M160 552v878h105v-878q0 -472 470 -472t470 472v878h105v-878q0 -562 -575 -562t-575 562z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1492" d="M35 1430h115l601 -1349l594 1349h112l-627 -1430h-165z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="1869" d="M35 1430h109l233 -1329l462 1329h105l475 -1342l265 1342h101l-289 -1430h-152l-452 1306l-453 -1306h-149z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1320" d="M35 0l563 715l-563 715h125l500 -636l500 636h125l-562 -715l562 -715h-125l-500 636l-500 -636h-125z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1250" d="M35 1430h125l463 -830l477 830h115l-536 -930v-500h-105v500z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1270" d="M135 0v80l894 1260h-874v90h980v-90l-867 -1250h847v-90h-980z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="565" d="M160 -380v1810h370v-90h-275v-1630h275v-90h-370z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="985" d="M35 1430h115l725 -1430h-115z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="565" d="M35 -290h275v1630h-275v90h370v-1810h-370v90z" />
|
||||||
|
<glyph unicode="^" horiz-adv-x="1070" d="M60 700l400 730h150l400 -730h-110l-369 673l-361 -673h-110z" />
|
||||||
|
<glyph unicode="_" horiz-adv-x="1070" d="M35 0h1000v-90h-1000v90z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="523" d="M100 1430h159l164 -239h-84z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1095" d="M100 297q0 313 416 313q147 0 314 -20v129q0 241 -303 241q-172 0 -342 -50v90q170 50 342 50q408 0 408 -326v-724h-64l-24 104q-197 -104 -382 -104q-365 0 -365 297zM205 300q0 -210 260 -210q192 0 365 102v308q-167 20 -314 20q-311 0 -311 -220z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1178" d="M160 43v1387h105v-430q189 50 325 50q478 0 478 -504q0 -546 -503 -546q-226 0 -405 43zM265 123q161 -29 291 -29q410 0 410 459q0 397 -377 397q-144 0 -324 -54v-773z" />
|
||||||
|
<glyph unicode="c" horiz-adv-x="1005" d="M110 545q0 505 530 505q150 0 280 -30v-90q-140 30 -270 30q-425 0 -425 -415q0 -455 425 -455q130 0 270 30v-90q-130 -30 -280 -30q-530 0 -530 545z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1190" d="M110 546q0 504 498 504q156 0 317 -50v430h105v-1367q-171 -63 -431 -63q-489 0 -489 546zM222 553q0 -459 387 -459q164 0 316 39v773q-152 54 -316 54q-387 0 -387 -407z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1124" d="M110 537q0 513 473 513q431 0 431 -477q0 -34 -2 -71h-797q0 -412 436 -412q179 0 318 50v-90q-139 -50 -318 -50q-541 0 -541 537zM215 596h698q-6 366 -330 366q-350 0 -368 -366z" />
|
||||||
|
<glyph unicode="f" horiz-adv-x="636" d="M160 0v1101q0 381 422 381q129 0 234 -40v-90q-99 40 -235 40q-316 0 -316 -293v-49h395v-90h-395v-960h-105z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1187" d="M110 531q0 519 535 519q203 0 382 -43v-1007q0 -380 -463 -380q-194 0 -344 50v90q153 -50 346 -50q356 0 356 290v50q-178 -50 -314 -50q-498 0 -498 531zM212 533q0 -433 397 -433q144 0 313 54v778q-145 24 -285 24q-425 0 -425 -423z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1185" d="M160 0v1430h105v-494q184 114 377 114q383 0 383 -391v-659h-105v702q0 254 -283 254q-189 0 -372 -133v-823h-105z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="465" d="M170 1310v120h125v-120h-125zM180 0v1050h105v-1050h-105z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="465" d="M55 -303q125 115 125 383v970h105v-970q0 -318 -155 -448zM170 1310v120h125v-120h-125z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="1106" d="M150 0v1430h105v-472q183 92 403 92q372 0 372 -303q0 -230 -330 -314l356 -433h-154l-334 435v63q357 41 357 250q0 212 -290 212q-193 0 -380 -94v-866h-105z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="465" d="M180 0v1430h105v-1430h-105z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1795" d="M160 0v1050h75l11 -132q161 132 349 132q248 0 321 -144q181 144 367 144q352 0 352 -349v-701h-105v701q0 255 -248 255q-198 0 -327 -136v-820h-105v718q0 238 -256 238q-186 0 -329 -136v-820h-105z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1185" d="M160 0v1050h75l13 -134q201 134 394 134q383 0 383 -331v-719h-105v722q0 234 -283 234q-189 0 -372 -133v-823h-105z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1200" d="M110 525q0 535 490 535t490 -535q0 -534 -490 -534q-488 0 -490 534zM215 529q0 -449 385 -449t385 449q0 441 -385 441t-385 -441z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1177" d="M160 -380v1387q179 43 402 43q505 0 505 -499q0 -551 -508 -551q-126 0 -294 50v-430h-105zM265 154q159 -54 293 -54q407 0 407 453q0 403 -405 403q-140 0 -295 -24v-778z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1187" d="M110 531q0 519 525 519q213 0 392 -43v-1387h-105v430q-178 -50 -314 -50q-498 0 -498 531zM212 533q0 -433 397 -433q144 0 313 54v778q-155 24 -295 24q-415 0 -415 -423z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="635" d="M160 0v1050h75l13 -174q158 174 352 174v-84q-188 0 -335 -183v-783h-105z" />
|
||||||
|
<glyph unicode="s" horiz-adv-x="1030" d="M106 750q0 300 437 300q168 0 343 -50v-100q-175 60 -343 60q-332 0 -332 -210q0 -180 225 -180h134q350 0 350 -270q0 -300 -436 -300q-169 0 -344 50v100q175 -60 344 -60q331 0 331 210q0 170 -245 170h-134q-330 0 -330 280z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="627" d="M156 283v937h74l19 -170h315v-90h-306v-663q0 -207 152 -207h154v-90h-152q-256 0 -256 283z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1185" d="M160 391v659h105v-662q0 -294 272 -294q199 0 383 133v823h105v-1050h-77l-12 134q-181 -134 -404 -134q-372 0 -372 391z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="1030" d="M10 1050h120l384 -959l386 959h120l-447 -1050h-122z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1539" d="M60 1050h107l226 -923l333 923h77l342 -903l231 903h103l-274 -1050h-109l-331 895l-326 -895h-113z" />
|
||||||
|
<glyph unicode="x" horiz-adv-x="1010" d="M35 0l408 525l-408 525h125l345 -444l345 444h125l-407 -525l407 -525h-125l-345 444l-345 -444h-125z" />
|
||||||
|
<glyph unicode="y" horiz-adv-x="1081" d="M35 1050h121l390 -948l384 948h116l-456 -1081q-116 -286 -348 -357l-31 84q182 66 278 288z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="1020" d="M110 0v90l675 870h-655v90h780v-90l-667 -870h647v-90h-780z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="590" d="M110 480v90q210 0 210 382q0 302 130 478h105q-130 -176 -130 -478q0 -352 -190 -427q190 -75 190 -427q0 -302 130 -478h-105q-130 176 -130 478q0 382 -210 382z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="425" d="M160 -380v1810h105v-1810h-105z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="590" d="M35 -380q130 176 130 478q0 352 190 427q-190 75 -190 427q0 302 -130 478h105q130 -176 130 -478q0 -382 210 -382v-90q-210 0 -210 -382q0 -302 -130 -478h-105z" />
|
||||||
|
<glyph unicode="~" horiz-adv-x="970" d="M110 460v90q58 61 162 61q86 0 203 -41q117 -40 207 -40q109 0 178 60v-90q-58 -60 -162 -60q-86 0 -203 40q-117 41 -207 41q-109 0 -178 -61z" />
|
||||||
|
<glyph unicode="¢" horiz-adv-x="1005" d="M110 735q0 465 450 502v193h115v-190q130 -4 245 -30v-90q-140 30 -270 30q-425 0 -425 -415q0 -455 425 -455q130 0 270 30v-90q-115 -26 -245 -30v-190h-115v193q-450 40 -450 542z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1237" d="M110 -30v92q186 75 186 351q0 117 -77 291t-77 323q0 413 538 413q290 0 447 -100v-120q-158 130 -444 130q-424 0 -424 -321q0 -144 55 -259h446v-90h-414q59 -164 59 -264q0 -137 -64 -298q41 4 85 4q137 0 297 -43q61 -17 121 -17q145 0 283 98v-110 q-120 -84 -284 -84q-94 0 -201 28q-129 32 -246 32q-153 0 -286 -56z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1270" d="M60 1430h125l442 -661l448 661h135l-493 -700h373v-90h-416v-171h416v-90h-416v-379h-105v379h-389v90h389v171h-389v90h347z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1785" d="M150 723q0 717 748 717q737 0 737 -717q0 -733 -737 -733q-748 0 -748 733zM255 719q0 -639 623 -639q652 0 652 639q0 631 -632 631q-643 0 -643 -631zM477 728q0 416 416 416q165 0 290 -51v-98q-125 58 -276 58q-325 0 -325 -325q0 -352 325 -352q151 0 276 58v-98 q-125 -51 -290 -51q-416 0 -416 443z" />
|
||||||
|
<glyph unicode="­" d="M110 480v90h500v-90h-500z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1183" d="M160 1023q0 427 430 427q433 0 433 -427q0 -415 -433 -415q-418 0 -430 415zM233 1025q0 -361 357 -361q360 0 360 361q0 369 -360 369q-357 0 -357 -369zM414 756v536h229q153 0 153 -128q0 -105 -150 -155l184 -253h-91l-171 241v45q154 25 154 119q0 74 -86 74h-153 v-479h-69z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="523" d="M100 1191l164 239h159l-239 -239h-84z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="494" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="185" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="82" />
|
||||||
|
<glyph unicode="‐" d="M110 480v90h500v-90h-500z" />
|
||||||
|
<glyph unicode="‑" d="M110 480v90h500v-90h-500z" />
|
||||||
|
<glyph unicode="‒" d="M110 480v90h500v-90h-500z" />
|
||||||
|
<glyph unicode="–" horiz-adv-x="1220" d="M110 480v90h1000v-90h-1000z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1720" d="M110 480v90h1500v-90h-1500z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="350" d="M60 995l150 435h115l-150 -435h-115z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="375" d="M60 995l150 435h115l-150 -435h-115z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="650" d="M60 995l150 435h115l-150 -435h-115zM360 995l150 435h115l-150 -435h-115z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="650" d="M60 995l150 435h115l-150 -435h-115zM360 995l150 435h115l-150 -435h-115z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="610" d="M110 725q0 195 195 195t195 -195t-195 -195t-195 195z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1055" d="M110 0v125h135v-125h-135zM460 0v125h135v-125h-135zM810 0v125h135v-125h-135z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode="€" horiz-adv-x="1405" d="M110 735q0 705 750 705q215 0 400 -60v-100q-185 70 -380 70q-568 0 -645 -438h833v-90h-843v-170h843v-90h-833q77 -482 645 -482q195 0 380 70v-100q-185 -60 -400 -60q-750 0 -750 745z" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1626" d="M160 1359v71h511v-71h-212v-602h-87v602h-212zM760 757v673h110l248 -561l242 561h106v-673h-78v543l-239 -543h-69l-243 543v-543h-77z" />
|
||||||
|
<glyph unicode="" horiz-adv-x="1050" d="M0 1050h1050v-1050h-1050v1050z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 18 KiB |
BIN
www/assets/fonts/sansation/SansationLightWebfont.ttf
Executable file
BIN
www/assets/fonts/sansation/SansationLightWebfont.woff
Executable file
BIN
www/assets/fonts/sansation/SansationRegularWebfont.eot
Executable file
145
www/assets/fonts/sansation/SansationRegularWebfont.svg
Executable file
@ -0,0 +1,145 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<metadata>
|
||||||
|
This is a custom SVG webfont generated by Font Squirrel.
|
||||||
|
Copyright : 2011 Bernd Montag
|
||||||
|
Designer : Bernd Montag
|
||||||
|
</metadata>
|
||||||
|
<defs>
|
||||||
|
<font id="SansationRegular" horiz-adv-x="1050" >
|
||||||
|
<font-face units-per-em="2048" ascent="1638" descent="-410" />
|
||||||
|
<missing-glyph horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="	" horiz-adv-x="500" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="500" />
|
||||||
|
<glyph unicode="!" horiz-adv-x="485" d="M150 0v185h185v-185h-185zM150 370v1060h185v-1060h-185z" />
|
||||||
|
<glyph unicode=""" horiz-adv-x="755" d="M100 1430h185l-30 -435h-125zM470 1430h185l-30 -435h-125z" />
|
||||||
|
<glyph unicode="#" horiz-adv-x="1893" d="M100 344l30 154h402l89 378h-401l30 154h412l100 395h180l-100 -395h378l102 400h180l-101 -400h392l-30 -154h-402l-89 -378h401l-30 -154h-412l-90 -349h-180l90 349h-378l-90 -349h-180l89 349h-392zM713 498h377l90 378h-377z" />
|
||||||
|
<glyph unicode="$" d="M100 940q0 276 369 298v192h175v-194q134 -10 266 -46v-160q-185 60 -373 60q-262 0 -262 -150q0 -140 165 -140h150q360 0 360 -310q0 -251 -306 -292v-198h-175v191q-166 5 -329 49v160q185 -60 374 -60q251 0 251 150q0 140 -175 140h-150q-340 0 -340 310z" />
|
||||||
|
<glyph unicode="%" horiz-adv-x="1422" d="M100 0l1017 1430h205l-1017 -1430h-205zM100 1180q0 260 278 260q274 0 274 -260q0 -259 -274 -259q-278 0 -278 259zM230 1182q0 -147 148 -147q144 0 144 147q0 144 -144 144q-148 0 -148 -144zM770 249q0 260 278 260q274 0 274 -260q0 -259 -274 -259 q-278 0 -278 259zM900 251q0 -147 148 -147q144 0 144 147q0 144 -144 144q-148 0 -148 -144z" />
|
||||||
|
<glyph unicode="&" horiz-adv-x="1275" d="M100 394q0 247 193 333q-193 85 -193 318q0 385 510 385q185 0 360 -50v-150q-175 50 -347 50q-338 0 -338 -230q0 -250 255 -250h388v142h63l102 -142h182v-150h-162v-160q0 -493 -518 -493q-495 0 -495 397zM285 399q0 -249 301 -249q342 0 342 342v158h-386 q-257 0 -257 -251z" />
|
||||||
|
<glyph unicode="'" horiz-adv-x="385" d="M100 1430h185l-30 -435h-125z" />
|
||||||
|
<glyph unicode="(" horiz-adv-x="585" d="M100 525q0 453 200 905h185q-200 -452 -200 -905t200 -905h-185q-200 452 -200 905z" />
|
||||||
|
<glyph unicode=")" horiz-adv-x="585" d="M100 -380q200 452 200 905t-200 905h185q200 -452 200 -905t-200 -905h-185z" />
|
||||||
|
<glyph unicode="*" horiz-adv-x="810" d="M100 1150l48 150l211 -103l-31 233h156l-30 -232l209 101l48 -147l-228 -43l159 -170l-123 -92l-113 205l-113 -204l-124 89l161 171z" />
|
||||||
|
<glyph unicode="+" horiz-adv-x="950" d="M100 450v150h300v300h150v-300h300v-150h-300v-300h-150v300h-300z" />
|
||||||
|
<glyph unicode="," horiz-adv-x="385" d="M25 -250l150 435h185l-150 -435h-185z" />
|
||||||
|
<glyph unicode="-" horiz-adv-x="700" d="M100 450v150h500v-150h-500z" />
|
||||||
|
<glyph unicode="." horiz-adv-x="385" d="M100 0v185h185v-185h-185z" />
|
||||||
|
<glyph unicode="/" horiz-adv-x="980" d="M25 0l725 1430h205l-725 -1430h-205z" />
|
||||||
|
<glyph unicode="0" horiz-adv-x="1445" d="M110 713q0 727 618 727q607 0 607 -727q0 -723 -607 -723q-618 0 -618 723zM305 719q0 -579 423 -579q412 0 412 579q0 571 -412 571q-423 0 -423 -571z" />
|
||||||
|
<glyph unicode="1" horiz-adv-x="645" d="M100 1251v89l335 100v-1440h-185v1251h-150z" />
|
||||||
|
<glyph unicode="2" horiz-adv-x="1145" d="M60 0v150q795 547 795 870q0 270 -340 270q-220 0 -415 -110v160q195 100 415 100q525 0 525 -420q0 -370 -715 -870h715v-150h-980z" />
|
||||||
|
<glyph unicode="3" horiz-adv-x="1150" d="M100 50v160q200 -70 400 -70q330 0 330 260q0 250 -252 250h-328v150h325q255 0 255 250q0 240 -330 240q-200 0 -400 -70v160q200 60 400 60q515 0 515 -390q0 -236 -188 -325q188 -85 188 -325q0 -410 -515 -410q-200 0 -400 60z" />
|
||||||
|
<glyph unicode="4" horiz-adv-x="1220" d="M60 340v150l575 940h194l-576 -940h559v508h185v-508l148 -76v-74h-148v-340h-185v340h-752z" />
|
||||||
|
<glyph unicode="5" horiz-adv-x="1175" d="M125 50v160q200 -70 400 -70q365 0 365 310q0 260 -355 260q-225 0 -410 -40l30 760h864v-150h-706l-24 -442q117 22 246 22q540 0 540 -410q0 -460 -560 -460q-190 0 -390 60z" />
|
||||||
|
<glyph unicode="6" horiz-adv-x="1260" d="M100 550q0 556 658 923l96 -127q-362 -176 -514 -479q131 53 316 53q514 0 514 -450q0 -480 -543 -480q-527 0 -527 560zM275 556q0 -416 361 -416q353 0 353 330q0 300 -342 300q-214 0 -344 -48q-28 -60 -28 -166z" />
|
||||||
|
<glyph unicode="7" horiz-adv-x="1090" d="M65 1280v150h950v-150l-602 -1280h-201l622 1280h-769z" />
|
||||||
|
<glyph unicode="8" horiz-adv-x="1240" d="M100 424q0 223 212 321q-172 105 -172 333q0 366 480 366t480 -366q0 -228 -177 -333q217 -98 217 -321q0 -434 -520 -434t-520 434zM285 418q0 -278 340 -278q330 0 330 278q0 252 -343 252q-327 0 -327 -252zM325 1058q0 -238 300 -238q290 0 290 238q0 232 -303 232 q-287 0 -287 -232z" />
|
||||||
|
<glyph unicode="9" horiz-adv-x="1260" d="M100 953q0 480 543 480q527 0 527 -560q0 -556 -658 -923l-96 127q362 176 514 479q-131 -63 -316 -63q-514 0 -514 460zM281 953q0 -300 342 -300q214 0 344 48q28 60 28 166q0 416 -361 416q-353 0 -353 -330z" />
|
||||||
|
<glyph unicode=":" horiz-adv-x="435" d="M150 0v185h185v-185h-185zM150 865v185h185v-185h-185z" />
|
||||||
|
<glyph unicode=";" horiz-adv-x="535" d="M100 -250l150 435h185l-150 -435h-185zM250 865v185h185v-185h-185z" />
|
||||||
|
<glyph unicode="<" horiz-adv-x="1100" d="M100 450v150l900 400v-150l-743 -329l743 -321v-150z" />
|
||||||
|
<glyph unicode="=" horiz-adv-x="950" d="M100 300v150h750v-150h-750zM100 600v150h750v-150h-750z" />
|
||||||
|
<glyph unicode=">" horiz-adv-x="1100" d="M100 50v150l743 321l-743 329v150l900 -400v-150z" />
|
||||||
|
<glyph unicode="?" horiz-adv-x="1115" d="M100 1230v150q210 50 400 50q515 0 515 -390t-497 -390h-83v-280h-185v430h265q315 0 315 240t-330 240q-190 0 -400 -50zM250 0v185h185v-185h-185z" />
|
||||||
|
<glyph unicode="@" horiz-adv-x="2150" d="M150 540q0 900 924 900q926 0 926 -900q0 -690 -427 -690q-241 0 -241 244q-147 -94 -332 -94q-375 0 -375 317q0 323 426 323q157 0 274 -20v109q0 171 -283 171q-162 0 -332 -50v150q170 50 332 50q468 0 468 -336v-626q0 -88 100 -88q205 0 205 540q0 750 -726 750 q-754 0 -754 -750q0 -770 685 -770v-150q-870 0 -870 920zM810 320q0 -170 190 -170q192 0 325 102v218q-110 20 -274 20q-241 0 -241 -170z" />
|
||||||
|
<glyph unicode="A" horiz-adv-x="1472" d="M25 0l607 1430h205l610 -1430h-205l-185 450h-473l51 150h360l-267 648l-511 -1248h-192z" />
|
||||||
|
<glyph unicode="B" horiz-adv-x="1330" d="M170 0v1430h610q408 0 408 -333q0 -244 -266 -349q284 -53 284 -325q0 -423 -447 -423h-589zM355 150h393q256 0 256 260q0 253 -343 253h-80v121q410 55 410 296q0 200 -228 200h-408v-1130z" />
|
||||||
|
<glyph unicode="C" horiz-adv-x="1385" d="M100 735q0 705 750 705q215 0 400 -60v-160q-185 70 -380 70q-585 0 -585 -555q0 -595 585 -595q195 0 380 70v-160q-185 -60 -400 -60q-750 0 -750 745z" />
|
||||||
|
<glyph unicode="D" horiz-adv-x="1500" d="M170 0v1430h520q710 0 710 -676q0 -754 -710 -754h-520zM355 150h335q525 0 525 604q0 526 -525 526h-335v-1130z" />
|
||||||
|
<glyph unicode="E" horiz-adv-x="1230" d="M170 0v1430h935v-150h-750v-480h715v-150h-715v-500h765v-150h-950z" />
|
||||||
|
<glyph unicode="F" horiz-adv-x="1155" d="M170 0v1430h935v-150h-750v-480h715v-150h-715v-650h-185z" />
|
||||||
|
<glyph unicode="G" horiz-adv-x="1385" d="M100 735q0 705 750 705q215 0 400 -60v-160q-185 70 -380 70q-585 0 -585 -555q0 -595 576 -595q92 0 204 24v486h185v-594q-173 -66 -373 -66q-777 0 -777 745z" />
|
||||||
|
<glyph unicode="H" horiz-adv-x="1555" d="M170 0v1430h185v-630h845v630h185v-1430h-185v650h-845v-650h-185z" />
|
||||||
|
<glyph unicode="I" horiz-adv-x="585" d="M200 0v1430h185v-1430h-185z" />
|
||||||
|
<glyph unicode="J" horiz-adv-x="690" d="M25 0v150q300 0 300 262v1018h185v-1018q0 -412 -485 -412z" />
|
||||||
|
<glyph unicode="K" horiz-adv-x="1400" d="M170 0v1430h185v-1430h-185zM535 688v112l592 630h234l-644 -675l658 -755h-257z" />
|
||||||
|
<glyph unicode="L" horiz-adv-x="1153" d="M170 0v1430h185v-1280h748v-150h-933z" />
|
||||||
|
<glyph unicode="M" horiz-adv-x="1840" d="M170 0v1430h235l525 -1193l515 1193h225v-1430h-165v1173l-508 -1173h-146l-516 1173v-1173h-165z" />
|
||||||
|
<glyph unicode="N" horiz-adv-x="1575" d="M170 0v1430h185l875 -1152v1152h175v-1430h-185l-875 1162v-1162h-175z" />
|
||||||
|
<glyph unicode="O" horiz-adv-x="1665" d="M120 713q0 727 718 727q707 0 707 -727q0 -723 -707 -723q-718 0 -718 723zM315 719q0 -579 523 -579q512 0 512 579q0 571 -512 571q-523 0 -523 -571z" />
|
||||||
|
<glyph unicode="P" horiz-adv-x="1263" d="M170 0v1430h580q438 0 438 -383q0 -417 -599 -509l-38 156q440 65 440 345q0 238 -258 238h-378v-1277h-185z" />
|
||||||
|
<glyph unicode="Q" horiz-adv-x="1665" d="M120 713q0 727 718 727q707 0 707 -727q0 -598 -485 -706l232 -270l-144 -108l-310 361q-718 0 -718 723zM315 719q0 -579 523 -579q512 0 512 579q0 571 -512 571q-523 0 -523 -571z" />
|
||||||
|
<glyph unicode="R" horiz-adv-x="1305" d="M170 0v1430h610q408 0 408 -343q0 -279 -399 -413l491 -674h-244l-455 643v121q410 65 410 315q0 198 -228 198h-408v-1277h-185z" />
|
||||||
|
<glyph unicode="S" horiz-adv-x="1290" d="M100 1030q0 410 575 410q250 0 465 -60v-170q-215 80 -465 80q-390 0 -390 -260q0 -230 264 -230h184q457 0 457 -390q0 -420 -554 -420q-261 0 -486 60v170q225 -80 486 -80q369 0 369 270q0 230 -272 230h-184q-449 0 -449 390z" />
|
||||||
|
<glyph unicode="T" horiz-adv-x="1185" d="M50 1280v150h1085v-150h-450v-1280h-185v1280h-450z" />
|
||||||
|
<glyph unicode="U" horiz-adv-x="1510" d="M160 552v878h185v-878q0 -412 410 -412t410 412v878h185v-878q0 -562 -595 -562t-595 562z" />
|
||||||
|
<glyph unicode="V" horiz-adv-x="1472" d="M25 1430h195l524 -1238l511 1238h192l-607 -1430h-205z" />
|
||||||
|
<glyph unicode="W" horiz-adv-x="1900" d="M50 1430h179l201 -1244l404 1244h185l433 -1244l227 1244h171l-269 -1430h-252l-404 1198l-391 -1198h-249z" />
|
||||||
|
<glyph unicode="X" horiz-adv-x="1410" d="M25 0l563 715l-563 715h225l450 -572l450 572h225l-562 -715l562 -715h-225l-450 572l-450 -572h-225z" />
|
||||||
|
<glyph unicode="Y" horiz-adv-x="1300" d="M25 1430h205l412 -747l418 747h215l-546 -930v-500h-185v500z" />
|
||||||
|
<glyph unicode="Z" horiz-adv-x="1330" d="M125 0v150l884 1130h-864v150h1060v-150l-857 -1130h837v-150h-1060z" />
|
||||||
|
<glyph unicode="[" horiz-adv-x="650" d="M150 -380v1810h450v-150h-265v-1510h265v-150h-450z" />
|
||||||
|
<glyph unicode="\" horiz-adv-x="980" d="M25 1430h205l725 -1430h-205z" />
|
||||||
|
<glyph unicode="]" horiz-adv-x="650" d="M50 -230h265v1510h-265v150h450v-1810h-450v150z" />
|
||||||
|
<glyph unicode="^" d="M50 700l400 730h150l400 -730h-150l-329 603l-321 -603h-150z" />
|
||||||
|
<glyph unicode="_" d="M25 0h1000v-150h-1000v150z" />
|
||||||
|
<glyph unicode="`" horiz-adv-x="603" d="M100 1430h239l164 -239h-164z" />
|
||||||
|
<glyph unicode="a" horiz-adv-x="1135" d="M100 317q0 323 426 323q137 0 274 -20v99q0 181 -283 181q-162 0 -332 -50v150q170 50 332 50q468 0 468 -326v-724h-104l-64 104q-157 -104 -342 -104q-375 0 -375 317zM285 320q0 -170 190 -170q192 0 325 102v218q-137 20 -274 20q-241 0 -241 -170z" />
|
||||||
|
<glyph unicode="b" horiz-adv-x="1188" d="M150 43v1387h185v-430q119 50 255 50q498 0 498 -504q0 -546 -523 -546q-226 0 -415 43zM335 183q91 -29 221 -29q350 0 350 399q0 337 -317 337q-144 0 -254 -54v-653z" />
|
||||||
|
<glyph unicode="c" horiz-adv-x="1025" d="M100 545q0 505 560 505q150 0 280 -30v-150q-130 30 -290 30q-365 0 -365 -355q0 -395 365 -395q160 0 290 30v-150q-130 -30 -280 -30q-560 0 -560 545z" />
|
||||||
|
<glyph unicode="d" horiz-adv-x="1190" d="M100 546q0 504 498 504q136 0 257 -50v430h185v-1367q-191 -63 -471 -63q-469 0 -469 546zM282 553q0 -399 317 -399q144 0 256 39v643q-112 54 -256 54q-317 0 -317 -337z" />
|
||||||
|
<glyph unicode="e" horiz-adv-x="1130" d="M100 537q0 513 483 513q448 0 448 -443q0 -63 -9 -135h-737q0 -322 376 -322q179 0 318 40v-150q-139 -40 -338 -40q-541 0 -541 537zM285 626h568q-6 276 -270 276q-280 0 -298 -276z" />
|
||||||
|
<glyph unicode="f" horiz-adv-x="661" d="M150 0v1101q0 381 432 381q119 0 224 -40v-150q-99 40 -225 40q-246 0 -246 -223v-59h325v-150h-325v-900h-185z" />
|
||||||
|
<glyph unicode="g" horiz-adv-x="1187" d="M100 531q0 519 525 519q213 0 412 -43v-1007q0 -380 -483 -380q-194 0 -344 50v150q153 -50 346 -50q296 0 296 230v50q-118 -50 -254 -50q-498 0 -498 531zM282 533q0 -373 317 -373q144 0 253 54v658q-95 24 -235 24q-335 0 -335 -363z" />
|
||||||
|
<glyph unicode="h" horiz-adv-x="1205" d="M150 0v1430h185v-494q134 114 327 114q393 0 393 -391v-659h-185v662q0 234 -233 234q-159 0 -302 -133v-763h-185z" />
|
||||||
|
<glyph unicode="i" horiz-adv-x="525" d="M170 0v1050h185v-1050h-185zM170 1255v175h185v-175h-185z" />
|
||||||
|
<glyph unicode="j" horiz-adv-x="525" d="M45 -293q125 135 125 373v970h185v-970q0 -318 -155 -478zM170 1255v175h185v-175h-185z" />
|
||||||
|
<glyph unicode="k" horiz-adv-x="1181" d="M150 0v1430h185v-462q153 82 353 82q392 0 392 -303q0 -220 -300 -304l336 -443h-234l-334 445v83q347 31 347 220q0 152 -220 152q-173 0 -340 -94v-806h-185z" />
|
||||||
|
<glyph unicode="l" horiz-adv-x="505" d="M160 0v1430h185v-1430h-185z" />
|
||||||
|
<glyph unicode="m" horiz-adv-x="1805" d="M150 0v1050h125l31 -132q151 132 329 132q228 0 311 -144q171 144 347 144q362 0 362 -399v-651h-185v661q0 235 -198 235q-148 0 -277 -136v-760h-185v658q0 238 -196 238q-156 0 -279 -136v-760h-185z" />
|
||||||
|
<glyph unicode="n" horiz-adv-x="1205" d="M150 0v1050h125l33 -134q161 134 354 134q393 0 393 -391v-659h-185v662q0 234 -233 234q-159 0 -302 -133v-763h-185z" />
|
||||||
|
<glyph unicode="o" horiz-adv-x="1200" d="M100 525q0 525 500 525t500 -525q0 -524 -500 -524q-498 0 -500 524zM285 529q0 -379 315 -379t315 379q0 371 -315 371t-315 -371z" />
|
||||||
|
<glyph unicode="p" horiz-adv-x="1187" d="M150 -380v1387q209 43 432 43q505 0 505 -499q0 -551 -508 -551q-126 0 -244 50v-430h-185zM335 214q109 -54 243 -54q327 0 327 393q0 343 -325 343q-140 0 -245 -24v-658z" />
|
||||||
|
<glyph unicode="q" horiz-adv-x="1187" d="M100 531q0 519 525 519q213 0 412 -43v-1387h-185v430q-118 -50 -254 -50q-498 0 -498 531zM282 533q0 -373 317 -373q144 0 253 54v658q-95 24 -235 24q-335 0 -335 -363z" />
|
||||||
|
<glyph unicode="r" horiz-adv-x="675" d="M150 0v1050h125l33 -134q138 134 332 134v-154q-188 0 -305 -133v-763h-185z" />
|
||||||
|
<glyph unicode="s" d="M100 750q0 300 437 300q188 0 373 -50v-160q-185 60 -373 60q-262 0 -262 -150q0 -140 165 -140h150q360 0 360 -310q0 -300 -436 -300q-189 0 -374 50v160q185 -60 374 -60q251 0 251 150q0 140 -175 140h-150q-340 0 -340 310z" />
|
||||||
|
<glyph unicode="t" horiz-adv-x="675" d="M150 283v937h116l40 -170h284v-150h-255v-603q0 -147 127 -147h128v-150h-176q-264 0 -264 283z" />
|
||||||
|
<glyph unicode="u" horiz-adv-x="1205" d="M150 391v659h185v-662q0 -234 232 -234q159 0 303 133v763h185v-1050h-127l-32 134q-191 -134 -384 -134q-362 0 -362 391z" />
|
||||||
|
<glyph unicode="v" horiz-adv-x="1000" d="M0 1050h200l301 -823l299 823h200l-427 -1050h-172z" />
|
||||||
|
<glyph unicode="w" horiz-adv-x="1539" d="M35 1050h187l186 -823l273 823h167l292 -823l168 823h196l-274 -1050h-169l-301 785l-286 -785h-173z" />
|
||||||
|
<glyph unicode="x" d="M25 0l393 525l-393 525h215l285 -381l285 381h215l-392 -525l392 -525h-215l-285 381l-285 -381h-215z" />
|
||||||
|
<glyph unicode="y" d="M25 1050h201l297 -820l307 820h196l-436 -1081q-116 -286 -348 -357l-71 131q176 77 256 251z" />
|
||||||
|
<glyph unicode="z" horiz-adv-x="1040" d="M100 0v140l635 760h-615v150h820v-150l-627 -760h607v-140h-820z" />
|
||||||
|
<glyph unicode="{" horiz-adv-x="675" d="M100 450v150q210 0 210 352q0 302 130 478h185q-130 -176 -130 -478q0 -352 -210 -427q210 -75 210 -427q0 -302 130 -478h-185q-130 176 -130 478q0 352 -210 352z" />
|
||||||
|
<glyph unicode="|" horiz-adv-x="485" d="M150 -380v1810h185v-1810h-185z" />
|
||||||
|
<glyph unicode="}" horiz-adv-x="675" d="M50 -380q130 176 130 478q0 352 210 427q-210 75 -210 427q0 302 -130 478h185q130 -176 130 -478q0 -352 210 -352v-150q-210 0 -210 -352q0 -302 -130 -478h-185z" />
|
||||||
|
<glyph unicode="~" horiz-adv-x="950" d="M100 430v150q58 61 162 61q86 0 203 -41q117 -40 207 -40q109 0 178 60v-150q-58 -60 -162 -60q-86 0 -203 40q-117 41 -207 41q-109 0 -178 -61z" />
|
||||||
|
<glyph unicode="¢" d="M100 735q0 459 470 501v194h175v-192q108 -6 205 -28v-150q-130 30 -260 30q-405 0 -405 -355q0 -395 405 -395q130 0 260 30v-150q-97 -22 -205 -28v-192h-175v195q-470 45 -470 540z" />
|
||||||
|
<glyph unicode="£" horiz-adv-x="1217" d="M100 -30v152q186 75 186 291q0 117 -77 291t-77 323q0 413 558 413q270 0 427 -100v-180q-158 130 -434 130q-354 0 -354 -261q0 -144 45 -229h376v-150h-324q49 -134 49 -234q0 -137 -64 -238q22 4 51 4q91 0 251 -43q61 -17 121 -17q145 0 283 98v-170 q-120 -84 -284 -84q-94 0 -201 28q-129 32 -246 32q-153 0 -286 -56z" />
|
||||||
|
<glyph unicode="¥" horiz-adv-x="1250" d="M50 1430h205l362 -627l368 627h215l-433 -700h313v-150h-376v-111h376v-150h-376v-319h-185v319h-349v150h349v111h-349v150h287z" />
|
||||||
|
<glyph unicode="©" horiz-adv-x="1785" d="M150 723q0 717 748 717q737 0 737 -717q0 -733 -737 -733q-748 0 -748 733zM255 719q0 -639 623 -639q652 0 652 639q0 631 -632 631q-643 0 -643 -631zM477 728q0 416 416 416q165 0 290 -51v-98q-125 58 -276 58q-325 0 -325 -325q0 -352 325 -352q151 0 276 58v-98 q-125 -51 -290 -51q-416 0 -416 443z" />
|
||||||
|
<glyph unicode="­" horiz-adv-x="700" d="M100 450v150h500v-150h-500z" />
|
||||||
|
<glyph unicode="®" horiz-adv-x="1163" d="M150 1023q0 427 430 427q433 0 433 -427q0 -415 -433 -415q-418 0 -430 415zM223 1025q0 -361 357 -361q360 0 360 361q0 369 -360 369q-357 0 -357 -369zM404 756v536h229q153 0 153 -128q0 -105 -150 -155l184 -253h-91l-171 241v45q154 25 154 119q0 74 -86 74h-153 v-479h-69z" />
|
||||||
|
<glyph unicode="´" horiz-adv-x="603" d="M100 1191l164 239h239l-239 -239h-164z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="741" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="1482" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="494" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="247" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="185" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="82" />
|
||||||
|
<glyph unicode="‐" horiz-adv-x="700" d="M100 450v150h500v-150h-500z" />
|
||||||
|
<glyph unicode="‑" horiz-adv-x="700" d="M100 450v150h500v-150h-500z" />
|
||||||
|
<glyph unicode="‒" horiz-adv-x="700" d="M100 450v150h500v-150h-500z" />
|
||||||
|
<glyph unicode="–" horiz-adv-x="1200" d="M100 450v150h1000v-150h-1000z" />
|
||||||
|
<glyph unicode="—" horiz-adv-x="1700" d="M100 450v150h1500v-150h-1500z" />
|
||||||
|
<glyph unicode="‘" horiz-adv-x="410" d="M50 995l150 435h185l-150 -435h-185z" />
|
||||||
|
<glyph unicode="’" horiz-adv-x="435" d="M50 995l150 435h185l-150 -435h-185z" />
|
||||||
|
<glyph unicode="“" horiz-adv-x="780" d="M50 995l150 435h185l-150 -435h-185zM420 995l150 435h185l-150 -435h-185z" />
|
||||||
|
<glyph unicode="”" horiz-adv-x="780" d="M50 995l150 435h185l-150 -435h-185zM420 995l150 435h185l-150 -435h-185z" />
|
||||||
|
<glyph unicode="•" horiz-adv-x="630" d="M100 725q0 215 215 215t215 -215t-215 -215t-215 215z" />
|
||||||
|
<glyph unicode="…" horiz-adv-x="1185" d="M100 0v185h185v-185h-185zM500 0v185h185v-185h-185zM900 0v185h185v-185h-185z" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="296" />
|
||||||
|
<glyph unicode=" " horiz-adv-x="370" />
|
||||||
|
<glyph unicode="€" horiz-adv-x="1385" d="M100 735q0 705 750 705q215 0 400 -60v-160q-185 70 -380 70q-498 0 -585 -348h773v-150h-793v-110h793v-150h-773q77 -392 585 -392q195 0 380 70v-160q-185 -60 -400 -60q-750 0 -750 745z" />
|
||||||
|
<glyph unicode="™" horiz-adv-x="1606" d="M150 1359v71h511v-71h-212v-602h-87v602h-212zM750 757v673h110l248 -561l242 561h106v-673h-78v543l-239 -543h-69l-243 543v-543h-77z" />
|
||||||
|
<glyph unicode="" d="M0 1050h1050v-1050h-1050v1050z" />
|
||||||
|
</font>
|
||||||
|
</defs></svg>
|
After Width: | Height: | Size: 18 KiB |
BIN
www/assets/fonts/sansation/SansationRegularWebfont.ttf
Executable file
BIN
www/assets/fonts/sansation/SansationRegularWebfont.woff
Executable file
58
www/assets/fonts/sansation/demo.html
Executable file
@ -0,0 +1,58 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
|
||||||
|
<title>Font Face Demo</title>
|
||||||
|
<link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8">
|
||||||
|
<style type="text/css" media="screen">
|
||||||
|
h1.fontface {font: 60px/68px 'SansationRegular', Arial, sans-serif;letter-spacing: 0;}
|
||||||
|
|
||||||
|
p.style1 {font: 18px/27px 'SansationRegular', Arial, sans-serif;}
|
||||||
|
p.style2 {font: 18px/27px 'SansationLight', Arial, sans-serif;}
|
||||||
|
p.style3 {font: 18px/27px 'SansationBold', Arial, sans-serif;}
|
||||||
|
p.style4 {font: 18px/27px 'SansationLightLightItalic', Arial, sans-serif;}
|
||||||
|
p.style5 {font: 18px/27px 'SansationItalic', Arial, sans-serif;}
|
||||||
|
p.style6 {font: 18px/27px 'SansationBoldItalic', Arial, sans-serif;}
|
||||||
|
|
||||||
|
#container {
|
||||||
|
width: 800px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="container">
|
||||||
|
<h1 class="fontface">Font-face Demo for the Sansation Font</h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p class="style1">Sansation Regular - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p class="style2">Sansation Light - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p class="style3">Sansation Bold - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p class="style4">Sansation Light Light Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p class="style5">Sansation Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p class="style6">Sansation Bold Italic - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
18
www/assets/fonts/sansation/license.txt
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
Sansation - freeware font family
|
||||||
|
Version 1.3
|
||||||
|
Bernd Montag © 2011 - All Rights Reserved
|
||||||
|
|
||||||
|
This font family is freeware and can be used for personal and commercial purposes.
|
||||||
|
Although a PayPal donation is much appreciated.
|
||||||
|
|
||||||
|
You may but this font on CDs, websites,... with the following restrictions:
|
||||||
|
|
||||||
|
-Editing is only allowed for personal use, don´t distribute an modiefied version of the font files!
|
||||||
|
-Do not rename the font files!
|
||||||
|
-Do not sell the font files!
|
||||||
|
-Do not pass the font files without this textfile!
|
||||||
|
-Make sure you have downloaded the latest update from www.dafont.com for best optical results.
|
||||||
|
|
||||||
|
If you have further questions - please contact me.
|
||||||
|
|
||||||
|
berndmontag@gmx.de
|
76
www/assets/fonts/sansation/stylesheet.css
Executable file
@ -0,0 +1,76 @@
|
|||||||
|
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on May 11, 2012 12:44:10 PM America/New_York */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'SansationRegular';
|
||||||
|
src: url('SansationRegularWebfont.eot');
|
||||||
|
src: url('SansationRegularWebfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('SansationRegularWebfont.woff') format('woff'),
|
||||||
|
url('SansationRegularWebfont.ttf') format('truetype'),
|
||||||
|
url('SansationRegularWebfont.svg#SansationRegular') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'SansationLight';
|
||||||
|
src: url('SansationLightWebfont.eot');
|
||||||
|
src: url('SansationLightWebfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('SansationLightWebfont.woff') format('woff'),
|
||||||
|
url('SansationLightWebfont.ttf') format('truetype'),
|
||||||
|
url('SansationLightWebfont.svg#SansationLight') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'SansationBold';
|
||||||
|
src: url('SansationBoldWebfont.eot');
|
||||||
|
src: url('SansationBoldWebfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('SansationBoldWebfont.woff') format('woff'),
|
||||||
|
url('SansationBoldWebfont.ttf') format('truetype'),
|
||||||
|
url('SansationBoldWebfont.svg#SansationBold') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'SansationLightLightItalic';
|
||||||
|
src: url('SansationLightItalicWebfont.eot');
|
||||||
|
src: url('SansationLightItalicWebfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('SansationLightItalicWebfont.woff') format('woff'),
|
||||||
|
url('SansationLightItalicWebfont.ttf') format('truetype'),
|
||||||
|
url('SansationLightItalicWebfont.svg#SansationLightLightItalic') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'SansationItalic';
|
||||||
|
src: url('SansationItalicWebfont.eot');
|
||||||
|
src: url('SansationItalicWebfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('SansationItalicWebfont.woff') format('woff'),
|
||||||
|
url('SansationItalicWebfont.ttf') format('truetype'),
|
||||||
|
url('SansationItalicWebfont.svg#SansationItalic') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'SansationBoldItalic';
|
||||||
|
src: url('SansationBoldItalicWebfont.eot');
|
||||||
|
src: url('SansationBoldItalicWebfont.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('SansationBoldItalicWebfont.woff') format('woff'),
|
||||||
|
url('SansationBoldItalicWebfont.ttf') format('truetype'),
|
||||||
|
url('SansationBoldItalicWebfont.svg#SansationBoldItalic') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
BIN
www/assets/graphics/backArrow.png
Normal file
After Width: | Height: | Size: 450 B |
BIN
www/assets/graphics/bread.png
Normal file
After Width: | Height: | Size: 580 B |
3
www/assets/graphics/calculator.svg
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0px" y="0px" width="85.039px" height="100px" viewBox="0 0 85.039 100" overflow="visible" enable-background="new 0 0 85.039 100" xml:space="preserve">
|
||||||
|
<path d="M71.018,0H14.017C6.275,0,0,6.27,0,14.017v71.996v0.005c0,7.741,6.275,14.017,14.017,14.017h57.001 c7.747,0,14.021-6.275,14.021-14.017v-0.005V14.017C85.039,6.27,78.765,0,71.018,0z M26.545,85.539 c0,1.918-1.558,3.477-3.481,3.477H13.2c-1.923,0-3.481-1.559-3.481-3.477v-3.486c0-1.918,1.558-3.476,3.481-3.476h9.864 c1.923,0,3.481,1.558,3.481,3.476V85.539z M26.545,67.327c0,1.923-1.558,3.481-3.481,3.481H13.2 c-1.923,0-3.481-1.559-3.481-3.481v-3.481c0-1.918,1.558-3.481,3.481-3.481h9.864c1.923,0,3.481,1.563,3.481,3.481V67.327z M26.545,49.114c0,1.923-1.558,3.487-3.481,3.487H13.2c-1.923,0-3.481-1.563-3.481-3.487v-3.476 c0-1.923,1.558-3.481,3.481-3.481h9.864c1.923,0,3.481,1.558,3.481,3.481V49.114z M50.699,85.539 c0,1.918-1.563,3.477-3.481,3.477h-9.858c-1.929,0-3.487-1.559-3.487-3.477v-3.486c0-1.918,1.558-3.476,3.487-3.476h9.858 c1.918,0,3.481,1.558,3.481,3.476V85.539z M50.699,67.327c0,1.923-1.563,3.481-3.481,3.481h-9.858 c-1.929,0-3.487-1.559-3.487-3.481v-3.481c0-1.918,1.558-3.481,3.487-3.481h9.858c1.918,0,3.481,1.563,3.481,3.481V67.327z M50.699,49.114c0,1.923-1.563,3.487-3.481,3.487h-9.858c-1.929,0-3.487-1.563-3.487-3.487v-3.476 c0-1.923,1.558-3.481,3.487-3.481h9.858c1.918,0,3.481,1.558,3.481,3.481V49.114z M74.854,85.539 c0,1.918-1.559,3.477-3.481,3.477h-9.858c-1.924,0-3.481-1.559-3.481-3.477v-3.486c0-1.918,1.558-3.476,3.481-3.476h9.858 c1.923,0,3.481,1.558,3.481,3.476V85.539z M74.854,67.327c0,1.923-1.559,3.481-3.481,3.481h-9.858 c-1.924,0-3.481-1.559-3.481-3.481v-3.481c0-1.918,1.558-3.481,3.481-3.481h9.858c1.923,0,3.481,1.563,3.481,3.481V67.327z M74.854,49.114c0,1.923-1.559,3.487-3.481,3.487h-9.858c-1.924,0-3.481-1.563-3.481-3.487v-3.476 c0-1.923,1.558-3.481,3.481-3.481h9.858c1.923,0,3.481,1.558,3.481,3.481V49.114z M74.982,30.263 c0,1.923-1.559,3.481-3.481,3.481H13.2c-1.923,0-3.481-1.558-3.481-3.481V14.892c0-1.923,1.558-3.481,3.481-3.481h58.301 c1.923,0,3.481,1.558,3.481,3.481V30.263z"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
BIN
www/assets/graphics/info.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
www/assets/graphics/moreDisclosure.png
Normal file
After Width: | Height: | Size: 501 B |
10
www/assets/graphics/notebook.svg
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" id="Ebene_1" x="0px" y="0px" width="100px" height="99.999px" viewBox="0 0 100 99.999" enable-background="new 0 0 100 99.999" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<path d="M78.556,1.759H24.939c-6.337,0-11.472,5.136-11.472,11.472v1.359c-4.68,0-8.474,3.793-8.474,8.474 c0,3.605,2.255,6.676,5.431,7.901c-3.175,1.224-5.431,4.295-5.431,7.9c0,3.604,2.254,6.674,5.425,7.899 c-3.171,1.225-5.425,4.295-5.425,7.899c0,3.684,2.355,6.809,5.637,7.977c-3.281,1.168-5.637,4.293-5.637,7.977 c0,4.68,3.794,8.474,8.474,8.474v5.628c0,6.336,5.135,11.472,11.472,11.472h53.616c6.335,0,11.472-5.136,11.472-11.472V13.231 C90.027,6.895,84.891,1.759,78.556,1.759z M13.468,19.243v7.641c-2.105,0-3.82-1.714-3.82-3.82 C9.647,20.957,11.362,19.243,13.468,19.243z M13.468,35.045v7.641c-2.105,0-3.82-1.714-3.82-3.821S11.362,35.045,13.468,35.045z M13.468,50.843v7.641c-2.105,0-3.82-1.714-3.82-3.82S11.362,50.843,13.468,50.843z M9.647,70.617c0-2.106,1.715-3.82,3.82-3.82 v7.641C11.362,74.438,9.647,72.724,9.647,70.617z M81.424,84.719c0,1.582-1.287,2.868-2.868,2.868H24.939 c-1.581,0-2.868-1.287-2.868-2.868V13.231c0-1.582,1.287-2.868,2.868-2.868h53.616c1.581,0,2.868,1.287,2.868,2.868V84.719z"/>
|
||||||
|
<rect x="31.062" y="19.986" width="41.371" height="4.653"/>
|
||||||
|
<rect x="31.062" y="32.127" width="41.371" height="4.653"/>
|
||||||
|
<rect x="31.062" y="44.269" width="41.371" height="4.653"/>
|
||||||
|
<rect x="31.062" y="56.41" width="41.371" height="4.653"/>
|
||||||
|
<rect x="31.062" y="68.551" width="41.371" height="4.653"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
BIN
www/assets/graphics/search.png
Normal file
After Width: | Height: | Size: 947 B |
8
www/assets/graphics/settings.svg
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve">
|
||||||
|
<g id="Captions">
|
||||||
|
</g>
|
||||||
|
<g id="Your_Icon">
|
||||||
|
<path fill="#000000" d="M95.678,38.018l-6.331-2.251c-0.684-0.243-1.234-0.766-1.511-1.434c-0.004-0.007-0.007-0.017-0.011-0.024 c-0.269-0.666-0.245-1.418,0.063-2.068l2.883-6.066c1.182-2.484,0.672-5.442-1.273-7.387l-8.285-8.285 c-1.943-1.944-4.9-2.455-7.387-1.273l-6.066,2.883c-0.649,0.309-1.429,0.328-2.089,0.055c-0.011-0.005-0.021-0.008-0.031-0.013 c-0.654-0.28-1.166-0.825-1.405-1.498l-2.251-6.332C61.062,1.731,58.608,0,55.858,0H44.142c-2.75,0-5.203,1.731-6.124,4.322 l-2.251,6.329c-0.243,0.685-0.767,1.236-1.437,1.514c-0.668,0.276-1.435,0.257-2.09-0.054l-6.066-2.883 c-2.482-1.181-5.442-0.672-7.387,1.273l-8.285,8.285c-1.945,1.944-2.456,4.902-1.274,7.387l2.884,6.066 c0.311,0.651,0.332,1.407,0.061,2.074c-0.002,0.006-0.005,0.013-0.007,0.018c-0.277,0.669-0.828,1.191-1.512,1.435l-6.331,2.251 C1.731,38.938,0,41.392,0,44.142v11.717c0,2.751,1.731,5.203,4.322,6.124l6.331,2.251c0.659,0.235,1.194,0.729,1.48,1.361 c0.02,0.05,0.04,0.1,0.061,0.148c0.247,0.653,0.218,1.384-0.083,2.017l-2.884,6.066c-1.181,2.484-0.671,5.442,1.274,7.387 l8.285,8.285c1.943,1.944,4.902,2.455,7.388,1.274l6.062-2.883c0.644-0.307,1.413-0.329,2.072-0.064 c0.009,0.004,0.019,0.008,0.025,0.012c0.667,0.275,1.189,0.826,1.432,1.508l2.251,6.332c0.922,2.592,3.375,4.323,6.125,4.323 h11.717c2.75,0,5.202-1.73,6.124-4.321l2.238-6.294c0.243-0.683,0.756-1.238,1.415-1.534c0.026-0.009,0.052-0.021,0.078-0.031 c0.638-0.265,1.391-0.242,2.009,0.051l6.104,2.902c2.483,1.182,5.442,0.672,7.387-1.274l8.285-8.285 c1.945-1.944,2.456-4.903,1.273-7.387l-2.884-6.065c-0.312-0.658-0.332-1.419-0.055-2.087c0.003-0.009,0.007-0.017,0.009-0.024 c0.28-0.658,0.829-1.175,1.509-1.417l6.327-2.25C98.27,61.062,100,58.609,100,55.858V44.142 C100,41.392,98.269,38.938,95.678,38.018z M87,51.271l-2.004,0.712c-4.146,1.474-7.487,4.647-9.171,8.707 c-0.009,0.021-0.018,0.043-0.026,0.065c-1.657,4.046-1.532,8.627,0.348,12.584l0.915,1.926l-1.796,1.796L73.3,76.128 c-3.865-1.835-8.467-1.973-12.425-0.375c-0.054,0.021-0.107,0.042-0.161,0.064c-4.078,1.695-7.266,5.055-8.742,9.214L51.271,87 h-2.542l-0.715-2.011c-1.471-4.132-4.63-7.465-8.673-9.149c-0.011-0.005-0.021-0.01-0.032-0.014 c-4.022-1.67-8.717-1.549-12.655,0.322l-1.92,0.913l-1.797-1.797l0.914-1.923c1.89-3.976,2.008-8.586,0.323-12.65 c-0.007-0.018-0.015-0.034-0.021-0.052c-1.689-4.035-5.02-7.188-9.145-8.654L13,51.271v-2.541l2.01-0.715 c4.125-1.467,7.455-4.62,9.144-8.655c0.007-0.017,0.014-0.033,0.021-0.05c1.685-4.065,1.567-8.678-0.323-12.652l-0.914-1.922 l1.798-1.798l1.923,0.914c3.936,1.87,8.629,1.991,12.651,0.322c4.058-1.682,7.23-5.021,8.705-9.165L48.729,13h2.541l0.715,2.011 c1.475,4.143,4.646,7.482,8.705,9.163c0.013,0.006,0.026,0.011,0.04,0.017c4.01,1.65,8.69,1.525,12.612-0.339l1.922-0.914 l1.798,1.798l-0.914,1.923c-1.89,3.976-2.008,8.587-0.323,12.65h0.001c0.005,0.013,0.01,0.025,0.016,0.037 c1.687,4.042,5.02,7.201,9.149,8.669L87,48.729V51.271z"/>
|
||||||
|
<path fill="#000000" d="M50,27.546c-12.381,0-22.454,10.073-22.454,22.454S37.619,72.454,50,72.454S72.454,62.381,72.454,50 S62.381,27.546,50,27.546z M50,59.454c-5.213,0-9.454-4.241-9.454-9.454s4.241-9.454,9.454-9.454s9.454,4.241,9.454,9.454 S55.213,59.454,50,59.454z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
BIN
www/assets/graphics/wheatBg.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
www/assets/graphics/wheatBgNoColor.png
Normal file
After Width: | Height: | Size: 18 KiB |
402
www/assets/styles.css
Executable file
@ -0,0 +1,402 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea {
|
||||||
|
-webkit-touch-callout: auto;
|
||||||
|
-webkit-user-select: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
position:absolute;
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
background-color:#555;
|
||||||
|
}
|
||||||
|
* {
|
||||||
|
font-family:'SansationRegular', Arial, sans-serif;
|
||||||
|
letter-spacing: 0;
|
||||||
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.subtext {
|
||||||
|
font-size:0.85em;
|
||||||
|
font-color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-list {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
overflow: hidden;
|
||||||
|
position:relative;
|
||||||
|
background-color: #EDEDED;
|
||||||
|
min-height:100%;
|
||||||
|
|
||||||
|
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-list ul,
|
||||||
|
.data-list li {
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.data-list ul {
|
||||||
|
display:block;
|
||||||
|
width:100%;
|
||||||
|
width:100%;
|
||||||
|
max-width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-list li {
|
||||||
|
cursor:pointer;
|
||||||
|
font-size:1em;
|
||||||
|
padding:1em;
|
||||||
|
padding-left:1em;
|
||||||
|
padding-right:1px;
|
||||||
|
display:block;
|
||||||
|
border-top:1px solid #fff;
|
||||||
|
border-bottom:1px solid #CCC;
|
||||||
|
|
||||||
|
background-image:url('graphics/moreDisclosure.png');
|
||||||
|
background-position:right center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.listSelected {
|
||||||
|
color:#333;
|
||||||
|
border-top:1px solid #094C99;
|
||||||
|
background-color: #D9D900;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*ViewNavigator Styles*/
|
||||||
|
|
||||||
|
.viewNavigator_header {
|
||||||
|
background:#444;
|
||||||
|
color:#444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewNavigator_header_title {
|
||||||
|
color: white;
|
||||||
|
font-size:1.5em;
|
||||||
|
max-width:65%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewNavigator_backButton {
|
||||||
|
position:absolute;
|
||||||
|
top:5px;
|
||||||
|
left:5px;
|
||||||
|
width:40px;
|
||||||
|
color: rgba(0,0,0,0);
|
||||||
|
height:35px;
|
||||||
|
box-shadow: 0 0 0 0;
|
||||||
|
background: #DEDEDE;
|
||||||
|
border:1px solid #999;
|
||||||
|
padding:0px;
|
||||||
|
border-radius:0px;
|
||||||
|
background-image:url('graphics/backArrow.png');
|
||||||
|
background-position: 3px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width:760px) {
|
||||||
|
.viewNavigator_backButton {
|
||||||
|
text-align:right;
|
||||||
|
vertical-align:middle;
|
||||||
|
padding-right:10px;
|
||||||
|
padding-left:50px;
|
||||||
|
padding-top:9px;
|
||||||
|
height:26px;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewNavigator_backButton:active {
|
||||||
|
background-color: #D9D900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewNavigator_content {
|
||||||
|
border-top:1px solid #999;
|
||||||
|
background:#999;
|
||||||
|
color:#444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewNavigator_contentHolder {
|
||||||
|
color:#444;
|
||||||
|
background:#999;
|
||||||
|
border-left:1px solid #999;
|
||||||
|
border-right:1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.viewNavigator_contentHolder > div:first-child {
|
||||||
|
min-height:100%;
|
||||||
|
background:#EDEDED;
|
||||||
|
/*background-image:url('graphics/wheatBg.png');
|
||||||
|
background-position: top left;
|
||||||
|
background-repeat:repeat;*/
|
||||||
|
border-bottom:1px solid #444;
|
||||||
|
border-top:1px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*APPLICATION VIEWS*/
|
||||||
|
|
||||||
|
.right {
|
||||||
|
position:absolute;
|
||||||
|
right:0.75em;
|
||||||
|
top:0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.padded {
|
||||||
|
padding:1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
padding:.5em;
|
||||||
|
cursor:pointer;
|
||||||
|
border:1px solid #999;
|
||||||
|
background-color: #AAA;
|
||||||
|
color: white;
|
||||||
|
text-decoration:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:active {
|
||||||
|
background-color: #D9D900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heading {
|
||||||
|
background-color: #fff;
|
||||||
|
color:#444;
|
||||||
|
border-bottom:1px solid #999;
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
-webkit-transform:translate3d(0,0,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.warning {
|
||||||
|
background-color: #F2DEDE;
|
||||||
|
color:#B94A48;
|
||||||
|
border:1px solid #EED3D7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView {
|
||||||
|
background-image:url('graphics/wheatBgNoColor.png');
|
||||||
|
background-position: bottom center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@media only screen and (min-width:760px) {
|
||||||
|
#defaultView {
|
||||||
|
background-image:url('graphics/wheatBg.png');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#aboutView h2,
|
||||||
|
#defaultView h2 {
|
||||||
|
display:block;
|
||||||
|
padding:0em;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
#aboutView div,
|
||||||
|
#defaultView div {
|
||||||
|
display:block;
|
||||||
|
padding:1em;
|
||||||
|
padding-top:0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView a {
|
||||||
|
height:100%;
|
||||||
|
display:block;
|
||||||
|
border:1px solid #999;
|
||||||
|
padding:1.25em;
|
||||||
|
text-decoration: none;
|
||||||
|
color:#444;
|
||||||
|
font-size:1em;
|
||||||
|
background:rgba(230,230,230,0.85);
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView a:active {
|
||||||
|
background-color:#D9D900;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView #points {
|
||||||
|
padding-left:75px;
|
||||||
|
background-image:url('graphics/notebook.svg');
|
||||||
|
background-size:45px 45px;
|
||||||
|
background-position: 15px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView #search {
|
||||||
|
padding-left:75px;
|
||||||
|
background-image:url('graphics/search.png');
|
||||||
|
background-position: 5px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView #calculate {
|
||||||
|
padding-left:75px;
|
||||||
|
background-image:url('graphics/bread.png');
|
||||||
|
background-size:45px 45px;
|
||||||
|
background-position: 5px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView #calculateAllowance {
|
||||||
|
padding-left:75px;
|
||||||
|
background-image:url('graphics/calculator.svg');
|
||||||
|
background-size:45px 45px;
|
||||||
|
background-position: 5px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView #settings {
|
||||||
|
padding-left:75px;
|
||||||
|
background-image:url('graphics/settings.svg');
|
||||||
|
background-size:45px 45px;
|
||||||
|
background-position: 5px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#defaultView #about {
|
||||||
|
padding-left:75px;
|
||||||
|
background-image:url('graphics/info.png');
|
||||||
|
background-position: 10px center;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#aboutView {
|
||||||
|
padding:1em;
|
||||||
|
padding-top:0em;
|
||||||
|
|
||||||
|
backface-visibility: hidden;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
|
||||||
|
transform: translate3d(0,0,0);
|
||||||
|
-webkit-transform: translate3d(0,0,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
#searchView {
|
||||||
|
padding:1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#foodDetailsView {
|
||||||
|
padding:1.0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#foodDetailsView h2 {
|
||||||
|
padding:0em;
|
||||||
|
margin:0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paragraph {
|
||||||
|
margin:0px;
|
||||||
|
margin-bottom:1em;
|
||||||
|
border-top:1px solid #CCC;
|
||||||
|
padding-top:1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paragraph_noborder {
|
||||||
|
margin:0px;
|
||||||
|
margin-bottom:1em;
|
||||||
|
border: none;
|
||||||
|
padding-top:1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amenities {
|
||||||
|
min-height:30px;
|
||||||
|
font-size: 1.25em;
|
||||||
|
padding-top:0.25em;
|
||||||
|
padding-left:62px;
|
||||||
|
background-repeat:no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
#foodMapView {
|
||||||
|
width:100%;
|
||||||
|
height:100%;
|
||||||
|
position:absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
#foodMapView #foodMapContainer{
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
position:absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
#foodMapView #footer{
|
||||||
|
top:0px;
|
||||||
|
height:18px;
|
||||||
|
right:0px;
|
||||||
|
position:absolute;
|
||||||
|
padding:1em;
|
||||||
|
padding-right:0.5em;
|
||||||
|
z-index:99;
|
||||||
|
}
|
||||||
|
|
||||||
|
#search_state {
|
||||||
|
font-size:1.25em;
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#search_searchPhrase {
|
||||||
|
width:96%;
|
||||||
|
font-size:1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#searchButton {
|
||||||
|
padding-left:2em;
|
||||||
|
padding-right:2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='checkbox'] {
|
||||||
|
width:2em;
|
||||||
|
height:2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-size: .8em;
|
||||||
|
padding:.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.searchfilter{
|
||||||
|
padding:.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.searchfilter .amenities {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#geoError{
|
||||||
|
padding:1.25em;
|
||||||
|
}
|
||||||
|
#geoError div {
|
||||||
|
padding:1.25em;
|
||||||
|
padding-top:0px;
|
||||||
|
}
|
119
www/config.xml
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
|
||||||
|
<widget xmlns = "http://www.w3.org/ns/widgets"
|
||||||
|
xmlns:gap = "http://phonegap.com/ns/1.0"
|
||||||
|
id = "com.moparisthebest.pointswatcher"
|
||||||
|
version = "0.1">
|
||||||
|
|
||||||
|
<name>Points Watcher</name>
|
||||||
|
|
||||||
|
<description>
|
||||||
|
Points Watcher is the easiest way to keep track of your Weight Watcher's Points Plus system.
|
||||||
|
</description>
|
||||||
|
|
||||||
|
<author href="http://android.moparisthebest.org" email="android@moparisthebest.com">
|
||||||
|
Travis Burtrum (moparisthebest)
|
||||||
|
</author>
|
||||||
|
|
||||||
|
<license href="https://www.gnu.org/licenses/gpl.html">
|
||||||
|
Copyright (C) 2013 Travis Burtrum (moparisthebest)
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
</license>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Enable individual API permissions by defining each here.
|
||||||
|
The 'device' permission is required for the 'deviceready' event.
|
||||||
|
-->
|
||||||
|
<feature name="http://api.phonegap.com/1.0/device" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you do not want any permissions to be added to your app, add the
|
||||||
|
following tag to your config.xml; you will still have the INTERNET
|
||||||
|
permission on your app, which PhoneGap requires.
|
||||||
|
-->
|
||||||
|
<preference name="permissions" value="none"/>
|
||||||
|
|
||||||
|
<!-- Customize your app and platform with the preference element. -->
|
||||||
|
<preference name="phonegap-version" value="2.3.0" /> <!-- all: current version of PhoneGap -->
|
||||||
|
<preference name="orientation" value="default" /> <!-- all: default means both landscape and portrait are enabled -->
|
||||||
|
<preference name="target-device" value="universal" /> <!-- all: possible values handset, tablet, or universal -->
|
||||||
|
<preference name="fullscreen" value="false" /> <!-- all: hides the status bar at the top of the screen -->
|
||||||
|
<preference name="webviewbounce" value="true" /> <!-- ios: control whether the screen 'bounces' when scrolled beyond the top -->
|
||||||
|
<preference name="prerendered-icon" value="true" /> <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
|
||||||
|
<preference name="stay-in-webview" value="false" /> <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->
|
||||||
|
<preference name="ios-statusbarstyle" value="black-opaque" /> <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
|
||||||
|
<preference name="detect-data-types" value="true" /> <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
|
||||||
|
<preference name="exit-on-suspend" value="false" /> <!-- ios: if set to true, app will terminate when home button is pressed -->
|
||||||
|
<preference name="show-splash-screen-spinner" value="true" /> <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading -->
|
||||||
|
<preference name="auto-hide-splash-screen" value="true" /> <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
|
||||||
|
<preference name="disable-cursor" value="false" /> <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
|
||||||
|
<preference name="android-minSdkVersion" value="7" /> <!-- android: MIN SDK version supported on the target device. -->
|
||||||
|
<preference name="android-maxSdkVersion" value="17" /> <!-- android: MAX SDK version supported on the target device. -->
|
||||||
|
<preference name="android-installLocation" value="auto" /> <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->
|
||||||
|
|
||||||
|
<!-- Plugins can also be added here. -->
|
||||||
|
<!--
|
||||||
|
<gap:plugin name="Example" />
|
||||||
|
A list of available plugins are available at https://build.phonegap.com/docs/plugins
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Define app icon for each platform. -->
|
||||||
|
<icon src="icon.png" />
|
||||||
|
<icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:density="ldpi" />
|
||||||
|
<icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:density="mdpi" />
|
||||||
|
<icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:density="hdpi" />
|
||||||
|
<icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:density="xhdpi" />
|
||||||
|
<icon src="res/icon/blackberry/icon-80.png" gap:platform="blackberry" />
|
||||||
|
<icon src="res/icon/blackberry/icon-80.png" gap:platform="blackberry" gap:state="hover"/>
|
||||||
|
<icon src="res/icon/ios/icon-57.png" gap:platform="ios" width="57" height="57" />
|
||||||
|
<icon src="res/icon/ios/icon-72.png" gap:platform="ios" width="72" height="72" />
|
||||||
|
<icon src="res/icon/ios/icon-57-2x.png" gap:platform="ios" width="114" height="114" />
|
||||||
|
<icon src="res/icon/ios/icon-72-2x.png" gap:platform="ios" width="144" height="144" />
|
||||||
|
<icon src="res/icon/webos/icon-64.png" gap:platform="webos" />
|
||||||
|
<icon src="res/icon/windows-phone/icon-48.png" gap:platform="winphone" />
|
||||||
|
<icon src="res/icon/windows-phone/icon-173.png" gap:platform="winphone" gap:role="background" />
|
||||||
|
|
||||||
|
<!-- Define app splash screen for each platform. -->
|
||||||
|
<gap:splash src="screen.png" />
|
||||||
|
<gap:splash src="res/screen/android/screen-ldpi-portrait.png" gap:platform="android" gap:density="ldpi" />
|
||||||
|
<gap:splash src="res/screen/android/screen-mdpi-portrait.png" gap:platform="android" gap:density="mdpi" />
|
||||||
|
<gap:splash src="res/screen/android/screen-hdpi-portrait.png" gap:platform="android" gap:density="hdpi" />
|
||||||
|
<gap:splash src="res/screen/android/screen-xhdpi-portrait.png" gap:platform="android" gap:density="xhdpi" />
|
||||||
|
<gap:splash src="res/screen/blackberry/screen-225.png" gap:platform="blackberry" />
|
||||||
|
<gap:splash src="res/screen/ios/screen-iphone-portrait.png" gap:platform="ios" width="320" height="480" />
|
||||||
|
<gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png" gap:platform="ios" width="640" height="960" />
|
||||||
|
<gap:splash src="res/screen/ios/screen-ipad-portrait.png" gap:platform="ios" width="768" height="1024" />
|
||||||
|
<gap:splash src="res/screen/ios/screen-ipad-landscape.png" gap:platform="ios" width="1024" height="768" />
|
||||||
|
<gap:splash src="res/screen/windows-phone/screen-portrait.jpg" gap:platform="winphone" />
|
||||||
|
|
||||||
|
<content src="index.html" />
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Define access to external domains.
|
||||||
|
|
||||||
|
<access /> - a blank access tag denies access to all external resources.
|
||||||
|
<access origin="*" /> - a wildcard access tag allows access to all external resource.
|
||||||
|
|
||||||
|
Otherwise, you can specify specific domains:
|
||||||
|
-->
|
||||||
|
<access origin="http://127.0.0.1*"/> <!-- allow local pages -->
|
||||||
|
<!--
|
||||||
|
<access origin="http://phonegap.com" /> - allow any secure requests to http://honegap.com/
|
||||||
|
<access origin="http://phonegap.com" subdomains="true" /> - same as above, but including subdomains, such as http://build.phonegap.com/
|
||||||
|
<access origin="http://phonegap.com" browserOnly="true" /> - only allows http://phonegap.com to be opened by the child browser.
|
||||||
|
-->
|
||||||
|
|
||||||
|
</widget>
|
BIN
www/icon.png
Normal file
After Width: | Height: | Size: 11 KiB |
30
www/index.html
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Points Watcher</title>
|
||||||
|
<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no;" />
|
||||||
|
|
||||||
|
<script src="js/libs/jquery1.7.1.js"></script>
|
||||||
|
<script src="js/libs/jquery.animateEnhanced.js"></script>
|
||||||
|
<script src="js/libs/iscroll.js"></script>
|
||||||
|
<script src="js/libs/noClickDelay.js"></script>
|
||||||
|
<script src="js/libs/mustache.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="js/viewnavigator/viewnavigator.css" type="text/css" />
|
||||||
|
<script src="js/viewnavigator/viewnavigator.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="js/libs/css/activityIndicator.css" type="text/css" />
|
||||||
|
|
||||||
|
<script src="cordova.js"></script>
|
||||||
|
<script src="js/viewAssembler.js"></script>
|
||||||
|
<script src="js/application.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="assets/fonts/sansation/stylesheet.css" type="text/css" charset="utf-8">
|
||||||
|
<link rel="stylesheet" href="assets/styles.css" type="text/css" charset="utf-8">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body></body>
|
||||||
|
|
||||||
|
</html>
|
298
www/js/application.js
Normal file
@ -0,0 +1,298 @@
|
|||||||
|
/*HTMLElement.prototype.originalRemoveEventListener
|
||||||
|
= HTMLElement.prototype.removeEventListener;
|
||||||
|
|
||||||
|
HTMLElement.prototype.removeEventListener = function(type, listener, useCapture)
|
||||||
|
{
|
||||||
|
console.log('remove: ' + type);
|
||||||
|
this.originalRemoveEventListener(type, listener, useCapture);
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
var maxSearchLength = 50;
|
||||||
|
|
||||||
|
var weeklyPointsAllowed = 49;
|
||||||
|
|
||||||
|
var values = [];
|
||||||
|
var database;
|
||||||
|
var viewAssembler = new ViewAssembler();
|
||||||
|
var backButtonLabel = " ";
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
loadTemplates(setupDefaultView);
|
||||||
|
});
|
||||||
|
|
||||||
|
function setupDefaultView() {
|
||||||
|
var bodyView = viewAssembler.defaultView();
|
||||||
|
|
||||||
|
//Setup the default view
|
||||||
|
var defaultView = { title: "Welcome!",
|
||||||
|
view: bodyView
|
||||||
|
};
|
||||||
|
|
||||||
|
//Setup the ViewNavigator
|
||||||
|
window.viewNavigator = new ViewNavigator('body');
|
||||||
|
window.viewNavigator.pushView(defaultView);
|
||||||
|
|
||||||
|
backButtonLabel = (isTablet() ? "Back" : " ");
|
||||||
|
database = window.localStorage;
|
||||||
|
|
||||||
|
$.ajaxSetup({
|
||||||
|
cache: true
|
||||||
|
});
|
||||||
|
|
||||||
|
$.getScript("values.js", scriptSuccess);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onNearbyListItemClick(event) {
|
||||||
|
|
||||||
|
$("li").removeClass("listSelected");
|
||||||
|
var target = $(event.target)
|
||||||
|
if (target.get(0).nodeName.toUpperCase() != "LI") {
|
||||||
|
target = target.parent();
|
||||||
|
}
|
||||||
|
|
||||||
|
target.addClass("listSelected");
|
||||||
|
var index = target.attr("index");
|
||||||
|
index = parseInt(index);
|
||||||
|
|
||||||
|
database.setItem("amount", values[index][3]);
|
||||||
|
|
||||||
|
showPointsPage(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
function scriptSuccess(data, textStatus, jqXHR) {
|
||||||
|
|
||||||
|
//for (var i = 0; i < values.length; i++) {
|
||||||
|
// values[i].push(i.toString());
|
||||||
|
//}
|
||||||
|
//console.log( "scriptSuccess: " + values.length );
|
||||||
|
}
|
||||||
|
|
||||||
|
function pushPointsPage() {
|
||||||
|
showPointsPage(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
function showPointsPage(push) {
|
||||||
|
var view = { title: "My Points",
|
||||||
|
backLabel: backButtonLabel,
|
||||||
|
view: viewAssembler.pointsView()
|
||||||
|
};
|
||||||
|
if(push == undefined || !push)
|
||||||
|
window.viewNavigator.replaceView(view);
|
||||||
|
else
|
||||||
|
window.viewNavigator.pushView(view);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onSearchButtonClick(event) {
|
||||||
|
var $input = $("#search_searchPhrase");
|
||||||
|
var searchPhrase = $input.val();
|
||||||
|
|
||||||
|
if (searchPhrase != undefined && searchPhrase.length > 0) {
|
||||||
|
var values = filterValuesBySearchCriteria(searchPhrase);
|
||||||
|
var view = { title: "Search Results",
|
||||||
|
backLabel: backButtonLabel,
|
||||||
|
view: viewAssembler.searchResultsView(values, searchPhrase)
|
||||||
|
};
|
||||||
|
window.viewNavigator.pushView(view);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function filterValuesBySearchCriteria(searchPhrase) {
|
||||||
|
var result = [];
|
||||||
|
//var startTime = new Date().getTime();
|
||||||
|
var tokens = searchPhrase.toLowerCase().split(" ");
|
||||||
|
var regexps = new Array(tokens.length);
|
||||||
|
for (var x = 0; x < regexps.length; ++x)
|
||||||
|
regexps[x] = new RegExp(tokens[x]);
|
||||||
|
var numFound = 0;
|
||||||
|
for (var y = 0; y < values.length; ++y) {
|
||||||
|
var found = true;
|
||||||
|
for (var z = 0; z < regexps.length; ++z) {
|
||||||
|
if (!regexps[z].test(values[y][0])) {
|
||||||
|
found = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (found) {
|
||||||
|
result.push(y);
|
||||||
|
if (++numFound == maxSearchLength)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//console.log( new Date().getTime() - startTime );
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function isNumber(n) {
|
||||||
|
return !isNaN(parseFloat(n)) && isFinite(n);
|
||||||
|
}
|
||||||
|
|
||||||
|
function isPositiveNumber(n) {
|
||||||
|
return isNumber(n) && n > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function roundPoints(points){
|
||||||
|
return Math.round(points * 10) / 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
function onCalcPointsButtonClick(event) {
|
||||||
|
var protein = $("#calcProtein").val();
|
||||||
|
var carbs = $("#calcCarbs").val();
|
||||||
|
var fat = $("#calcFat").val();
|
||||||
|
var fiber = $("#calcFiber").val();
|
||||||
|
|
||||||
|
if (isPositiveNumber(protein) && isPositiveNumber(carbs) && isPositiveNumber(fat) && isPositiveNumber(fiber)) {
|
||||||
|
var amount = calcPointsPlusFood(protein, carbs, fat, fiber);
|
||||||
|
database.setItem("amount", amount);
|
||||||
|
database.setItem("calcPointsAmount", amount);
|
||||||
|
database.setItem("protein", protein);
|
||||||
|
database.setItem("carbs", carbs);
|
||||||
|
database.setItem("fat", fat);
|
||||||
|
database.setItem("fiber", fiber);
|
||||||
|
var view = { title: "Calculate Points",
|
||||||
|
backLabel: backButtonLabel,
|
||||||
|
view: viewAssembler.calcPointsView()
|
||||||
|
};
|
||||||
|
window.viewNavigator.replaceView(view);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function calcPointsPlusFood(protein, carbs, fat, fiber) {
|
||||||
|
var points = (protein / 10.9375) + (carbs / 9.2105) + (fat / 3.8889) - (fiber / 12.5);
|
||||||
|
return roundPoints(points);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onCalcAllowanceButtonClick(event) {
|
||||||
|
var weight = $("#calcWeight").val();
|
||||||
|
var height = $("#calcHeight").val();
|
||||||
|
var age = $("#calcAge").val();
|
||||||
|
var maleNotFemale = "male" == $("#calcGender").val();
|
||||||
|
var poundsNotKg = "pounds" == $("#calcWeightType").val();
|
||||||
|
var inchNotMeters = "inches" == $("#calcHeightType").val();
|
||||||
|
|
||||||
|
if (isPositiveNumber(weight) && isPositiveNumber(height) && isPositiveNumber(age)) {
|
||||||
|
var allowance = calcPointsPlusAllowance(weight, height, age, maleNotFemale, poundsNotKg, inchNotMeters);
|
||||||
|
database.setItem("allowance", allowance);
|
||||||
|
database.setItem("weight", weight);
|
||||||
|
database.setItem("height", height);
|
||||||
|
database.setItem("age", age);
|
||||||
|
database.setItem("maleNotFemale", maleNotFemale);
|
||||||
|
|
||||||
|
var view = { title: "Calculate Allowance",
|
||||||
|
backLabel: backButtonLabel,
|
||||||
|
view: viewAssembler.calcAllowanceView(allowance, weight, height, age, maleNotFemale, poundsNotKg, inchNotMeters)
|
||||||
|
};
|
||||||
|
window.viewNavigator.replaceView(view);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function calcPointsPlusAllowance(weight, height, age, maleNotFemale, poundsNotKg, inchNotMeters) {
|
||||||
|
var wmult = poundsNotKg ? .454 : 1;
|
||||||
|
var hmult = inchNotMeters ? .0254 : 1;
|
||||||
|
|
||||||
|
var base1, age1, activity, wgt1, ht1;
|
||||||
|
if (maleNotFemale) {
|
||||||
|
base1 = 864;
|
||||||
|
age1 = 9.72;
|
||||||
|
activity = 1.12;
|
||||||
|
wgt1 = 14.2;
|
||||||
|
ht1 = 503;
|
||||||
|
} else {
|
||||||
|
base1 = 387;
|
||||||
|
age1 = 7.31;
|
||||||
|
activity = 1.14;
|
||||||
|
wgt1 = 10.9;
|
||||||
|
ht1 = 660.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
var totage = Math.round((age1 * age) * 100) / 100;
|
||||||
|
var totwgt = Math.round(((wmult * weight) * wgt1) * 100) / 100;
|
||||||
|
var totht = Math.round(((hmult * height) * ht1) * 100) / 100;
|
||||||
|
var tee1 = Math.round((activity * (totwgt + totht)) * 100) / 100;
|
||||||
|
var tee2 = Math.round((base1 - totage + tee1) * 100) / 100;
|
||||||
|
var atee1 = tee2 - (tee2 * .10) + 200;
|
||||||
|
var target1 = (atee1 - 1000) / 35;
|
||||||
|
var modtar = Math.round(target1 - 11);
|
||||||
|
|
||||||
|
if (modtar <= 26)
|
||||||
|
modtar = 26;
|
||||||
|
else if (modtar >= 71)
|
||||||
|
modtar = 71;
|
||||||
|
|
||||||
|
return modtar;
|
||||||
|
}
|
||||||
|
|
||||||
|
function onSubtractPointsButtonClick(event) {
|
||||||
|
var amount = $("#pointSubtract").val();
|
||||||
|
var dailyNotWeekly = "daily" == $("#pointType").val();
|
||||||
|
|
||||||
|
if (isNumber(amount)) {
|
||||||
|
var keyName = dailyNotWeekly ? "dailyPoints" : "weeklyPointsAllowed";
|
||||||
|
var points = database.getItem(keyName);
|
||||||
|
points -= amount;
|
||||||
|
database.setItem(keyName, roundPoints(points));
|
||||||
|
showPointsPage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onResetPointsButtonClick(dailyNotWeekly) {
|
||||||
|
var keyName = dailyNotWeekly ? "dailyPoints" : "weeklyPointsAllowed";
|
||||||
|
var points = dailyNotWeekly ? dbGet("allowance", 0) : weeklyPointsAllowed;
|
||||||
|
database.setItem(keyName, points);
|
||||||
|
showPointsPage();
|
||||||
|
}
|
||||||
|
|
||||||
|
function arrayToFoodObject(index) {
|
||||||
|
var result = {};
|
||||||
|
|
||||||
|
var row = values[index];
|
||||||
|
|
||||||
|
result.name = row[1];
|
||||||
|
result.amount = row[2];
|
||||||
|
result.points = row[3];
|
||||||
|
|
||||||
|
result.index = index;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
function openExternalURL(url) {
|
||||||
|
var result = confirm("You will leave the Points Watcher App. Continue?");
|
||||||
|
if (result == true) {
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function dbGetNum(key) {
|
||||||
|
var ret = dbGet(key, 0);
|
||||||
|
return ret < 1 ? undefined : ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
function dbGet(key, defaultVal) {
|
||||||
|
var ret = database.getItem(key);
|
||||||
|
if (ret == undefined) {
|
||||||
|
ret = defaultVal;
|
||||||
|
database.setItem(key, ret);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener("deviceready", onDeviceReady, false);
|
||||||
|
|
||||||
|
function onDeviceReady() {
|
||||||
|
document.addEventListener("backbutton", onBackKey, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onBackKey(event) {
|
||||||
|
if (window.viewNavigator.history.length > 1) {
|
||||||
|
event.preventDefault();
|
||||||
|
window.viewNavigator.popView();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
navigator.app.exitApp();
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener('touchmove', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
}, false);
|
15
www/js/libs/css/activityIndicator.css
Normal file
1078
www/js/libs/iscroll.js
Executable file
779
www/js/libs/jquery.animateEnhanced.js
Executable file
@ -0,0 +1,779 @@
|
|||||||
|
/*
|
||||||
|
jquery.animate-enhanced plugin v0.91
|
||||||
|
---
|
||||||
|
http://github.com/benbarnett/jQuery-Animate-Enhanced
|
||||||
|
http://benbarnett.net
|
||||||
|
@benpbarnett
|
||||||
|
---
|
||||||
|
Copyright (c) 2012 Ben Barnett
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
---
|
||||||
|
Extends jQuery.animate() to automatically use CSS3 transformations where applicable.
|
||||||
|
Tested with jQuery 1.3.2+
|
||||||
|
|
||||||
|
Supports -moz-transition, -webkit-transition, -o-transition, transition
|
||||||
|
|
||||||
|
Targetted properties (for now):
|
||||||
|
- left
|
||||||
|
- top
|
||||||
|
- opacity
|
||||||
|
- width
|
||||||
|
- height
|
||||||
|
|
||||||
|
Usage (exactly the same as it would be normally):
|
||||||
|
|
||||||
|
jQuery(element).animate({left: 200}, 500, function() {
|
||||||
|
// callback
|
||||||
|
});
|
||||||
|
|
||||||
|
Changelog:
|
||||||
|
0.91 (2/4/2012):
|
||||||
|
- Merge Pull Request #74 - Unit Management
|
||||||
|
|
||||||
|
0.90 (7/3/2012):
|
||||||
|
- Adding public $.toggleDisabledByDefault() feature to disable entire plugin by default (Issue #73)
|
||||||
|
|
||||||
|
0.89 (24/1/2012):
|
||||||
|
- Adding 'avoidCSSTransitions' property. Set to true to disable entire plugin. (Issue #47)
|
||||||
|
|
||||||
|
0.88 (24/1/2012):
|
||||||
|
- Fix Issue #67 for HighchartsJS compatibility
|
||||||
|
|
||||||
|
0.87 (24/1/2012):
|
||||||
|
- Fix Issue #66 selfCSSData.original is undefined
|
||||||
|
|
||||||
|
0.86 (9/1/2012):
|
||||||
|
- Strict JS fix for undefined variable
|
||||||
|
|
||||||
|
0.85 (20/12/2011):
|
||||||
|
- Merge Pull request #57 from Kronuz
|
||||||
|
- Codebase cleaned and now passes jshint.
|
||||||
|
- Fixed a few bugs (it now saves and restores the original css transition properties).
|
||||||
|
- fadeOut() is fixed, it wasn't restoring the opacity after hiding it.
|
||||||
|
|
||||||
|
0.80 (13/09/2011):
|
||||||
|
- Issue #28 - Report $(el).is(':animated') fix
|
||||||
|
|
||||||
|
0.79 (06/09/2011):
|
||||||
|
- Issue #42 - Right negative position animation: please see issue notes on Github.
|
||||||
|
|
||||||
|
0.78 (02/09/2011):
|
||||||
|
- Issue #18 - jQuery/$ reference joys
|
||||||
|
|
||||||
|
0.77 (02/09/2011):
|
||||||
|
- Adding feature on Github issue #44 - Use 3D Transitions by default
|
||||||
|
|
||||||
|
0.76 (28/06/2011):
|
||||||
|
- Fixing issue #37 - fixed stop() method (with gotoEnd == false)
|
||||||
|
|
||||||
|
0.75 (15/06/2011):
|
||||||
|
- Fixing issue #35 to pass actual object back as context for callback
|
||||||
|
|
||||||
|
0.74 (28/05/2011):
|
||||||
|
- Fixing issue #29 to play nice with 1.6+
|
||||||
|
|
||||||
|
0.73 (05/03/2011):
|
||||||
|
- Merged Pull Request #26: Fixed issue with fadeOut() / "hide" shortcut
|
||||||
|
|
||||||
|
0.72 (05/03/2011):
|
||||||
|
- Merged Pull Request #23: Added Penner equation approximations from Matthew Lein's Ceaser, and added failsafe fallbacks
|
||||||
|
|
||||||
|
0.71 (05/03/2011):
|
||||||
|
- Merged Pull Request #24: Changes translation object to integers instead of strings to fix relative values bug with leaveTransforms = true
|
||||||
|
|
||||||
|
0.70 (17/03/2011):
|
||||||
|
- Merged Pull Request from amlw-nyt to add bottom/right handling
|
||||||
|
|
||||||
|
0.68 (15/02/2011):
|
||||||
|
- width/height fixes & queue issues resolved.
|
||||||
|
|
||||||
|
0.67 (15/02/2011):
|
||||||
|
- Code cleanups & file size improvements for compression.
|
||||||
|
|
||||||
|
0.66 (15/02/2011):
|
||||||
|
- Zero second fadeOut(), fadeIn() fixes
|
||||||
|
|
||||||
|
0.65 (01/02/2011):
|
||||||
|
- Callbacks with queue() support refactored to support element arrays
|
||||||
|
|
||||||
|
0.64 (27/01/2011):
|
||||||
|
- BUGFIX #13: .slideUp(), .slideToggle(), .slideDown() bugfixes in Webkit
|
||||||
|
|
||||||
|
0.63 (12/01/2011):
|
||||||
|
- BUGFIX #11: callbacks not firing when new value == old value
|
||||||
|
|
||||||
|
0.62 (10/01/2011):
|
||||||
|
- BUGFIX #11: queue is not a function issue fixed
|
||||||
|
|
||||||
|
0.61 (10/01/2011):
|
||||||
|
- BUGFIX #10: Negative positions converting to positive
|
||||||
|
|
||||||
|
0.60 (06/01/2011):
|
||||||
|
- Animate function rewrite in accordance with new queue system
|
||||||
|
- BUGFIX #8: Left/top position values always assumed relative rather than absolute
|
||||||
|
- BUGFIX #9: animation as last item in a chain - the chain is ignored?
|
||||||
|
- BUGFIX: width/height CSS3 transformation with left/top working
|
||||||
|
|
||||||
|
0.55 (22/12/2010):
|
||||||
|
- isEmptyObject function for <jQuery 1.4 (requires 1.3.2)
|
||||||
|
|
||||||
|
0.54a (22/12/2010):
|
||||||
|
- License changed to MIT (http://www.opensource.org/licenses/mit-license.php)
|
||||||
|
|
||||||
|
0.54 (22/12/2010):
|
||||||
|
- Removed silly check for 'jQuery UI' bailouts. Sorry.
|
||||||
|
- Scoping issues fixed - Issue #4: $(this) should give you a reference to the selector being animated.. per jquery's core animation funciton.
|
||||||
|
|
||||||
|
0.53 (17/11/2010):
|
||||||
|
- New $.translate() method to easily calculate current transformed translation
|
||||||
|
- Repeater callback bug fix for leaveTransforms:true (was constantly appending properties)
|
||||||
|
|
||||||
|
0.52 (16/11/2010):
|
||||||
|
- leaveTransforms: true bug fixes
|
||||||
|
- 'Applying' user callback function to retain 'this' context
|
||||||
|
|
||||||
|
0.51 (08/11/2010):
|
||||||
|
- Bailing out with jQuery UI. This is only so the plugin plays nice with others and is TEMPORARY.
|
||||||
|
|
||||||
|
0.50 (08/11/2010):
|
||||||
|
- Support for $.fn.stop()
|
||||||
|
- Fewer jQuery.fn entries to preserve namespace
|
||||||
|
- All references $ converted to jQuery
|
||||||
|
- jsDoc Toolkit style commenting for docs (coming soon)
|
||||||
|
|
||||||
|
0.49 (19/10/2010):
|
||||||
|
- Handling of 'undefined' errors for secondary CSS objects
|
||||||
|
- Support to enhance 'width' and 'height' properties (except shortcuts involving jQuery.fx.step, e.g slideToggle)
|
||||||
|
- Bugfix: Positioning when using avoidTransforms: true (thanks Ralf Santbergen reports)
|
||||||
|
- Bugfix: Callbacks and Scope issues
|
||||||
|
|
||||||
|
0.48 (13/10/2010):
|
||||||
|
- Checks for 3d support before applying
|
||||||
|
|
||||||
|
0.47 (12/10/2010);
|
||||||
|
- Compatible with .fadeIn(), .fadeOut()
|
||||||
|
- Use shortcuts, no duration for jQuery default or "fast" and "slow"
|
||||||
|
- Clean up callback event listeners on complete (preventing multiple callbacks)
|
||||||
|
|
||||||
|
0.46 (07/10/2010);
|
||||||
|
- Compatible with .slideUp(), .slideDown(), .slideToggle()
|
||||||
|
|
||||||
|
0.45 (06/10/2010):
|
||||||
|
- 'Zero' position bug fix (was originally translating by 0 zero pixels, i.e. no movement)
|
||||||
|
|
||||||
|
0.4 (05/10/2010):
|
||||||
|
- Iterate over multiple elements and store transforms in jQuery.data per element
|
||||||
|
- Include support for relative values (+= / -=)
|
||||||
|
- Better unit sanitization
|
||||||
|
- Performance tweaks
|
||||||
|
- Fix for optional callback function (was required)
|
||||||
|
- Applies data[translateX] and data[translateY] to elements for easy access
|
||||||
|
- Added 'easeInOutQuint' easing function for CSS transitions (requires jQuery UI for JS anims)
|
||||||
|
- Less need for leaveTransforms = true due to better position detections
|
||||||
|
*/
|
||||||
|
|
||||||
|
(function(jQuery, originalAnimateMethod, originalStopMethod) {
|
||||||
|
|
||||||
|
// ----------
|
||||||
|
// Plugin variables
|
||||||
|
// ----------
|
||||||
|
var cssTransitionProperties = ['top', 'right', 'bottom', 'left', 'opacity', 'height', 'width'],
|
||||||
|
directions = ['top', 'right', 'bottom', 'left'],
|
||||||
|
cssPrefixes = ['', '-webkit-', '-moz-', '-o-'],
|
||||||
|
pluginOptions = ['avoidTransforms', 'useTranslate3d', 'leaveTransforms'],
|
||||||
|
rfxnum = /^([+-]=)?([\d+-.]+)(.*)$/,
|
||||||
|
rupper = /([A-Z])/g,
|
||||||
|
defaultEnhanceData = {
|
||||||
|
secondary: {},
|
||||||
|
meta: {
|
||||||
|
top : 0,
|
||||||
|
right : 0,
|
||||||
|
bottom : 0,
|
||||||
|
left : 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
valUnit = 'px',
|
||||||
|
|
||||||
|
DATA_KEY = 'jQe',
|
||||||
|
CUBIC_BEZIER_OPEN = 'cubic-bezier(',
|
||||||
|
CUBIC_BEZIER_CLOSE = ')',
|
||||||
|
|
||||||
|
originalAnimatedFilter = null,
|
||||||
|
pluginDisabledDefault = false;
|
||||||
|
|
||||||
|
|
||||||
|
// ----------
|
||||||
|
// Check if this browser supports CSS3 transitions
|
||||||
|
// ----------
|
||||||
|
var thisBody = document.body || document.documentElement,
|
||||||
|
thisStyle = thisBody.style,
|
||||||
|
transitionEndEvent = (thisStyle.WebkitTransition !== undefined) ? 'webkitTransitionEnd' : (thisStyle.OTransition !== undefined) ? 'oTransitionEnd' : 'transitionend',
|
||||||
|
cssTransitionsSupported = thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.OTransition !== undefined || thisStyle.transition !== undefined,
|
||||||
|
has3D = ('WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix()),
|
||||||
|
use3DByDefault = has3D;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// ----------
|
||||||
|
// Extended :animated filter
|
||||||
|
// ----------
|
||||||
|
if ( jQuery.expr && jQuery.expr.filters ) {
|
||||||
|
originalAnimatedFilter = jQuery.expr.filters.animated;
|
||||||
|
jQuery.expr.filters.animated = function(elem) {
|
||||||
|
return jQuery(elem).data('events') && jQuery(elem).data('events')[transitionEndEvent] ? true : originalAnimatedFilter.call(this, elem);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _getUnit
|
||||||
|
@function
|
||||||
|
@description Return unit value ("px", "%", "em" for re-use correct one when translating)
|
||||||
|
@param {variant} [val] Target value
|
||||||
|
*/
|
||||||
|
function _getUnit(val){
|
||||||
|
return val.match(/\D+$/);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _interpretValue
|
||||||
|
@function
|
||||||
|
@description Interpret value ("px", "+=" and "-=" sanitisation)
|
||||||
|
@param {object} [element] The Element for current CSS analysis
|
||||||
|
@param {variant} [val] Target value
|
||||||
|
@param {string} [prop] The property we're looking at
|
||||||
|
@param {boolean} [isTransform] Is this a CSS3 transform?
|
||||||
|
*/
|
||||||
|
function _interpretValue(e, val, prop, isTransform) {
|
||||||
|
// this is a nasty fix, but we check for prop == 'd' to see if we're dealing with SVG, and abort
|
||||||
|
if (prop == "d") return;
|
||||||
|
|
||||||
|
var parts = rfxnum.exec(val),
|
||||||
|
start = e.css(prop) === 'auto' ? 0 : e.css(prop),
|
||||||
|
cleanCSSStart = typeof start == 'string' ? _cleanValue(start) : start,
|
||||||
|
cleanTarget = typeof val == 'string' ? _cleanValue(val) : val,
|
||||||
|
cleanStart = isTransform === true ? 0 : cleanCSSStart,
|
||||||
|
hidden = e.is(':hidden'),
|
||||||
|
translation = e.translation();
|
||||||
|
|
||||||
|
if (prop == 'left') cleanStart = parseInt(cleanCSSStart, 10) + translation.x;
|
||||||
|
if (prop == 'right') cleanStart = parseInt(cleanCSSStart, 10) + translation.x;
|
||||||
|
if (prop == 'top') cleanStart = parseInt(cleanCSSStart, 10) + translation.y;
|
||||||
|
if (prop == 'bottom') cleanStart = parseInt(cleanCSSStart, 10) + translation.y;
|
||||||
|
|
||||||
|
// deal with shortcuts
|
||||||
|
if (!parts && val == 'show') {
|
||||||
|
cleanStart = 1;
|
||||||
|
if (hidden) e.css({'display':'block', 'opacity': 0});
|
||||||
|
} else if (!parts && val == "hide") {
|
||||||
|
cleanStart = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parts) {
|
||||||
|
var end = parseFloat(parts[2]);
|
||||||
|
|
||||||
|
// If a +=/-= token was provided, we're doing a relative animation
|
||||||
|
if (parts[1]) end = ((parts[1] === '-=' ? -1 : 1) * end) + parseInt(cleanStart, 10);
|
||||||
|
return end;
|
||||||
|
} else {
|
||||||
|
return cleanStart;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _getTranslation
|
||||||
|
@function
|
||||||
|
@description Make a translate or translate3d string
|
||||||
|
@param {integer} [x]
|
||||||
|
@param {integer} [y]
|
||||||
|
@param {boolean} [use3D] Use translate3d if available?
|
||||||
|
*/
|
||||||
|
function _getTranslation(x, y, use3D) {
|
||||||
|
return ((use3D === true || (use3DByDefault === true && use3D !== false)) && has3D) ? 'translate3d(' + x + 'px, ' + y + 'px, 0)' : 'translate(' + x + 'px,' + y + 'px)';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _applyCSSTransition
|
||||||
|
@function
|
||||||
|
@description Build up the CSS object
|
||||||
|
@param {object} [e] Element
|
||||||
|
@param {string} [property] Property we're dealing with
|
||||||
|
@param {integer} [duration] Duration
|
||||||
|
@param {string} [easing] Easing function
|
||||||
|
@param {variant} [value] String/integer for target value
|
||||||
|
@param {boolean} [isTransform] Is this a CSS transformation?
|
||||||
|
@param {boolean} [isTranslatable] Is this a CSS translation?
|
||||||
|
@param {boolean} [use3D] Use translate3d if available?
|
||||||
|
*/
|
||||||
|
function _applyCSSTransition(e, property, duration, easing, value, isTransform, isTranslatable, use3D) {
|
||||||
|
var eCSSData = e.data(DATA_KEY),
|
||||||
|
enhanceData = eCSSData && !_isEmptyObject(eCSSData) ? eCSSData : jQuery.extend(true, {}, defaultEnhanceData),
|
||||||
|
offsetPosition = value,
|
||||||
|
isDirection = jQuery.inArray(property, directions) > -1;
|
||||||
|
|
||||||
|
if (isDirection) {
|
||||||
|
var meta = enhanceData.meta,
|
||||||
|
cleanPropertyValue = _cleanValue(e.css(property)) || 0,
|
||||||
|
stashedProperty = property + '_o';
|
||||||
|
|
||||||
|
offsetPosition = value - cleanPropertyValue;
|
||||||
|
|
||||||
|
meta[property] = offsetPosition;
|
||||||
|
meta[stashedProperty] = e.css(property) == 'auto' ? 0 + offsetPosition : cleanPropertyValue + offsetPosition || 0;
|
||||||
|
enhanceData.meta = meta;
|
||||||
|
|
||||||
|
// fix 0 issue (transition by 0 = nothing)
|
||||||
|
if (isTranslatable && offsetPosition === 0) {
|
||||||
|
offsetPosition = 0 - meta[stashedProperty];
|
||||||
|
meta[property] = offsetPosition;
|
||||||
|
meta[stashedProperty] = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// reapply data and return
|
||||||
|
return e.data(DATA_KEY, _applyCSSWithPrefix(e, enhanceData, property, duration, easing, offsetPosition, isTransform, isTranslatable, use3D));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _applyCSSWithPrefix
|
||||||
|
@function
|
||||||
|
@description Helper function to build up CSS properties using the various prefixes
|
||||||
|
@param {object} [cssProperties] Current CSS object to merge with
|
||||||
|
@param {string} [property]
|
||||||
|
@param {integer} [duration]
|
||||||
|
@param {string} [easing]
|
||||||
|
@param {variant} [value]
|
||||||
|
@param {boolean} [isTransform] Is this a CSS transformation?
|
||||||
|
@param {boolean} [isTranslatable] Is this a CSS translation?
|
||||||
|
@param {boolean} [use3D] Use translate3d if available?
|
||||||
|
*/
|
||||||
|
function _applyCSSWithPrefix(e, cssProperties, property, duration, easing, value, isTransform, isTranslatable, use3D) {
|
||||||
|
var saveOriginal = false,
|
||||||
|
transform = isTransform === true && isTranslatable === true;
|
||||||
|
|
||||||
|
cssProperties = cssProperties || {};
|
||||||
|
if (!cssProperties.original) {
|
||||||
|
cssProperties.original = {};
|
||||||
|
saveOriginal = true;
|
||||||
|
}
|
||||||
|
cssProperties.properties = cssProperties.properties || {};
|
||||||
|
cssProperties.secondary = cssProperties.secondary || {};
|
||||||
|
|
||||||
|
var meta = cssProperties.meta,
|
||||||
|
original = cssProperties.original,
|
||||||
|
properties = cssProperties.properties,
|
||||||
|
secondary = cssProperties.secondary;
|
||||||
|
|
||||||
|
for (var i = cssPrefixes.length - 1; i >= 0; i--) {
|
||||||
|
var tp = cssPrefixes[i] + 'transition-property',
|
||||||
|
td = cssPrefixes[i] + 'transition-duration',
|
||||||
|
tf = cssPrefixes[i] + 'transition-timing-function';
|
||||||
|
|
||||||
|
property = (transform ? cssPrefixes[i] + 'transform' : property);
|
||||||
|
|
||||||
|
if (saveOriginal) {
|
||||||
|
original[tp] = e.css(tp) || '';
|
||||||
|
original[td] = e.css(td) || '';
|
||||||
|
original[tf] = e.css(tf) || '';
|
||||||
|
}
|
||||||
|
|
||||||
|
secondary[property] = transform ? _getTranslation(meta.left, meta.top, use3D) : value;
|
||||||
|
|
||||||
|
properties[tp] = (properties[tp] ? properties[tp] + ',' : '') + property;
|
||||||
|
properties[td] = (properties[td] ? properties[td] + ',' : '') + duration + 'ms';
|
||||||
|
properties[tf] = (properties[tf] ? properties[tf] + ',' : '') + easing;
|
||||||
|
}
|
||||||
|
|
||||||
|
return cssProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _isBoxShortcut
|
||||||
|
@function
|
||||||
|
@description Shortcut to detect if we need to step away from slideToggle, CSS accelerated transitions (to come later with fx.step support)
|
||||||
|
@param {object} [prop]
|
||||||
|
*/
|
||||||
|
function _isBoxShortcut(prop) {
|
||||||
|
for (var property in prop) {
|
||||||
|
if ((property == 'width' || property == 'height') && (prop[property] == 'show' || prop[property] == 'hide' || prop[property] == 'toggle')) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _isEmptyObject
|
||||||
|
@function
|
||||||
|
@description Check if object is empty (<1.4 compatibility)
|
||||||
|
@param {object} [obj]
|
||||||
|
*/
|
||||||
|
function _isEmptyObject(obj) {
|
||||||
|
for (var i in obj) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _cleanValue
|
||||||
|
@function
|
||||||
|
@description Remove 'px' and other artifacts
|
||||||
|
@param {variant} [val]
|
||||||
|
*/
|
||||||
|
function _cleanValue(val) {
|
||||||
|
valUnit = _getUnit(val);
|
||||||
|
return parseFloat(val.replace(/px/i, ''));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@private
|
||||||
|
@name _appropriateProperty
|
||||||
|
@function
|
||||||
|
@description Function to check if property should be handled by plugin
|
||||||
|
@param {string} [prop]
|
||||||
|
@param {variant} [value]
|
||||||
|
*/
|
||||||
|
function _appropriateProperty(prop, value, element) {
|
||||||
|
var is = jQuery.inArray(prop, cssTransitionProperties) > -1;
|
||||||
|
if ((prop == 'width' || prop == 'height') && (value === parseFloat(element.css(prop)))) is = false;
|
||||||
|
return is;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
jQuery.extend({
|
||||||
|
/**
|
||||||
|
@public
|
||||||
|
@name toggle3DByDefault
|
||||||
|
@function
|
||||||
|
@description Toggle for plugin settings to automatically use translate3d (where available). Usage: $.toggle3DByDefault
|
||||||
|
*/
|
||||||
|
toggle3DByDefault: function() {
|
||||||
|
return use3DByDefault = !use3DByDefault;
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@public
|
||||||
|
@name toggleEnabledByDefault
|
||||||
|
@function
|
||||||
|
@description Toggle the plugin to be disabled by default (can be overridden per animation with avoidCSSTransitions)
|
||||||
|
*/
|
||||||
|
toggleDisabledByDefault: function() {
|
||||||
|
return pluginDisabledDefault = !pluginDisabledDefault;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@public
|
||||||
|
@name translation
|
||||||
|
@function
|
||||||
|
@description Get current X and Y translations
|
||||||
|
*/
|
||||||
|
jQuery.fn.translation = function() {
|
||||||
|
if (!this[0]) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
var elem = this[0],
|
||||||
|
cStyle = window.getComputedStyle(elem, null),
|
||||||
|
translation = {
|
||||||
|
x: 0,
|
||||||
|
y: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
if (cStyle) {
|
||||||
|
for (var i = cssPrefixes.length - 1; i >= 0; i--) {
|
||||||
|
var transform = cStyle.getPropertyValue(cssPrefixes[i] + 'transform');
|
||||||
|
if (transform && (/matrix/i).test(transform)) {
|
||||||
|
var explodedMatrix = transform.replace(/^matrix\(/i, '').split(/, |\)$/g);
|
||||||
|
translation = {
|
||||||
|
x: parseInt(explodedMatrix[4], 10),
|
||||||
|
y: parseInt(explodedMatrix[5], 10)
|
||||||
|
};
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return translation;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@public
|
||||||
|
@name jQuery.fn.animate
|
||||||
|
@function
|
||||||
|
@description The enhanced jQuery.animate function
|
||||||
|
@param {string} [property]
|
||||||
|
@param {string} [speed]
|
||||||
|
@param {string} [easing]
|
||||||
|
@param {function} [callback]
|
||||||
|
*/
|
||||||
|
jQuery.fn.animate = function(prop, speed, easing, callback) {
|
||||||
|
prop = prop || {};
|
||||||
|
var isTranslatable = !(typeof prop['bottom'] !== 'undefined' || typeof prop['right'] !== 'undefined'),
|
||||||
|
optall = jQuery.speed(speed, easing, callback),
|
||||||
|
elements = this,
|
||||||
|
callbackQueue = 0,
|
||||||
|
propertyCallback = function() {
|
||||||
|
callbackQueue--;
|
||||||
|
if (callbackQueue === 0) {
|
||||||
|
// we're done, trigger the user callback
|
||||||
|
if (typeof optall.complete === 'function') {
|
||||||
|
optall.complete.apply(elements[0], arguments);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
bypassPlugin = (typeof prop['avoidCSSTransitions'] !== 'undefined') ? prop['avoidCSSTransitions'] : pluginDisabledDefault;
|
||||||
|
|
||||||
|
if (bypassPlugin === true || !cssTransitionsSupported || _isEmptyObject(prop) || _isBoxShortcut(prop) || optall.duration <= 0 || (jQuery.fn.animate.defaults.avoidTransforms === true && prop['avoidTransforms'] !== false)) {
|
||||||
|
return originalAnimateMethod.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
return this[ optall.queue === true ? 'queue' : 'each' ](function() {
|
||||||
|
var self = jQuery(this),
|
||||||
|
opt = jQuery.extend({}, optall),
|
||||||
|
cssCallback = function() {
|
||||||
|
var selfCSSData = self.data(DATA_KEY) || { original: {} },
|
||||||
|
restore = {};
|
||||||
|
|
||||||
|
// convert translations to left & top for layout
|
||||||
|
if (prop.leaveTransforms !== true) {
|
||||||
|
for (var i = cssPrefixes.length - 1; i >= 0; i--) {
|
||||||
|
restore[cssPrefixes[i] + 'transform'] = '';
|
||||||
|
}
|
||||||
|
if (isTranslatable && typeof selfCSSData.meta !== 'undefined') {
|
||||||
|
for (var j = 0, dir; (dir = directions[j]); ++j) {
|
||||||
|
restore[dir] = selfCSSData.meta[dir + '_o'] + valUnit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// remove transition timing functions
|
||||||
|
self.
|
||||||
|
unbind(transitionEndEvent).
|
||||||
|
css(selfCSSData.original).
|
||||||
|
css(restore).
|
||||||
|
data(DATA_KEY, null);
|
||||||
|
|
||||||
|
// if we used the fadeOut shortcut make sure elements are display:none
|
||||||
|
if (prop.opacity === 'hide') {
|
||||||
|
self.css({'display': 'none', 'opacity': ''});
|
||||||
|
}
|
||||||
|
|
||||||
|
// run the main callback function
|
||||||
|
propertyCallback.call(self);
|
||||||
|
},
|
||||||
|
easings = {
|
||||||
|
bounce: CUBIC_BEZIER_OPEN + '0.0, 0.35, .5, 1.3' + CUBIC_BEZIER_CLOSE,
|
||||||
|
linear: 'linear',
|
||||||
|
swing: 'ease-in-out',
|
||||||
|
|
||||||
|
// Penner equation approximations from Matthew Lein's Ceaser: http://matthewlein.com/ceaser/
|
||||||
|
easeInQuad: CUBIC_BEZIER_OPEN + '0.550, 0.085, 0.680, 0.530' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInCubic: CUBIC_BEZIER_OPEN + '0.550, 0.055, 0.675, 0.190' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInQuart: CUBIC_BEZIER_OPEN + '0.895, 0.030, 0.685, 0.220' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInQuint: CUBIC_BEZIER_OPEN + '0.755, 0.050, 0.855, 0.060' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInSine: CUBIC_BEZIER_OPEN + '0.470, 0.000, 0.745, 0.715' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInExpo: CUBIC_BEZIER_OPEN + '0.950, 0.050, 0.795, 0.035' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInCirc: CUBIC_BEZIER_OPEN + '0.600, 0.040, 0.980, 0.335' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInBack: CUBIC_BEZIER_OPEN + '0.600, -0.280, 0.735, 0.045' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutQuad: CUBIC_BEZIER_OPEN + '0.250, 0.460, 0.450, 0.940' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutCubic: CUBIC_BEZIER_OPEN + '0.215, 0.610, 0.355, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutQuart: CUBIC_BEZIER_OPEN + '0.165, 0.840, 0.440, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutQuint: CUBIC_BEZIER_OPEN + '0.230, 1.000, 0.320, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutSine: CUBIC_BEZIER_OPEN + '0.390, 0.575, 0.565, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutExpo: CUBIC_BEZIER_OPEN + '0.190, 1.000, 0.220, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutCirc: CUBIC_BEZIER_OPEN + '0.075, 0.820, 0.165, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeOutBack: CUBIC_BEZIER_OPEN + '0.175, 0.885, 0.320, 1.275' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutQuad: CUBIC_BEZIER_OPEN + '0.455, 0.030, 0.515, 0.955' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutCubic: CUBIC_BEZIER_OPEN + '0.645, 0.045, 0.355, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutQuart: CUBIC_BEZIER_OPEN + '0.770, 0.000, 0.175, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutQuint: CUBIC_BEZIER_OPEN + '0.860, 0.000, 0.070, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutSine: CUBIC_BEZIER_OPEN + '0.445, 0.050, 0.550, 0.950' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutExpo: CUBIC_BEZIER_OPEN + '1.000, 0.000, 0.000, 1.000' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutCirc: CUBIC_BEZIER_OPEN + '0.785, 0.135, 0.150, 0.860' + CUBIC_BEZIER_CLOSE,
|
||||||
|
easeInOutBack: CUBIC_BEZIER_OPEN + '0.680, -0.550, 0.265, 1.550' + CUBIC_BEZIER_CLOSE
|
||||||
|
},
|
||||||
|
domProperties = {},
|
||||||
|
cssEasing = easings[opt.easing || 'swing'] ? easings[opt.easing || 'swing'] : opt.easing || 'swing';
|
||||||
|
|
||||||
|
// seperate out the properties for the relevant animation functions
|
||||||
|
for (var p in prop) {
|
||||||
|
if (jQuery.inArray(p, pluginOptions) === -1) {
|
||||||
|
var isDirection = jQuery.inArray(p, directions) > -1,
|
||||||
|
cleanVal = _interpretValue(self, prop[p], p, (isDirection && prop.avoidTransforms !== true));
|
||||||
|
|
||||||
|
if (prop.avoidTransforms !== true && _appropriateProperty(p, cleanVal, self)) {
|
||||||
|
_applyCSSTransition(
|
||||||
|
self,
|
||||||
|
p,
|
||||||
|
opt.duration,
|
||||||
|
cssEasing,
|
||||||
|
isDirection && prop.avoidTransforms === true ? cleanVal + valUnit : cleanVal,
|
||||||
|
isDirection && prop.avoidTransforms !== true,
|
||||||
|
isTranslatable,
|
||||||
|
prop.useTranslate3d === true);
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
domProperties[p] = prop[p];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
self.unbind(transitionEndEvent);
|
||||||
|
|
||||||
|
var selfCSSData = self.data(DATA_KEY);
|
||||||
|
|
||||||
|
if (selfCSSData && !_isEmptyObject(selfCSSData) && !_isEmptyObject(selfCSSData.secondary)) {
|
||||||
|
callbackQueue++;
|
||||||
|
|
||||||
|
self.css(selfCSSData.properties);
|
||||||
|
|
||||||
|
// store in a var to avoid any timing issues, depending on animation duration
|
||||||
|
var secondary = selfCSSData.secondary;
|
||||||
|
|
||||||
|
// has to be done in a timeout to ensure transition properties are set
|
||||||
|
setTimeout(function() {
|
||||||
|
self.bind(transitionEndEvent, cssCallback).css(secondary);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// it won't get fired otherwise
|
||||||
|
opt.queue = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// fire up DOM based animations
|
||||||
|
if (!_isEmptyObject(domProperties)) {
|
||||||
|
callbackQueue++;
|
||||||
|
originalAnimateMethod.apply(self, [domProperties, {
|
||||||
|
duration: opt.duration,
|
||||||
|
easing: jQuery.easing[opt.easing] ? opt.easing : (jQuery.easing.swing ? 'swing' : 'linear'),
|
||||||
|
complete: propertyCallback,
|
||||||
|
queue: opt.queue
|
||||||
|
}]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// strict JS compliance
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
jQuery.fn.animate.defaults = {};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@public
|
||||||
|
@name jQuery.fn.stop
|
||||||
|
@function
|
||||||
|
@description The enhanced jQuery.stop function (resets transforms to left/top)
|
||||||
|
@param {boolean} [clearQueue]
|
||||||
|
@param {boolean} [gotoEnd]
|
||||||
|
@param {boolean} [leaveTransforms] Leave transforms/translations as they are? Default: false (reset translations to calculated explicit left/top props)
|
||||||
|
*/
|
||||||
|
jQuery.fn.stop = function(clearQueue, gotoEnd, leaveTransforms) {
|
||||||
|
if (!cssTransitionsSupported) return originalStopMethod.apply(this, [clearQueue, gotoEnd]);
|
||||||
|
|
||||||
|
// clear the queue?
|
||||||
|
if (clearQueue) this.queue([]);
|
||||||
|
|
||||||
|
// route to appropriate stop methods
|
||||||
|
this.each(function() {
|
||||||
|
var self = jQuery(this),
|
||||||
|
selfCSSData = self.data(DATA_KEY);
|
||||||
|
|
||||||
|
// is this a CSS transition?
|
||||||
|
if (selfCSSData && !_isEmptyObject(selfCSSData)) {
|
||||||
|
var i, restore = {};
|
||||||
|
|
||||||
|
if (gotoEnd) {
|
||||||
|
// grab end state properties
|
||||||
|
restore = selfCSSData.secondary;
|
||||||
|
|
||||||
|
if (!leaveTransforms && typeof selfCSSData.meta['left_o'] !== undefined || typeof selfCSSData.meta['top_o'] !== undefined) {
|
||||||
|
restore['left'] = typeof selfCSSData.meta['left_o'] !== undefined ? selfCSSData.meta['left_o'] : 'auto';
|
||||||
|
restore['top'] = typeof selfCSSData.meta['top_o'] !== undefined ? selfCSSData.meta['top_o'] : 'auto';
|
||||||
|
|
||||||
|
// remove the transformations
|
||||||
|
for (i = cssPrefixes.length - 1; i >= 0; i--) {
|
||||||
|
restore[cssPrefixes[i]+'transform'] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (!_isEmptyObject(selfCSSData.secondary)) {
|
||||||
|
var cStyle = window.getComputedStyle(self[0], null);
|
||||||
|
if (cStyle) {
|
||||||
|
// grab current properties
|
||||||
|
for (var prop in selfCSSData.secondary) {
|
||||||
|
if(selfCSSData.secondary.hasOwnProperty(prop)) {
|
||||||
|
prop = prop.replace(rupper, '-$1').toLowerCase();
|
||||||
|
restore[prop] = cStyle.getPropertyValue(prop);
|
||||||
|
|
||||||
|
// is this a matrix property? extract left and top and apply
|
||||||
|
if (!leaveTransforms && (/matrix/i).test(restore[prop])) {
|
||||||
|
var explodedMatrix = restore[prop].replace(/^matrix\(/i, '').split(/, |\)$/g);
|
||||||
|
|
||||||
|
// apply the explicit left/top props
|
||||||
|
restore['left'] = (parseFloat(explodedMatrix[4]) + parseFloat(self.css('left')) + valUnit) || 'auto';
|
||||||
|
restore['top'] = (parseFloat(explodedMatrix[5]) + parseFloat(self.css('top')) + valUnit) || 'auto';
|
||||||
|
|
||||||
|
// remove the transformations
|
||||||
|
for (i = cssPrefixes.length - 1; i >= 0; i--) {
|
||||||
|
restore[cssPrefixes[i]+'transform'] = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// remove transition timing functions
|
||||||
|
self.
|
||||||
|
unbind(transitionEndEvent).
|
||||||
|
css(selfCSSData.original).
|
||||||
|
css(restore).
|
||||||
|
data(DATA_KEY, null);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// dom transition
|
||||||
|
originalStopMethod.apply(self, [clearQueue, gotoEnd]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
})(jQuery, jQuery.fn.animate, jQuery.fn.stop);
|
9266
www/js/libs/jquery1.7.1.js
Normal file
536
www/js/libs/mustache.js
Executable file
@ -0,0 +1,536 @@
|
|||||||
|
/*!
|
||||||
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
||||||
|
* http://github.com/janl/mustache.js
|
||||||
|
*/
|
||||||
|
var Mustache = (typeof module !== "undefined" && module.exports) || {};
|
||||||
|
|
||||||
|
(function (exports) {
|
||||||
|
|
||||||
|
exports.name = "mustache.js";
|
||||||
|
exports.version = "0.5.0-dev";
|
||||||
|
exports.tags = ["{{", "}}"];
|
||||||
|
exports.parse = parse;
|
||||||
|
exports.compile = compile;
|
||||||
|
exports.render = render;
|
||||||
|
exports.clearCache = clearCache;
|
||||||
|
|
||||||
|
// This is here for backwards compatibility with 0.4.x.
|
||||||
|
exports.to_html = function (template, view, partials, send) {
|
||||||
|
var result = render(template, view, partials);
|
||||||
|
|
||||||
|
if (typeof send === "function") {
|
||||||
|
send(result);
|
||||||
|
} else {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var _toString = Object.prototype.toString;
|
||||||
|
var _isArray = Array.isArray;
|
||||||
|
var _forEach = Array.prototype.forEach;
|
||||||
|
var _trim = String.prototype.trim;
|
||||||
|
|
||||||
|
var isArray;
|
||||||
|
if (_isArray) {
|
||||||
|
isArray = _isArray;
|
||||||
|
} else {
|
||||||
|
isArray = function (obj) {
|
||||||
|
return _toString.call(obj) === "[object Array]";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var forEach;
|
||||||
|
if (_forEach) {
|
||||||
|
forEach = function (obj, callback, scope) {
|
||||||
|
return _forEach.call(obj, callback, scope);
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
forEach = function (obj, callback, scope) {
|
||||||
|
for (var i = 0, len = obj.length; i < len; ++i) {
|
||||||
|
callback.call(scope, obj[i], i, obj);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var spaceRe = /^\s*$/;
|
||||||
|
|
||||||
|
function isWhitespace(string) {
|
||||||
|
return spaceRe.test(string);
|
||||||
|
}
|
||||||
|
|
||||||
|
var trim;
|
||||||
|
if (_trim) {
|
||||||
|
trim = function (string) {
|
||||||
|
return string == null ? "" : _trim.call(string);
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
var trimLeft, trimRight;
|
||||||
|
|
||||||
|
if (isWhitespace("\xA0")) {
|
||||||
|
trimLeft = /^\s+/;
|
||||||
|
trimRight = /\s+$/;
|
||||||
|
} else {
|
||||||
|
// IE doesn't match non-breaking spaces with \s, thanks jQuery.
|
||||||
|
trimLeft = /^[\s\xA0]+/;
|
||||||
|
trimRight = /[\s\xA0]+$/;
|
||||||
|
}
|
||||||
|
|
||||||
|
trim = function (string) {
|
||||||
|
return string == null ? "" :
|
||||||
|
String(string).replace(trimLeft, "").replace(trimRight, "");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var escapeMap = {
|
||||||
|
"&": "&",
|
||||||
|
"<": "<",
|
||||||
|
">": ">",
|
||||||
|
'"': '"',
|
||||||
|
"'": '''
|
||||||
|
};
|
||||||
|
|
||||||
|
function escapeHTML(string) {
|
||||||
|
return String(string).replace(/&(?!\w+;)|[<>"']/g, function (s) {
|
||||||
|
return escapeMap[s] || s;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the `template`, `line`, and `file` properties to the given error
|
||||||
|
* object and alters the message to provide more useful debugging information.
|
||||||
|
*/
|
||||||
|
function debug(e, template, line, file) {
|
||||||
|
file = file || "<template>";
|
||||||
|
|
||||||
|
var lines = template.split("\n"),
|
||||||
|
start = Math.max(line - 3, 0),
|
||||||
|
end = Math.min(lines.length, line + 3),
|
||||||
|
context = lines.slice(start, end);
|
||||||
|
|
||||||
|
var c;
|
||||||
|
for (var i = 0, len = context.length; i < len; ++i) {
|
||||||
|
c = i + start + 1;
|
||||||
|
context[i] = (c === line ? " >> " : " ") + context[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
e.template = template;
|
||||||
|
e.line = line;
|
||||||
|
e.file = file;
|
||||||
|
e.message = [file + ":" + line, context.join("\n"), "", e.message].join("\n");
|
||||||
|
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Looks up the value of the given `name` in the given context `stack`.
|
||||||
|
*/
|
||||||
|
function lookup(name, stack, defaultValue) {
|
||||||
|
if (name === ".") {
|
||||||
|
return stack[stack.length - 1];
|
||||||
|
}
|
||||||
|
|
||||||
|
var names = name.split(".");
|
||||||
|
var lastIndex = names.length - 1;
|
||||||
|
var target = names[lastIndex];
|
||||||
|
|
||||||
|
var value, context, i = stack.length, j, localStack;
|
||||||
|
while (i) {
|
||||||
|
localStack = stack.slice(0);
|
||||||
|
context = stack[--i];
|
||||||
|
|
||||||
|
j = 0;
|
||||||
|
while (j < lastIndex) {
|
||||||
|
context = context[names[j++]];
|
||||||
|
|
||||||
|
if (context == null) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
localStack.push(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (context && typeof context === "object" && target in context) {
|
||||||
|
value = context[target];
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// If the value is a function, call it in the current context.
|
||||||
|
if (typeof value === "function") {
|
||||||
|
value = value.call(localStack[localStack.length - 1]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (value == null) {
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderSection(name, stack, callback, inverted) {
|
||||||
|
var buffer = "";
|
||||||
|
var value = lookup(name, stack);
|
||||||
|
|
||||||
|
if (inverted) {
|
||||||
|
// From the spec: inverted sections may render text once based on the
|
||||||
|
// inverse value of the key. That is, they will be rendered if the key
|
||||||
|
// doesn't exist, is false, or is an empty list.
|
||||||
|
if (value == null || value === false || (isArray(value) && value.length === 0)) {
|
||||||
|
buffer += callback();
|
||||||
|
}
|
||||||
|
} else if (isArray(value)) {
|
||||||
|
forEach(value, function (value) {
|
||||||
|
stack.push(value);
|
||||||
|
buffer += callback();
|
||||||
|
stack.pop();
|
||||||
|
});
|
||||||
|
} else if (typeof value === "object") {
|
||||||
|
stack.push(value);
|
||||||
|
buffer += callback();
|
||||||
|
stack.pop();
|
||||||
|
} else if (typeof value === "function") {
|
||||||
|
var scope = stack[stack.length - 1];
|
||||||
|
var scopedRender = function (template) {
|
||||||
|
return render(template, scope);
|
||||||
|
};
|
||||||
|
buffer += value.call(scope, callback(), scopedRender) || "";
|
||||||
|
} else if (value) {
|
||||||
|
buffer += callback();
|
||||||
|
}
|
||||||
|
|
||||||
|
return buffer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parses the given `template` and returns the source of a function that,
|
||||||
|
* with the proper arguments, will render the template. Recognized options
|
||||||
|
* include the following:
|
||||||
|
*
|
||||||
|
* - file The name of the file the template comes from (displayed in
|
||||||
|
* error messages)
|
||||||
|
* - tags An array of open and close tags the `template` uses. Defaults
|
||||||
|
* to the value of Mustache.tags
|
||||||
|
* - debug Set `true` to log the body of the generated function to the
|
||||||
|
* console
|
||||||
|
* - space Set `true` to preserve whitespace from lines that otherwise
|
||||||
|
* contain only a {{tag}}. Defaults to `false`
|
||||||
|
*/
|
||||||
|
function parse(template, options) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
var tags = options.tags || exports.tags,
|
||||||
|
openTag = tags[0],
|
||||||
|
closeTag = tags[tags.length - 1];
|
||||||
|
|
||||||
|
var code = [
|
||||||
|
'var buffer = "";', // output buffer
|
||||||
|
"\nvar line = 1;", // keep track of source line number
|
||||||
|
"\ntry {",
|
||||||
|
'\nbuffer += "'
|
||||||
|
];
|
||||||
|
|
||||||
|
var spaces = [], // indices of whitespace in code on the current line
|
||||||
|
hasTag = false, // is there a {{tag}} on the current line?
|
||||||
|
nonSpace = false; // is there a non-space char on the current line?
|
||||||
|
|
||||||
|
// Strips all space characters from the code array for the current line
|
||||||
|
// if there was a {{tag}} on it and otherwise only spaces.
|
||||||
|
var stripSpace = function () {
|
||||||
|
if (hasTag && !nonSpace && !options.space) {
|
||||||
|
while (spaces.length) {
|
||||||
|
code.splice(spaces.pop(), 1);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
spaces = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
hasTag = false;
|
||||||
|
nonSpace = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
var sectionStack = [], updateLine, nextOpenTag, nextCloseTag;
|
||||||
|
|
||||||
|
var setTags = function (source) {
|
||||||
|
tags = trim(source).split(/\s+/);
|
||||||
|
nextOpenTag = tags[0];
|
||||||
|
nextCloseTag = tags[tags.length - 1];
|
||||||
|
};
|
||||||
|
|
||||||
|
var includePartial = function (source) {
|
||||||
|
code.push(
|
||||||
|
'";',
|
||||||
|
updateLine,
|
||||||
|
'\nvar partial = partials["' + trim(source) + '"];',
|
||||||
|
'\nif (partial) {',
|
||||||
|
'\n buffer += render(partial,stack[stack.length - 1],partials);',
|
||||||
|
'\n}',
|
||||||
|
'\nbuffer += "'
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
var openSection = function (source, inverted) {
|
||||||
|
var name = trim(source);
|
||||||
|
|
||||||
|
if (name === "") {
|
||||||
|
throw debug(new Error("Section name may not be empty"), template, line, options.file);
|
||||||
|
}
|
||||||
|
|
||||||
|
sectionStack.push({name: name, inverted: inverted});
|
||||||
|
|
||||||
|
code.push(
|
||||||
|
'";',
|
||||||
|
updateLine,
|
||||||
|
'\nvar name = "' + name + '";',
|
||||||
|
'\nvar callback = (function () {',
|
||||||
|
'\n return function () {',
|
||||||
|
'\n var buffer = "";',
|
||||||
|
'\nbuffer += "'
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
var openInvertedSection = function (source) {
|
||||||
|
openSection(source, true);
|
||||||
|
};
|
||||||
|
|
||||||
|
var closeSection = function (source) {
|
||||||
|
var name = trim(source);
|
||||||
|
var openName = sectionStack.length != 0 && sectionStack[sectionStack.length - 1].name;
|
||||||
|
|
||||||
|
if (!openName || name != openName) {
|
||||||
|
throw debug(new Error('Section named "' + name + '" was never opened'), template, line, options.file);
|
||||||
|
}
|
||||||
|
|
||||||
|
var section = sectionStack.pop();
|
||||||
|
|
||||||
|
code.push(
|
||||||
|
'";',
|
||||||
|
'\n return buffer;',
|
||||||
|
'\n };',
|
||||||
|
'\n})();'
|
||||||
|
);
|
||||||
|
|
||||||
|
if (section.inverted) {
|
||||||
|
code.push("\nbuffer += renderSection(name,stack,callback,true);");
|
||||||
|
} else {
|
||||||
|
code.push("\nbuffer += renderSection(name,stack,callback);");
|
||||||
|
}
|
||||||
|
|
||||||
|
code.push('\nbuffer += "');
|
||||||
|
};
|
||||||
|
|
||||||
|
var sendPlain = function (source) {
|
||||||
|
code.push(
|
||||||
|
'";',
|
||||||
|
updateLine,
|
||||||
|
'\nbuffer += lookup("' + trim(source) + '",stack,"");',
|
||||||
|
'\nbuffer += "'
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
var sendEscaped = function (source) {
|
||||||
|
code.push(
|
||||||
|
'";',
|
||||||
|
updateLine,
|
||||||
|
'\nbuffer += escapeHTML(lookup("' + trim(source) + '",stack,""));',
|
||||||
|
'\nbuffer += "'
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
var line = 1, c, callback;
|
||||||
|
for (var i = 0, len = template.length; i < len; ++i) {
|
||||||
|
if (template.slice(i, i + openTag.length) === openTag) {
|
||||||
|
i += openTag.length;
|
||||||
|
c = template.substr(i, 1);
|
||||||
|
updateLine = '\nline = ' + line + ';';
|
||||||
|
nextOpenTag = openTag;
|
||||||
|
nextCloseTag = closeTag;
|
||||||
|
hasTag = true;
|
||||||
|
|
||||||
|
switch (c) {
|
||||||
|
case "!": // comment
|
||||||
|
i++;
|
||||||
|
callback = null;
|
||||||
|
break;
|
||||||
|
case "=": // change open/close tags, e.g. {{=<% %>=}}
|
||||||
|
i++;
|
||||||
|
closeTag = "=" + closeTag;
|
||||||
|
callback = setTags;
|
||||||
|
break;
|
||||||
|
case ">": // include partial
|
||||||
|
i++;
|
||||||
|
callback = includePartial;
|
||||||
|
break;
|
||||||
|
case "#": // start section
|
||||||
|
i++;
|
||||||
|
callback = openSection;
|
||||||
|
break;
|
||||||
|
case "^": // start inverted section
|
||||||
|
i++;
|
||||||
|
callback = openInvertedSection;
|
||||||
|
break;
|
||||||
|
case "/": // end section
|
||||||
|
i++;
|
||||||
|
callback = closeSection;
|
||||||
|
break;
|
||||||
|
case "{": // plain variable
|
||||||
|
closeTag = "}" + closeTag;
|
||||||
|
// fall through
|
||||||
|
case "&": // plain variable
|
||||||
|
i++;
|
||||||
|
nonSpace = true;
|
||||||
|
callback = sendPlain;
|
||||||
|
break;
|
||||||
|
default: // escaped variable
|
||||||
|
nonSpace = true;
|
||||||
|
callback = sendEscaped;
|
||||||
|
}
|
||||||
|
|
||||||
|
var end = template.indexOf(closeTag, i);
|
||||||
|
|
||||||
|
if (end === -1) {
|
||||||
|
throw debug(new Error('Tag "' + openTag + '" was not closed properly'), template, line, options.file);
|
||||||
|
}
|
||||||
|
|
||||||
|
var source = template.substring(i, end);
|
||||||
|
|
||||||
|
if (callback) {
|
||||||
|
callback(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Maintain line count for \n in source.
|
||||||
|
var n = 0;
|
||||||
|
while (~(n = source.indexOf("\n", n))) {
|
||||||
|
line++;
|
||||||
|
n++;
|
||||||
|
}
|
||||||
|
|
||||||
|
i = end + closeTag.length - 1;
|
||||||
|
openTag = nextOpenTag;
|
||||||
|
closeTag = nextCloseTag;
|
||||||
|
} else {
|
||||||
|
c = template.substr(i, 1);
|
||||||
|
|
||||||
|
switch (c) {
|
||||||
|
case '"':
|
||||||
|
case "\\":
|
||||||
|
nonSpace = true;
|
||||||
|
code.push("\\" + c);
|
||||||
|
break;
|
||||||
|
case "\r":
|
||||||
|
// Ignore carriage returns.
|
||||||
|
break;
|
||||||
|
case "\n":
|
||||||
|
spaces.push(code.length);
|
||||||
|
code.push("\\n");
|
||||||
|
stripSpace(); // Check for whitespace on the current line.
|
||||||
|
line++;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (isWhitespace(c)) {
|
||||||
|
spaces.push(code.length);
|
||||||
|
} else {
|
||||||
|
nonSpace = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
code.push(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sectionStack.length != 0) {
|
||||||
|
throw debug(new Error('Section "' + sectionStack[sectionStack.length - 1].name + '" was not closed properly'), template, line, options.file);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clean up any whitespace from a closing {{tag}} that was at the end
|
||||||
|
// of the template without a trailing \n.
|
||||||
|
stripSpace();
|
||||||
|
|
||||||
|
code.push(
|
||||||
|
'";',
|
||||||
|
"\nreturn buffer;",
|
||||||
|
"\n} catch (e) { throw {error: e, line: line}; }"
|
||||||
|
);
|
||||||
|
|
||||||
|
// Ignore `buffer += "";` statements.
|
||||||
|
var body = code.join("").replace(/buffer \+= "";\n/g, "");
|
||||||
|
|
||||||
|
if (options.debug) {
|
||||||
|
if (typeof console != "undefined" && console.log) {
|
||||||
|
console.log(body);
|
||||||
|
} else if (typeof print === "function") {
|
||||||
|
print(body);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return body;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used by `compile` to generate a reusable function for the given `template`.
|
||||||
|
*/
|
||||||
|
function _compile(template, options) {
|
||||||
|
var args = "view,partials,stack,lookup,escapeHTML,renderSection,render";
|
||||||
|
var body = parse(template, options);
|
||||||
|
var fn = new Function(args, body);
|
||||||
|
|
||||||
|
// This anonymous function wraps the generated function so we can do
|
||||||
|
// argument coercion, setup some variables, and handle any errors
|
||||||
|
// encountered while executing it.
|
||||||
|
return function (view, partials) {
|
||||||
|
partials = partials || {};
|
||||||
|
|
||||||
|
var stack = [view]; // context stack
|
||||||
|
|
||||||
|
try {
|
||||||
|
return fn(view, partials, stack, lookup, escapeHTML, renderSection, render);
|
||||||
|
} catch (e) {
|
||||||
|
throw debug(e.error, template, e.line, options.file);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cache of pre-compiled templates.
|
||||||
|
var _cache = {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear the cache of compiled templates.
|
||||||
|
*/
|
||||||
|
function clearCache() {
|
||||||
|
_cache = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiles the given `template` into a reusable function using the given
|
||||||
|
* `options`. In addition to the options accepted by Mustache.parse,
|
||||||
|
* recognized options include the following:
|
||||||
|
*
|
||||||
|
* - cache Set `false` to bypass any pre-compiled version of the given
|
||||||
|
* template. Otherwise, a given `template` string will be cached
|
||||||
|
* the first time it is parsed
|
||||||
|
*/
|
||||||
|
function compile(template, options) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
// Use a pre-compiled version from the cache if we have one.
|
||||||
|
if (options.cache !== false) {
|
||||||
|
if (!_cache[template]) {
|
||||||
|
_cache[template] = _compile(template, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
return _cache[template];
|
||||||
|
}
|
||||||
|
|
||||||
|
return _compile(template, options);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* High-level function that renders the given `template` using the given
|
||||||
|
* `view` and `partials`. If you need to use any of the template options (see
|
||||||
|
* `compile` above), you must compile in a separate step, and then call that
|
||||||
|
* compiled function.
|
||||||
|
*/
|
||||||
|
function render(template, view, partials) {
|
||||||
|
return compile(template)(view, partials);
|
||||||
|
}
|
||||||
|
|
||||||
|
})(Mustache);
|
54
www/js/libs/noClickDelay.js
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
/*!
|
||||||
|
* http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone
|
||||||
|
* Released under MIT license, http://cubiq.org/license
|
||||||
|
*/
|
||||||
|
|
||||||
|
function NoClickDelay(el) {
|
||||||
|
this.element = typeof el == 'object' ? el : document.getElementById(el);
|
||||||
|
var self = this;
|
||||||
|
if( 'ontouchstart' in window )
|
||||||
|
this.element.addEventListener('touchstart', self, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NoClickDelay.prototype = {
|
||||||
|
handleEvent: function(e) {
|
||||||
|
switch(e.type) {
|
||||||
|
case 'touchstart': this.onTouchStart(e); break;
|
||||||
|
case 'touchmove': this.onTouchMove(e); break;
|
||||||
|
case 'touchend': this.onTouchEnd(e); break;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
onTouchStart: function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.moved = false;
|
||||||
|
|
||||||
|
this.theTarget = document.elementFromPoint(e.targetTouches[0].clientX, e.targetTouches[0].clientY);
|
||||||
|
if(this.theTarget.nodeType == 3) this.theTarget = theTarget.parentNode;
|
||||||
|
this.theTarget.className+= ' pressed';
|
||||||
|
//alert( this.theTarget.className );
|
||||||
|
|
||||||
|
this.element.addEventListener('touchmove', this, false);
|
||||||
|
this.element.addEventListener('touchend', this, false);
|
||||||
|
},
|
||||||
|
|
||||||
|
onTouchMove: function(e) {
|
||||||
|
this.moved = true;
|
||||||
|
this.theTarget.className = this.theTarget.className.replace(/ ?pressed/gi, '');
|
||||||
|
},
|
||||||
|
|
||||||
|
onTouchEnd: function(e) {
|
||||||
|
this.element.removeEventListener('touchmove', this, false);
|
||||||
|
this.element.removeEventListener('touchend', this, false);
|
||||||
|
|
||||||
|
if( !this.moved && this.theTarget ) {
|
||||||
|
this.theTarget.className = this.theTarget.className.replace(/ ?pressed/gi, '');
|
||||||
|
var theEvent = document.createEvent('MouseEvents');
|
||||||
|
theEvent.initEvent('click', true, true);
|
||||||
|
this.theTarget.dispatchEvent(theEvent);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.theTarget = undefined;
|
||||||
|
}
|
||||||
|
};
|
83
www/js/splitviewnavigator/splitviewnavigator.css
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
/*
|
||||||
|
THIS SOFTWARE IS PROVIDED BY ANDREW M. TRICE ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||||
|
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANDREW M. TRICE OR
|
||||||
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
.splitViewNavigator_root {
|
||||||
|
position:absolute;
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.splitViewNavigator_sidebar {
|
||||||
|
position:absolute;
|
||||||
|
overflow:hidden;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
transform: translate3d(0,0,0);
|
||||||
|
-webkit-transform: translate3d(0,0,0);
|
||||||
|
border-right:1px solid #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.splitViewNavigator_body {
|
||||||
|
position:absolute;
|
||||||
|
background:white;
|
||||||
|
overflow:hidden;
|
||||||
|
-webkit-backface-visibility: hidden;
|
||||||
|
transform: translate3d(0,0,0);
|
||||||
|
-webkit-transform: translate3d(0,0,0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_overlay_visible {
|
||||||
|
position:absolute;
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
right:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content_overlay_hidden {
|
||||||
|
position:absolute;
|
||||||
|
top:-1px;
|
||||||
|
left:-1px;
|
||||||
|
width:0px;
|
||||||
|
height:0px;
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar_portrait {
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:-240px;
|
||||||
|
width:240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body_portrait {
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
right:0px;
|
||||||
|
left:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar_landscape {
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
left:0px;
|
||||||
|
width:240px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.body_landscape {
|
||||||
|
top:0px;
|
||||||
|
bottom:0px;
|
||||||
|
right:0px;
|
||||||
|
left:240px;
|
||||||
|
}
|
185
www/js/splitviewnavigator/splitviewnavigator.js
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
/*
|
||||||
|
THIS SOFTWARE IS PROVIDED BY ANDREW M. TRICE ''AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||||
|
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANDREW M. TRICE OR
|
||||||
|
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
var SplitViewNavigator = function( target, toggleButtonLabel, backLinkCSS, bindToWindow ) {
|
||||||
|
|
||||||
|
this.animating = false;
|
||||||
|
this.animationDuration = 350;
|
||||||
|
this.animationPerformed = false;
|
||||||
|
|
||||||
|
this.uniqueId = this.guid();
|
||||||
|
this.parent = $( target );
|
||||||
|
|
||||||
|
var regexp = new RegExp("Windows Phone OS 7");
|
||||||
|
this.winPhone = (navigator.userAgent.search(regexp) >= 0);
|
||||||
|
|
||||||
|
this.rootElement = $('<div class="splitViewNavigator_root"></div>');
|
||||||
|
this.sidebarContainer = $('<div class="splitViewNavigator_sidebar"></div>');
|
||||||
|
this.contentOverlay = $('<div class="content_overlay_hidden" id="overlay'+this.uniqueId+'"></div>');
|
||||||
|
this.bodyContainer = $('<div class="splitViewNavigator_body"></div>');
|
||||||
|
|
||||||
|
this.sidebarViewNavigator = new ViewNavigator( this.sidebarContainer.get()[0], backLinkCSS, false );
|
||||||
|
|
||||||
|
this.bodyViewNavigator = new ViewNavigator( this.bodyContainer.get()[0], backLinkCSS, false );
|
||||||
|
|
||||||
|
this.backLinkCSS = backLinkCSS ? backLinkCSS : "viewNavigator_backButton";
|
||||||
|
|
||||||
|
this.toggleSidebarButton = $('<li class="viewNavigator_backButton viewNavigator_backButtonPosition ' + backLinkCSS + '" id="toggle' + this.uniqueId + '" onclick="window.splitViewNavigator.showSidebar()">'+toggleButtonLabel+'</li>');
|
||||||
|
|
||||||
|
this.rootElement.append( this.bodyContainer );
|
||||||
|
this.rootElement.append( this.contentOverlay );
|
||||||
|
|
||||||
|
this.rootElement.append( this.sidebarContainer );
|
||||||
|
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
/*if ( "onorientationchange" in window ) {
|
||||||
|
$(window).bind( "orientationchange", function(event){ self.resizeContent() } )
|
||||||
|
}
|
||||||
|
else {*/
|
||||||
|
//$(window).resize( function(event){ self.resizeContent() } );
|
||||||
|
//alert( this.parent.attr( "id" ) );
|
||||||
|
this.parent.resize( function(event){ self.resizeContent() } );
|
||||||
|
//}
|
||||||
|
|
||||||
|
if ( bindToWindow != false ) {
|
||||||
|
$(window).resize( function(event){ self.resizeContent() } );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.parent.resize( function(event){ self.resizeContent() } );
|
||||||
|
}
|
||||||
|
|
||||||
|
this.resizeContent();
|
||||||
|
|
||||||
|
this.parent.append( this.rootElement );
|
||||||
|
|
||||||
|
this.contentOverlay.click( function(event){ self.hideSidebar() } );
|
||||||
|
|
||||||
|
new NoClickDelay( this.contentOverlay.get()[0] );
|
||||||
|
new NoClickDelay( this.toggleSidebarButton.get()[0] );
|
||||||
|
window.splitViewNavigator = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.resizeContent = function() {
|
||||||
|
|
||||||
|
this.applyStylesByOrientation();
|
||||||
|
this.sidebarViewNavigator.resizeContent();
|
||||||
|
this.bodyViewNavigator.resizeContent()
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.applyStylesByOrientation = function() {
|
||||||
|
var $window = $(window)
|
||||||
|
var w = $window.width();
|
||||||
|
var h = $window.height();
|
||||||
|
|
||||||
|
|
||||||
|
var orientation = (w >= h) ? "landscape" : "portrait";
|
||||||
|
this.contentOverlay.removeClass( "content_overlay_visible" ).addClass( "content_overlay_hidden" );
|
||||||
|
|
||||||
|
//landscape
|
||||||
|
if ( orientation == "landscape" && this.orientation != orientation ) {
|
||||||
|
this.sidebarContainer.removeClass( "sidebar_portrait" ).addClass( "sidebar_landscape" );
|
||||||
|
this.bodyViewNavigator.setHeaderPadding( 0 );
|
||||||
|
this.toggleSidebarButton.remove();
|
||||||
|
if ( this.animationPerformed ) {
|
||||||
|
this.sidebarContainer.css( "left", 0 );
|
||||||
|
}
|
||||||
|
this.bodyContainer.removeClass( "body_portrait" ).addClass( "body_landscape" );
|
||||||
|
}
|
||||||
|
|
||||||
|
//portrait
|
||||||
|
else if ( this.orientation != orientation ) {
|
||||||
|
this.sidebarContainer.removeClass( "sidebar_landscape" ).addClass( "sidebar_portrait" );
|
||||||
|
this.bodyViewNavigator.setHeaderPadding( "70px" );
|
||||||
|
this.bodyContainer.append( this.toggleSidebarButton );
|
||||||
|
if ( this.animationPerformed ) {
|
||||||
|
this.sidebarContainer.css( "left", -this.sidebarContainer.width() );
|
||||||
|
}
|
||||||
|
this.bodyContainer.removeClass( "body_landscape" ).addClass( "body_portrait" );
|
||||||
|
}
|
||||||
|
|
||||||
|
this.orientation = orientation;
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.showSidebar = function() {
|
||||||
|
this.animationPerformed = true;
|
||||||
|
if ( this.orientation == "portrait" ) {
|
||||||
|
this.contentOverlay.removeClass( "content_overlay_hidden" ).addClass( "content_overlay_visible" );
|
||||||
|
this.animating = true;
|
||||||
|
this.sidebarContainer.animate({
|
||||||
|
left:0,
|
||||||
|
avoidTransforms:false,
|
||||||
|
useTranslate3d: true
|
||||||
|
}, this.animationDuration, this.animationCompleteHandler());
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.hideSidebar = function() {
|
||||||
|
if ( this.orientation == "portrait" ) {
|
||||||
|
this.contentOverlay.removeClass( "content_overlay_visible" ).addClass( "content_overlay_hidden" );
|
||||||
|
this.animating = true;
|
||||||
|
this.sidebarContainer.animate({
|
||||||
|
left:-this.sidebarContainer.width(),
|
||||||
|
avoidTransforms:false,
|
||||||
|
useTranslate3d: true
|
||||||
|
}, this.animationDuration, this.animationCompleteHandler());
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.animationCompleteHandler = function() {
|
||||||
|
var self = this;
|
||||||
|
return function() {
|
||||||
|
self.animating = false;
|
||||||
|
//self.resetScroller();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.pushSidebarView = function( viewDescriptor ) {
|
||||||
|
this.sidebarViewNavigator.pushView( viewDescriptor );
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.popSidebarView = function() {
|
||||||
|
this.sidebarViewNavigator.popView();
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.replaceSidebarView = function( viewDescriptor ) {
|
||||||
|
this.sidebarViewNavigator.replaceView( viewDescriptor );
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.pushBodyView = function( viewDescriptor ) {
|
||||||
|
this.bodyViewNavigator.pushView( viewDescriptor );
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.popBodyView = function() {
|
||||||
|
this.bodyViewNavigator.popView();
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.replaceBodyView = function( viewDescriptor ) {
|
||||||
|
this.bodyViewNavigator.replaceView( viewDescriptor );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//GUID logic from http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.S4 = function() {
|
||||||
|
return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
SplitViewNavigator.prototype.guid = function() {
|
||||||
|
return (this.S4() + this.S4() + "-" + this.S4() + "-4" + this.S4().substr(0,3) + "-" + this.S4() + "-" + this.S4() + this.S4() + this.S4()).toLowerCase();
|
||||||
|
}
|
181
www/js/viewAssembler.js
Normal file
@ -0,0 +1,181 @@
|
|||||||
|
|
||||||
|
var templates = {
|
||||||
|
pointsViewTemplate:"views/pointsViewTemplate.html",
|
||||||
|
aboutViewTemplate:"views/aboutViewTemplate.html",
|
||||||
|
defaultViewTemplate:"views/defaultViewTemplate.html",
|
||||||
|
searchResultsViewTemplate:"views/searchResultsViewTemplate.html",
|
||||||
|
searchViewTemplate:"views/searchViewTemplate.html",
|
||||||
|
calcPointsViewTemplate:"views/calcPointsViewTemplate.html",
|
||||||
|
calcAllowanceViewTemplate:"views/calcAllowanceViewTemplate.html",
|
||||||
|
loaded: 0,
|
||||||
|
requested: 0
|
||||||
|
};
|
||||||
|
|
||||||
|
var ___templatesLoadedCallback;
|
||||||
|
|
||||||
|
function loadTemplates(callback) {
|
||||||
|
___templatesLoadedCallback = callback;
|
||||||
|
|
||||||
|
//load Mousetache HTML templates
|
||||||
|
for (var key in templates) {
|
||||||
|
(function() {
|
||||||
|
var _key = key.toString();
|
||||||
|
if ( _key != "loaded" && _key != "requested" ){
|
||||||
|
templates.requested ++;
|
||||||
|
|
||||||
|
var templateLoaded = function( template ){
|
||||||
|
onTemplateLoaded( template, _key );
|
||||||
|
}
|
||||||
|
|
||||||
|
$.get( templates[ _key ], templateLoaded, "html" );
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function onTemplateLoaded(template, key) {
|
||||||
|
|
||||||
|
//alert( key + ": " + template);
|
||||||
|
templates[ key ] = template;
|
||||||
|
templates.loaded ++;
|
||||||
|
|
||||||
|
if ( templates.loaded == templates.requested ) {
|
||||||
|
___templatesLoadedCallback();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function isTablet() {
|
||||||
|
var _w = $(window).width();
|
||||||
|
var _h = $(window).height();
|
||||||
|
return (Math.min(_w,_h) >= 600);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onViewClick(event, title, viewTxt) {
|
||||||
|
var view = { title: title,
|
||||||
|
backLabel: backButtonLabel,
|
||||||
|
view: viewTxt
|
||||||
|
};
|
||||||
|
window.viewNavigator.pushView(view);
|
||||||
|
event.stopPropagation();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
function registerClick(el, id, title, view){
|
||||||
|
el.find(id).on( this.CLICK_EVENT, function(evt){onViewClick(evt, title, view);});
|
||||||
|
}
|
||||||
|
|
||||||
|
function ViewAssembler() {
|
||||||
|
this.touchSupported = 'ontouchstart' in window;
|
||||||
|
//this.CLICK_EVENT = this.touchSupported ? 'touchend' : 'click';
|
||||||
|
this.CLICK_EVENT = 'click';
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.defaultView = function() {
|
||||||
|
var el = $( templates.defaultViewTemplate );
|
||||||
|
el.find("#points").on( this.CLICK_EVENT, function(evt){onViewClick(evt, "My Points", viewAssembler.pointsView());} );
|
||||||
|
el.find("#search").on( this.CLICK_EVENT, function(evt){onViewClick(evt, "Food Search", viewAssembler.searchView());} );
|
||||||
|
el.find("#calculate").on( this.CLICK_EVENT, function(evt){onViewClick(evt, "Calculate Points", viewAssembler.calcPointsView());});
|
||||||
|
el.find("#calculateAllowance").on( this.CLICK_EVENT, function(evt){onViewClick(evt, "Calculate Allowance", viewAssembler.calcAllowanceView());});
|
||||||
|
el.find("#about").on( this.CLICK_EVENT, function(evt){onViewClick(evt, "About", viewAssembler.aboutView());} );
|
||||||
|
//registerClick(el, "#about", "About", viewAssembler.aboutView());
|
||||||
|
return el;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.pointsView = function () {
|
||||||
|
var viewModel = {};
|
||||||
|
viewModel.allowance = dbGet("allowance", 0);
|
||||||
|
viewModel.dailyPoints = dbGet("dailyPoints", viewModel.allowance);
|
||||||
|
viewModel.dailyUsed = roundPoints(viewModel.allowance - viewModel.dailyPoints);
|
||||||
|
viewModel.weeklyPointsAllowed = weeklyPointsAllowed;
|
||||||
|
viewModel.weeklyPoints = dbGet("weeklyPointsAllowed", viewModel.weeklyPointsAllowed);
|
||||||
|
viewModel.weeklyUsed = roundPoints(viewModel.weeklyPointsAllowed - viewModel.weeklyPoints);
|
||||||
|
viewModel.amount = dbGetNum("amount");
|
||||||
|
var el = $( Mustache.to_html(templates.pointsViewTemplate, viewModel) );
|
||||||
|
|
||||||
|
el.find( "#subtractButton" ).on( this.CLICK_EVENT, onSubtractPointsButtonClick );
|
||||||
|
|
||||||
|
el.find( "#resetDayButton" ).on( this.CLICK_EVENT, function(evt){onResetPointsButtonClick(true);} );
|
||||||
|
el.find( "#resetWeekButton" ).on( this.CLICK_EVENT, function(evt){onResetPointsButtonClick(false);} );
|
||||||
|
return el;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.aboutView = function() {
|
||||||
|
var el = $( templates.aboutViewTemplate );
|
||||||
|
return el;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.foodDetailsView = function( food ) {
|
||||||
|
var template = templates.foodDetailsViewTemplate;
|
||||||
|
return $( Mustache.to_html(template, food) );
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.searchView = function () {
|
||||||
|
var el = $( templates.searchViewTemplate );
|
||||||
|
|
||||||
|
el.find( "#searchButton" ).on( this.CLICK_EVENT, onSearchButtonClick );
|
||||||
|
return el;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.calcPointsView = function () {
|
||||||
|
var viewModel = {};
|
||||||
|
viewModel.amount = dbGetNum("calcPointsAmount");
|
||||||
|
viewModel.protein = dbGetNum("protein");
|
||||||
|
viewModel.carbs = dbGetNum("carbs");
|
||||||
|
viewModel.fat = dbGetNum("fat");
|
||||||
|
viewModel.fiber = dbGetNum("fiber");
|
||||||
|
var el = $( Mustache.to_html(templates.calcPointsViewTemplate, viewModel) );
|
||||||
|
|
||||||
|
el.find( "#calcButton" ).on( this.CLICK_EVENT, onCalcPointsButtonClick );
|
||||||
|
el.find("#calcSubtractButton").on( this.CLICK_EVENT, pushPointsPage );
|
||||||
|
return el;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.calcAllowanceView = function () {
|
||||||
|
var viewModel = {};
|
||||||
|
viewModel.allowance = dbGetNum("allowance");
|
||||||
|
viewModel.weight = dbGetNum("weight");
|
||||||
|
viewModel.height = dbGetNum("height");
|
||||||
|
viewModel.age = dbGetNum("age");
|
||||||
|
var maleNotFemale = dbGet("maleNotFemale", "false") == "true";
|
||||||
|
if(maleNotFemale){
|
||||||
|
viewModel.gender = "male";
|
||||||
|
viewModel.otherGender = "female";
|
||||||
|
}else{
|
||||||
|
viewModel.gender = "female";
|
||||||
|
viewModel.otherGender = "male";
|
||||||
|
}
|
||||||
|
var el = $( Mustache.to_html(templates.calcAllowanceViewTemplate, viewModel) );
|
||||||
|
|
||||||
|
el.find( "#calcButton" ).on( this.CLICK_EVENT, onCalcAllowanceButtonClick );
|
||||||
|
return el;
|
||||||
|
}
|
||||||
|
|
||||||
|
ViewAssembler.prototype.searchResultsView = function( indices, searchPhrase ) {
|
||||||
|
var viewModel = {values:[]};
|
||||||
|
for (var i=0; i< indices.length; ++i) {
|
||||||
|
var food = arrayToFoodObject( indices[i] );
|
||||||
|
viewModel.values.push( food );
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
viewModel.values.sort( function(a, b){
|
||||||
|
if ( a.foodName < b.foodName ) { return -1; }
|
||||||
|
else if (a.foodName > b.foodName ) { return 1; }
|
||||||
|
else return 0;
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
if(viewModel.values.length >= maxSearchLength)
|
||||||
|
viewModel.maxSearchLength = maxSearchLength;
|
||||||
|
|
||||||
|
viewModel.criteria = searchPhrase;
|
||||||
|
|
||||||
|
var template = templates.searchResultsViewTemplate;
|
||||||
|
|
||||||
|
var el = $( Mustache.to_html(template, viewModel) );
|
||||||
|
el.find( "li" ).on( this.CLICK_EVENT, onNearbyListItemClick );
|
||||||
|
|
||||||
|
return el;
|
||||||
|
}
|