Title: Fixed Seconds Counting Issue
Last modified: January 29, 2021

---

# Fixed Seconds Counting Issue

 *  [jamiethewebguy](https://wordpress.org/support/users/jamiethewebguy/)
 * (@jamiethewebguy)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fixed-seconds-counting-issue/)
 * 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; }`
    -  This topic was modified 5 years, 4 months ago by [jamiethewebguy](https://wordpress.org/support/users/jamiethewebguy/).

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

 * ![](https://ps.w.org/simple-stopwatch/assets/icon-256x256.jpg?rev=2251112)
 * [Simple Stopwatch](https://wordpress.org/plugins/simple-stopwatch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-stopwatch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-stopwatch/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-stopwatch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-stopwatch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-stopwatch/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jamiethewebguy](https://wordpress.org/support/users/jamiethewebguy/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/fixed-seconds-counting-issue/)