-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
73 lines (66 loc) · 1.53 KB
/
Copy pathApp.js
File metadata and controls
73 lines (66 loc) · 1.53 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React from 'react';
import ReactDOM from 'react-dom';
// import JHelp from './Component/Help'
import JHelp from '@jsh1400/help.js'
import Demo from './Demo'
const helpList= [
{
selector: '#iTest_700',
title: 'help test 7',
description: 'help test 7'
},
{
selector: '#iTest_37',
description: 'help test 37',
position: 'bottom'
},
{
selector: '#iTest_57',
description: 'help test 57'
},
{
selector: '#iTest_11',
description: 'help test 11'
},
{
selector: '#iTest_22',
description: 'help test 22'
},
{
selector: '#iTest_67',
description: 'help test 67'
}
]
class App extends React.Component {
state = { play: false, }
render () {
return (
<div className="App">
<header className="App-header">
<div style={{
position:'relative',
margin: '100px',
padding: '100px',
}}>
<button
style={{
position:'fixed', top: 0, left: 0, zIndex:2,
padding: '10px 20px'
}}
onClick={()=> this.setState({play: !this.state.play})}>HELP</button>
<JHelp
padding={2}
breakStep={true}
play={this.state.play}
helpList={helpList}
onSkip={()=>this.setState({play: false})}
onClose={()=>this.setState({play: false})}
/>
<Demo count={70}/>
</div>
</header>
</div>
)
}
}
ReactDOM.render(<App />, document.getElementById('app'))