Unverified Commit a13054f6 authored by bitsoko's avatar bitsoko Committed by GitHub

Create discover-tour.js

parent 23274481
function discoverExchange(e) {
if (sessionStorage.getItem('walletKey')) {
if (e == 'dnb') {
document.querySelector('.tap-target').setAttribute("data-target", "add-" + activeCoin + "-buy-button");
newDisc = new M.FeatureDiscovery(document.querySelector('.tap-target'), {});
newDisc.open();
} else if (e == 'dfb') {
document.querySelector('.tap-target').setAttribute("data-target", "newFirstBuyBut");
$('.tap-target-title').html('best offer!');
$('.tap-target-text').html('Your wallet does not have this token.<br> click the buy button and follow instructions');
try {
newDisc = new M.FeatureDiscovery(document.querySelector('.tap-target'), {});
newDisc.open();
} catch (err) {
console.log('INFO: not activated buy guide', err);
}
}
} else {
//ask the user to unlock the wallet first
try {
document.querySelector('.tap-target').setAttribute("data-target", "toast-container");
$('.tap-target-title').html('start here');
$('.tap-target-text').html('click to unlock');
newDisc = new M.FeatureDiscovery(document.querySelector('.tap-target'), {});
newDisc.open();
} catch (e) {
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment