diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-27 21:58:51 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-27 21:58:51 +0000 |
commit | 093d169f38327c96964f9a42bc8fcd8f9eb32179 (patch) | |
tree | 0b3f612558ab97c02428314e97d159d764c1c1f7 /sca-cpp/trunk/modules/edit/htdocs/store/index.html | |
parent | 50fd6e0d7427c7d3332d7550b73245075e3879f1 (diff) |
HTML cleanup, improve layout on different browsers, iOS and android devices and add robots.txt and some icons. Support execution and preview of components from the edit pages.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1086046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/store/index.html')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/store/index.html | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/store/index.html b/sca-cpp/trunk/modules/edit/htdocs/store/index.html index f425c0117a..849600d84e 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/store/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/store/index.html @@ -22,6 +22,7 @@ <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0"/> <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/> +<link rel="apple-touch-icon" href="/public/touchicon.png"/> <link rel="stylesheet" type="text/css" href="/ui.css"/> <script type="text/javascript" src="/util.js"></script> <script type="text/javascript" src="/ui.js"></script> @@ -29,24 +30,30 @@ <body class="delayed"> <div id="menu"></div> +<h1 id="h1"></h1> +<br/> + +<div id="store"></div> + <script type="text/javascript"> // Load the menu bar ui.loadwidget('menu', '/menu.html', ui.showbody); -</script> -<h1>App Edit</h1> -<br/> +$('h1').innerHTML = domaintitle(window.location.hostname); -<div id="store"></div> - -<script type="text/javascript"> +// Get the store category +var category = ui.queryParams()['category']; +if (isNil(category)) + category = 'new'; // Load the store $('store').innerHTML = - '<iframe id="storeFrame" style="height: 5000px; width: 100%; border: 0px;" scrolling="no" frameborder="0" src="store.html"></iframe>'; + '<iframe id="storeFrame" style="height: 5000px; width: 100%; border: 0px;" scrolling="no" frameborder="0" src="store.html?category=' + category + '"></iframe>'; +ui.showbody(); </script> + </body> </html> |