// JavaScript Document C:\w3\popDev IT\userSite\dayPilot.js.php //!\warning: devrait être un plugin
// + mini daypilot js
// + daypilot CSS
try{xline=4;
function yesNoStandard(AlertParams){// jsDayPilotGridImages
//al ert("called yesNoStandard= "+yesNoStandard);
let msg=``;
xmsg=`called yesNoStandard= ${yesNoStandard}`;
jsscriptLine=9;if(0)devAlert(xmsg);
// DayPilot.Modal.confirm("Really?", { okText: "Yes", cancelText: "No" }).then(function(args) { console.log(args.result); });
title=(!AlertParams.headTitle?document.title:AlertParams.headTitle);
colorTitle=(!AlertParams.colorTitle?`green`:AlertParams.colorTitle);
command=(!AlertParams.command?`COMMAND ?`:AlertParams.command);
colorCommand=(!AlertParams.colorCommand?`red`:AlertParams.colorCommand);
yesTag=(!AlertParams.yesTag?`YES`:AlertParams.yesTag); // `+`YES`
yes=(!AlertParams.yes?`text ${yesTag} ?`:AlertParams.yes); // `+`YES`+`, `+`Would you to try with other words ?`
noTag=(!AlertParams.noTag?`NO`:AlertParams.noTag); // `+`NO`
no=(!AlertParams.no?`text ${noTag} ?`:AlertParams.no);
error=(!AlertParams.error?`There is a problem !`:null);
words=`words`;
msg=`${title} : ${command}
`;
if(error&&error.length)msg+=` ${error}`;
msg+=`
${yesTag}`+`, ${yes}`;//!\translation:command
msg+=`
${noTag}`+`, ${no}`;//!\translation:command
DayPilot.Modal.confirm(msg, { okText: yesTag, cancelText: noTag }).then(function(args) { // okText args.result=OK/undifined
result=(args.canceled?noTag:args.result); // NO:OK
//al ert("result IHM= "+result);
if(result==`OK`){//yesTag){
if(AlertParams==window.jsDayPilotGridImages)
getPopModalOfBarTopOutCloseAlert(`modal`);//whatType);//{//jsDayPilotGridImages getPopModalOfBarTopOutClose(whatType)
//al ert("éteindre IHM");
if(window.popjsSiteAlert)popjsSiteAlert("!éteindre IHM|")
return('ok');
}
if(result==noTag){return('stop');};
//if(result==`NO`){divsPlacement(2);return('stop');};
//al ert(Object.entries(args));
// backgroundClick,false
// ,result,
// ,canceled,true
// ,preventDefault,function(){this.preventDefault.value=!0}
//
//return(args.result);
});
return(false);
return('stop');
}
//==================================
//< ? php
//C:/w3/popDev IT\plugins\gridImages.php
//require(`../../../w3/popDev IT/plugins/gridImages.php`);
//require(`../../../w3/popDev IT/userSite/gridImages.php`);// ok
//require('./userSite/gridImages.php');// ok
//echo $p_page;
//? >
function yesNoGrid(){
//document.write(`< ? php echo $p_page;? >`);
// ici ça ne peut prendre que du texte et pas d'élément en supplément peut-être une input/case text ??
let msg=words=`words`;
msg=``+document.title+` : `+`CONNECTION`+`
`;
msg+=` `+`There is a loging s problem ! : `+words+``
msg+=`
`+`YES`+`, `+`Would you to try with other words ?`;//!\translation:connection
msg+=`
`+`NO`+`, `+`I want to prefer to try with secret words !`;//!\translation:connection
//msg+=String(`< ? php echo $p_page;? >`);
msg+=`