// JavaScript Document C:\w3\popDev IT\userSite\bottomReady.js.php
try{xline+=`/2`;
//alert(5555);
//if(0&&isLocal)alert(`C:/\w3/\popDev IT/\userSite/\bottomReady.js.php`);
var bottomReadyJsPhp=`/iC/pop/+/V0/cfgSite/bottomReady.js.php`;
//alert(8888);
//if(1&&window.parent.getElementBarNav)document.write(getElementBarNav());// affiche la bar fixed top green
if(0&&window.parent.getElementBarNav)document.write(getElementBarNav());// affiche la bar fixed top green
document.addEventListener(`DOMContentLoaded`,()=>{// onload ready
xline+=`/11`;
//x=jsheadCodeHTML.headTitle.split(`pop`);
x=document.title.split(`pop`);
labelSiteOwnerNameTop=document.getElementById('labelSiteOwnerNameTop');
labelSiteOwnerNameFooter=document.getElementById('labelSiteOwnerNameFooter');
if(x[1]&&labelSiteOwnerNameTop){
jsheadCodeHTML.headTitle=document.title;//`popLife${x[1]}`;// popDiasporas => popLifeDiasporas
labelSiteOwnerNameTop.innerHTML=document.title;//jsheadCodeHTML.headTitle;
if(labelSiteOwnerNameFooter)labelSiteOwnerNameFooter.innerHTML=document.title;
}
/* fin1
fin1 */
xx=document.getElementById('idstartPage');if(xx){xx.style.display=`none`;};
xx=document.getElementById('idstartHeaderNav');if(xx){xx.style.display=`block`;};
if(0&&isLocal)alert('2222 xx= '+xx);
//try{
//if(0&&isLocal)alert(`ici192`);
//DayPilot_ihmContactUser(`Hello, World! Envoyer un email`);
var maDiv =``;
//
Text
//
/*
if(0&&isLocal){// permet d'afficher un popUp modal
xx=`popDayPilot_Modal_form_Message_Resources_Dates`;
if(1&&window.parent[xx])window.parent[xx](450);
if(0&&isLocal&&window.parent[xx])window.parent[xx](`title`);
}
*/
//================
/*
if(0&&isLocal){
var maDiv = document.querySelector('.modal_default_background');
// Lorsqu'on survole maDiv, désactiver l'interaction
maDiv.addEventListener('mouseover', () => {
maDiv.style.pointerEvents = 'none';
});
// Lorsqu'on quitte maDiv, réactiver l'interaction
maDiv.addEventListener('mouseout', () => {
maDiv.style.pointerEvents = '';// 'auto';
});
if(0&&isLocal){
const idmadivmain = document.querySelector('.modal_default_main');
// Lorsqu'on survole maDivchild, réactiver l'interaction
idmadivmain.addEventListener('mouseover', () => {
maDiv.style.pointerEvents = '';// 'auto';
});
}
}
*/
//=====================
//fin1 */
if(0&&isLocal)alert('if(window.parent.footerBottomStandard)window.parent.footerBottomStandard(450);');
xline+=`/62`;
// footerBottomStandard(450); non installé
xx=`footerBottomStandard`;
if(0&&window.parent[xx])window.parent[xx](450);// ça efface le reste
//if(1&&window.parent.footerBottomStandard)window.parent.footerBottomStandard(450);
if(0&&isLocal)alert('if(window.parent.getInformationIHM)window.parent.getInformationIHM(`block`);');
/* ça provoque un gros bug
xx=`getInformationIHM`;
if(window.parent[xx])window.parent[xx](`block`);
*/
//if(1&&window.parent.getInformationIHM)window.parent.getInformationIHM(`block`);
//========================
//fin1 */
// get the div element const myDiv = document.querySelector(`#myDiv`);
const imgMenuLanguages = document.querySelector('#imgMenuLanguages');
// add a click event listener to the div
//imgMenuLanguages.addEventListener(`click`, function() {
if(imgMenuLanguages)
imgMenuLanguages.addEventListener(`mouseover`, function() {
// alert(`Div was clicked!/n`+`vlivk`);
const divMenuLanguages = document.querySelector('#divMenuLanguages');
// specify the action to take when the div is clicked
// alert(`Div was clicked!/n`+divMenuLanguages.innerHTML);
value = (divMenuLanguages.style.display!=`none`?`none`:`inline`);
divMenuLanguages.style.display=value;
});
if(0&&isLocal)alert('divMenuLanguages.style.display=value;');
//========================
xline+=`/94`;
//fin1 */
const divMenuLanguages = document.querySelector(`#divMenuLanguages`);
if(divMenuLanguages)
divMenuLanguages.addEventListener(`mouseout`, function() {
// alert(`Div was clicked!/n`+`vlivk`);
//const imgMenuLanguages = document.querySelector(`#imgMenuLanguages`);
// specify the action to take when the div is clicked
// alert(`Div was clicked!/n`+divMenuLanguages.innerHTML);
// value = (divMenuLanguages.style.display!=`none`?`none`:`inline`);
divMenuLanguages.style.display=`none`;
});
//alert(8888);
//========================
/*
tabber7pt=true;
//if(iframe&&window.parent.tabberCommandLoad)window.parent.tabberCommandLoad(iframe);
tabber7pt=true;
//if(iframe&&window.tabberCommandLoad)tabberCommandLoad(iframe);
if(window.parent.tabberCommandLoad)window.parent.tabberCommandLoad(iframe);
*/
/*
var divConnection=`
`;
document.write(divConnection);
*/
//}catch(e){alert("catch(e): "+e+" - "+xline+" - "+bottomReadyJsPhp);};
/*
if(1&&isLocal)alert('iddivLocalStorage= '+iddivLocalStorage);
if(1&&isLocal){
if(!localStorageKeySecure)var localStorageKeySecure="agentMB.";// agent Michel Boussekeyt , dernier caractère .=0 *=1 pour boa=hash
const iddivLocalStorage = document.getElementById(`iddivLocalStorage`);
if(iddivLocalStorage&&localStorageKeySecure&&isLocal){
if(1&&isLocal)alert('iddivLocalStorage= '+iddivLocalStorage);
x=Object.entries(poplocalStorageDatasGET(localStorageKeySecure,0));
iddivLocalStorage.innerHTML=x;
iddivLocalStorage.innerHTML+=x.announce.case1;
}
}
*/
//open=(openModal?'block':'none');//x=document.getElementById('modal');if(x){x.style.display=open;};
//======
//* fin2
xline+=`/157`;
styles=[
// {name:"modal",type:`display`,value:open}
// ,
{name:`wrapper-left`,type:`visibility`,value:`visible`}
,{name:`wrapper-right`,type:`visibility`,value:`visible`}
,{name:`wrapper-right-publicity`,type:`visibility`,value:`visible`}
,{name:`idtabbermain`,type:`display`,value:`block`}
,{name:"#a.tooltip div",type:`display`,value:`block`}
,
];getStyleCSS(styles);
//======
if(0&&isLocal)alert('19 mesimages= '+mesimages);
//fin2 */
/*
open=(openModal?'block':'none');x=document.getElementById('modal');if(x){x.style.display=open;};
if(openModal){
alert('line 19 openModal= '+openModal+'\n x= '+x);
}
*/
//* fin3
if(window.parent.getPopModalOfBarTopOutClose)window.parent.getPopModalOfBarTopOutClose('modal','close');
//======
newdateLocale="notDate";
xx=`js0B_GetDate`;
if(window.parent[xx]){dateLocale=window.parent[xx]();newdateLocale=dateLocale.isdateLocaleYear;};
//======
//idstartPage
//xx=document.getElementById('idstartPage');if(xx){xx.style.display=`none`;};
//xx=document.getElementById('idstartHeaderNav');if(xx){xx.style.display=`block`;};
//fin3 */
xline+=`/193`;
//if(0&&isLocal)getPopModalOfBarTopOutClose('modal');//!\warning: getPopModalOfBarTopOutClose('${whatType}'); empêche le grid-image
//if(window.parent.footerBottomStandard)window.parent.footerBottomStandard(450);
//if(window.parent.fctjs_footer_OpenOrClose)window.parent.fctjs_footer_OpenOrClose();
//======
/*
if(0&&isLocal){
alert('jsheadCodeHTML= '+jsheadCodeHTML);
//if(0&&isLocal){
if(!jsheadCodeHTML)var jsheadCodeHTML={};//!\warning innerHTMLs.labelCopyright
innerHTMLs=[
{name:`labelSiteOwnerNameTop`,value:jsheadCodeHTML.headTitle}//popDevIaTB
,{name:`labelSiteOwnerNameFooter`,value:jsheadCodeHTML.headTitle} //labelSiteOwnerNameFooter
,{name:`labelCopyrightOwnerName`,value:jsheadCodeHTML.footerCopyR+" "} //labelCopyrightOwnerName
,{name:`labelCopyright`,value:`labelCopyright`} //newdateLocale} //labelCopyrightOwnerName
,
];
innerHTMLs.forEach(obj=>{x=document.getElementById(obj.name);if(x)x.innerHTML=obj.value;});innerHTMLs=null;
}
*/
//======
xx=document.getElementById(`footer-bottom`);if(xx)xx.style.display="none";//footer-bottom
if(window.parent.fctjs_footer_OpenOrClose)window.parent.fctjs_footer_OpenOrClose();
//}
xline+=`/219`;
//js0B_GetDate();
if(window.parent.jsfctOSHCallRealTimeHour){// // C:\iC\_scripts\js\js0B_start.js
const millis = Date.now() - jsStartSite.headstartHTML;//jsheadCodeHTML.headstartHTML;//alert(`seconds elapsed = ${Math.floor(millis / 1000)}`);
xx=document.getElementById(`bottom-hbar-date`);
if(xx){const intervalID = setInterval(jsfctOSHCallRealTimeHour, 1000, millis, "Parameter 2");};
};
//======
xline+=`/227`;
if(window.parent.imageFlag){imageFlag(`fr`);imageFlag(`en`);}
//======
xline+=`/230`;
year=new Date();year=year.getFullYear(); // date(`Y`); ${year} labelCopyright
xx=document.getElementById('labelCopyright');if(xx){xx.innerHTML=`${year}`;};
year='';
//======
xline+=`/235`;
if(window.parent.tabberCommandLoad)window.parent.tabberCommandLoad(`7pt`);
/* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */
//tabberCommandLoad(!tabberAutoIsOnLoad);//!\code:test: !OK
/*
if(!tabberAutoIsOnLoad)
if (typeof tabberOptions == 'undefined') {
tabber AutomaticOnLoad();
} else {
if (!tabberOptions['manualStartup']) {
tabber AutomaticOnLoad(tabberOptions);
}
}
}
*/
// if(window.parent.footerBottomStandard)window.parent.footerBottomStandard(450);
//alert('barVR= '+barVR.name);
//barVR=1;
// idtabbermain width:96.1%
let barRelement=document.getElementById(`idtabbermain`);
if(barRelement){
if(0&&isLocal)alert('barVR= '+barVR);
barRelement.style.width =(!barVR?'99%':'96.1%');
}
xline+=`/262`;
xx=document.getElementById(`id.gridImages.php`);if(xx)xx.style.display=`none`;
xx=document.getElementById(`id.calculatrice.php`);if(xx)xx.style.display=`none`;
if(0&&isLocal&&window.parent.fctdisplayMiddleMain)document.write(window.parent.fctdisplayMiddleMain({}));
/*
if(0&&isLocal)alert('103 mesimages= '+mesimages);
//alert('mesimages= '+(typeof mesimages));
xx=(mesimages===undefined?``:mesimages);
if(xx&&xx==`iframeAboutPhp`){
let iframeSpanWaitLoad=document.getElementById('iframeSpanWaitLoad');
if(iframeSpanWaitLoad)iframeSpanWaitLoad.innerHTML='Success';
let iframeWaitLoadGif=document.getElementById(`iframeWaitLoadGif`);
if(iframeWaitLoadGif)iframeWaitLoadGif.style.display=`none`;
}//end:if(mesimages&&mesimages==`iframeAboutPhp`){
*/
});styles=year=newdateLocale=null;
}catch(e){alert("catch(e): "+e+" - "+xline+" - "+bottomReadyJsPhp);};