diff --git a/assets/img/pages/home/landingPage/img_background.jpg b/assets/img/pages/home/landingPage/img_background.jpg new file mode 100755 index 00000000..e820dcba Binary files /dev/null and b/assets/img/pages/home/landingPage/img_background.jpg differ diff --git a/assets/js/pages/home/landingPage.js b/assets/js/pages/home/landingPage.js index cd6dbd6e..53fbdd4e 100644 --- a/assets/js/pages/home/landingPage.js +++ b/assets/js/pages/home/landingPage.js @@ -12,5 +12,18 @@ ComunicWeb.pages.home.landingPage = { display: function(targetElement){ //Log action ComunicWeb.debug.logMessage("Open home landing page."); + + //Prepare additional data + var additionalData = {}; + + //Preparing next actions + var afterParsingTemplate = function(){ + console.log(byId("homeLandingScreen")); + //Change home background + byId("homeLandingScreen").style.backgroundImage = "url('"+ComunicWeb.__config.assetsURL + "img/pages/home/landingPage/img_background.jpg')"; + }; + + //Apply template + ComunicWeb.common.page.getAndShowTemplate(targetElement, additionalData, "pages/home/landingPage/home.tpl", afterParsingTemplate, true); } }; \ No newline at end of file diff --git a/assets/templates/pages/home/landingPage/home.tpl b/assets/templates/pages/home/landingPage/home.tpl new file mode 100644 index 00000000..67c4c9f4 --- /dev/null +++ b/assets/templates/pages/home/landingPage/home.tpl @@ -0,0 +1,27 @@ + +