Browse Source

reduce selector copy-paste code to template

master
pbca26 8 years ago
parent
commit
0cb0b13421
  1. 64
      assets/scripts/templates/addCoinLoginModal.js
  2. 64
      assets/scripts/templates/addCoinModal.js
  3. 68
      assets/scripts/templates/addCoinOptions.js
  4. 71
      assets/scripts/templates/atomicExplorer.js
  5. 128
      assets/scripts/templates/walletSettings.js
  6. 1
      index.html

64
assets/scripts/templates/addCoinLoginModal.js

@ -15,69 +15,7 @@ templates.addCoinLoginModal =
<div class="form-group">
<select class="form-control form-material" id="addcoin_select_coin_mdl_options-login">
<option data-lang="INDEX.SELECT"></option>
<option value="ANC">AnonCoin</option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="DGB">Digibyte</option>
<option value="DOGE">Dogecoin</option>
<option value="FRK">Franko</option>
<option value="KMD">Komodo</option>
<option value="LTC">Litecoin</option>
<option value="MZC">MazaCoin</option>
<option value="SYS">SysCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZEC">Zcash</option>
<option value="ZET">Zetacoin</option>
<option value="BET">BET</option>
<option value="BOTS">BOTS</option>
<option value="CEAL">CEAL NET</option>
<option value="CRYPTO">CRYPTO</option>
<option value="HODL">HODL</option>
<option value="DEX">InstantDEX</option>
<option value="JUMBLR">JUMBLR</option>
<option value="KV">KV</option>
<option value="MGW">MultiGateway</option>
<option value="MVP">MVP Lineup</option>
<option value="PANGEA">PANGEA</option>
<option value="REVS">REVS</option>
<option value="SHARK">SHARK</option>
<option value="MESH">SpaceMesh</option>
<option value="SUPERNET">SUPERNET</option>
<option value="WIRELESS">WIRELESS</option>
<option value="AUD">Australian Dollar</option>
<option value="BRL">Brazilian Real</option>
<option value="GBP">British Pound</option>
<option value="BGN">Bulgarian Lev</option>
<option value="CAD">Canadian Dollar</option>
<option value="HRK">Croatian Kuna</option>
<option value="CZK">Czech Koruna</option>
<option value="CNY">Chinese Yuan</option>
<option value="DKK">Danish Krone</option>
<option value="EUR">Euro</option>
<option value="HKD">Hong Kong Dollar</option>
<option value="HUF">Hungarian Forint</option>
<option value="INR">Indian Rupee</option>
<option value="IDR">Indonesian Rupiah</option>
<option value="ILS">Israeli Shekel</option>
<option value="JPY">Japanese Yen</option>
<option value="KRW">Korean Won</option>
<option value="MYR">Malaysian Ringgit</option>
<option value="MXN">Mexican peso</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NOK">Norwegian Krone</option>
<option value="PHP">Philippine Peso</option>
<option value="PLN">Polish Zloty</option>
<option value="RON">Romanian Leu</option>
<option value="RUB">Russian Ruble</option>
<option value="SGD">Singapore Dollar</option>
<option value="ZAR">South African Rand</option>
<option value="SEK">Swedish Krona</option>
<option value="CHF">Swiss Franc</option>
<option value="THB">Thai Baht</option>
<option value="TRY">Turkish Lira</option>
<option value="USD">US Dollar</option>
${templates.addCoinOptions}
</select>
</div>
</div>

64
assets/scripts/templates/addCoinModal.js

