I tested the script, and although it didn't produced the expected results, it did make a difference... maybe JavaScript wasn't enabled in your browser when you tested? Anyway, here's a simpler script that produces the correct results: <div id="timeLeft">$(session-time-left)</div> <script ...
You'd need to parse this with JavaScript. I think it will be easiest with string.split, like: <div id="timeLeft">$(session-time-left)</div> <script type="text/javascript"> var timeLeft = "$(session-time-left)".split(/\d+/); for (var i =0, l = timeLeft.length; i<l; ++i)...
Hello everyone in sum .. :D I want to show the time remaining in the status page So i add the code: $(session-time-left) on it Everything is fine the time remaining shows like this: 5w3d9h4m So in fact this means that remaining 5 weeks and 3 days, 9 hours and 4 minutes All I want is to replace this:...