File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 14
14
< div class ="circle "> 2</ div >
15
15
< div class ="circle "> 3</ div >
16
16
< div class ="circle "> 4</ div >
17
+ <!-- Add More Steps -->
18
+ < div class ="circle "> 5</ div >
17
19
</ div >
18
- < button class ="btn " id ="prev " disabled > Prev</ button >
19
- < button class ="btn " id ="next "> Next</ button >
20
+ <!-- Customize Button Text -->
21
+ < button class ="btn " id ="prev " disabled > Back</ button >
22
+ < button class ="btn " id ="next "> Continue</ button >
20
23
</ div >
21
24
< script src ="script.js "> </ script >
22
25
</ body >
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ const prev = document.getElementById("prev");
3
3
const next = document . getElementById ( "next" ) ;
4
4
const circles = document . querySelectorAll ( ".circle" ) ;
5
5
6
- let currentActive = 1 ;
6
+ // Change Initial Active Step
7
+ let currentActive = 2 ;
7
8
8
9
next . addEventListener ( "click" , ( ) => {
9
10
currentActive ++ ;
@@ -32,3 +33,5 @@ const update = () => {
32
33
next . disabled = false ;
33
34
}
34
35
} ;
36
+
37
+ update ( ) ;
Original file line number Diff line number Diff line change 1
1
@import url ("https://fonts.googleapis.com/css2?family=Muli&display=swap" );
2
2
3
3
: root {
4
- --line-border-fill : # 3498db ;
4
+ /* Change Active Step Color */
5
+ --line-border-fill : # e67e22 ;
5
6
--line-border-empty : # e0e0e0 ;
6
7
}
7
8
58
59
}
59
60
60
61
.circle {
61
- background-color : # fff ;
62
- color : # 999 ;
62
+ /* Style Inactive Circles */
63
+ background-color : # fbfbfb ;
64
+ color : # 716969 ;
63
65
border-radius : 50% ;
64
66
height : 30px ;
65
67
width : 30px ;
You can’t perform that action at this time.
0 commit comments