From d939c3672b41b5693968b60fadb7499a05437ead Mon Sep 17 00:00:00 2001 From: SanjayPrabhakaran Date: Wed, 5 Jun 2024 18:55:34 +0530 Subject: [PATCH] table border, lat long with white space --- SJPv6/www/SJP.html | 24 ++++++++++++------------ SJPv6/www/sjp.js | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/SJPv6/www/SJP.html b/SJPv6/www/SJP.html index de6762b..d528952 100644 --- a/SJPv6/www/SJP.html +++ b/SJPv6/www/SJP.html @@ -10,7 +10,7 @@
- +
- - - + - - -
Chart Name: @@ -29,7 +29,7 @@
+ Day: Month: @@ -42,40 +42,40 @@
Time Zone: (In Decimals. Use -ve value for west of UT) + Time Zone:In Decimals. Use -ve value for west of UT
Place Name:Place Name:
Latitude: + Latitude:South -ve/North +ve - South -ve/North +ve +
- Longitude: + + Longitude:East +ve/West -ve - East +ve/West -ve +
- JHD Text: + + JHD File Text: -
(Note JHD file has longitude signs reversed)
+
diff --git a/SJPv6/www/sjp.js b/SJPv6/www/sjp.js index 1369292..f4e4482 100644 --- a/SJPv6/www/sjp.js +++ b/SJPv6/www/sjp.js @@ -240,8 +240,8 @@ lat,long = 39n17, 76w37; */ let location=[null,null]; //Function return object let text= s.toUpperCase(); - let latitude = /(\d+)([nNsS])([\d\.]+)/gi; - let longitude = /(\d+)([eEwW])([\d\.]+)/gi; + let latitude = /(\d+)\s*([nNsS])\s*([\d\.]+)/gi; + let longitude = /(\d+)\s*([eEwW])\s*([\d\.]+)/gi; result = latitude.exec(text); if(result != null ){ lat=result[1]*1+result[3]/60;