From a7a8f4f9c9bbbd3bd16605235440dec29f581ad7 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 28 May 2012 16:49:36 +0000 Subject: Improvements to the hosted composite management app. Simplify and optimize the Web UI a bit. Add test cases and fix some of the logic in the management components. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1343316 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/hosting/server/htdocs/home/index.html | 49 +++++++++++----------- 1 file changed, 24 insertions(+), 25 deletions(-) (limited to 'sca-cpp/trunk/hosting/server/htdocs/home/index.html') diff --git a/sca-cpp/trunk/hosting/server/htdocs/home/index.html b/sca-cpp/trunk/hosting/server/htdocs/home/index.html index 6fb9b558bf..914eb1df00 100644 --- a/sca-cpp/trunk/hosting/server/htdocs/home/index.html +++ b/sca-cpp/trunk/hosting/server/htdocs/home/index.html @@ -17,25 +17,22 @@ * specific language governing permissions and limitations * under the License. --> -
+
- - - - - -

+
-
+
+
+
-
- -
+ - +

-
Requires Safari 5+, Chrome 11+, Firefox 4+, IE 9+
+
Requires Safari 5+, Chrome 11+, Firefox 4+, IE 9+
@@ -43,23 +40,25 @@ // Set page titles document.title = ui.windowtitle(location.hostname); -$('h1').innerHTML = ui.hometitle(location.hostname); +$('viewhead').innerHTML = '' + config.pagetitle + ''; +$('hometitle').innerHTML = config.hometitle; -$('maintitle').innerHTML = isNil(config.maintitle)? 'Simple App Builder' : config.maintitle; $('getstarted').onclick = function() { return ui.navigate('/#view=store', '_view'); }; -// Display the main diagram -var diagram = $('diagram'); -diagram.style.background = 'url(\'' + ui.b64img(appcache.get('/home/home.b64')) + '\')'; -var bgpos = 0; -setInterval(function() { - bgpos = bgpos -280; - if (bgpos == -2800) - bgpos = 0; - diagram.style.backgroundPosition = '0px ' + ui.pixpos(bgpos); -}, 2000); +// Display animation +var anim = $('homeanimation'); +if (!isNil(anim)) { + anim.style.background = 'url(\'' + ui.b64img(appcache.get('/home/home.b64')) + '\')'; + var bgpos = 0; + setInterval(function() { + bgpos = bgpos -280; + if (bgpos == -2800) + bgpos = 0; + anim.style.backgroundPosition = '0px ' + ui.pixpos(bgpos); + }, 2000); +} showStatus(defaultStatus()); -- cgit v1.2.3