[Solved] ” Missing ; before statement ” In a long code [closed]
I have updated the function… check now? navigator.geolocation.getCurrentPosition(function(position){ var long = position.coords.longitude; var lat = position.coords.latitude; var theDateC = new Date(); var D = (367*theDateC.getFullYear())-(parseInt((7/4)*(theDateC.getFullYear+parseInt((theDateC.getMonth()+9)/12))))+parseInt(275*(theDateC.getMonth()/9))+theDateC.getDate()-730531.5; var L = 280.461+0.9856474*D; var M = 357.528+0.9856003*D; var Lambda = L +1.915*Math.sin(M)+0.02*Math.sin(2*M); var Obliquity = 23.439-0.0000004*D; var Alpha = Math.atan (Math.cos(Obliquity)*Math.tan(Lambda)); Alpha = Alpha – (360 * parseInt(Alpha/360)); Alpha … Read more