@ -15,69 +15,7 @@ templates.addCoinModal =
<div class="form-group">
<select class="form-control form-material" id="addcoin_select_coin_mdl_options">
<option data-lang="INDEX.SELECT"></option>
<option value="ANC">AnonCoin</option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="DGB">Digibyte</option>
<option value="DOGE">Dogecoin</option>
<option value="FRK">Franko</option>
<option value="KMD">Komodo</option>
<option value="LTC">Litecoin</option>
<option value="MZC">MazaCoin</option>
<option value="SYS">SysCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZEC">Zcash</option>
<option value="ZET">Zetacoin</option>
<option value="BET">BET</option>
<option value="BOTS">BOTS</option>
<option value="CEAL">CEAL NET</option>
<option value="CRYPTO">CRYPTO</option>
<option value="HODL">HODL</option>
<option value="DEX">InstantDEX</option>
<option value="JUMBLR">JUMBLR</option>
<option value="KV">KV</option>
<option value="MGW">MultiGateway</option>
<option value="MVP">MVP Lineup</option>
<option value="PANGEA">PANGEA</option>
<option value="REVS">REVS</option>
<option value="SHARK">SHARK</option>
<option value="MESH">SpaceMesh</option>
<option value="SUPERNET">SUPERNET</option>
<option value="WIRELESS">WIRELESS</option>
<option value="AUD">Australian Dollar</option>
<option value="BRL">Brazilian Real</option>
<option value="GBP">British Pound</option>
<option value="BGN">Bulgarian Lev</option>
<option value="CAD">Canadian Dollar</option>
<option value="HRK">Croatian Kuna</option>
<option value="CZK">Czech Koruna</option>
<option value="CNY">Chinese Yuan</option>
<option value="DKK">Danish Krone</option>
<option value="EUR">Euro</option>
<option value="HKD">Hong Kong Dollar</option>
<option value="HUF">Hungarian Forint</option>
<option value="INR">Indian Rupee</option>
<option value="IDR">Indonesian Rupiah</option>
<option value="ILS">Israeli Shekel</option>
<option value="JPY">Japanese Yen</option>
<option value="KRW">Korean Won</option>
<option value="MYR">Malaysian Ringgit</option>
<option value="MXN">Mexican peso</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NOK">Norwegian Krone</option>
<option value="PHP">Philippine Peso</option>
<option value="PLN">Polish Zloty</option>
<option value="RON">Romanian Leu</option>
<option value="RUB">Russian Ruble</option>
<option value="SGD">Singapore Dollar</option>
<option value="ZAR">South African Rand</option>
<option value="SEK">Swedish Krona</option>
<option value="CHF">Swiss Franc</option>
<option value="THB">Thai Baht</option>
<option value="TRY">Turkish Lira</option>
<option value="USD">US Dollar</option>
${templates.addCoinOptions}
</select>
</div>
</div>

68
assets/scripts/templates/addCoinOptions.js

@ -0,0 +1,68 @@
templates.addCoinOptions =
`
<option value="ANC">AnonCoin</option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="DGB">Digibyte</option>
<option value="DOGE">Dogecoin</option>
<option value="FRK">Franko</option>
<option value="KMD">Komodo</option>
<option value="LTC">Litecoin</option>
<option value="MZC">MazaCoin</option>
<option value="SYS">SysCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZEC">Zcash</option>
<option value="ZET">Zetacoin</option>
<option value="BET">BET</option>
<option value="BOTS">BOTS</option>
<option value="CEAL">CEAL NET</option>
<option value="CRYPTO">CRYPTO</option>
<option value="HODL">HODL</option>
<option value="DEX">InstantDEX</option>
<option value="JUMBLR">JUMBLR</option>
<option value="KV">KV</option>
<option value="MGW">MultiGateway</option>
<option value="MVP">MVP Lineup</option>
<option value="PANGEA">PANGEA</option>
<option value="REVS">REVS</option>
<option value="SHARK">SHARK</option>
<option value="MESH">SpaceMesh</option>
<option value="SUPERNET">SUPERNET</option>
<option value="WIRELESS">WIRELESS</option>
<optgroup label="Currencies">
<option value="AUD">Australian Dollar</option>
<option value="BRL">Brazilian Real</option>
<option value="GBP">British Pound</option>
<option value="BGN">Bulgarian Lev</option>
<option value="CAD">Canadian Dollar</option>
<option value="HRK">Croatian Kuna</option>
<option value="CZK">Czech Koruna</option>
<option value="CNY">Chinese Yuan</option>
<option value="DKK">Danish Krone</option>
<option value="EUR">Euro</option>
<option value="HKD">Hong Kong Dollar</option>
<option value="HUF">Hungarian Forint</option>
<option value="INR">Indian Rupee</option>
<option value="IDR">Indonesian Rupiah</option>
<option value="ILS">Israeli Shekel</option>
<option value="JPY">Japanese Yen</option>
<option value="KRW">Korean Won</option>
<option value="MYR">Malaysian Ringgit</option>
<option value="MXN">Mexican peso</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NOK">Norwegian Krone</option>
<option value="PHP">Philippine Peso</option>
<option value="PLN">Polish Zloty</option>
<option value="RON">Romanian Leu</option>
<option value="RUB">Russian Ruble</option>
<option value="SGD">Singapore Dollar</option>
<option value="ZAR">South African Rand</option>
<option value="SEK">Swedish Krona</option>
<option value="CHF">Swiss Franc</option>
<option value="THB">Thai Baht</option>
<option value="TRY">Turkish Lira</option>
<option value="USD">US Dollar</option>
</optgroup>
`;

