• Resolved mubasher99

    (@mubasher99)


    Thank you for making such a great plugin
    I want to know, is there a way to change the format of the timer?
    currently if i am setting quiz for the 10 minutes, timer is showing that in seconds ie. 600 sec..
    i want it to show in minutes

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Here you go 🙂

    https://ww.wp.xz.cn/support/topic/countdown-timer-format-2/

    As that user said, the file to edit is /includes/js/hdq_script.js and you need to replace line 36 with

    
    min = parseInt(hdq_timer/60);
    min = min < 10 ? '0' + min : min;
    sec = hdq_timer%60;
    sec = sec < 10 ? '0' + sec : sec;
    t = min + ":" + sec;
    jQuery(".hdq_timer").html(t);
    

    Also, the next version of HD Quiz will contain a version of this by default 🙂

    Thread Starter mubasher99

    (@mubasher99)

    When your next version is going to be released..??
    and dear i couldnot locate the hdq_script.js file in the public_html> wp-includes>js
    can you please guide me in this regard?

    Plugin Author Harmonic Design

    (@harmonic_design)

    Hi mubasher99,
    it’s in beta being tested by several users, so I have a planned date of October 1st, but that could change if any bugs are found or if I need to flesh out any features.

    hdq_script.js is located in the HD Quiz plugin folder, not the the wp-includes folder.

    yourdomain.com/wp-content/plugins/hd-quiz/includes/js/hdq_script.js

    EDIT: You can use WordPress’ built in editor to more easily get to and edit the file by going to plugins -> plugin editor

    • This reply was modified 6 years, 8 months ago by Harmonic Design. Reason: added more info
    Thread Starter mubasher99

    (@mubasher99)

    Thank you very much for the help dear.. 🙂
    Really love your work

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Changing the format of timer’ is closed to new replies.