WebSite X5Help Center

 
Ionescu C.
Ionescu C.
User

Script stop working after update to the last version of app  en

Auteur : Ionescu C.
Visité 180, Followers 1, Partagé 0  

Hello, 

I have a script on the webpage (made with the help of KolAsim)

Until now everything worked as expected.

The scrips is:

<script>
var day_15_2 = "question text? <br> This is the description section which I wanted to show underneath.";
// var day_ etc. etc.
dateK = new Date();
dayK = dateK.getDate();
monthK = dateK.getMonth() + 1;
K = "day_"+ dayK + '_' + monthK;
document.write( eval(K)); //<by K>;
</script>

and it shoould show each day different text

I updated to the last version of the app and now the text is not being displayed.

Link to the mentioned section

How it is now:

How it should be:

Populated with text.

Any ideas what changed?

Regards,

Cristi

Posté le
1 RéPONSES - 1 CORRECT
Ionescu C.
Ionescu C.
User
Auteur

Ok, I figger it out in the end.

Due to a missplaced ENTER in the script it would not work.

Regards, 

Cristi

Lire plus
Posté le de Ionescu C.