• The plugin is exactly as described: simple. However, it also continues to count past 60 seconds and does not start back at 00 after it reaches 59. For example, once it reaches 60 seconds it will add a ‘1’ to the minutes, but will continue counting seconds through the 60s into the 70s and so on. The problem was just understanding the maths in the JS file. If you can access your site files navigate to wpcontent/plugins/simple-=stopwatch/public/js/ and open simple-stopwatch-public.js. In that file change:
    var secs=Math.floor(time/10);

    to

    var secs=Math.floor((time/10)-(mins*60));

    This will fix the problem.

    Also if you are looking to style the buttons you can use Custom CSS in your theme by pasting and manipulating the following CSS code:`
    /* STYLE STOPWATCH BUTTONS */
    #reset.stopwatchbutton {
    background-color: #5085a5;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    }
    #strtpause.stopwatchbutton {
    background-color: #f46036;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    }`

  • The topic ‘Fixed Seconds Counting Issue’ is closed to new replies.