Skip to content

Commit f429c96

Browse files
committed
remove tour at load
1 parent 3e4135a commit f429c96

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

apps/remix-ide/src/walkthroughService.js

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const profile = {
77
displayName: 'Walkthrough',
88
description: 'Remix walkthrough for beginner',
99
version: packageJson.version,
10-
methods: ['start', 'startRecorderW']
10+
methods: ['startRecorderW']
1111
}
1212

1313
export class WalkthroughService extends Plugin {
@@ -67,51 +67,4 @@ export class WalkthroughService extends Plugin {
6767
}
6868
}).start()
6969
}
70-
71-
start () {
72-
if (!localStorage.getItem('hadTour_initial')) {
73-
introJs().setOptions({
74-
steps: [{
75-
title: 'Welcome to Remix IDE',
76-
intro: 'Click to launch the Home tab that contains links, tips, and shortcuts..',
77-
element: document.querySelector('#verticalIconsHomeIcon'),
78-
tooltipClass: 'bg-light text-dark',
79-
position: 'right',
80-
highlightClass: 'bg-light border border-warning'
81-
},
82-
{
83-
element: document.querySelector('#verticalIconsKindsolidity'),
84-
title: 'Solidity Compiler',
85-
intro: 'Having selected a .sol file in the File Explorer (the icon above), compile it with the Solidity Compiler.',
86-
tooltipClass: 'bg-light text-dark',
87-
position: 'right',
88-
highlightClass: 'bg-light border border-warning'
89-
},
90-
{
91-
title: 'Deploy your contract',
92-
element: document.querySelector('#verticalIconsKindudapp'),
93-
intro: 'Choose a chain, deploy a contract and play with your functions.',
94-
tooltipClass: 'bg-light text-dark',
95-
position: 'right',
96-
highlightClass: 'bg-light border border-warning'
97-
}
98-
]
99-
}).onafterchange((targetElement) => {
100-
const header = document.getElementsByClassName('introjs-tooltip-header')[0]
101-
if (header) {
102-
header.classList.add('d-flex')
103-
header.classList.add('justify-content-between')
104-
header.classList.add('text-nowrap')
105-
header.classList.add('pe-0')
106-
}
107-
const skipbutton = document.getElementsByClassName('introjs-skipbutton')[0]
108-
if (skipbutton) {
109-
skipbutton.classList.add('ms-3')
110-
skipbutton.classList.add('text-decoration-none')
111-
skipbutton.id = 'remixTourSkipbtn'
112-
}
113-
}).start()
114-
localStorage.setItem('hadTour_initial', true)
115-
}
116-
}
11770
}

0 commit comments

Comments
 (0)