Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
token-market
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
token-market
Commits
a13054f6
Unverified
Commit
a13054f6
authored
Jul 17, 2018
by
bitsoko
Committed by
GitHub
Jul 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create discover-tour.js
parent
23274481
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
discover-tour.js
js/discover-tour.js
+52
-0
No files found.
js/discover-tour.js
0 → 100644
View file @
a13054f6
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
)
{
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment