Show Comunic Logo on developper console

This commit is contained in:
Pierre 2017-06-07 15:53:39 +02:00
parent 6f44b27342
commit 8cbd35d241
3 changed files with 40 additions and 0 deletions

View File

@ -69,4 +69,35 @@ ComunicWeb.debug = {
return logString;
},
/**
* Display Comunic Logo on the developper console
*
* @return {Boolean} True for a success
*/
displayComunicLogo: function(){
//Prepare message
var message = " \n";
message += " \n";
message += " ==================== \n";
message += " ==================== \n";
message += " ==================== \n";
message += " ======== \n";
message += " ======== \n";
message += " ======== \n";
message += " ======== \n";
message += " ======== \n";
message += " ======== \n";
message += " ==================== \n";
message += " ==================== \n";
message += " ==================== \n";
message += " \n";
message += " ComunicWeb 2.0 \n";
message += " \n";
message += " v"+ComunicWeb.__config.appVersion+" \n";
message += " \n";
//Display message
console.log(message);
}
}

View File

@ -251,6 +251,11 @@ var ComunicWeb = {
* Get log content in a string
*/
getLogContent: function(){},
/**
* Display Comunic Logo on the developper console
*/
displayComunicLogo: function(){},
},
/**

View File

@ -11,6 +11,10 @@ ComunicWeb.common.system = {
* @return {Boolean} True for a success
*/
init: function(){
//Display Comunic logo
ComunicWeb.debug.displayComunicLogo();
//Start init
ComunicWeb.debug.logMessage("Start initialization...");