Browse Source

test

master
Satinder Grewal 9 years ago
parent
commit
2ced1b5b41
  1. BIN
      assets/images/cryptologo/dex.png
  2. 12
      assets/scripts/coinwallets.js
  3. 3
      assets/scripts/dashboard.js
  4. 22
      index.html

BIN
assets/images/cryptologo/dex.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

12
assets/scripts/coinwallets.js

@ -2,21 +2,13 @@
$(document).ready(function() {
// button click
//$('#currency-send').on('click', function(){console.log($(this).data());});
//console.log('EhLoe!');
$('button[id="currency-send"]').on('click', sendCurrency($(this).data('currency')));
//$('button[id="currency-send"]').on('click', function(){console.log($(this).data('currency'));});
});
// Functions =============================================================
function sendCurrency(val) {
console.log('hello');
console.log(val);
//$(this).data("id")
}
/*(function(window, document, $){
console.log('hello');
$('button[id="currency-send"]').on('click', function(){console.log($(this).data('currency'));});
})(window, document, jQuery);*/
}

3
assets/scripts/dashboard.js

@ -50,6 +50,7 @@ var Dashboard = function() {
if ( AllcoinsDataOutput[value][index] == 'SYS' ) { coinlogo = 'syscoin'; coinname = 'Syscoin'; }
if ( AllcoinsDataOutput[value][index] == 'ZEC' ) { coinlogo = 'zcash'; coinname = 'Zcash'; }
if ( AllcoinsDataOutput[value][index] == 'NMC' ) { coinlogo = 'namecoin'; coinname = 'Namecoin'; }
if ( AllcoinsDataOutput[value][index] == 'DEX' ) { coinlogo = 'dex'; coinname = 'DEX'; }
//console.log(AllcoinsDataOutput[value][index]);
@ -112,7 +113,7 @@ var Dashboard = function() {
walletDivContent += '<div class="row no-space ">';
walletDivContent += '<div class="btn-group btn-group-justified">';
walletDivContent += '<div class="btn-group" role="group">';
walletDivContent += '<button type="button" class="btn btn-xs bg-blue-grey-200 grey-800 waves-effect waves-light" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-send">';
walletDivContent += '<button type="button" class="btn btn-xs bg-blue-grey-200 grey-800 waves-effect waves-light" data-currency="' + AllcoinsDataOutput[value][index] + '" id="currency-send" onclick="sendCurrency($(this).data())" data-target="#exampleNifty3dSign" data-toggle="modal">';
walletDivContent += '<i class="icon wb-upload" aria-hidden="true"></i>';
walletDivContent += '<br>';
walletDivContent += '<span class="text-uppercase hidden-xs">Send</span>';

22
index.html

@ -266,6 +266,28 @@
<div class="row" id="wallet-widgets" data-plugin="masonry">
</div>
<!-- Modal -->
<div class="modal fade modal-3d-sign" id="exampleNifty3dSign" aria-hidden="true"
aria-labelledby="exampleModalTitle" role="dialog" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header bg-orange-a400">
<button type="button" class="close white" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title white">Modal Title</h4>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-pure margin-0" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- End Modal -->
</div>
<!-- END DASHBOARD CONTENT BODY -->

Loading…
Cancel
Save