ComunicWeb/assets/js/pages/home/landingPage.js

32 lines
969 B
JavaScript
Raw Normal View History

2017-05-22 16:12:50 +00:00
/**
* Landing home page
*
* @author Pierre HUBERT
*/
ComunicWeb.pages.home.landingPage = {
/**
* Display home landing page
*
* @param {element} targetElement Where the page will be applied
*/
display: function(targetElement){
//Log action
ComunicWeb.debug.logMessage("Open home landing page.");
2017-05-22 16:33:39 +00:00
2017-05-25 13:25:39 +00:00
//Change page title
document.title = "Comunic, a transparent social network";
2017-05-22 16:33:39 +00:00
//Prepare additional data
var additionalData = {};
//Preparing next actions
var afterParsingTemplate = function(){
2017-05-22 16:33:39 +00:00
//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);
2017-05-22 16:12:50 +00:00
}
};