From 1406a699760223cce7ef94054b5fa65cc5f4b12d Mon Sep 17 00:00:00 2001 From: Michael Kaiser Date: Tue, 26 Sep 2017 18:51:31 +0200 Subject: [PATCH] pairs: display time in seconds instead of ms in tweet --- pairs/www/pairs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pairs/www/pairs.js b/pairs/www/pairs.js index 999b4cc..6d96d85 100644 --- a/pairs/www/pairs.js +++ b/pairs/www/pairs.js @@ -22,8 +22,8 @@ $(function(){ maxCardMargin: 25, onPairDisclosed: function(e) { if (e.finished) { - var time = sw.stopwatch('getTime') - location.href = 'https://twitter.com/intent/tweet?text=' + encodeURIComponent("I just matched ten Gophers in " + time + "ms! Can you beat that? https://pairs.gopherize.me/ #gopherizeme #golang via @ashleymcnamara and @matryer" ) + var time = sw.stopwatch('getTime') / 1000 + location.href = 'https://twitter.com/intent/tweet?text=' + encodeURIComponent("I just matched ten Gophers in " + time + "s! Can you beat that? https://pairs.gopherize.me/ #gopherizeme #golang via @ashleymcnamara and @matryer" ) } } })