$(document).ready(function(){getLocation();$(window).on("load",function(){getIconsPlay(),setTimeout(function(){$("#preloader").velocity({opacity:.1,translateY:"-80px"},{duration:400,complete:function(){$("#hola").velocity({translateY:"-100%"},{duration:1e3,easing:[.7,0,.3,1],complete:function(){}})}})},1e3)})});function getFormattedAddress(a){var b=[["house_number","street_number"],["house","building","public_building"],["road","footway","street","street_name","residential","path","pedestrian","road_reference","road_reference_intl"],["village","hamlet","locality"],["neighbourhood","suburb","city_district"],["city","town"],["county","local_administrative_area","county_code"],["state","province","state_code"],["country","country_name"]],c={};b=b.reverse();var d=1;return b.forEach(function(b,e){e++;for(var f,g=0;g

"+ddday+"

"+summary+"

"+temper+"

"+ddday+"

"+summary+"

"+mintemper+"

"+humidty+"

"+windspid+"

").addClass("animated pulse")}function htmlCurrentWeather(){$(".currentWeather").html("

Current Weather

"+PlaceName+"

"+currTemp+"

"+summaryDay+"

").addClass("animated pulse")}$(".cityVal").keyup(function(a){13==a.keyCode&&$(".getCity").click();var b=$(this);b.next("span").toggle(!!b.val())}),$("#searchclear").hide($(this).prev(".cityVal").val()),$("#searchclear").on("click",function(){$(this).prev(".cityVal").val("").focus(),$(this).hide()});function getMapPlace(){var a={center:new google.maps.LatLng(lati,longt),zoom:15,mapTypeId:google.maps.MapTypeId.ROADMAP},b=new google.maps.InfoWindow,c=new google.maps.LatLngBounds,d=new google.maps.Map(document.getElementById("dvMap"),a);navigator.geolocation.getCurrentPosition(function(){var a=new google.maps.LatLng(lati,longt),b=new google.maps.Marker({position:a,title:"Your Location",draggable:!0,map:d}),c=new google.maps.InfoWindow({content:"
300px wide infowindow! if the mouse is not here, will close after 3 seconds
"});google.maps.event.addListener(b,"dragend",function(){c.open(d,b),d.setCenter(b.getPosition())}),google.maps.event.addListener(b,"mouseover",function(){c.open(d,b)}),google.maps.event.addListener(b,"mouseout",function(){t=setTimeout(function(){c.close()},3e3)}),google.maps.event.addListener(c,"domready",function(){$("#infodiv").on("mouseenter",function(){clearTimeout(t)}).on("mouseleave",function(){t=setTimeout(function(){c.close()},1e3)})}),d.setCenter(b.getPosition())}),$(window).on("resize",function(){var a=d.getCenter();google.maps.event.trigger(d,"resize"),d.setCenter(a)})}function getLocation(){navigator.geolocation?navigator.geolocation.getCurrentPosition(showPosition):console.log("Geolocation is not supported by this browser.")}(function(){[].slice.call(document.querySelectorAll(".checkout")).forEach(function(a){var b=a.querySelector(".checkout__button"),c=a.querySelector(".checkout__cancel");b.addEventListener("click",function(b){b.preventDefault(),classie.add(a,"checkout--active")}),c.addEventListener("click",function(){classie.remove(a,"checkout--active")})})})(),$().ready(function(){$("[rel=\"tooltip\"]").tooltip()});function rotateCard(a){var b=$(a).closest(".card-container");console.log(b),b.hasClass("hover")?b.removeClass("hover"):b.addClass("hover")}(function(a){"use strict";function b(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function c(a,b){var c=d(a,b)?f:e;c(a,b)}var d,e,f;"classList"in document.documentElement?(d=function(a,b){return a.classList.contains(b)},e=function(a,b){a.classList.add(b)},f=function(a,b){a.classList.remove(b)}):(d=function(a,d){return b(d).test(a.className)},e=function(a,b){d(a,b)||(a.className=a.className+" "+b)},f=function(a,d){a.className=a.className.replace(b(d)," ")});var g={hasClass:d,addClass:e,removeClass:f,toggleClass:c,has:d,add:e,remove:f,toggle:c};"function"==typeof define&&define.amd?define(g):a.classie=g})(window),$(".color-tool li a").on("click",function(){var a=$(this).data("color");$("body").css("background",a)});function toCelsius(a){return 5/9*(a-32)}function toPercent(a){return(100*a).toFixed(0)+"%"}function toKPH(a){return(1.609344*a).toFixed(2)}