Changeset 3308807
- Timestamp:
- 06/10/2025 12:57:03 AM (9 months ago)
- Location:
- codeart-units-converter
- Files:
-
- 12 deleted
- 13 edited
- 41 copied
-
tags/3.2.0 (copied) (copied from codeart-units-converter/trunk)
-
tags/3.2.0/admin/about.php (deleted)
-
tags/3.2.0/admin/admin.php (deleted)
-
tags/3.2.0/admin/edit-shortcode.php (copied) (copied from codeart-units-converter/trunk/admin/edit-shortcode.php)
-
tags/3.2.0/admin/include (deleted)
-
tags/3.2.0/admin/manage-shortcodes.php (copied) (copied from codeart-units-converter/trunk/admin/manage-shortcodes.php)
-
tags/3.2.0/admin/menus.php (copied) (copied from codeart-units-converter/trunk/admin/menus.php)
-
tags/3.2.0/admin/weight.php (deleted)
-
tags/3.2.0/admin/welcome.php (copied) (copied from codeart-units-converter/trunk/admin/welcome.php)
-
tags/3.2.0/codeart-units-converter.php (copied) (copied from codeart-units-converter/trunk/codeart-units-converter.php) (5 diffs)
-
tags/3.2.0/include/activate.php (deleted)
-
tags/3.2.0/include/ajax.php (deleted)
-
tags/3.2.0/include/calc (deleted)
-
tags/3.2.0/include/common.php (copied) (copied from codeart-units-converter/trunk/include/common.php) (1 diff)
-
tags/3.2.0/include/converter (copied) (copied from codeart-units-converter/trunk/include/converter)
-
tags/3.2.0/include/converter/angle (copied) (copied from codeart-units-converter/trunk/include/converter/angle)
-
tags/3.2.0/include/converter/area/area.php (copied) (copied from codeart-units-converter/trunk/include/converter/area/area.php)
-
tags/3.2.0/include/converter/convert.php (copied) (copied from codeart-units-converter/trunk/include/converter/convert.php) (2 diffs)
-
tags/3.2.0/include/converter/density (copied) (copied from codeart-units-converter/trunk/include/converter/density)
-
tags/3.2.0/include/converter/energy (copied) (copied from codeart-units-converter/trunk/include/converter/energy)
-
tags/3.2.0/include/converter/force (copied) (copied from codeart-units-converter/trunk/include/converter/force)
-
tags/3.2.0/include/converter/frequency (copied) (copied from codeart-units-converter/trunk/include/converter/frequency)
-
tags/3.2.0/include/converter/fuel-economy (copied) (copied from codeart-units-converter/trunk/include/converter/fuel-economy)
-
tags/3.2.0/include/converter/length (copied) (copied from codeart-units-converter/trunk/include/converter/length)
-
tags/3.2.0/include/converter/power (copied) (copied from codeart-units-converter/trunk/include/converter/power)
-
tags/3.2.0/include/converter/pressure (copied) (copied from codeart-units-converter/trunk/include/converter/pressure)
-
tags/3.2.0/include/converter/speed/speed.php (copied) (copied from codeart-units-converter/trunk/include/converter/speed/speed.php)
-
tags/3.2.0/include/converter/storage (copied) (copied from codeart-units-converter/trunk/include/converter/storage)
-
tags/3.2.0/include/converter/temperature (copied) (copied from codeart-units-converter/trunk/include/converter/temperature)
-
tags/3.2.0/include/converter/time (copied) (copied from codeart-units-converter/trunk/include/converter/time)
-
tags/3.2.0/include/converter/volume (copied) (copied from codeart-units-converter/trunk/include/converter/volume)
-
tags/3.2.0/include/converter/weight/weight.php (copied) (copied from codeart-units-converter/trunk/include/converter/weight/weight.php)
-
tags/3.2.0/include/deactivate.php (deleted)
-
tags/3.2.0/include/install (copied) (copied from codeart-units-converter/trunk/include/install)
-
tags/3.2.0/include/models/model-shortcodes.php (copied) (copied from codeart-units-converter/trunk/include/models/model-shortcodes.php)
-
tags/3.2.0/include/models/model-units.php (copied) (copied from codeart-units-converter/trunk/include/models/model-units.php)
-
tags/3.2.0/include/models/units.php (deleted)
-
tags/3.2.0/include/shortcodes.php (copied) (copied from codeart-units-converter/trunk/include/shortcodes.php)
-
tags/3.2.0/include/units-array (deleted)
-
tags/3.2.0/include/updates/list-updates.php (copied) (copied from codeart-units-converter/trunk/include/updates/list-updates.php)
-
tags/3.2.0/include/updates/update-2.0.0.php (copied) (copied from codeart-units-converter/trunk/include/updates/update-2.0.0.php)
-
tags/3.2.0/include/updates/update-2.2.0.php (copied) (copied from codeart-units-converter/trunk/include/updates/update-2.2.0.php)
-
tags/3.2.0/include/updates/update-2.3.0.php (copied) (copied from codeart-units-converter/trunk/include/updates/update-2.3.0.php)
-
tags/3.2.0/include/updates/update-2.7.0.php (copied) (copied from codeart-units-converter/trunk/include/updates/update-2.7.0.php)
-
tags/3.2.0/readme.txt (copied) (copied from codeart-units-converter/trunk/readme.txt) (1 diff)
-
tags/3.2.0/templates/admin/about.htm (deleted)
-
tags/3.2.0/templates/admin/edit-shortcode.htm (copied) (copied from codeart-units-converter/trunk/templates/admin/edit-shortcode.htm)
-
tags/3.2.0/templates/admin/manage-shortcodes.htm (copied) (copied from codeart-units-converter/trunk/templates/admin/manage-shortcodes.htm)
-
tags/3.2.0/templates/admin/welcome.htm (copied) (copied from codeart-units-converter/trunk/templates/admin/welcome.htm)
-
tags/3.2.0/templates/area.htm (modified) (18 diffs)
-
tags/3.2.0/templates/speed.htm (modified) (11 diffs)
-
tags/3.2.0/templates/user/units/list/container.htm (copied) (copied from codeart-units-converter/trunk/templates/user/units/list/container.htm)
-
tags/3.2.0/templates/user/units/list/item.htm (copied) (copied from codeart-units-converter/trunk/templates/user/units/list/item.htm)
-
tags/3.2.0/templates/user/units/table/container.htm (copied) (copied from codeart-units-converter/trunk/templates/user/units/table/container.htm) (1 diff)
-
tags/3.2.0/templates/user/units/table/item.htm (modified) (1 diff)
-
tags/3.2.0/templates/weight.htm (modified) (21 diffs)
-
tags/3.2.0/units (deleted)
-
trunk/codeart-units-converter.php (modified) (5 diffs)
-
trunk/include/common.php (modified) (1 diff)
-
trunk/include/converter/convert.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/templates/area.htm (modified) (18 diffs)
-
trunk/templates/speed.htm (modified) (11 diffs)
-
trunk/templates/user/units/table/container.htm (modified) (1 diff)
-
trunk/templates/user/units/table/item.htm (modified) (1 diff)
-
trunk/templates/weight.htm (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
codeart-units-converter/tags/3.2.0/codeart-units-converter.php
r3286853 r3308807 10 10 * Text Domain: codeart-units-converter 11 11 * Domain Path: /i18n/languages/ 12 * Version: 3. 1.112 * Version: 3.2.0 13 13 * Tested up to: 6.8.1 14 14 */ … … 19 19 } 20 20 21 $codeart_units_converter_version = '3. 1.1';21 $codeart_units_converter_version = '3.2.0'; 22 22 23 23 /** … … 91 91 add_action('wp_enqueue_scripts', 'codeart_units_converter_java_css_Func'); 92 92 93 94 // models 93 95 include_once plugin_dir_path(__FILE__) . 'include/models/model-units.php'; 94 96 include_once plugin_dir_path(__FILE__) . 'include/models/model-shortcodes.php'; … … 133 135 include_once plugin_dir_path(__FILE__) . 'include/converter/convert.php'; 134 136 137 // include vars translator 138 include_once plugin_dir_path(__FILE__) . 'include/vars_translator.php'; 139 135 140 136 141 // //include ajax … … 143 148 //include shortcodes 144 149 include_once plugin_dir_path(__FILE__) . 'include/shortcodes.php'; 150 151 152 153 154 //////////////////////////////////////////////////////////////////////////////////// 155 // auto generate variables_translation_reference if file does not exist 156 // delete the file variables_translation_reference.php to create updated list 157 add_action('init', 'codeart_maybe_generate_i18n_variables_reference'); 158 function codeart_maybe_generate_i18n_variables_reference() { 159 $file = codeart_units_converter_plugin_path() . '/variables_translation_reference.php'; 160 if (!file_exists($file)) { 161 codeart_generate_translation_variables_reference_file(); 162 } 163 } 164 //////////////////////////////////////////////////////////////////////////////////// -
codeart-units-converter/tags/3.2.0/include/common.php
r3274766 r3308807 84 84 } 85 85 //////////////////////////////////////////////////////////////////////////////////// 86 87 88 -
codeart-units-converter/tags/3.2.0/include/converter/convert.php
r3277121 r3308807 29 29 30 30 $content_array = [ 31 "{{name}}" => $unit->name,31 "{{name}}" => __($unit->name, "codeart-units-converter"), 32 32 "{{code_name}}" => $unit->code_name, 33 33 "{{type}}" => $unit->type, 34 34 "__type__" => $unit->type, 35 "{{abbreviation}}" => $unit->abbreviation, 35 "{{abbreviation}}" => __($unit->abbreviation, "codeart-units-converter"), 36 "{{convert}}" => __("Convert", "codeart-units-converter"), 37 "{{reset}}" => __("Reset", "codeart-units-converter"), 38 36 39 ]; 37 40 $items .= codeart_render_template_content($item_template, $content_array); … … 40 43 41 44 $container_array = [ 42 "{{items}}" => $items, 43 "__type__" => $converter_type, 45 "{{items}}" => $items, 46 "__type__" => $converter_type, 47 "{{convert}}" => __("Convert", "codeart-units-converter"), 48 "{{reset}}" => __("Reset", "codeart-units-converter"), 44 49 ]; 45 50 $container = codeart_render_template_content($container_template, $container_array); -
codeart-units-converter/tags/3.2.0/readme.txt
r3286853 r3308807 6 6 Requires PHP: 7.0 7 7 Tested up to: 6.8.1 8 Stable tag: 3. 1.18 Stable tag: 3.2.0 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
codeart-units-converter/tags/3.2.0/templates/area.htm
r3271464 r3308807 70 70 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Ares" name="Ares" autofocus="" tabindex="1"></td> 71 71 <td class="mathsymbol">a</td> 72 <td><input onclick="tgsAreaGetData('area', 'ares', document.getElementById('Ares').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>72 <td><input onclick="tgsAreaGetData('area', 'ares', document.getElementById('Ares').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 73 73 </tr> 74 74 <tr> … … 76 76 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-centimetres" name="Square-centimetres" autofocus="" tabindex="1"></td> 77 77 <td class="mathsymbol">cm²</td> 78 <td><input onclick="tgsAreaGetData('area', 'Square_centimetres', document.getElementById('Square-centimetres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>78 <td><input onclick="tgsAreaGetData('area', 'Square_centimetres', document.getElementById('Square-centimetres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 79 79 </tr> 80 80 <tr> … … 82 82 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-decimetres" name="Square-decimetres" autofocus="" tabindex="1"></td> 83 83 <td class="mathsymbol">dm²</td> 84 <td><input onclick="tgsAreaGetData('area', 'Square_decimetres', document.getElementById('Square-decimetres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>84 <td><input onclick="tgsAreaGetData('area', 'Square_decimetres', document.getElementById('Square-decimetres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 85 85 </tr> 86 86 <tr> … … 88 88 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-feet" name="Square-feet" autofocus="" tabindex="1"></td> 89 89 <td class="mathsymbol">ft²</td> 90 <td><input onclick="tgsAreaGetData('area', 'Square_feet', document.getElementById('Square-feet').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>90 <td><input onclick="tgsAreaGetData('area', 'Square_feet', document.getElementById('Square-feet').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 91 91 </tr> 92 92 <tr> … … 94 94 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Hectares" name="Hectares" autofocus="" tabindex="1"></td> 95 95 <td class="mathsymbol">ha</td> 96 <td><input onclick="tgsAreaGetData('area', 'Hectares', document.getElementById('Hectares').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>96 <td><input onclick="tgsAreaGetData('area', 'Hectares', document.getElementById('Hectares').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 97 97 </tr> 98 98 <tr> … … 100 100 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-inches" name="Square-inches" autofocus="" tabindex="1"></td> 101 101 <td class="mathsymbol">in²</td> 102 <td><input onclick="tgsAreaGetData('area', 'Square_inches', document.getElementById('Square-inches').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>102 <td><input onclick="tgsAreaGetData('area', 'Square_inches', document.getElementById('Square-inches').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 103 103 </tr> 104 104 <tr> … … 106 106 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-kilometres" name="Square-kilometres" autofocus="" tabindex="1"></td> 107 107 <td class="mathsymbol">km²</td> 108 <td><input onclick="tgsAreaGetData('area', 'Square_kilometres', document.getElementById('Square-kilometres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>108 <td><input onclick="tgsAreaGetData('area', 'Square_kilometres', document.getElementById('Square-kilometres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 109 109 </tr> 110 110 <tr> … … 112 112 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-millimetres" name="Square-millimetres" autofocus="" tabindex="1"></td> 113 113 <td class="mathsymbol">mm²</td> 114 <td><input onclick="tgsAreaGetData('area', 'Square_millimetres', document.getElementById('Square-millimetres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>114 <td><input onclick="tgsAreaGetData('area', 'Square_millimetres', document.getElementById('Square-millimetres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 115 115 </tr> 116 116 <tr> … … 118 118 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-metres" name="Square-metres" autofocus="" tabindex="1"></td> 119 119 <td class="mathsymbol">m²</td> 120 <td><input onclick="tgsAreaGetData('area', 'Square_metres', document.getElementById('Square-metres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>120 <td><input onclick="tgsAreaGetData('area', 'Square_metres', document.getElementById('Square-metres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 121 121 </tr> 122 122 <tr> … … 124 124 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-nanometres" name="Square-nanometres" autofocus="" tabindex="1"></td> 125 125 <td class="mathsymbol">nm²</td> 126 <td><input onclick="tgsAreaGetData('area', 'Square_nanometres', document.getElementById('Square-nanometres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>126 <td><input onclick="tgsAreaGetData('area', 'Square_nanometres', document.getElementById('Square-nanometres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 127 127 </tr> 128 128 <tr> … … 130 130 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-yards" name="Square-yards" autofocus="" tabindex="1"></td> 131 131 <td class="mathsymbol">yd²</td> 132 <td><input onclick="tgsAreaGetData('area', 'Square_yards', document.getElementById('Square-yards').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>132 <td><input onclick="tgsAreaGetData('area', 'Square_yards', document.getElementById('Square-yards').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 133 133 </tr> 134 134 <tr> … … 136 136 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-micrometres" name="Square-micrometres" autofocus="" tabindex="1"></td> 137 137 <td class="mathsymbol">µm²</td> 138 <td><input onclick="tgsAreaGetData('area', 'Square_micrometres', document.getElementById('Square-micrometres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>138 <td><input onclick="tgsAreaGetData('area', 'Square_micrometres', document.getElementById('Square-micrometres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 139 139 </tr> 140 140 <tr> … … 142 142 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-rods" name="Square-rods" autofocus="" tabindex="1"></td> 143 143 <td class="mathsymbol"></td> 144 <td><input onclick="tgsAreaGetData('area', 'Square_rods', document.getElementById('Square-rods').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>144 <td><input onclick="tgsAreaGetData('area', 'Square_rods', document.getElementById('Square-rods').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 145 145 </tr> 146 146 <tr> … … 148 148 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Roods" name="Roods" autofocus="" tabindex="1"></td> 149 149 <td class="mathsymbol"></td> 150 <td><input onclick="tgsAreaGetData('area', 'Roods', document.getElementById('Roods').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>150 <td><input onclick="tgsAreaGetData('area', 'Roods', document.getElementById('Roods').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 151 151 </tr> 152 152 <tr> … … 154 154 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Acres" name="Acres" autofocus="" tabindex="1"></td> 155 155 <td class="mathsymbol"></td> 156 <td><input onclick="tgsAreaGetData('area', 'Acres', document.getElementById('Acres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>156 <td><input onclick="tgsAreaGetData('area', 'Acres', document.getElementById('Acres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 157 157 </tr> 158 158 <tr> … … 160 160 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Homesteads" name="Homesteads" autofocus="" tabindex="1"></td> 161 161 <td class="mathsymbol"></td> 162 <td><input onclick="tgsAreaGetData('area', 'Homesteads', document.getElementById('Homesteads').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>162 <td><input onclick="tgsAreaGetData('area', 'Homesteads', document.getElementById('Homesteads').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 163 163 </tr> 164 164 <tr> … … 166 166 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-miles" name="Square-miles" autofocus="" tabindex="1"></td> 167 167 <td class="mathsymbol"></td> 168 <td><input onclick="tgsAreaGetData('area', 'Square_miles', document.getElementById('Square-miles').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>168 <td><input onclick="tgsAreaGetData('area', 'Square_miles', document.getElementById('Square-miles').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 169 169 </tr> 170 170 <tr> … … 172 172 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Townships" name="Townships" autofocus="" tabindex="1"></td> 173 173 <td class="mathsymbol"></td> 174 <td><input onclick="tgsAreaGetData('area', 'Townships', document.getElementById('Townships').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>174 <td><input onclick="tgsAreaGetData('area', 'Townships', document.getElementById('Townships').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 175 175 </tr> 176 176 <tr> -
codeart-units-converter/tags/3.2.0/templates/speed.htm
r3271464 r3308807 70 70 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilometres_per_hour" name="Kilometres-per-hour" autofocus="" tabindex="1"></td> 71 71 <td class="mathsymbol">km/h</td> 72 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-hour', document.getElementById('Kilometres_per_hour').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>72 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-hour', document.getElementById('Kilometres_per_hour').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 73 73 </tr> 74 74 <tr> … … 76 76 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilometres_per_second" name="Kilometres-per-second" autofocus="" tabindex="1"></td> 77 77 <td class="mathsymbol">km/s</td> 78 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-second', document.getElementById('Kilometres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>78 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-second', document.getElementById('Kilometres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 79 79 </tr> 80 80 <tr> … … 82 82 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Knots" name="Knots" autofocus="" tabindex="1"></td> 83 83 <td class="mathsymbol">knot</td> 84 <td><input onclick="tgsSpeedGetData('speed', 'Knots', document.getElementById('Knots').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>84 <td><input onclick="tgsSpeedGetData('speed', 'Knots', document.getElementById('Knots').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 85 85 </tr> 86 86 <tr> … … 88 88 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Metres_per_second" name="Metres_per_second" autofocus="" tabindex="1"></td> 89 89 <td class="mathsymbol">m/s</td> 90 <td><input onclick="tgsSpeedGetData('speed', 'Metres-per-second', document.getElementById('Metres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>90 <td><input onclick="tgsSpeedGetData('speed', 'Metres-per-second', document.getElementById('Metres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 91 91 </tr> 92 92 <tr> … … 94 94 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Millimetres_per_second" name="Millimetres_per_second" autofocus="" tabindex="1"></td> 95 95 <td class="mathsymbol">mm/s</td> 96 <td><input onclick="tgsSpeedGetData('speed', 'Millimetres-per-second', document.getElementById('Millimetres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>96 <td><input onclick="tgsSpeedGetData('speed', 'Millimetres-per-second', document.getElementById('Millimetres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 97 97 </tr> 98 98 <tr> … … 100 100 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Miles_per_hour" name="Miles-per-hour" autofocus="" tabindex="1"></td> 101 101 <td class="mathsymbol">mph</td> 102 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-hour', document.getElementById('Miles_per_hour').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>102 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-hour', document.getElementById('Miles_per_hour').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 103 103 </tr> 104 104 <tr> … … 106 106 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Micrometres_per_second" name="Micrometres-per-second" autofocus="" tabindex="1"></td> 107 107 <td class="mathsymbol">µm/s</td> 108 <td><input onclick="tgsSpeedGetData('speed', 'Micrometres-per-second', document.getElementById('Micrometres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>108 <td><input onclick="tgsSpeedGetData('speed', 'Micrometres-per-second', document.getElementById('Micrometres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 109 109 </tr> 110 110 <tr> … … 112 112 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Speed_of_light" name="Speed-of-light" autofocus="" tabindex="1"></td> 113 113 <td class="mathsymbol"></td> 114 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-light', document.getElementById('Speed_of_light').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>114 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-light', document.getElementById('Speed_of_light').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 115 115 </tr> 116 116 <tr> … … 118 118 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Feet_per_second" name="Feet-per-second" autofocus="" tabindex="1"></td> 119 119 <td class="mathsymbol"></td> 120 <td><input onclick="tgsSpeedGetData('speed', 'Feet-per-second', document.getElementById('Feet_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>120 <td><input onclick="tgsSpeedGetData('speed', 'Feet-per-second', document.getElementById('Feet_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 121 121 </tr> 122 122 <tr> … … 124 124 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Miles_per_second" name="Miles-per-second" autofocus="" tabindex="1"></td> 125 125 <td class="mathsymbol"></td> 126 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-second', document.getElementById('Miles_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>126 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-second', document.getElementById('Miles_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 127 127 </tr> 128 128 <tr> … … 130 130 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Speed_of_sound" name="Speed-of-sound" autofocus="" tabindex="1"></td> 131 131 <td class="mathsymbol"></td> 132 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-sound', document.getElementById('Speed_of_sound').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>132 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-sound', document.getElementById('Speed_of_sound').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 133 133 </tr> 134 134 <tr> -
codeart-units-converter/tags/3.2.0/templates/user/units/table/container.htm
r3275583 r3308807 68 68 {{items}} 69 69 <tr> 70 <td colspan="4"><input type="reset" value=" Reset" class="btn"></td>70 <td colspan="4"><input type="reset" value="{{reset}}" class="btn"></td> 71 71 </tr> 72 72 </tbody> -
codeart-units-converter/tags/3.2.0/templates/user/units/table/item.htm
r3272469 r3308807 3 3 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="{{code_name}}" name="{{code_name}}" autofocus="" tabindex="1"></td> 4 4 <td class="mathsymbol">{{abbreviation}}</td> 5 <td><input onclick="codeart_units_converter___type___get_data('{{type}}', '{{code_name}}', document.getElementById('{{code_name}}').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>5 <td><input onclick="codeart_units_converter___type___get_data('{{type}}', '{{code_name}}', document.getElementById('{{code_name}}').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 6 6 </tr> -
codeart-units-converter/tags/3.2.0/templates/weight.htm
r3271464 r3308807 70 70 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Centigrams" name="Centigrams" autofocus="" tabindex="1"></td> 71 71 <td class="mathsymbol">cg</td> 72 <td><input onclick="tgsWeightGetData('weight', 'Centigrams', document.getElementById('Centigrams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>72 <td><input onclick="tgsWeightGetData('weight', 'Centigrams', document.getElementById('Centigrams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 73 73 </tr> 74 74 <tr> … … 76 76 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Carats" name="Carats" autofocus="" tabindex="1"></td> 77 77 <td class="mathsymbol">ct</td> 78 <td><input onclick="tgsWeightGetData('weight', 'Carats', document.getElementById('Carats').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>78 <td><input onclick="tgsWeightGetData('weight', 'Carats', document.getElementById('Carats').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 79 79 </tr> 80 80 <tr> … … 82 82 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Drams" name="Drams" autofocus="" tabindex="1"></td> 83 83 <td class="mathsymbol">dr</td> 84 <td><input onclick="tgsWeightGetData('weight', 'Drams', document.getElementById('Drams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>84 <td><input onclick="tgsWeightGetData('weight', 'Drams', document.getElementById('Drams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 85 85 </tr> 86 86 <tr> … … 88 88 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Grams" name="Grams" autofocus="" tabindex="1"></td> 89 89 <td class="mathsymbol">g</td> 90 <td><input onclick="tgsWeightGetData('weight', 'Grams', document.getElementById('Grams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>90 <td><input onclick="tgsWeightGetData('weight', 'Grams', document.getElementById('Grams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 91 91 </tr> 92 92 <tr> … … 94 94 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Grains" name="Grains" autofocus="" tabindex="1"></td> 95 95 <td class="mathsymbol">gr</td> 96 <td><input onclick="tgsWeightGetData('weight', 'Grains', document.getElementById('Grains').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>96 <td><input onclick="tgsWeightGetData('weight', 'Grains', document.getElementById('Grains').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 97 97 </tr> 98 98 <tr> … … 100 100 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_grains" name="Troy-grains" autofocus="" tabindex="1"></td> 101 101 <td class="mathsymbol">gr t </td> 102 <td><input onclick="tgsWeightGetData('weight', 'Troy_grains', document.getElementById('Troy_grains').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>102 <td><input onclick="tgsWeightGetData('weight', 'Troy_grains', document.getElementById('Troy_grains').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 103 103 </tr> 104 104 <tr> … … 106 106 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Hectograms" name="Hectograms" autofocus="" tabindex="1"></td> 107 107 <td class="mathsymbol">hg</td> 108 <td><input onclick="tgsWeightGetData('weight', 'Hectograms', document.getElementById('Hectograms').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>108 <td><input onclick="tgsWeightGetData('weight', 'Hectograms', document.getElementById('Hectograms').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 109 109 </tr> 110 110 <tr> … … 112 112 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilos" name="Kilos" autofocus="" tabindex="1"></td> 113 113 <td class="mathsymbol">kg</td> 114 <td><input onclick="tgsWeightGetData('weight', 'Kilos', document.getElementById('Kilos').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>114 <td><input onclick="tgsWeightGetData('weight', 'Kilos', document.getElementById('Kilos').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 115 115 </tr> 116 116 <tr> … … 118 118 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilonewtons" name="Kilonewtons" autofocus="" tabindex="1"></td> 119 119 <td class="mathsymbol">kN</td> 120 <td><input onclick="tgsWeightGetData('weight', 'Kilonewtons', document.getElementById('Kilonewtons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>120 <td><input onclick="tgsWeightGetData('weight', 'Kilonewtons', document.getElementById('Kilonewtons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 121 121 </tr> 122 122 <tr> … … 124 124 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Pounds" name="Pounds" autofocus="" tabindex="1"></td> 125 125 <td class="mathsymbol">lb</td> 126 <td><input onclick="tgsWeightGetData('weight', 'Pounds', document.getElementById('Pounds').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>126 <td><input onclick="tgsWeightGetData('weight', 'Pounds', document.getElementById('Pounds').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 127 127 </tr> 128 128 <tr> … … 130 130 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_pounds" name="Troy-pounds" autofocus="" tabindex="1"></td> 131 131 <td class="mathsymbol">lb t</td> 132 <td><input onclick="tgsWeightGetData('weight', 'Troy_pounds', document.getElementById('Troy_pounds').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>132 <td><input onclick="tgsWeightGetData('weight', 'Troy_pounds', document.getElementById('Troy_pounds').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 133 133 </tr> 134 134 <tr> … … 136 136 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Long_tons" name="Long-tons" autofocus="" tabindex="1"></td> 137 137 <td class="mathsymbol">lo tn</td> 138 <td><input onclick="tgsWeightGetData('weight', 'Long_tons', document.getElementById('Long_tons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>138 <td><input onclick="tgsWeightGetData('weight', 'Long_tons', document.getElementById('Long_tons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 139 139 </tr> 140 140 <tr> … … 142 142 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Milligrams" name="Milligrams" autofocus="" tabindex="1"></td> 143 143 <td class="mathsymbol">mg</td> 144 <td><input onclick="tgsWeightGetData('weight', 'Milligrams', document.getElementById('Milligrams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>144 <td><input onclick="tgsWeightGetData('weight', 'Milligrams', document.getElementById('Milligrams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 145 145 </tr> 146 146 <tr> … … 148 148 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Nanograms" name="Nanograms" autofocus="" tabindex="1"></td> 149 149 <td class="mathsymbol">ng</td> 150 <td><input onclick="tgsWeightGetData('weight', 'Nanograms', document.getElementById('Nanograms').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>150 <td><input onclick="tgsWeightGetData('weight', 'Nanograms', document.getElementById('Nanograms').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 151 151 </tr> 152 152 <tr> … … 154 154 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Ounces" name="Ounces" autofocus="" tabindex="1"></td> 155 155 <td class="mathsymbol">oz</td> 156 <td><input onclick="tgsWeightGetData('weight', 'Ounces', document.getElementById('Ounces').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>156 <td><input onclick="tgsWeightGetData('weight', 'Ounces', document.getElementById('Ounces').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 157 157 </tr> 158 158 <tr> … … 160 160 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_ounces" name="Troy-ounces" autofocus="" tabindex="1"></td> 161 161 <td class="mathsymbol">oz t</td> 162 <td><input onclick="tgsWeightGetData('weight', 'Troy_ounces', document.getElementById('Troy_ounces').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>162 <td><input onclick="tgsWeightGetData('weight', 'Troy_ounces', document.getElementById('Troy_ounces').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 163 163 </tr> 164 164 <tr> … … 166 166 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Short_tons" name="Short-tons" autofocus="" tabindex="1"></td> 167 167 <td class="mathsymbol">sh tn</td> 168 <td><input onclick="tgsWeightGetData('weight', 'Short_tons', document.getElementById('Short_tons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>168 <td><input onclick="tgsWeightGetData('weight', 'Short_tons', document.getElementById('Short_tons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 169 169 </tr> 170 170 <tr> … … 172 172 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Stones" name="Stones" autofocus="" tabindex="1"></td> 173 173 <td class="mathsymbol">st</td> 174 <td><input onclick="tgsWeightGetData('weight', 'Stones', document.getElementById('Stones').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>174 <td><input onclick="tgsWeightGetData('weight', 'Stones', document.getElementById('Stones').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 175 175 </tr> 176 176 <tr> … … 178 178 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Tons" name="Tons" autofocus="" tabindex="1"></td> 179 179 <td class="mathsymbol">t</td> 180 <td><input onclick="tgsWeightGetData('weight', 'Tons', document.getElementById('Tons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>180 <td><input onclick="tgsWeightGetData('weight', 'Tons', document.getElementById('Tons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 181 181 </tr> 182 182 <tr> … … 184 184 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_carats" name="Troy-carats" autofocus="" tabindex="1"></td> 185 185 <td class="mathsymbol">tr ct</td> 186 <td><input onclick="tgsWeightGetData('weight', 'Troy_carats', document.getElementById('Troy_carats').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>186 <td><input onclick="tgsWeightGetData('weight', 'Troy_carats', document.getElementById('Troy_carats').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 187 187 </tr> 188 188 <tr> … … 190 190 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Micrograms" name="Micrograms" autofocus="" tabindex="1"></td> 191 191 <td class="mathsymbol">μg</td> 192 <td><input onclick="tgsWeightGetData('weight', 'Micrograms', document.getElementById('Micrograms').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>192 <td><input onclick="tgsWeightGetData('weight', 'Micrograms', document.getElementById('Micrograms').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 193 193 </tr> 194 194 <tr> -
codeart-units-converter/trunk/codeart-units-converter.php
r3286853 r3308807 10 10 * Text Domain: codeart-units-converter 11 11 * Domain Path: /i18n/languages/ 12 * Version: 3. 1.112 * Version: 3.2.0 13 13 * Tested up to: 6.8.1 14 14 */ … … 19 19 } 20 20 21 $codeart_units_converter_version = '3. 1.1';21 $codeart_units_converter_version = '3.2.0'; 22 22 23 23 /** … … 91 91 add_action('wp_enqueue_scripts', 'codeart_units_converter_java_css_Func'); 92 92 93 94 // models 93 95 include_once plugin_dir_path(__FILE__) . 'include/models/model-units.php'; 94 96 include_once plugin_dir_path(__FILE__) . 'include/models/model-shortcodes.php'; … … 133 135 include_once plugin_dir_path(__FILE__) . 'include/converter/convert.php'; 134 136 137 // include vars translator 138 include_once plugin_dir_path(__FILE__) . 'include/vars_translator.php'; 139 135 140 136 141 // //include ajax … … 143 148 //include shortcodes 144 149 include_once plugin_dir_path(__FILE__) . 'include/shortcodes.php'; 150 151 152 153 154 //////////////////////////////////////////////////////////////////////////////////// 155 // auto generate variables_translation_reference if file does not exist 156 // delete the file variables_translation_reference.php to create updated list 157 add_action('init', 'codeart_maybe_generate_i18n_variables_reference'); 158 function codeart_maybe_generate_i18n_variables_reference() { 159 $file = codeart_units_converter_plugin_path() . '/variables_translation_reference.php'; 160 if (!file_exists($file)) { 161 codeart_generate_translation_variables_reference_file(); 162 } 163 } 164 //////////////////////////////////////////////////////////////////////////////////// -
codeart-units-converter/trunk/include/common.php
r3274766 r3308807 84 84 } 85 85 //////////////////////////////////////////////////////////////////////////////////// 86 87 88 -
codeart-units-converter/trunk/include/converter/convert.php
r3277121 r3308807 29 29 30 30 $content_array = [ 31 "{{name}}" => $unit->name,31 "{{name}}" => __($unit->name, "codeart-units-converter"), 32 32 "{{code_name}}" => $unit->code_name, 33 33 "{{type}}" => $unit->type, 34 34 "__type__" => $unit->type, 35 "{{abbreviation}}" => $unit->abbreviation, 35 "{{abbreviation}}" => __($unit->abbreviation, "codeart-units-converter"), 36 "{{convert}}" => __("Convert", "codeart-units-converter"), 37 "{{reset}}" => __("Reset", "codeart-units-converter"), 38 36 39 ]; 37 40 $items .= codeart_render_template_content($item_template, $content_array); … … 40 43 41 44 $container_array = [ 42 "{{items}}" => $items, 43 "__type__" => $converter_type, 45 "{{items}}" => $items, 46 "__type__" => $converter_type, 47 "{{convert}}" => __("Convert", "codeart-units-converter"), 48 "{{reset}}" => __("Reset", "codeart-units-converter"), 44 49 ]; 45 50 $container = codeart_render_template_content($container_template, $container_array); -
codeart-units-converter/trunk/readme.txt
r3286853 r3308807 6 6 Requires PHP: 7.0 7 7 Tested up to: 6.8.1 8 Stable tag: 3. 1.18 Stable tag: 3.2.0 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
codeart-units-converter/trunk/templates/area.htm
r3271464 r3308807 70 70 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Ares" name="Ares" autofocus="" tabindex="1"></td> 71 71 <td class="mathsymbol">a</td> 72 <td><input onclick="tgsAreaGetData('area', 'ares', document.getElementById('Ares').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>72 <td><input onclick="tgsAreaGetData('area', 'ares', document.getElementById('Ares').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 73 73 </tr> 74 74 <tr> … … 76 76 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-centimetres" name="Square-centimetres" autofocus="" tabindex="1"></td> 77 77 <td class="mathsymbol">cm²</td> 78 <td><input onclick="tgsAreaGetData('area', 'Square_centimetres', document.getElementById('Square-centimetres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>78 <td><input onclick="tgsAreaGetData('area', 'Square_centimetres', document.getElementById('Square-centimetres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 79 79 </tr> 80 80 <tr> … … 82 82 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-decimetres" name="Square-decimetres" autofocus="" tabindex="1"></td> 83 83 <td class="mathsymbol">dm²</td> 84 <td><input onclick="tgsAreaGetData('area', 'Square_decimetres', document.getElementById('Square-decimetres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>84 <td><input onclick="tgsAreaGetData('area', 'Square_decimetres', document.getElementById('Square-decimetres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 85 85 </tr> 86 86 <tr> … … 88 88 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-feet" name="Square-feet" autofocus="" tabindex="1"></td> 89 89 <td class="mathsymbol">ft²</td> 90 <td><input onclick="tgsAreaGetData('area', 'Square_feet', document.getElementById('Square-feet').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>90 <td><input onclick="tgsAreaGetData('area', 'Square_feet', document.getElementById('Square-feet').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 91 91 </tr> 92 92 <tr> … … 94 94 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Hectares" name="Hectares" autofocus="" tabindex="1"></td> 95 95 <td class="mathsymbol">ha</td> 96 <td><input onclick="tgsAreaGetData('area', 'Hectares', document.getElementById('Hectares').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>96 <td><input onclick="tgsAreaGetData('area', 'Hectares', document.getElementById('Hectares').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 97 97 </tr> 98 98 <tr> … … 100 100 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-inches" name="Square-inches" autofocus="" tabindex="1"></td> 101 101 <td class="mathsymbol">in²</td> 102 <td><input onclick="tgsAreaGetData('area', 'Square_inches', document.getElementById('Square-inches').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>102 <td><input onclick="tgsAreaGetData('area', 'Square_inches', document.getElementById('Square-inches').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 103 103 </tr> 104 104 <tr> … … 106 106 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-kilometres" name="Square-kilometres" autofocus="" tabindex="1"></td> 107 107 <td class="mathsymbol">km²</td> 108 <td><input onclick="tgsAreaGetData('area', 'Square_kilometres', document.getElementById('Square-kilometres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>108 <td><input onclick="tgsAreaGetData('area', 'Square_kilometres', document.getElementById('Square-kilometres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 109 109 </tr> 110 110 <tr> … … 112 112 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-millimetres" name="Square-millimetres" autofocus="" tabindex="1"></td> 113 113 <td class="mathsymbol">mm²</td> 114 <td><input onclick="tgsAreaGetData('area', 'Square_millimetres', document.getElementById('Square-millimetres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>114 <td><input onclick="tgsAreaGetData('area', 'Square_millimetres', document.getElementById('Square-millimetres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 115 115 </tr> 116 116 <tr> … … 118 118 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-metres" name="Square-metres" autofocus="" tabindex="1"></td> 119 119 <td class="mathsymbol">m²</td> 120 <td><input onclick="tgsAreaGetData('area', 'Square_metres', document.getElementById('Square-metres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>120 <td><input onclick="tgsAreaGetData('area', 'Square_metres', document.getElementById('Square-metres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 121 121 </tr> 122 122 <tr> … … 124 124 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-nanometres" name="Square-nanometres" autofocus="" tabindex="1"></td> 125 125 <td class="mathsymbol">nm²</td> 126 <td><input onclick="tgsAreaGetData('area', 'Square_nanometres', document.getElementById('Square-nanometres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>126 <td><input onclick="tgsAreaGetData('area', 'Square_nanometres', document.getElementById('Square-nanometres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 127 127 </tr> 128 128 <tr> … … 130 130 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-yards" name="Square-yards" autofocus="" tabindex="1"></td> 131 131 <td class="mathsymbol">yd²</td> 132 <td><input onclick="tgsAreaGetData('area', 'Square_yards', document.getElementById('Square-yards').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>132 <td><input onclick="tgsAreaGetData('area', 'Square_yards', document.getElementById('Square-yards').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 133 133 </tr> 134 134 <tr> … … 136 136 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-micrometres" name="Square-micrometres" autofocus="" tabindex="1"></td> 137 137 <td class="mathsymbol">µm²</td> 138 <td><input onclick="tgsAreaGetData('area', 'Square_micrometres', document.getElementById('Square-micrometres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>138 <td><input onclick="tgsAreaGetData('area', 'Square_micrometres', document.getElementById('Square-micrometres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 139 139 </tr> 140 140 <tr> … … 142 142 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-rods" name="Square-rods" autofocus="" tabindex="1"></td> 143 143 <td class="mathsymbol"></td> 144 <td><input onclick="tgsAreaGetData('area', 'Square_rods', document.getElementById('Square-rods').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>144 <td><input onclick="tgsAreaGetData('area', 'Square_rods', document.getElementById('Square-rods').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 145 145 </tr> 146 146 <tr> … … 148 148 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Roods" name="Roods" autofocus="" tabindex="1"></td> 149 149 <td class="mathsymbol"></td> 150 <td><input onclick="tgsAreaGetData('area', 'Roods', document.getElementById('Roods').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>150 <td><input onclick="tgsAreaGetData('area', 'Roods', document.getElementById('Roods').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 151 151 </tr> 152 152 <tr> … … 154 154 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Acres" name="Acres" autofocus="" tabindex="1"></td> 155 155 <td class="mathsymbol"></td> 156 <td><input onclick="tgsAreaGetData('area', 'Acres', document.getElementById('Acres').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>156 <td><input onclick="tgsAreaGetData('area', 'Acres', document.getElementById('Acres').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 157 157 </tr> 158 158 <tr> … … 160 160 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Homesteads" name="Homesteads" autofocus="" tabindex="1"></td> 161 161 <td class="mathsymbol"></td> 162 <td><input onclick="tgsAreaGetData('area', 'Homesteads', document.getElementById('Homesteads').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>162 <td><input onclick="tgsAreaGetData('area', 'Homesteads', document.getElementById('Homesteads').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 163 163 </tr> 164 164 <tr> … … 166 166 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Square-miles" name="Square-miles" autofocus="" tabindex="1"></td> 167 167 <td class="mathsymbol"></td> 168 <td><input onclick="tgsAreaGetData('area', 'Square_miles', document.getElementById('Square-miles').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>168 <td><input onclick="tgsAreaGetData('area', 'Square_miles', document.getElementById('Square-miles').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 169 169 </tr> 170 170 <tr> … … 172 172 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Townships" name="Townships" autofocus="" tabindex="1"></td> 173 173 <td class="mathsymbol"></td> 174 <td><input onclick="tgsAreaGetData('area', 'Townships', document.getElementById('Townships').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>174 <td><input onclick="tgsAreaGetData('area', 'Townships', document.getElementById('Townships').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 175 175 </tr> 176 176 <tr> -
codeart-units-converter/trunk/templates/speed.htm
r3271464 r3308807 70 70 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilometres_per_hour" name="Kilometres-per-hour" autofocus="" tabindex="1"></td> 71 71 <td class="mathsymbol">km/h</td> 72 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-hour', document.getElementById('Kilometres_per_hour').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>72 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-hour', document.getElementById('Kilometres_per_hour').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 73 73 </tr> 74 74 <tr> … … 76 76 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilometres_per_second" name="Kilometres-per-second" autofocus="" tabindex="1"></td> 77 77 <td class="mathsymbol">km/s</td> 78 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-second', document.getElementById('Kilometres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>78 <td><input onclick="tgsSpeedGetData('speed', 'Kilometres-per-second', document.getElementById('Kilometres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 79 79 </tr> 80 80 <tr> … … 82 82 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Knots" name="Knots" autofocus="" tabindex="1"></td> 83 83 <td class="mathsymbol">knot</td> 84 <td><input onclick="tgsSpeedGetData('speed', 'Knots', document.getElementById('Knots').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>84 <td><input onclick="tgsSpeedGetData('speed', 'Knots', document.getElementById('Knots').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 85 85 </tr> 86 86 <tr> … … 88 88 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Metres_per_second" name="Metres_per_second" autofocus="" tabindex="1"></td> 89 89 <td class="mathsymbol">m/s</td> 90 <td><input onclick="tgsSpeedGetData('speed', 'Metres-per-second', document.getElementById('Metres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>90 <td><input onclick="tgsSpeedGetData('speed', 'Metres-per-second', document.getElementById('Metres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 91 91 </tr> 92 92 <tr> … … 94 94 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Millimetres_per_second" name="Millimetres_per_second" autofocus="" tabindex="1"></td> 95 95 <td class="mathsymbol">mm/s</td> 96 <td><input onclick="tgsSpeedGetData('speed', 'Millimetres-per-second', document.getElementById('Millimetres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>96 <td><input onclick="tgsSpeedGetData('speed', 'Millimetres-per-second', document.getElementById('Millimetres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 97 97 </tr> 98 98 <tr> … … 100 100 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Miles_per_hour" name="Miles-per-hour" autofocus="" tabindex="1"></td> 101 101 <td class="mathsymbol">mph</td> 102 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-hour', document.getElementById('Miles_per_hour').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>102 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-hour', document.getElementById('Miles_per_hour').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 103 103 </tr> 104 104 <tr> … … 106 106 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Micrometres_per_second" name="Micrometres-per-second" autofocus="" tabindex="1"></td> 107 107 <td class="mathsymbol">µm/s</td> 108 <td><input onclick="tgsSpeedGetData('speed', 'Micrometres-per-second', document.getElementById('Micrometres_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>108 <td><input onclick="tgsSpeedGetData('speed', 'Micrometres-per-second', document.getElementById('Micrometres_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 109 109 </tr> 110 110 <tr> … … 112 112 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Speed_of_light" name="Speed-of-light" autofocus="" tabindex="1"></td> 113 113 <td class="mathsymbol"></td> 114 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-light', document.getElementById('Speed_of_light').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>114 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-light', document.getElementById('Speed_of_light').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 115 115 </tr> 116 116 <tr> … … 118 118 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Feet_per_second" name="Feet-per-second" autofocus="" tabindex="1"></td> 119 119 <td class="mathsymbol"></td> 120 <td><input onclick="tgsSpeedGetData('speed', 'Feet-per-second', document.getElementById('Feet_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>120 <td><input onclick="tgsSpeedGetData('speed', 'Feet-per-second', document.getElementById('Feet_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 121 121 </tr> 122 122 <tr> … … 124 124 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Miles_per_second" name="Miles-per-second" autofocus="" tabindex="1"></td> 125 125 <td class="mathsymbol"></td> 126 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-second', document.getElementById('Miles_per_second').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>126 <td><input onclick="tgsSpeedGetData('speed', 'Miles-per-second', document.getElementById('Miles_per_second').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 127 127 </tr> 128 128 <tr> … … 130 130 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Speed_of_sound" name="Speed-of-sound" autofocus="" tabindex="1"></td> 131 131 <td class="mathsymbol"></td> 132 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-sound', document.getElementById('Speed_of_sound').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>132 <td><input onclick="tgsSpeedGetData('speed', 'Speed-of-sound', document.getElementById('Speed_of_sound').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 133 133 </tr> 134 134 <tr> -
codeart-units-converter/trunk/templates/user/units/table/container.htm
r3275583 r3308807 68 68 {{items}} 69 69 <tr> 70 <td colspan="4"><input type="reset" value=" Reset" class="btn"></td>70 <td colspan="4"><input type="reset" value="{{reset}}" class="btn"></td> 71 71 </tr> 72 72 </tbody> -
codeart-units-converter/trunk/templates/user/units/table/item.htm
r3272469 r3308807 3 3 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="{{code_name}}" name="{{code_name}}" autofocus="" tabindex="1"></td> 4 4 <td class="mathsymbol">{{abbreviation}}</td> 5 <td><input onclick="codeart_units_converter___type___get_data('{{type}}', '{{code_name}}', document.getElementById('{{code_name}}').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>5 <td><input onclick="codeart_units_converter___type___get_data('{{type}}', '{{code_name}}', document.getElementById('{{code_name}}').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 6 6 </tr> -
codeart-units-converter/trunk/templates/weight.htm
r3271464 r3308807 70 70 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Centigrams" name="Centigrams" autofocus="" tabindex="1"></td> 71 71 <td class="mathsymbol">cg</td> 72 <td><input onclick="tgsWeightGetData('weight', 'Centigrams', document.getElementById('Centigrams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>72 <td><input onclick="tgsWeightGetData('weight', 'Centigrams', document.getElementById('Centigrams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 73 73 </tr> 74 74 <tr> … … 76 76 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Carats" name="Carats" autofocus="" tabindex="1"></td> 77 77 <td class="mathsymbol">ct</td> 78 <td><input onclick="tgsWeightGetData('weight', 'Carats', document.getElementById('Carats').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>78 <td><input onclick="tgsWeightGetData('weight', 'Carats', document.getElementById('Carats').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 79 79 </tr> 80 80 <tr> … … 82 82 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Drams" name="Drams" autofocus="" tabindex="1"></td> 83 83 <td class="mathsymbol">dr</td> 84 <td><input onclick="tgsWeightGetData('weight', 'Drams', document.getElementById('Drams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>84 <td><input onclick="tgsWeightGetData('weight', 'Drams', document.getElementById('Drams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 85 85 </tr> 86 86 <tr> … … 88 88 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Grams" name="Grams" autofocus="" tabindex="1"></td> 89 89 <td class="mathsymbol">g</td> 90 <td><input onclick="tgsWeightGetData('weight', 'Grams', document.getElementById('Grams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>90 <td><input onclick="tgsWeightGetData('weight', 'Grams', document.getElementById('Grams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 91 91 </tr> 92 92 <tr> … … 94 94 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Grains" name="Grains" autofocus="" tabindex="1"></td> 95 95 <td class="mathsymbol">gr</td> 96 <td><input onclick="tgsWeightGetData('weight', 'Grains', document.getElementById('Grains').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>96 <td><input onclick="tgsWeightGetData('weight', 'Grains', document.getElementById('Grains').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 97 97 </tr> 98 98 <tr> … … 100 100 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_grains" name="Troy-grains" autofocus="" tabindex="1"></td> 101 101 <td class="mathsymbol">gr t </td> 102 <td><input onclick="tgsWeightGetData('weight', 'Troy_grains', document.getElementById('Troy_grains').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>102 <td><input onclick="tgsWeightGetData('weight', 'Troy_grains', document.getElementById('Troy_grains').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 103 103 </tr> 104 104 <tr> … … 106 106 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Hectograms" name="Hectograms" autofocus="" tabindex="1"></td> 107 107 <td class="mathsymbol">hg</td> 108 <td><input onclick="tgsWeightGetData('weight', 'Hectograms', document.getElementById('Hectograms').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>108 <td><input onclick="tgsWeightGetData('weight', 'Hectograms', document.getElementById('Hectograms').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 109 109 </tr> 110 110 <tr> … … 112 112 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilos" name="Kilos" autofocus="" tabindex="1"></td> 113 113 <td class="mathsymbol">kg</td> 114 <td><input onclick="tgsWeightGetData('weight', 'Kilos', document.getElementById('Kilos').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>114 <td><input onclick="tgsWeightGetData('weight', 'Kilos', document.getElementById('Kilos').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 115 115 </tr> 116 116 <tr> … … 118 118 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Kilonewtons" name="Kilonewtons" autofocus="" tabindex="1"></td> 119 119 <td class="mathsymbol">kN</td> 120 <td><input onclick="tgsWeightGetData('weight', 'Kilonewtons', document.getElementById('Kilonewtons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>120 <td><input onclick="tgsWeightGetData('weight', 'Kilonewtons', document.getElementById('Kilonewtons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 121 121 </tr> 122 122 <tr> … … 124 124 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Pounds" name="Pounds" autofocus="" tabindex="1"></td> 125 125 <td class="mathsymbol">lb</td> 126 <td><input onclick="tgsWeightGetData('weight', 'Pounds', document.getElementById('Pounds').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>126 <td><input onclick="tgsWeightGetData('weight', 'Pounds', document.getElementById('Pounds').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 127 127 </tr> 128 128 <tr> … … 130 130 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_pounds" name="Troy-pounds" autofocus="" tabindex="1"></td> 131 131 <td class="mathsymbol">lb t</td> 132 <td><input onclick="tgsWeightGetData('weight', 'Troy_pounds', document.getElementById('Troy_pounds').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>132 <td><input onclick="tgsWeightGetData('weight', 'Troy_pounds', document.getElementById('Troy_pounds').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 133 133 </tr> 134 134 <tr> … … 136 136 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Long_tons" name="Long-tons" autofocus="" tabindex="1"></td> 137 137 <td class="mathsymbol">lo tn</td> 138 <td><input onclick="tgsWeightGetData('weight', 'Long_tons', document.getElementById('Long_tons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>138 <td><input onclick="tgsWeightGetData('weight', 'Long_tons', document.getElementById('Long_tons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 139 139 </tr> 140 140 <tr> … … 142 142 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Milligrams" name="Milligrams" autofocus="" tabindex="1"></td> 143 143 <td class="mathsymbol">mg</td> 144 <td><input onclick="tgsWeightGetData('weight', 'Milligrams', document.getElementById('Milligrams').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>144 <td><input onclick="tgsWeightGetData('weight', 'Milligrams', document.getElementById('Milligrams').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 145 145 </tr> 146 146 <tr> … … 148 148 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Nanograms" name="Nanograms" autofocus="" tabindex="1"></td> 149 149 <td class="mathsymbol">ng</td> 150 <td><input onclick="tgsWeightGetData('weight', 'Nanograms', document.getElementById('Nanograms').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>150 <td><input onclick="tgsWeightGetData('weight', 'Nanograms', document.getElementById('Nanograms').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 151 151 </tr> 152 152 <tr> … … 154 154 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Ounces" name="Ounces" autofocus="" tabindex="1"></td> 155 155 <td class="mathsymbol">oz</td> 156 <td><input onclick="tgsWeightGetData('weight', 'Ounces', document.getElementById('Ounces').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>156 <td><input onclick="tgsWeightGetData('weight', 'Ounces', document.getElementById('Ounces').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 157 157 </tr> 158 158 <tr> … … 160 160 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_ounces" name="Troy-ounces" autofocus="" tabindex="1"></td> 161 161 <td class="mathsymbol">oz t</td> 162 <td><input onclick="tgsWeightGetData('weight', 'Troy_ounces', document.getElementById('Troy_ounces').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>162 <td><input onclick="tgsWeightGetData('weight', 'Troy_ounces', document.getElementById('Troy_ounces').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 163 163 </tr> 164 164 <tr> … … 166 166 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Short_tons" name="Short-tons" autofocus="" tabindex="1"></td> 167 167 <td class="mathsymbol">sh tn</td> 168 <td><input onclick="tgsWeightGetData('weight', 'Short_tons', document.getElementById('Short_tons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>168 <td><input onclick="tgsWeightGetData('weight', 'Short_tons', document.getElementById('Short_tons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 169 169 </tr> 170 170 <tr> … … 172 172 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Stones" name="Stones" autofocus="" tabindex="1"></td> 173 173 <td class="mathsymbol">st</td> 174 <td><input onclick="tgsWeightGetData('weight', 'Stones', document.getElementById('Stones').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>174 <td><input onclick="tgsWeightGetData('weight', 'Stones', document.getElementById('Stones').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 175 175 </tr> 176 176 <tr> … … 178 178 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Tons" name="Tons" autofocus="" tabindex="1"></td> 179 179 <td class="mathsymbol">t</td> 180 <td><input onclick="tgsWeightGetData('weight', 'Tons', document.getElementById('Tons').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>180 <td><input onclick="tgsWeightGetData('weight', 'Tons', document.getElementById('Tons').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 181 181 </tr> 182 182 <tr> … … 184 184 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Troy_carats" name="Troy-carats" autofocus="" tabindex="1"></td> 185 185 <td class="mathsymbol">tr ct</td> 186 <td><input onclick="tgsWeightGetData('weight', 'Troy_carats', document.getElementById('Troy_carats').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>186 <td><input onclick="tgsWeightGetData('weight', 'Troy_carats', document.getElementById('Troy_carats').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 187 187 </tr> 188 188 <tr> … … 190 190 <td class="math"><input type="number" placeholder="0" min="0" step="any" id="Micrograms" name="Micrograms" autofocus="" tabindex="1"></td> 191 191 <td class="mathsymbol">μg</td> 192 <td><input onclick="tgsWeightGetData('weight', 'Micrograms', document.getElementById('Micrograms').value)" type="button" value=" Convert" tabindex="2" class="btn"></td>192 <td><input onclick="tgsWeightGetData('weight', 'Micrograms', document.getElementById('Micrograms').value)" type="button" value="{{convert}}" tabindex="2" class="btn"></td> 193 193 </tr> 194 194 <tr>
Note: See TracChangeset
for help on using the changeset viewer.