71
assets/scripts/templates/atomicExplorer.js

@ -6,7 +6,7 @@ templates.atomicExplorer =
<div class="row" id="atomic-explorer" data-plugin="masonry">
<div class="col-xlg-12 col-md-12">
<h4 class="font-size-14 text-uppercase">Atomic Explorer</h4>
<!-- Atomic Expolrer Tab -->
<!-- Atomic Explorer Tab -->
<div class="panel panel-bordered">
<!--<div class="panel-heading">
<h3 class="panel-title">Panel Heading</h3>
@ -15,71 +15,8 @@ templates.atomicExplorer =
<div class="col-sm-4 col-xs-12">
<div class="form-group">
<select class="form-control form-material" id="atomic_explorer_select_coin_options">
<option value="">-Select Coin-</option>
<option value="ANC">AnonCoin</option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="DGB">Digibyte</option>
<option value="DOGE">Dogecoin</option>
<option value="FRK">Franko</option>
<option value="KMD">Komodo</option>
<option value="LTC">Litecoin</option>
<option value="MZC">MazaCoin</option>
<option value="SYS">SysCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZEC">Zcash</option>
<option value="ZET">Zetacoin</option>
<option value="BET">BET</option>
<option value="BOTS">BOTS</option>
<option value="CEAL">CEAL NET</option>
<option value="CRYPTO">CRYPTO</option>
<option value="HODL">HODL</option>
<option value="DEX">InstantDEX</option>
<option value="JUMBLR">JUMBLR</option>
<option value="KV">KV</option>
<option value="MGW">MultiGateway</option>
<option value="MVP">MVP Lineup</option>
<option value="PANGEA">PANGEA</option>
<option value="REVS">REVS</option>
<option value="SHARK">SHARK</option>
<option value="MESH">SpaceMesh</option>
<option value="SUPERNET">SUPERNET</option>
<option value="WIRELESS">WIRELESS</option>
<option data-lang="CURRENCIES"></option>
<option value="AUD">Australian Dollar</option>
<option value="BRL">Brazilian Real</option>
<option value="GBP">British Pound</option>
<option value="BGN">Bulgarian Lev</option>
<option value="CAD">Canadian Dollar</option>
<option value="HRK">Croatian Kuna</option>
<option value="CZK">Czech Koruna</option>
<option value="CNY">Chinese Yuan</option>
<option value="DKK">Danish Krone</option>
<option value="EUR">Euro</option>
<option value="HKD">Hong Kong Dollar</option>
<option value="HUF">Hungarian Forint</option>
<option value="INR">Indian Rupee</option>
<option value="IDR">Indonesian Rupiah</option>
<option value="ILS">Israeli Shekel</option>
<option value="JPY">Japanese Yen</option>
<option value="KRW">Korean Won</option>
<option value="MYR">Malaysian Ringgit</option>
<option value="MXN">Mexican peso</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NOK">Norwegian Krone</option>
<option value="PHP">Philippine Peso</option>
<option value="PLN">Polish Zloty</option>
<option value="RON">Romanian Leu</option>
<option value="RUB">Russian Ruble</option>
<option value="SGD">Singapore Dollar</option>
<option value="ZAR">South African Rand</option>
<option value="SEK">Swedish Krona</option>
<option value="CHF">Swiss Franc</option>
<option value="THB">Thai Baht</option>
<option value="TRY">Turkish Lira</option>
<option value="USD">US Dollar</option>
<option value="" data-lang="INDEX.SELECT_COIN"></option>
${templates.addCoinOptions}
</select>
</div>
</div>
@ -126,7 +63,7 @@ templates.atomicExplorer =
</div>
</div>
</div>
<!-- End Atomic Expolrer Tab -->
<!-- End Atomic Explorer Tab -->
</div>
<div class="col-xlg-4 col-md-12">
<!-- Atomic Explorer tab -->

