diff --git a/SJPv6/www/SJP.html b/SJPv6/www/SJP.html index b64a44a..5f2eb36 100644 --- a/SJPv6/www/SJP.html +++ b/SJPv6/www/SJP.html @@ -30,14 +30,14 @@
Panchanga and Chart for
"+
"
"+
" Name: "+params["chartname"]+"
"+
- " DateTime dd/mm/yyyy: "+params["day"]+"/"+params["month"]+"/"+params["year"]+" "+params["hours"]+":"+("0"+params["mins"]).slice(-2)+":"+("0"+params["secs"]).slice(-2)+"
"+
+ " DateTime dd/mm/yyyy: "+params["day"]+"/"+params["month"]+"/"+params["year"]+" "+params["btime"]+"
"+
//" Time: "+params["hours"]+":"+("0"+params["mins"]).slice(-2)+":"+("0"+params["secs"]).slice(-2)+"
"+
" Timezone: "+params["timezone"]+"
"+
" Latitude, Longitude: "+parseFloat(params["latitude"]).toFixed(6)+","+parseFloat(params["longitude"]).toFixed(6)+"
"+
@@ -1685,19 +1687,19 @@ function init(){
initCurrentHMSDMY();
var tstring=formatTimeSS(today);
if(params["day"]!==undefined){
- formids=["hours","mins","secs","day","month","year"];
+ formids=["day","month","year"];
formids.forEach(setParams2FormValue);
}
document.getElementById("btime").value= params['btime']===undefined?tstring:params['btime'];
- if(params["day"]!==undefined){
- bdate.setHours(document.getElementById("hours").value);
- bdate.setMinutes(document.getElementById("mins").value);
- bdate.setSeconds(document.getElementById("secs").value);
- var date= bdate;
- }else{
+ //if(params["day"]!==undefined){
+ // bdate.setHours(document.getElementById("hours").value);
+ // bdate.setMinutes(document.getElementById("mins").value);
+ //bdate.setSeconds(document.getElementById("secs").value);
+ //var date= bdate;
+ //}else{
//var date= new Date(document.getElementById("bdate").value+" "+document.getElementById("btime").value);
- }
+ //}
document.getElementById("chartname").value = params['chartname']===undefined?"Prashna":params['chartname'];
document.getElementById("timezone").value = params['chartname']===undefined?-1*today.getTimezoneOffset()/60:params['timezone'];
document.getElementById('longitude').value = params["longitude"]===undefined?getCookie('longitude'):params["longitude"];
@@ -1754,9 +1756,9 @@ function ParseJHD(){
document.getElementById("month").value=lines[0];
document.getElementById("day").value=lines[1];
document.getElementById("year").value=lines[2];
- document.getElementById("hours").value=time[0];
- document.getElementById("mins").value=time[1].slice(0,2);
- document.getElementById("secs").value=Math.round(time[1].slice(2,5)*60/1000);
+ //document.getElementById("hours").value=time[0];
+ //document.getElementById("mins").value=time[1].slice(0,2);
+ //document.getElementById("secs").value=Math.round(time[1].slice(2,5)*60/1000);
tz=JHDtz2Dec(lines[4]);
document.getElementById("timezone").value = tz;//lines[4];//*-1//tzone[0]+"."+tzone[1];
var l = lines[5].split(".");