From 4909ade650a31797ee4d305565a91061e8a5b812 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Tue, 21 Aug 2007 14:39:54 +0000 Subject: added some extra vars --- htdocs/cropper/smokeping-cropper.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'htdocs/cropper') diff --git a/htdocs/cropper/smokeping-cropper.js b/htdocs/cropper/smokeping-cropper.js index 8129801..572357c 100644 --- a/htdocs/cropper/smokeping-cropper.js +++ b/htdocs/cropper/smokeping-cropper.js @@ -64,7 +64,6 @@ function JSToISODate(mydate) { // example with minimum dimensions var myCropper; - // will be started by modified iSelect (StopApply Function) var StartDateString = 0; var EndDateString = 0; @@ -88,12 +87,12 @@ function changeRRDImage(coords,dimensions){ var myRawTarget = myURLObj.getUrlParameterValue("target"); var myParsedStartDate = ISODateToJS(myRawStartDate); - myParsedStartEpoch = Math.floor(myParsedStartDate.getTime()/1000.0); + var myParsedStartEpoch = Math.floor(myParsedStartDate.getTime()/1000.0); var myParsedStopDate = ISODateToJS(myRawStopDate); - myParsedStopEpoch = Math.floor(myParsedStopDate.getTime()/1000.0); + var myParsedStopEpoch = Math.floor(myParsedStopDate.getTime()/1000.0); - myParsedDivEpoch = myParsedStopEpoch - myParsedStartEpoch; + var myParsedDivEpoch = myParsedStopEpoch - myParsedStartEpoch; var mySerialDate = new Date(); var mySerial = mySerialDate.getTime(); -- cgit v1.2.3-24-g4f1b