silvrgit/app/js/clockv2.js

24 lines
557 B
JavaScript
Raw Normal View History

2016-10-05 14:08:57 +00:00
/**
*
* 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);