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

33 lines
956 B
JavaScript
Raw Normal View History

2017-05-22 18:12:50 +02: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 18:33:39 +02:00
2017-05-25 15:25:39 +02:00
//Change page title
ComunicWeb.common.pageTitle.setTitle("Comunic, a transparent social network");
2017-05-25 15:25:39 +02:00
2017-05-22 18:33:39 +02:00
//Prepare additional data
2018-05-05 10:55:36 +02:00
var additionalData = {
//About the website URL
about_url: ComunicWeb.__config.aboutWebsiteURL,
2018-05-05 10:55:36 +02:00
//Background image URL
backgroundImage: ComunicWeb.__config.assetsURL + "img/pages/home/landingPage/img_background.jpg"
2017-05-22 18:33:39 +02:00
};
//Apply template
2018-05-05 10:55:36 +02:00
ComunicWeb.common.page.getAndShowTemplate(targetElement, additionalData, "pages/home/landingPage/home.tpl", false, true);
2017-05-22 18:12:50 +02:00
}
};