-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathtutorial.js
More file actions
33 lines (32 loc) · 1 KB
/
tutorial.js
File metadata and controls
33 lines (32 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Tutorial using intro.js
const startTutorial = () => {
// See https://introjs.com/docs/intro/options#options
const options = {
showBullets: false,
steps: [{
element: document.querySelector("#tutorialAnchor"),
title: 'Welcome!',
intro: 'We are so happy to see you here! 👋',
}, {
element: document.querySelector('#tumorSelectorArea'),
intro: 'Select one or more tumor types here.',
position: 'top',
}, {
element: document.querySelector("#geneOneQuerySelectBox"),
intro: 'Select one or more genes here.'
}, {
element: document.querySelector('#clinicalQuerySelectBox'),
intro: 'Select metadata here.'
}, {
element: document.querySelector("#geneTwoQuerySelectBox"),
intro: 'Select another gene (???)',
}, {
element: document.querySelector("#pathwaySelectBox"),
intro: "Select a pathway here."
}, {
element: document.querySelector("#submitButton"),
intro: "Click submit, and wait a few seconds for your plots!"
}]
};
introJs().setOptions(options).start()
}