Plugin Directory

Changeset 2932947


Ignore:
Timestamp:
07/01/2023 07:01:41 PM (3 years ago)
Author:
wsameer
Message:

Add ayanamsa option

Location:
planetary-position
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • planetary-position/tags/1.5/README.txt

    r2932826 r2932947  
    4343== Changelog ==
    4444= 1.5 =
    45 Fixed shortcode bug
     45Fixed shortcode bug and added Ayanamsa option
    4646= 1.4 =
    4747Fixed various bugs and added 4 different selections to display
  • planetary-position/tags/1.5/views/admin.php

    r2932826 r2932947  
    1515    @update_option("pp_showMoon", filter_var($_POST['pp_showMoon'], FILTER_VALIDATE_BOOLEAN));
    1616    @update_option("pp_showWheels", filter_var($_POST['pp_showWheels'], FILTER_VALIDATE_BOOLEAN));
     17    @update_option("pp_ayan", $_POST['pp_ayan']);
    1718}
    1819?>
     
    2324
    2425       <form name="pp_form" action="" method="post">
    25         <div id="poststuff" class="ui-sortable">
     26        <div>
    2627        <label>Show Panchang Details&nbsp;&nbsp;<input type="checkbox" name="pp_showPanchang" id="pp_showPanchang" <?php echo (get_option('pp_showPanchang')) ? ' checked="checked"' : '' ?> /></label><br/>
    2728        <label>Show Planetary Position Table&nbsp;&nbsp;<input type="checkbox" name="pp_showTable" id="pp_showTable" <?php echo (get_option('pp_showTable')) ? ' checked="checked"' : '' ?> /></label><br/>
     
    2930        <label>Show Moon Phase&nbsp;&nbsp;<input type="checkbox" name="pp_showMoon" id="pp_showMoon" <?php echo (get_option('pp_showMoon')) ? ' checked="checked"' : '' ?> /></label>
    3031        </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' ) ); ?>
    3261    </form>
    3362</div> <!-- .wrap -->
     
    3766$showWheels = filter_var($_POST['pp_showWheels'],FILTER_VALIDATE_BOOLEAN);
    3867$showMoon = filter_var($_POST['pp_showMoon'],FILTER_VALIDATE_BOOLEAN);
     68$ayan = $_POST['pp_ayan'];
    3969update_option('pp_showPanchang', $showPanchang);
    4070update_option('pp_showTable', $showTable);
    4171update_option('pp_showWheels', $showWheels);
    4272update_option('pp_showMoon', $showMoon);
     73update_option('pp_ayan', $ayan);
    4374?>
  • planetary-position/tags/1.5/widgets/load.js

    r2932826 r2932947  
    12241224
    12251225    $const.date = remd; d= remd;
    1226     var dj = -1;
     1226    sel_ayan = document.getElementById('pp_ayan').value;
     1227    var dj = ayan[sel_ayan][0];
    12271228if (dj > -1) {
    1228     var diffd1 =  dj - $const.j2000; var diff3 = d.julian
     1229    var diffd1 =  dj - $const.j2000; var diff3 = d.julian;
    12291230    var diffd2 = d.julian;
    12301231    var xx = [ 1,0,0 ];  var yy = xx;
     
    12321233    var dd = { julian: dj };
    12331234    var ddelta = $moshier.delta.calc (dd);
     1235    if (ayan[sel_ayan][2]) { dd.julian = dd.julian + (ddelta/864.0); }
    12341236    var dd2 = d;
    12351237    var polar = []; var temp = []; var temp2 = [];
    12361238
    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 );
    12401240   
    12411241    $moshier.precess.calc(xx, dd, -1 );
    12421242        $moshier.epsilon.calc ( dd );
    12431243    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);
    12491253    var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"';
    12501254
    1251 //  console.log('ayan = ' + (string_ayan));
     1255    console.log('ayan = ' + (string_ayan));
    12521256} else {
    1253     $processor.init ();
     1257//  $processor.init ();
    12541258    switch (dj) {
    12551259        case -1:
     
    12611265        var corr_ayan = -( spic );
    12621266        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);
    12641269        break;
    12651270
     
    12711276        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    12721277        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);
    12741279        break;
    12751280   
     
    12811286        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    12821287        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);
    12841289        break;
    12851290
     
    12911296        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    12921297        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);
    12941299        break;
    12951300
     
    13011306        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    13021307        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);
    13041309        break;
    13051310    }
    13061311}
    1307 
    13081312
    13091313
  • planetary-position/tags/1.5/widgets/planetary-position-widget.php

    r2932830 r2932947  
    4949<input class="pp_showWheels" id="pp_showWheels" type="hidden" value="<?php echo esc_attr(get_option( 'pp_showWheels' )); ?>" />
    5050<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' )); ?>" />
    5152<input class="pluginUrl" id="pluginUrl" type="hidden" value="<?php echo esc_url(plugin_dir_url( __FILE__ )); ?>" />
    5253
  • planetary-position/tags/1.5/widgets/rasi-style.css

    r2932826 r2932947  
    2121
    2222#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; }
    2424#rasi #tropic { width: 100%; background: rgba(220,210,200,0.1); }
    2525#rasi h4 { text-align:center; }
     
    2727#rasi #tropic tr { line-height: 1.1em; }
    2828#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;}
    3030#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; }
    3232#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; }
    3434#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; }
    3636#rasi #tropic tr:nth-child(even) {background: rgba(255,255,255,0.4); }
    3737#rasi #tropic tr:nth-child(odd) {background: rgba(255,255,255,0.1); }
  • planetary-position/trunk/README.txt

    r2932827 r2932947  
    4343== Changelog ==
    4444= 1.5 =
    45 Fixed shortcode bug
     45Fixed shortcode bug and added Ayanamsa option
    4646= 1.4 =
    4747Fixed various bugs and added 4 different selections to display
  • planetary-position/trunk/views/admin.php

    r2910312 r2932947  
    1515    @update_option("pp_showMoon", filter_var($_POST['pp_showMoon'], FILTER_VALIDATE_BOOLEAN));
    1616    @update_option("pp_showWheels", filter_var($_POST['pp_showWheels'], FILTER_VALIDATE_BOOLEAN));
     17    @update_option("pp_ayan", $_POST['pp_ayan']);
    1718}
    1819?>
     
    2324
    2425       <form name="pp_form" action="" method="post">
    25         <div id="poststuff" class="ui-sortable">
     26        <div>
    2627        <label>Show Panchang Details&nbsp;&nbsp;<input type="checkbox" name="pp_showPanchang" id="pp_showPanchang" <?php echo (get_option('pp_showPanchang')) ? ' checked="checked"' : '' ?> /></label><br/>
    2728        <label>Show Planetary Position Table&nbsp;&nbsp;<input type="checkbox" name="pp_showTable" id="pp_showTable" <?php echo (get_option('pp_showTable')) ? ' checked="checked"' : '' ?> /></label><br/>
     
    2930        <label>Show Moon Phase&nbsp;&nbsp;<input type="checkbox" name="pp_showMoon" id="pp_showMoon" <?php echo (get_option('pp_showMoon')) ? ' checked="checked"' : '' ?> /></label>
    3031        </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' ) ); ?>
    3261    </form>
    3362</div> <!-- .wrap -->
     
    3766$showWheels = filter_var($_POST['pp_showWheels'],FILTER_VALIDATE_BOOLEAN);
    3867$showMoon = filter_var($_POST['pp_showMoon'],FILTER_VALIDATE_BOOLEAN);
     68$ayan = $_POST['pp_ayan'];
    3969update_option('pp_showPanchang', $showPanchang);
    4070update_option('pp_showTable', $showTable);
    4171update_option('pp_showWheels', $showWheels);
    4272update_option('pp_showMoon', $showMoon);
     73update_option('pp_ayan', $ayan);
    4374?>
  • planetary-position/trunk/widgets/load.js

    r2910342 r2932947  
    12241224
    12251225    $const.date = remd; d= remd;
    1226     var dj = -1;
     1226    sel_ayan = document.getElementById('pp_ayan').value;
     1227    var dj = ayan[sel_ayan][0];
    12271228if (dj > -1) {
    1228     var diffd1 =  dj - $const.j2000; var diff3 = d.julian
     1229    var diffd1 =  dj - $const.j2000; var diff3 = d.julian;
    12291230    var diffd2 = d.julian;
    12301231    var xx = [ 1,0,0 ];  var yy = xx;
     
    12321233    var dd = { julian: dj };
    12331234    var ddelta = $moshier.delta.calc (dd);
     1235    if (ayan[sel_ayan][2]) { dd.julian = dd.julian + (ddelta/864.0); }
    12341236    var dd2 = d;
    12351237    var polar = []; var temp = []; var temp2 = [];
    12361238
    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 );
    12401240   
    12411241    $moshier.precess.calc(xx, dd, -1 );
    12421242        $moshier.epsilon.calc ( dd );
    12431243    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);
    12491253    var string_ayan = dmsLongitude.degree + '\u00B0' + dmsLongitude.minutes + '\'' + Math.floor (dmsLongitude.seconds) + '"';
    12501254
    1251 //  console.log('ayan = ' + (string_ayan));
     1255    console.log('ayan = ' + (string_ayan));
    12521256} else {
    1253     $processor.init ();
     1257//  $processor.init ();
    12541258    switch (dj) {
    12551259        case -1:
     
    12611265        var corr_ayan = -( spic );
    12621266        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);
    12641269        break;
    12651270
     
    12711276        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    12721277        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);
    12741279        break;
    12751280   
     
    12811286        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    12821287        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);
    12841289        break;
    12851290
     
    12911296        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    12921297        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);
    12941299        break;
    12951300
     
    13011306        var dmsLongitude = $util.dms (corr_ayan*$const.DTR);
    13021307        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);
    13041309        break;
    13051310    }
    13061311}
    1307 
    13081312
    13091313
  • planetary-position/trunk/widgets/planetary-position-widget.php

    r2932829 r2932947  
    4949<input class="pp_showWheels" id="pp_showWheels" type="hidden" value="<?php echo esc_attr(get_option( 'pp_showWheels' )); ?>" />
    5050<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' )); ?>" />
    5152<input class="pluginUrl" id="pluginUrl" type="hidden" value="<?php echo esc_url(plugin_dir_url( __FILE__ )); ?>" />
    5253
  • planetary-position/trunk/widgets/rasi-style.css

    r2912008 r2932947  
    2121
    2222#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; }
    2424#rasi #tropic { width: 100%; background: rgba(220,210,200,0.1); }
    2525#rasi h4 { text-align:center; }
     
    2727#rasi #tropic tr { line-height: 1.1em; }
    2828#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;}
    3030#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; }
    3232#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; }
    3434#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; }
    3636#rasi #tropic tr:nth-child(even) {background: rgba(255,255,255,0.4); }
    3737#rasi #tropic tr:nth-child(odd) {background: rgba(255,255,255,0.1); }
Note: See TracChangeset for help on using the changeset viewer.