Add IVI blank template 96/13196/1
authorziv.chang <ziv.chang@intel.com>
Fri, 29 Nov 2013 05:31:42 +0000 (13:31 +0800)
committerziv.chang <ziv.chang@intel.com>
Fri, 29 Nov 2013 05:32:21 +0000 (13:32 +0800)
Change-Id: Ifbac4ab2f10d32fd538ee306f44adc18ed8dbe03
Signed-off-by: ziv.chang <ziv.chang@intel.com>
14 files changed:
package/changelog
package/pkginfo.manifest
samples/web/Template/Tizen/Basic/Tizen_Blank/description.xml [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/project/config.xml [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/project/css/style.css [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/project/icon.png [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/project/images/tizen_32.png [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/project/index.html [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/project/js/main.js [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/snapshot.png [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/tizen-app-template.xml [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_32.png [new file with mode: 0644]
samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_64.png [new file with mode: 0644]
samples/web/Template/Tizen/description.xsl [new file with mode: 0644]

index a8e9033..91431ef 100644 (file)
@@ -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
index 0b36a67..d96eded 100644 (file)
@@ -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 (file)
index 0000000..4ecc1a1
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+<?xml-stylesheet type="text/xsl" href="../../description.xsl"?>\r
+\r
+<Overview version="0.17.1">\r
+  <SampleName>Basic IVI Application</SampleName>\r
+  <SampleVersion>1.0</SampleVersion>\r
+  <Preview>snapshot.png</Preview>\r
+  <Description>\r
+    Tizen Basic IVI Application.\r
+  </Description>\r
+</Overview>\r
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 (file)
index 0000000..7c73e94
--- /dev/null
@@ -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 (file)
index 0000000..1c64069
--- /dev/null
@@ -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 (file)
index 0000000..9765b1b
Binary files /dev/null and b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/icon.png 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 (file)
index 0000000..647c3f9
Binary files /dev/null and b/samples/web/Template/Tizen/Basic/Tizen_Blank/project/images/tizen_32.png 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 (file)
index 0000000..715be0d
--- /dev/null
@@ -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 (file)
index 0000000..6481de0
--- /dev/null
@@ -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 (file)
index 0000000..3682008
Binary files /dev/null and b/samples/web/Template/Tizen/Basic/Tizen_Blank/snapshot.png 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 (file)
index 0000000..7504358
--- /dev/null
@@ -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 (file)
index 0000000..61f35c0
Binary files /dev/null and b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_32.png 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 (file)
index 0000000..b188083
Binary files /dev/null and b/samples/web/Template/Tizen/Basic/Tizen_Blank/tizen_blank_64.png differ
diff --git a/samples/web/Template/Tizen/description.xsl b/samples/web/Template/Tizen/description.xsl
new file mode 100644 (file)
index 0000000..0d9209e
--- /dev/null
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+\r
+<xsl:stylesheet version="1.0"\r
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
+  <xsl:template match="/">\r
+    <html>\r
+      <head>\r
+        <style type="text/css">\r
+          html,body {\r
+          font-family:Arial;\r
+          margin: 0px;\r
+          }\r
+          td\r
+          {\r
+          font-size:13px;\r
+          }\r
+          .samplename\r
+          {\r
+          font-size:16px;\r
+          color:#ffffff;\r
+          height:26px;\r
+          background-color:#6d96ac;\r
+          }\r
+          .category\r
+          {\r
+          font-size:16px;\r
+          color:#ffffff;\r
+          height:30px;\r
+          background-color:#6d96ac;\r
+          }\r
+          .contents\r
+          {\r
+          padding: 6px 10px 14px 10px;\r
+          }\r
+          table#widgets td\r
+          {\r
+          border: solid 1px #6d96ac;\r
+          border-collapse: collapse;\r
+          }\r
+          .widgetname\r
+          {\r
+          font-weight: bold;\r
+          text-align: center;\r
+          width: 20%;\r
+          word-break:break-all;\r
+          }\r
+          table#references td\r
+          {\r
+          width: 100%;\r
+          border: 0px;\r
+          border-spacing: 0px;\r
+          padding: 5px;\r
+          }\r
+          .refname\r
+          {\r
+          width: 100%;\r
+          font-weight: bold;\r
+          }\r
+        </style>\r
+      </head>\r
+      <body>\r
+        <table width="400px" border="0" cellspacing="0">\r
+          <tr>\r
+            <td class="samplename" align="center">\r
+              <xsl:value-of select="Overview/SampleName"/>\r
+              <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>\r
+                         <!--\r
+              <xsl:value-of select="Overview/SampleVersion"/>\r
+                         -->\r
+            </td>\r
+          </tr>\r
+          <tr bgcolor="#FFFFFF">\r
+            <td class="contents">\r
+                         <strong>Type</strong>: JavaScript\r
+                         <p>\r
+              <xsl:value-of select="Overview/Description"/>\r
+                         </p>\r
+            </td>\r
+          </tr>\r
+          <tr>\r
+            <td align="center" bgcolor="#FFFFFF" height="260px">\r
+              <img>\r
+                <xsl:attribute name="src">\r
+                  <xsl:value-of select="Overview/Preview"/>\r
+                </xsl:attribute>\r
+              </img>\r
+            </td>\r
+          </tr>\r
+        </table>\r
+      </body>\r
+    </html>\r
+  </xsl:template>\r
+\r
+</xsl:stylesheet>\r