128
assets/scripts/templates/walletSettings.js

@ -89,69 +89,7 @@ templates.walletSettings =
<div class="form-group">
<select class="form-control form-material" id="settings_select_coin_options">
<option data-lang="INDEX.SELECT_COIN"></option>
<option value="ANC">AnonCoin</option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="DGB">Digibyte</option>
<option value="DOGE">Dogecoin</option>
<option value="FRK">Franko</option>
<option value="KMD">Komodo</option>
<option value="LTC">Litecoin</option>
<option value="MZC">MazaCoin</option>
<option value="SYS">SysCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZEC">Zcash</option>
<option value="ZET">Zetacoin</option>
<option value="BET">BET</option>
<option value="BOTS">BOTS</option>
<option value="CEAL">CEAL NET</option>
<option value="CRYPTO">CRYPTO</option>
<option value="HODL">HODL</option>
<option value="DEX">InstantDEX</option>
<option value="JUMBLR">JUMBLR</option>
<option value="KV">KV</option>
<option value="MGW">MultiGateway</option>
<option value="MVP">MVP Lineup</option>
<option value="PANGEA">PANGEA</option>
<option value="REVS">REVS</option>
<option value="SHARK">SHARK</option>
<option value="MESH">SpaceMesh</option>
<option value="SUPERNET">SUPERNET</option>
<option value="WIRELESS">WIRELESS</option>
<option value="AUD">Australian Dollar</option>
<option value="BRL">Brazilian Real</option>
<option value="GBP">British Pound</option>
<option value="BGN">Bulgarian Lev</option>
<option value="CAD">Canadian Dollar</option>
<option value="HRK">Croatian Kuna</option>
<option value="CZK">Czech Koruna</option>
<option value="CNY">Chinese Yuan</option>
<option value="DKK">Danish Krone</option>
<option value="EUR">Euro</option>
<option value="HKD">Hong Kong Dollar</option>
<option value="HUF">Hungarian Forint</option>
<option value="INR">Indian Rupee</option>
<option value="IDR">Indonesian Rupiah</option>
<option value="ILS">Israeli Shekel</option>
<option value="JPY">Japanese Yen</option>
<option value="KRW">Korean Won</option>
<option value="MYR">Malaysian Ringgit</option>
<option value="MXN">Mexican peso</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NOK">Norwegian Krone</option>
<option value="PHP">Philippine Peso</option>
<option value="PLN">Polish Zloty</option>
<option value="RON">Romanian Leu</option>
<option value="RUB">Russian Ruble</option>
<option value="SGD">Singapore Dollar</option>
<option value="ZAR">South African Rand</option>
<option value="SEK">Swedish Krona</option>
<option value="CHF">Swiss Franc</option>
<option value="THB">Thai Baht</option>
<option value="TRY">Turkish Lira</option>
<option value="USD">US Dollar</option>
${templates.addCoinOptions}
</select>
</div>
</div>
@ -178,69 +116,7 @@ templates.walletSettings =
<div class="form-group">
<select class="form-control form-material" id="settings_select_coin_addpeer_options">
<option data-lang="INDEX.SELECT_COIN"></option>
<option value="ANC">AnonCoin</option>
<option value="BTC">Bitcoin</option>
<option value="BTCD">BitcoinDark</option>
<option value="BTM">Bitmark</option>
<option value="CARB">Carboncoin</option>
<option value="DGB">Digibyte</option>
<option value="DOGE">Dogecoin</option>
<option value="FRK">Franko</option>
<option value="KMD">Komodo</option>
<option value="LTC">Litecoin</option>
<option value="MZC">MazaCoin</option>
<option value="SYS">SysCoin</option>
<option value="UNO">Unobtanium</option>
<option value="ZEC">Zcash</option>
<option value="ZET">Zetacoin</option>
<option value="BET">BET</option>
<option value="BOTS">BOTS</option>
<option value="CEAL">CEAL NET</option>
<option value="CRYPTO">CRYPTO</option>
<option value="HODL">HODL</option>
<option value="DEX">InstantDEX</option>
<option value="JUMBLR">JUMBLR</option>
<option value="KV">KV</option>
<option value="MGW">MultiGateway</option>
<option value="MVP">MVP Lineup</option>
<option value="PANGEA">PANGEA</option>
<option value="REVS">REVS</option>
<option value="SHARK">SHARK</option>
<option value="MESH">SpaceMesh</option>
<option value="SUPERNET">SUPERNET</option>
<option value="WIRELESS">WIRELESS</option>
<option value="AUD">Australian Dollar</option>
<option value="BRL">Brazilian Real</option>
<option value="GBP">British Pound</option>
<option value="BGN">Bulgarian Lev</option>
<option value="CAD">Canadian Dollar</option>
<option value="HRK">Croatian Kuna</option>
<option value="CZK">Czech Koruna</option>
<option value="CNY">Chinese Yuan</option>
<option value="DKK">Danish Krone</option>
<option value="EUR">Euro</option>
<option value="HKD">Hong Kong Dollar</option>
<option value="HUF">Hungarian Forint</option>
<option value="INR">Indian Rupee</option>
<option value="IDR">Indonesian Rupiah</option>
<option value="ILS">Israeli Shekel</option>
<option value="JPY">Japanese Yen</option>
<option value="KRW">Korean Won</option>
<option value="MYR">Malaysian Ringgit</option>
<option value="MXN">Mexican peso</option>
<option value="NZD">New Zealand Dollar</option>
<option value="NOK">Norwegian Krone</option>
<option value="PHP">Philippine Peso</option>
<option value="PLN">Polish Zloty</option>
<option value="RON">Romanian Leu</option>
<option value="RUB">Russian Ruble</option>
<option value="SGD">Singapore Dollar</option>
<option value="ZAR">South African Rand</option>
<option value="SEK">Swedish Krona</option>
<option value="CHF">Swiss Franc</option>
<option value="THB">Thai Baht</option>
<option value="TRY">Turkish Lira</option>
<option value="USD">US Dollar</option>
${templates.addCoinOptions}
</select>
</div>
<div class="form-group">

1
index.html

@ -71,6 +71,7 @@
if (window.module) module = window.module;
const templates = {};
</script>
<script src="assets/scripts/templates/addCoinOptions.js"></script>
<script src="assets/scripts/templates/refreshBasiliskConnectionsModal.js"></script>
<script src="assets/scripts/templates/addCoinModal.js"></script>
<script src="assets/scripts/templates/ieFix.js"></script>

Loading…
Cancel
Save