summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziv.chang <ziv.chang@intel.com>2013-11-29 13:31:42 +0800
committerziv.chang <ziv.chang@intel.com>2013-11-29 13:32:21 +0800
commita7f8f35b268894b552685b35f1c95561a98ee731 (patch)
tree072fdc5f38bd61a7f6e186f0c2d7936ace87149b
parentbbc362a059f091cc97ec5d91d8d4a48eb86969b8 (diff)
downloadweb-sample-build-a7f8f35b268894b552685b35f1c95561a98ee731.tar.gz
web-sample-build-a7f8f35b268894b552685b35f1c95561a98ee731.tar.bz2
web-sample-build-a7f8f35b268894b552685b35f1c95561a98ee731.zip
Add IVI blank template
Change-Id: Ifbac4ab2f10d32fd538ee306f44adc18ed8dbe03 Signed-off-by: ziv.chang <ziv.chang@intel.com>
-rw-r--r--package/changelog4
-rw-r--r--package/pkginfo.manifest2
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/description.xml11
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/project/config.xml7
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/project/css/style.css75
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/project/icon.pngbin0 -> 57662 bytes
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/project/images/tizen_32.pngbin0 -> 12848 bytes
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/project/index.html54
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/project/js/main.js35
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/snapshot.pngbin0 -> 41592 bytes
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/tizen-app-template.xml9
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_32.pngbin0 -> 4563 bytes
-rw-r--r--samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_64.pngbin0 -> 6849 bytes
-rw-r--r--samples/web/Template/Tizen/description.xsl94
14 files changed, 290 insertions, 1 deletions
diff --git a/package/changelog b/package/changelog
index a8e9033..91431ef 100644
--- a/package/changelog
+++ b/package/changelog
@@ -1,3 +1,7 @@
+* 3.0.3
+- Add blank IVI template
+== ziv.chang <ziv.chang@intel.com> 2013-11-29
+
* 3.0.2
- Version up
== ziv.chang <ziv.chang@intel.com> 2013-11-19
diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest
index 0b36a67..d96eded 100644
--- a/package/pkginfo.manifest
+++ b/package/pkginfo.manifest
@@ -1,4 +1,4 @@
-Version:3.0.2
+Version:3.0.3
Maintainer: Ziv Chang<ziv.chang@intel.com>
Package:ivi-3.0-web-sample
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/description.xml b/samples/web/Template/Tizen/Basic/Tizen_Blank/description.xml
new file mode 100644
index 0000000..4ecc1a1
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Basic IVI Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>snapshot.png</Preview>
+ <Description>
+ Tizen Basic IVI Application.
+ </Description>
+</Overview>
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/project/config.xml b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/config.xml
new file mode 100644
index 0000000..7c73e94
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/config.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="1.0.0" viewmodes="maximized">
+ <feature name="http://tizen.org/feature/screen.size.all"/>
+ <icon src="icon.png"/>
+ <content src="index.html"/>
+</widget>
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/project/css/style.css b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/css/style.css
new file mode 100644
index 0000000..1c64069
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/css/style.css
@@ -0,0 +1,75 @@
+* {
+ font-family: Lucida Sans, Arial, Helvetica, sans-serif;
+}
+
+body {
+ margin: 0px auto;
+}
+
+header h1 {
+ font-size: 36px;
+ margin: 0px;
+}
+
+header h2 {
+ font-size: 18px;
+ margin: 0px;
+ color: #888;
+ font-style: italic;
+}
+
+nav ul {
+ list-style: none;
+ padding: 0px;
+ display: block;
+ clear: right;
+ background-color: #666;
+ padding-left: 4px;
+ height: 24px;
+}
+
+nav ul li {
+ display: inline;
+ padding: 0px 20px 5px 10px;
+ height: 24px;
+ border-right: 1px solid #ccc;
+}
+
+nav ul li a {
+ color: #EFD3D3;
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: bold;
+}
+
+nav ul li a:hover {
+ color: #fff;
+}
+
+article > header h1 {
+ font-size: 20px;
+ margin-left: 14px;
+}
+
+article > header h1 a {
+ color: #993333;
+}
+
+article > header h1 img {
+ vertical-align:middle;
+}
+
+article > section header h1 {
+ font-size: 16px;
+}
+
+article p {
+ clear: both;
+}
+
+footer p {
+ text-align: center;
+ font-size: 12px;
+ color: #888;
+ margin-top: 24px;
+}
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/project/icon.png b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/icon.png
new file mode 100644
index 0000000..9765b1b
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/icon.png
Binary files differ
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/project/images/tizen_32.png b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/images/tizen_32.png
new file mode 100644
index 0000000..647c3f9
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/images/tizen_32.png
Binary files differ
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/project/index.html b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/index.html
new file mode 100644
index 0000000..715be0d
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/index.html
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
+ <meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>
+
+ <title>Tizen Web IDE - Tizen - Tizen basic Application</title>
+
+ <link rel="stylesheet" type="text/css" href="css/style.css"/>
+ <script src="js/main.js"></script>
+</head>
+
+<body>
+ <header>
+ <hgroup>
+ <h1>Tizen app</h1>
+ <h2>An empty template of tizen</h2>
+ </hgroup>
+ </header>
+
+ <nav>
+ <ul>
+ <li><a href="#">Home</a></li>
+ <li><a href="#">About Us</a></li>
+ <li><a href="#">Contact Us</a></li>
+ </ul>
+ </nav>
+
+ <article>
+ <header>
+ <h1>
+ <img src="images/tizen_32.png" width="32"/> Application Name
+ </h1>
+ </header>
+ <p>This is an empty template of Tizen Web Application. Tizen will support multiple device categories:</p>
+ <ul>
+ <li>smartphones, tablets and smart TVs
+ <li>netbooks, in-vehicle infotainment devices
+ </ul>
+ <section>
+ <p>This is a basic section of a document.</p>
+ <p>The following button displays a time using JavaScript.</p>
+ <div id="divbutton1">
+ <button onclick="startTime();">Clock</button>
+ </div>
+ </section>
+ </article>
+
+ <footer>
+ <p>&copy; 2012 Company Name. All rights reserved.</p>
+ </footer>
+</body>
+</html>
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/project/js/main.js b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/js/main.js
new file mode 100644
index 0000000..6481de0
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/js/main.js
@@ -0,0 +1,35 @@
+var startTime;
+var checkTime;
+
+//Initialize function
+var init = function () {
+ // TODO:: Do your initialization job
+ console.log("init() called");
+
+ // add eventListener for tizenhwkey
+ document.addEventListener('tizenhwkey', function(e) {
+ if(e.keyName == "back")
+ tizen.application.getCurrentApplication().exit();
+ });
+};
+// window.onload can work without <body onload="">
+window.onload = init;
+
+function startTime() {
+ var today = new Date();
+ var h = today.getHours();
+
+ var m = today.getMinutes();
+ var s = today.getSeconds();
+ m = checkTime(m);
+ s = checkTime(s);
+ document.getElementById('divbutton1').innerHTML="Current time: " + h + ":" + m + ":" + s;
+ t = setTimeout(startTime, 250);
+}
+
+function checkTime(i) {
+ if (i < 10) {
+ i="0" + i;
+ }
+ return i;
+} \ No newline at end of file
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/snapshot.png b/samples/web/Template/Tizen/Basic/Tizen_Blank/snapshot.png
new file mode 100644
index 0000000..3682008
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/snapshot.png
Binary files differ
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen-app-template.xml b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen-app-template.xml
new file mode 100644
index 0000000..7504358
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen-app-template.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<tizen-app-template xmlns="http://www.tizen.org/tizen-app-template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.tizen.org/tizen-app-template tizen-app-template.xsd "
+sdk-version="1.0 beta" template-version="0.2"
+icon64="tizen_blank_64.png" icon32="tizen_blank_32.png">
+ <template-id>TizenBasicIVI</template-id>
+ <template-name>Basic IVI Application</template-name>
+ <widget-type>TIZEN</widget-type>
+ <description-file-name>description.xml</description-file-name>
+</tizen-app-template>
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_32.png b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_32.png
new file mode 100644
index 0000000..61f35c0
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_32.png
Binary files differ
diff --git a/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_64.png b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_64.png
new file mode 100644
index 0000000..b188083
--- /dev/null
+++ b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_64.png
Binary files differ
diff --git a/samples/web/Template/Tizen/description.xsl b/samples/web/Template/Tizen/description.xsl
new file mode 100644
index 0000000..0d9209e
--- /dev/null
+++ b/samples/web/Template/Tizen/description.xsl
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <html>
+ <head>
+ <style type="text/css">
+ html,body {
+ font-family:Arial;
+ margin: 0px;
+ }
+ td
+ {
+ font-size:13px;
+ }
+ .samplename
+ {
+ font-size:16px;
+ color:#ffffff;
+ height:26px;
+ background-color:#6d96ac;
+ }
+ .category
+ {
+ font-size:16px;
+ color:#ffffff;
+ height:30px;
+ background-color:#6d96ac;
+ }
+ .contents
+ {
+ padding: 6px 10px 14px 10px;
+ }
+ table#widgets td
+ {
+ border: solid 1px #6d96ac;
+ border-collapse: collapse;
+ }
+ .widgetname
+ {
+ font-weight: bold;
+ text-align: center;
+ width: 20%;
+ word-break:break-all;
+ }
+ table#references td
+ {
+ width: 100%;
+ border: 0px;
+ border-spacing: 0px;
+ padding: 5px;
+ }
+ .refname
+ {
+ width: 100%;
+ font-weight: bold;
+ }
+ </style>
+ </head>
+ <body>
+ <table width="400px" border="0" cellspacing="0">
+ <tr>
+ <td class="samplename" align="center">
+ <xsl:value-of select="Overview/SampleName"/>
+ <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
+ <!--
+ <xsl:value-of select="Overview/SampleVersion"/>
+ -->
+ </td>
+ </tr>
+ <tr bgcolor="#FFFFFF">
+ <td class="contents">
+ <strong>Type</strong>: JavaScript
+ <p>
+ <xsl:value-of select="Overview/Description"/>
+ </p>
+ </td>
+ </tr>
+ <tr>
+ <td align="center" bgcolor="#FFFFFF" height="260px">
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="Overview/Preview"/>
+ </xsl:attribute>
+ </img>
+ </td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+</xsl:stylesheet>