Skip to content

Commit

Permalink
format date time etc
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayPrabhakaran committed Nov 30, 2023
1 parent 952c3da commit 11b8c66
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions SJPv6/www/sjp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1310,13 +1310,13 @@ function doForm(){//Checked
setCookie("placeslist",z,1000);
panchanga=getPanchanga(d,lon,lat);
s = "\n<p><b>Panchanga and Chart for </b> <br/>"+
"&emsp;<b>Name: </b>"+params["chartname"]+"<br/>"+
"&emsp;<b>Date dd/mm/yyyy: </b>"+params["day"]+"<b>/</b>"+params["month"]+"<b>/</b>"+params["year"]+"<br/>"+
"&emsp;<b>Time: </b>"+params["hours"]+"<b>:</b>"+params["mins"]+"<b>:</b>"+params["secs"]+"<br/>"+
"&emsp;<b>Longitude: </b>"+parseFloat(params["longitude"]).toFixed(4)+"<br/>"+
"&emsp;<b>Latitude: </b>"+parseFloat(params["latitude"]).toFixed(4)+"<br/>"+
"&emsp;<b>Timezone: </b>"+params["timezone"]+"<br/>"+
"<br/><br/>"+ panchanga.html;
"&emsp;Name: <b>"+params["chartname"]+"</b><br/>"+
"&emsp;Date dd/mm/yyyy: <b>"+params["day"]+"/"+params["month"]+"/"+params["year"]+"</b><br/>"+
"&emsp;Time: <b>"+params["hours"]+":"+params["mins"]+":"+params["secs"]+"</b><br/>"+
"&emsp;Longitude: <b>"+parseFloat(params["longitude"]).toFixed(4)+"</b><br/>"+
"&emsp;Latitude: <b>"+parseFloat(params["latitude"]).toFixed(4)+"</b><br/>"+
"&emsp;Timezone: <b>"+params["timezone"]+"</b><br/>"+
panchanga.html;
var editlink = "<a href="+window.location.href.replace("&submit=Calculate","")+"><strong>Change the Data</strong></a>";
document.write("<HTML><HEAD>"
+"<meta http-equiv='content-type' content='text/html; charset=utf-8' />"
Expand Down

0 comments on commit 11b8c66

Please sign in to comment.