Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Memory Task type question

More
5 years 2 months ago #200846 by blocka
Replied by blocka on topic Memory Task type question
I'm running 22.19+200605 on my local install, and the timer only works in the Fruity theme.

When I test on my LimeSurvey Professional (from which I can only infer it is running Version 3.22.17), timer doesn't work on in Vanilla theme (but does work in Fruity and Bootwatch):

Vanilla:
law5432.limequery.com/696453?lang=en

Fruity: law5432.limequery.com/959968?lang=en

Bootswatch: law5432.limequery.com/232821?lang=en

These are the core themes, I've not extended them.
The topic has been locked.
More
5 years 2 months ago #200850 by tpartner
Replied by tpartner on topic Memory Task type question
Well, the problem with the vanilla version (law5432.limequery.com/696453?lang=en) is that moment.js is not loaded.

Try extending that theme and adding this to custom_header.twig:

Code:
<script type="text/javascript" src="/third_party/moment/moment-with-locales.min.js"></script>

Or:

Code:
<script type="text/javascript" src="https://law5432.limequery.com/third_party/moment/moment-with-locales.min.js"></script>

Or:

Code:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.26.0/moment-with-locales.min.js"></script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 2 months ago #200894 by blocka
Replied by blocka on topic Memory Task type question
Thanks, this worked with both vanilla and bootswatch:
Code:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.26.0/moment-with-locales.min.js"></script>
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose