WebSite X5Help Center

 
Ionescu C.
Ionescu C.
User

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

Автор: Ionescu C.
Просмотрено 142, Подписчики 1, Размещенный 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

Размещено
1 Ответы - 1 Корректно
Ionescu C.
Ionescu C.
User
Автор

Ok, I figger it out in the end.

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

Regards, 

Cristi

Читать больше
Размещено От Ionescu C.