-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (92 loc) · 3.15 KB
/
index.html
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<link href="css/main.css" rel="stylesheet" type="text/css" >
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" >
<script src="js/jquery.min.js" type="text/javascript"></script>
<script>
$(function(){
$('.btn-next').click(function(){
var getParent = $(this).parents('.section');
getParent.hide();
var indexFind = getParent.index();
setNextActive(indexFind);
getParent.next('li').show();
});
$('.btn-back').click(function(){
var getParent = $(this).parents('.section');
var indexFind = getParent.index();
getParent.hide();
setPrevActive(indexFind);
getParent.prev('li').show();
});
});
function setNextActive(pos)
{
var setPos = pos + 1;
console.log(setPos);
$('.ui-progressbar li').removeClass('progressbar-active');
$('.ui-progressbar li').eq(setPos).addClass('progressbar-active');
}
function setPrevActive(pos)
{
var setPos = pos - 1;
console.log(setPos);
$('.ui-progressbar li').removeClass('progressbar-active');
$('.ui-progressbar li').eq(setPos).addClass('progressbar-active');
}
</script>
</head>
<body>
<form class="ui-form">
<ul class="ui-progressbar">
<li class="progressbar-active">Enter Email</li>
<li>Social Profiles</li>
<li>Enter Verification Code</li>
<li>Create Password</li>
<li>Select Influencer</li>
<li>Create Profile</li>
</ul>
<ul class="FormList">
<li class="section section-one">
<h1>Heading</h1>
<input type="email" placeholder="Enter Your Email">
<button type="button" value="Next" class="btn-next">Next</button>
</li>
<li class="section section-two" style="display:none">
<h1>Heading</h1>
<input type="text" placeholder="Enter Your Name">
<button type="button" value="Next" class="btn-back">Back</button>
<button type="button" value="Next" class="btn-next">Next</button>
</li>
<li class="section section-three" style="display:none">
<h1>Heading</h1>
<input type="email" placeholder="Enter Otp">
<button type="button" value="Next" class="btn-back">Back</button>
<button type="button" value="Next" class="btn-next">Next</button>
</li>
<li class="section section-four" style="display:none">
<h1>Heading</h1>
<input type="Password" placeholder="Enter Password">
<input type="Password" placeholder="Re-Enter Password">
<button type="button" value="Next" class="btn-back">Back</button>
<button type="button" value="Next" class="btn-next">Next</button>
</li>
<li class="section section-five" style="display:none">
<h1>Heading</h1>
<input type="text" placeholder="Enter Influencer">
<button type="button" value="Next" class="btn-back">Back</button>
<button type="button" value="Next" class="btn-next">Next</button>
</li>
<li class="section section-six" style="display:none">
<h1>Heading</h1>
<button type="button" value="Next" class="btn-create">Create</button>
<button type="button" value="Next" class="btn-back">Back</button>
</li>
</ul>
</form>
</body>
</html>