silvrgit/app/js/clockv2.js
Martin Donnelly b945f54fd0 Clock
2016-10-05 15:08:57 +01:00

24 lines
557 B
JavaScript

/**
*
* User: Martin Donnelly
* Date: 2016-08-01
* Time: 16:33
*
*/
(function($) {
var skycons = new Skycons({"color": "#dcecff"});
this.clock = new Clock({model: new ClockModel()});
navigator.geolocation.getCurrentPosition(function(position) {
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
self.weather = new Weather({model: new WeatherModel({lat: latitude, long: longitude})});
},
function(e) {console.error(e.code + ' / ' + e.message);});
})(jQuery);