Permalink
Browse files

Use moment.js for timestamps

  • Loading branch information...
nickmcintyre committed Sep 11, 2017
1 parent ed39e49 commit 08d6f4cdf1d873f94df054506498915402ce4d78
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'charleston';
@@ -62,7 +63,7 @@
[-80.01, 32.73]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'fortlauderdale';
@@ -62,7 +63,7 @@
[-80.50, 26.01]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'jacksonville';
@@ -62,7 +63,7 @@
[-81.82, 30.14]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -264,7 +264,7 @@ map.on('style.load', function (e) {
tempObj.geometry = glFeatures[0].geometry;
tempObj.properties = glFeatures[0].properties;
tempObj.properties['is_flooded'] = true;
tempObj.properties['timestamp'] = (new Date()).toJSON();
tempObj.properties['timestamp'] = moment().toISOString();
$('#map').toggleClass('loading');
var id = md5(JSON.stringify(tempObj));
tempObj.id = id;
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'learn';
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'miami';
@@ -62,7 +63,7 @@
[-80.70, 25.32]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'orlando';
@@ -62,7 +63,7 @@
[-81.74, 28.23]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'palmbeach';
@@ -62,7 +63,7 @@
[-80.24, 26.32]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'savannah';
@@ -62,7 +63,7 @@
[-81.29, 31.93]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'tallahassee';
@@ -62,7 +63,7 @@
[-84.40, 30.36]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
View
@@ -52,6 +52,7 @@
<script src='../js/lib/jquery-3.2.1.min.js'></script>
<script src='../js/lib/md5.min.js'></script>
<script src='../js/lib/moment.min.js'></script>
<script src='../js/mapbox-gl-js-common.js'></script>
<script>
var LOCALE = 'tampa';
@@ -62,7 +63,7 @@
[-83.02, 27.18]
];
</script>
<script type="text/javascript" src="../js/floodmap.js"></script>
<script src='../js/floodmap.js'></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

0 comments on commit 08d6f4c

Please sign in to comment.