Slideshow + Script - Question | JoomShaper

Slideshow + Script

MP

Micheline Potvin

SP Page Builder 4 years ago

Hello, i would like to display a script in my slideshow: the script is simply a short sentence whit hour and date. the script is good, but when i insert it into slide title, slide subtitle or slide content nothing appear.

thank you for your beautiful templates and your help!

'<'script> var aujourdhui = new Date(); var annee = aujourdhui.getFullYear(); // retourne le millésime var mois =aujourdhui.getMonth()+1; // date.getMonth retourne un entier entre 0 et 11 donc il faut ajouter 1 var jour = aujourdhui.getDate(); // retourne le jour (1à 31) var joursemaine = aujourdhui.getDay() ; // retourne un entier compris entre 0 et 6 (0 pour dimanche) var tab_jour=new Array("dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "Samedi"); var tab_mois=new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"); var heures = aujourdhui.getHours(); var minutes = (aujourdhui.getMinutes()<10?'0':'') + aujourdhui.getMinutes(); var ampm = heures >= 12 ? 'soirée' : 'matinée'; document.write('<strong>Dieu bénisse votre ' +ampm + '</strong>, nous sommes ' + tab_jour[joursemaine] + ' ' + jour + ' ' + tab_mois[mois] + ' ' + annee+ ', il est ' + heures + ':' + minutes) ; '<'/script>

0
3 Answers
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 4 years ago #20472

You have to be specific on item id in that case.

Actually, we do not provide customization support, as it is prohibited in our support policy.

Hope you understand.

Thanks for your cooperation:)

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 4 years ago #20468

Hi there!

Thanks for your query.

Here you will find all about custom code allowance including JS:

https://www.joomshaper.com/documentation/helix-framework/helixultimate/custom-code

Hope this helps anyway!

Best Regards

0
MP
Micheline Potvin
Accepted Answer
4 years ago #20470

Thank you, i see, i can add js in the template, but could you explain , how the output of the code can be return in the slide subtitle for example. Thank you

0