mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Display footer
This commit is contained in:
54
assets/js/components/bottom/main.js
Normal file
54
assets/js/components/bottom/main.js
Normal file
@ -0,0 +1,54 @@
|
||||
/**
|
||||
* Main bottom script file
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
ComunicWeb.components.bottom.main = {
|
||||
|
||||
/**
|
||||
* Display the footer of the pages
|
||||
*/
|
||||
display: function(){
|
||||
|
||||
ComunicWeb.debug.logMessage("Display bottom page.");
|
||||
|
||||
//Check if the footer is already shown or not
|
||||
var footer = byId("footer");
|
||||
|
||||
if(footer){
|
||||
ComunicWeb.debug.logMessage("Notice : The footer is already shown on the screen !");
|
||||
return;
|
||||
}
|
||||
|
||||
//Create and apply footer
|
||||
footer = createElem2({
|
||||
type: "footer",
|
||||
appendTo: byId("wrapper"),
|
||||
id: "footer",
|
||||
class: "main-footer"
|
||||
});
|
||||
|
||||
//Add right element
|
||||
/*var rightElements = createElem2({
|
||||
appendTo: footer,
|
||||
type: "div",
|
||||
class: "pull-right"
|
||||
});*/
|
||||
|
||||
//Left elements
|
||||
var leftElements = createElem2({
|
||||
appendTo: footer,
|
||||
type: "span",
|
||||
innerHTML: "Comunic "
|
||||
});
|
||||
|
||||
//Put the language selector link on the right
|
||||
var langLink = createElem2({
|
||||
appendTo: leftElements,
|
||||
type: "a",
|
||||
innerHTML: "<i class='fa fa-globe'></i> Language"
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user