Changeset 2932947
- Timestamp:
- 07/01/2023 07:01:41 PM (3 years ago)
- Location:
- planetary-position
- Files:
-
- 10 edited
-
tags/1.5/README.txt (modified) (1 diff)
-
tags/1.5/views/admin.php (modified) (4 diffs)
-
tags/1.5/widgets/load.js (modified) (7 diffs)
-
tags/1.5/widgets/planetary-position-widget.php (modified) (1 diff)
-
tags/1.5/widgets/rasi-style.css (modified) (2 diffs)
-
trunk/README.txt (modified) (1 diff)
-
trunk/views/admin.php (modified) (4 diffs)
-
trunk/widgets/load.js (modified) (7 diffs)
-
trunk/widgets/planetary-position-widget.php (modified) (1 diff)
-
trunk/widgets/rasi-style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
planetary-position/tags/1.5/README.txt
r2932826 r2932947 43 43 == Changelog == 44 44 = 1.5 = 45 Fixed shortcode bug 45 Fixed shortcode bug and added Ayanamsa option 46 46 = 1.4 = 47 47 Fixed various bugs and added 4 different selections to display -
planetary-position/tags/1.5/views/admin.php
r2932826 r2932947 15 15 @update_option("pp_showMoon", filter_var($_POST['pp_showMoon'], FILTER_VALIDATE_BOOLEAN)); 16 16 @update_option("pp_showWheels", filter_var($_POST['pp_showWheels'], FILTER_VALIDATE_BOOLEAN)); 17 @update_option("pp_ayan", $_POST['pp_ayan']); 17 18 } 18 19 ?> … … 23 24 24 25 <form name="pp_form" action="" method="post"> 25 <div id="poststuff" class="ui-sortable">26 <div> 26 27 <label>Show Panchang Details <input type="checkbox" name="pp_showPanchang" id="pp_showPanchang" <?php echo (get_option('pp_showPanchang')) ? ' checked="checked"' : '' ?> /></label><br/> 27 28 <label>Show Planetary Position Table <input type="checkbox" name="pp_showTable" id="pp_showTable" <?php echo (get_option('pp_showTable')) ? ' checked="checked"' : '' ?> /></label><br/> … … 29 30 <label>Show Moon Phase <input type="checkbox" name="pp_showMoon" id="pp_showMoon" <?php echo (get_option('pp_showMoon')) ? ' checked="checked"' : '' ?> /></label> 30 31 </div> 31 <?php submit_button( __( 'Save Changes', 'planetary-position' ) ); ?> 32 <div ><label>Ayanmsa (leave as is if unsure):</label> 33 <select id="pp_ayan" name="pp_ayan" style="width: 11em;"> 34 <option value="0" <?php $_POST['pp_ayan'] == 0 ? print ' selected="selected"' : print ''; ?>>Fagan/Bradley</option> 35 <option value="1" <?php $_POST['pp_ayan'] == 1 ? print ' selected="selected"' : print ''; ?>>Lahiri</option> 36 <option value="2" <?php $_POST['pp_ayan'] == 2 ? print ' selected="selected"' : print ''; ?>>True Chitrapaksha</option> 37 <option value="3" <?php $_POST['pp_ayan'] == 3 ? print ' selected="selected"' : print ''; ?>>True Revati</option> 38 <option value="4" <?php $_POST['pp_ayan'] == 4 ? print ' selected="selected"' : print ''; ?>>True Pushya</option> 39 <option value="5" <?php $_POST['pp_ayan'] == 5 ? print ' selected="selected"' : print ''; ?>>True Mula</option> 40 <option value="6" <?php $_POST['pp_ayan'] == 6 ? print ' selected="selected"' : print ''; ?>>Galactic Center at 0 Sag</option> 41 <option value="7" <?php $_POST['pp_ayan'] == 7 ? print ' selected="selected"' : print ''; ?>>De Luce</option> 42 <option value="8" <?php $_POST['pp_ayan'] == 8 ? print ' selected="selected"' : print ''; ?>>Raman</option> 43 <option value="9" <?php $_POST['pp_ayan'] == 9 ? print ' selected="selected"' : print ''; ?>>Ushashashi</option> 44 <option value="10" <?php $_POST['pp_ayan'] == 10 ? print ' selected="selected"' : print ''; ?>>Krishnamurti</option> 45 <option value="11" <?php $_POST['pp_ayan'] == 11 ? print ' selected="selected"' : print ''; ?>>Djwhal Khul</option> 46 <option value="12" <?php $_POST['pp_ayan'] == 12 ? print ' selected="selected"' : print ''; ?>>Yukteshwar</option> 47 <option value="13" <?php $_POST['pp_ayan'] == 13 ? print ' selected="selected"' : print ''; ?>>J N Bhasin</option> 48 <option value="14" <?php $_POST['pp_ayan'] == 14 ? print ' selected="selected"' : print ''; ?>>Babylon/Kugler 1</option> 49 <option value="15" <?php $_POST['pp_ayan'] == 15 ? print ' selected="selected"' : print ''; ?>>Babylon/Kugler 2</option> 50 <option value="16" <?php $_POST['pp_ayan'] == 16 ? print ' selected="selected"' : print ''; ?>>Babylon/Kugler 3</option> 51 <option value="17" <?php $_POST['pp_ayan'] == 17 ? print ' selected="selected"' : print ''; ?>>Babylon/Huber</option> 52 <option value="18" <?php $_POST['pp_ayan'] == 18 ? print ' selected="selected"' : print ''; ?>>Babylon/Eta Piscium</option> 53 <option value="19" <?php $_POST['pp_ayan'] == 19 ? print ' selected="selected"' : print ''; ?>>Babylon/Aldebaran</option> 54 <option value="20" <?php $_POST['pp_ayan'] == 20 ? print ' selected="selected"' : print ''; ?>>Hipparchos</option> 55 <option value="21" <?php $_POST['pp_ayan'] == 21 ? print ' selected="selected"' : print ''; ?>>Sassanian</option> 56 <option value="22" <?php $_POST['pp_ayan'] == 22 ? print ' selected="selected"' : print ''; ?>>J2000</option> 57 <option value="23" <?php $_POST['pp_ayan'] == 23 ? print ' selected="selected"' : print ''; ?>>J1900</option> 58 <option value="24" <?php $_POST['pp_ayan'] == 24 ? print ' selected="selected"' : print ''; ?>>B1950</option> 59 </select> 60 <?php submit_button( __( 'Save Changes', 'planetary-position' ) ); ?> 32 61 </form> 33 62 </div> <!-- .wrap --> … … 37 66 $showWheels = filter_var($_POST['pp_showWheels'],FILTER_VALIDATE_BOOLEAN); 38 67 $showMoon = filter_var($_POST['pp_showMoon'],FILTER_VALIDATE_BOOLEAN); 68 $ayan = $_POST['pp_ayan']; 39 69 update_option('pp_showPanchang', $showPanchang); 40 70 update_option('pp_showTable', $showTable); 41 71 update_option('pp_showWheels', $showWheels); 42 72 update_option('pp_showMoon', $showMoon); 73 update_option('pp_ayan', $ayan); 43 74 ?> -
planetary-position/tags/1.5/widgets/load.js
r2932826 r2932947 1224 1224 1225 1225 $const.date = remd; d= remd; 1226 var dj = -1; 1226 sel_ayan = document.getElementById('pp_ayan').value; 1227 var dj = ayan[sel_ayan][0]; 1227 1228 if (dj > -1) { 1228 var diffd1 = dj - $const.j2000; var diff3 = d.julian 1229 var diffd1 = dj - $const.j2000; var diff3 = d.julian; 1229 1230 var diffd2 = d.julian; 1230 1231 var xx = [ 1,0,0 ]; var yy = xx; … … 1232 1233 var dd = { julian: dj }; 1233 1234 var ddelta = $moshier.delta.calc (dd); 1235 if (ayan[sel_ayan][2]) { dd.julian = dd.julian + (ddelta/864.0); } 1234 1236 var dd2 = d; 1235 1237 var polar = []; var temp = []; var temp2 = []; 1236 1238 1237 $moshier.precess.calc(xx, dd2, 1 ); 1238 var res = $util.showrd (xx, polar ); 1239 var appGLon = polar[0]* $const.RTD; 1239 $moshier.precess.calc(xx, d, 1 ); 1240 1240 1241 1241 $moshier.precess.calc(xx, dd, -1 ); 1242 1242 $moshier.epsilon.calc ( dd ); 1243 1243 var res2 = $util.showrd (xx, temp ); 1244 var appG2Lon = temp[0] * $const.RTD; 1245 var ll = $moshier.lonlat.calc(xx, dd2, temp2, 0); 1246 1247 var corr_ayan = (360 + (ll[0]*$const.RTD) - ayan[sel_ayan][1] ) % 360.0; 1248 var dmsLongitude = $util.dms ($const.TPI - corr_ayan*$const.DTR); 1244 var ll = $moshier.lonlat.calc(xx, d, temp2, 0); 1245 ll[0] = 360- (ll[0]*$const.RTD - ayan[sel_ayan][1]) % 360; 1246 $moshier.nutation2.calclo(d); 1247 1248 var corr_ayan2 = (ayan[sel_ayan][1] ) % 360.0; 1249 var nn = $moshier.nutation2.nutl; 1250 ll[0] += nn*$const.RTD; 1251 var corr_ayan = -(ll[0]) % 360.0; 1252 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1249 1253 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1250 1254 1251 //console.log('ayan = ' + (string_ayan));1255 console.log('ayan = ' + (string_ayan)); 1252 1256 } else { 1253 $processor.init ();1257 // $processor.init (); 1254 1258 switch (dj) { 1255 1259 case -1: … … 1261 1265 var corr_ayan = -( spic ); 1262 1266 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1263 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor(dmsLongitude.seconds) + '"'; 1267 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1268 console.log('spica = ' + spic + ' ayan = ' + string_ayan); 1264 1269 break; 1265 1270 … … 1271 1276 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1272 1277 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1273 //console.log('revati = ' + spic + ' ayan = ' + string_ayan);1278 console.log('revati = ' + spic + ' ayan = ' + string_ayan); 1274 1279 break; 1275 1280 … … 1281 1286 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1282 1287 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1283 //console.log('pushya = ' + spic + ' ayan = ' + string_ayan);1288 console.log('pushya = ' + spic + ' ayan = ' + string_ayan); 1284 1289 break; 1285 1290 … … 1291 1296 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1292 1297 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1293 //console.log('mula = ' + spic + ' ayan = ' + string_ayan);1298 console.log('mula = ' + spic + ' ayan = ' + string_ayan); 1294 1299 break; 1295 1300 … … 1301 1306 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1302 1307 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1303 //console.log('0Sag = ' + spic + ' ayan = ' + string_ayan);1308 console.log('0Sag = ' + spic + ' ayan = ' + string_ayan); 1304 1309 break; 1305 1310 } 1306 1311 } 1307 1308 1312 1309 1313 -
planetary-position/tags/1.5/widgets/planetary-position-widget.php
r2932830 r2932947 49 49 <input class="pp_showWheels" id="pp_showWheels" type="hidden" value="<?php echo esc_attr(get_option( 'pp_showWheels' )); ?>" /> 50 50 <input class="pp_showMoon" id="pp_showMoon" type="hidden" value="<?php echo esc_attr(get_option( 'pp_showMoon' )); ?>" /> 51 <input class="pp_ayan" id="pp_ayan" type="hidden" value="<?php echo esc_attr(get_option( 'pp_ayan' )); ?>" /> 51 52 <input class="pluginUrl" id="pluginUrl" type="hidden" value="<?php echo esc_url(plugin_dir_url( __FILE__ )); ?>" /> 52 53 -
planetary-position/tags/1.5/widgets/rasi-style.css
r2932826 r2932947 21 21 22 22 #rasi table,#rasi th,#rasi td {border:1px solid #c0c0c0;} 23 #chart table,#chart th,#chart td {border:none;padding: 0; margin:0; font-size:0. 7em; }23 #chart table,#chart th,#chart td {border:none;padding: 0; margin:0; font-size:0.8em; } 24 24 #rasi #tropic { width: 100%; background: rgba(220,210,200,0.1); } 25 25 #rasi h4 { text-align:center; } … … 27 27 #rasi #tropic tr { line-height: 1.1em; } 28 28 #rasi #tropic th:nth-child(1) { width: 20%; text-align:center; } 29 #rasi #tropic td:nth-child(1) { text-align:center; font-size:0. 7em;}29 #rasi #tropic td:nth-child(1) { text-align:center; font-size:0.8em;} 30 30 #rasi #tropic th:nth-child(2) { width: 30%; } 31 #rasi #tropic td:nth-child(2) { font-family: monospace,mono!important; font-size:0. 7em; }31 #rasi #tropic td:nth-child(2) { font-family: monospace,mono!important; font-size:0.8em; } 32 32 #rasi #tropic th:nth-child(3) { width: 30%; } 33 #rasi #tropic td:nth-child(3) { font-family: monospace,mono!important; font-size:0. 7em; }33 #rasi #tropic td:nth-child(3) { font-family: monospace,mono!important; font-size:0.8em; } 34 34 #rasi #tropic th:nth-child(4) { width: 20%; } 35 #rasi #tropic td:nth-child(4) { width: 20%; font-size:0. 7em; }35 #rasi #tropic td:nth-child(4) { width: 20%; font-size:0.8em; } 36 36 #rasi #tropic tr:nth-child(even) {background: rgba(255,255,255,0.4); } 37 37 #rasi #tropic tr:nth-child(odd) {background: rgba(255,255,255,0.1); } -
planetary-position/trunk/README.txt
r2932827 r2932947 43 43 == Changelog == 44 44 = 1.5 = 45 Fixed shortcode bug 45 Fixed shortcode bug and added Ayanamsa option 46 46 = 1.4 = 47 47 Fixed various bugs and added 4 different selections to display -
planetary-position/trunk/views/admin.php
r2910312 r2932947 15 15 @update_option("pp_showMoon", filter_var($_POST['pp_showMoon'], FILTER_VALIDATE_BOOLEAN)); 16 16 @update_option("pp_showWheels", filter_var($_POST['pp_showWheels'], FILTER_VALIDATE_BOOLEAN)); 17 @update_option("pp_ayan", $_POST['pp_ayan']); 17 18 } 18 19 ?> … … 23 24 24 25 <form name="pp_form" action="" method="post"> 25 <div id="poststuff" class="ui-sortable">26 <div> 26 27 <label>Show Panchang Details <input type="checkbox" name="pp_showPanchang" id="pp_showPanchang" <?php echo (get_option('pp_showPanchang')) ? ' checked="checked"' : '' ?> /></label><br/> 27 28 <label>Show Planetary Position Table <input type="checkbox" name="pp_showTable" id="pp_showTable" <?php echo (get_option('pp_showTable')) ? ' checked="checked"' : '' ?> /></label><br/> … … 29 30 <label>Show Moon Phase <input type="checkbox" name="pp_showMoon" id="pp_showMoon" <?php echo (get_option('pp_showMoon')) ? ' checked="checked"' : '' ?> /></label> 30 31 </div> 31 <?php submit_button( __( 'Save Changes', 'planetary-position' ) ); ?> 32 <div ><label>Ayanmsa (leave as is if unsure):</label> 33 <select id="pp_ayan" name="pp_ayan" style="width: 11em;"> 34 <option value="0" <?php $_POST['pp_ayan'] == 0 ? print ' selected="selected"' : print ''; ?>>Fagan/Bradley</option> 35 <option value="1" <?php $_POST['pp_ayan'] == 1 ? print ' selected="selected"' : print ''; ?>>Lahiri</option> 36 <option value="2" <?php $_POST['pp_ayan'] == 2 ? print ' selected="selected"' : print ''; ?>>True Chitrapaksha</option> 37 <option value="3" <?php $_POST['pp_ayan'] == 3 ? print ' selected="selected"' : print ''; ?>>True Revati</option> 38 <option value="4" <?php $_POST['pp_ayan'] == 4 ? print ' selected="selected"' : print ''; ?>>True Pushya</option> 39 <option value="5" <?php $_POST['pp_ayan'] == 5 ? print ' selected="selected"' : print ''; ?>>True Mula</option> 40 <option value="6" <?php $_POST['pp_ayan'] == 6 ? print ' selected="selected"' : print ''; ?>>Galactic Center at 0 Sag</option> 41 <option value="7" <?php $_POST['pp_ayan'] == 7 ? print ' selected="selected"' : print ''; ?>>De Luce</option> 42 <option value="8" <?php $_POST['pp_ayan'] == 8 ? print ' selected="selected"' : print ''; ?>>Raman</option> 43 <option value="9" <?php $_POST['pp_ayan'] == 9 ? print ' selected="selected"' : print ''; ?>>Ushashashi</option> 44 <option value="10" <?php $_POST['pp_ayan'] == 10 ? print ' selected="selected"' : print ''; ?>>Krishnamurti</option> 45 <option value="11" <?php $_POST['pp_ayan'] == 11 ? print ' selected="selected"' : print ''; ?>>Djwhal Khul</option> 46 <option value="12" <?php $_POST['pp_ayan'] == 12 ? print ' selected="selected"' : print ''; ?>>Yukteshwar</option> 47 <option value="13" <?php $_POST['pp_ayan'] == 13 ? print ' selected="selected"' : print ''; ?>>J N Bhasin</option> 48 <option value="14" <?php $_POST['pp_ayan'] == 14 ? print ' selected="selected"' : print ''; ?>>Babylon/Kugler 1</option> 49 <option value="15" <?php $_POST['pp_ayan'] == 15 ? print ' selected="selected"' : print ''; ?>>Babylon/Kugler 2</option> 50 <option value="16" <?php $_POST['pp_ayan'] == 16 ? print ' selected="selected"' : print ''; ?>>Babylon/Kugler 3</option> 51 <option value="17" <?php $_POST['pp_ayan'] == 17 ? print ' selected="selected"' : print ''; ?>>Babylon/Huber</option> 52 <option value="18" <?php $_POST['pp_ayan'] == 18 ? print ' selected="selected"' : print ''; ?>>Babylon/Eta Piscium</option> 53 <option value="19" <?php $_POST['pp_ayan'] == 19 ? print ' selected="selected"' : print ''; ?>>Babylon/Aldebaran</option> 54 <option value="20" <?php $_POST['pp_ayan'] == 20 ? print ' selected="selected"' : print ''; ?>>Hipparchos</option> 55 <option value="21" <?php $_POST['pp_ayan'] == 21 ? print ' selected="selected"' : print ''; ?>>Sassanian</option> 56 <option value="22" <?php $_POST['pp_ayan'] == 22 ? print ' selected="selected"' : print ''; ?>>J2000</option> 57 <option value="23" <?php $_POST['pp_ayan'] == 23 ? print ' selected="selected"' : print ''; ?>>J1900</option> 58 <option value="24" <?php $_POST['pp_ayan'] == 24 ? print ' selected="selected"' : print ''; ?>>B1950</option> 59 </select> 60 <?php submit_button( __( 'Save Changes', 'planetary-position' ) ); ?> 32 61 </form> 33 62 </div> <!-- .wrap --> … … 37 66 $showWheels = filter_var($_POST['pp_showWheels'],FILTER_VALIDATE_BOOLEAN); 38 67 $showMoon = filter_var($_POST['pp_showMoon'],FILTER_VALIDATE_BOOLEAN); 68 $ayan = $_POST['pp_ayan']; 39 69 update_option('pp_showPanchang', $showPanchang); 40 70 update_option('pp_showTable', $showTable); 41 71 update_option('pp_showWheels', $showWheels); 42 72 update_option('pp_showMoon', $showMoon); 73 update_option('pp_ayan', $ayan); 43 74 ?> -
planetary-position/trunk/widgets/load.js
r2910342 r2932947 1224 1224 1225 1225 $const.date = remd; d= remd; 1226 var dj = -1; 1226 sel_ayan = document.getElementById('pp_ayan').value; 1227 var dj = ayan[sel_ayan][0]; 1227 1228 if (dj > -1) { 1228 var diffd1 = dj - $const.j2000; var diff3 = d.julian 1229 var diffd1 = dj - $const.j2000; var diff3 = d.julian; 1229 1230 var diffd2 = d.julian; 1230 1231 var xx = [ 1,0,0 ]; var yy = xx; … … 1232 1233 var dd = { julian: dj }; 1233 1234 var ddelta = $moshier.delta.calc (dd); 1235 if (ayan[sel_ayan][2]) { dd.julian = dd.julian + (ddelta/864.0); } 1234 1236 var dd2 = d; 1235 1237 var polar = []; var temp = []; var temp2 = []; 1236 1238 1237 $moshier.precess.calc(xx, dd2, 1 ); 1238 var res = $util.showrd (xx, polar ); 1239 var appGLon = polar[0]* $const.RTD; 1239 $moshier.precess.calc(xx, d, 1 ); 1240 1240 1241 1241 $moshier.precess.calc(xx, dd, -1 ); 1242 1242 $moshier.epsilon.calc ( dd ); 1243 1243 var res2 = $util.showrd (xx, temp ); 1244 var appG2Lon = temp[0] * $const.RTD; 1245 var ll = $moshier.lonlat.calc(xx, dd2, temp2, 0); 1246 1247 var corr_ayan = (360 + (ll[0]*$const.RTD) - ayan[sel_ayan][1] ) % 360.0; 1248 var dmsLongitude = $util.dms ($const.TPI - corr_ayan*$const.DTR); 1244 var ll = $moshier.lonlat.calc(xx, d, temp2, 0); 1245 ll[0] = 360- (ll[0]*$const.RTD - ayan[sel_ayan][1]) % 360; 1246 $moshier.nutation2.calclo(d); 1247 1248 var corr_ayan2 = (ayan[sel_ayan][1] ) % 360.0; 1249 var nn = $moshier.nutation2.nutl; 1250 ll[0] += nn*$const.RTD; 1251 var corr_ayan = -(ll[0]) % 360.0; 1252 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1249 1253 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1250 1254 1251 //console.log('ayan = ' + (string_ayan));1255 console.log('ayan = ' + (string_ayan)); 1252 1256 } else { 1253 $processor.init ();1257 // $processor.init (); 1254 1258 switch (dj) { 1255 1259 case -1: … … 1261 1265 var corr_ayan = -( spic ); 1262 1266 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1263 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor(dmsLongitude.seconds) + '"'; 1267 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1268 console.log('spica = ' + spic + ' ayan = ' + string_ayan); 1264 1269 break; 1265 1270 … … 1271 1276 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1272 1277 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1273 //console.log('revati = ' + spic + ' ayan = ' + string_ayan);1278 console.log('revati = ' + spic + ' ayan = ' + string_ayan); 1274 1279 break; 1275 1280 … … 1281 1286 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1282 1287 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1283 //console.log('pushya = ' + spic + ' ayan = ' + string_ayan);1288 console.log('pushya = ' + spic + ' ayan = ' + string_ayan); 1284 1289 break; 1285 1290 … … 1291 1296 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1292 1297 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1293 //console.log('mula = ' + spic + ' ayan = ' + string_ayan);1298 console.log('mula = ' + spic + ' ayan = ' + string_ayan); 1294 1299 break; 1295 1300 … … 1301 1306 var dmsLongitude = $util.dms (corr_ayan*$const.DTR); 1302 1307 var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"'; 1303 //console.log('0Sag = ' + spic + ' ayan = ' + string_ayan);1308 console.log('0Sag = ' + spic + ' ayan = ' + string_ayan); 1304 1309 break; 1305 1310 } 1306 1311 } 1307 1308 1312 1309 1313 -
planetary-position/trunk/widgets/planetary-position-widget.php
r2932829 r2932947 49 49 <input class="pp_showWheels" id="pp_showWheels" type="hidden" value="<?php echo esc_attr(get_option( 'pp_showWheels' )); ?>" /> 50 50 <input class="pp_showMoon" id="pp_showMoon" type="hidden" value="<?php echo esc_attr(get_option( 'pp_showMoon' )); ?>" /> 51 <input class="pp_ayan" id="pp_ayan" type="hidden" value="<?php echo esc_attr(get_option( 'pp_ayan' )); ?>" /> 51 52 <input class="pluginUrl" id="pluginUrl" type="hidden" value="<?php echo esc_url(plugin_dir_url( __FILE__ )); ?>" /> 52 53 -
planetary-position/trunk/widgets/rasi-style.css
r2912008 r2932947 21 21 22 22 #rasi table,#rasi th,#rasi td {border:1px solid #c0c0c0;} 23 #chart table,#chart th,#chart td {border:none;padding: 0; margin:0; font-size:0. 7em; }23 #chart table,#chart th,#chart td {border:none;padding: 0; margin:0; font-size:0.8em; } 24 24 #rasi #tropic { width: 100%; background: rgba(220,210,200,0.1); } 25 25 #rasi h4 { text-align:center; } … … 27 27 #rasi #tropic tr { line-height: 1.1em; } 28 28 #rasi #tropic th:nth-child(1) { width: 20%; text-align:center; } 29 #rasi #tropic td:nth-child(1) { text-align:center; font-size:0. 7em;}29 #rasi #tropic td:nth-child(1) { text-align:center; font-size:0.8em;} 30 30 #rasi #tropic th:nth-child(2) { width: 30%; } 31 #rasi #tropic td:nth-child(2) { font-family: monospace,mono!important; font-size:0. 7em; }31 #rasi #tropic td:nth-child(2) { font-family: monospace,mono!important; font-size:0.8em; } 32 32 #rasi #tropic th:nth-child(3) { width: 30%; } 33 #rasi #tropic td:nth-child(3) { font-family: monospace,mono!important; font-size:0. 7em; }33 #rasi #tropic td:nth-child(3) { font-family: monospace,mono!important; font-size:0.8em; } 34 34 #rasi #tropic th:nth-child(4) { width: 20%; } 35 #rasi #tropic td:nth-child(4) { width: 20%; font-size:0. 7em; }35 #rasi #tropic td:nth-child(4) { width: 20%; font-size:0.8em; } 36 36 #rasi #tropic tr:nth-child(even) {background: rgba(255,255,255,0.4); } 37 37 #rasi #tropic tr:nth-child(odd) {background: rgba(255,255,255,0.1); }
Note: See TracChangeset
for help on using the changeset viewer.