Commit e847b36f8bef17d3636adfb52cfbc02652f743b9
1 parent
713fd16035
Exists in
master
and in
1 other branch
minor changes
Showing
2 changed files
with
32 additions
and
11 deletions
Show diff stats
pages/registration.html
1 | <div class="header"> | 1 | <div class="header"> |
2 | <div style="float: left;"> | 2 | <div style="float: left;"> |
3 | <a href="http://startupjalsa.com/" target="_blank"> | 3 | <a href="http://startupjalsa.com/" target="_blank"> |
4 | <img src="images/white.png" class="logo" > | 4 | <img src="images/white.png" class="logo" > |
5 | </a> | 5 | </a> |
6 | </div> | 6 | </div> |
7 | <!-- <div style="float: right;" class="right-side-links"> | 7 | <!-- <div style="float: right;" class="right-side-links"> |
8 | <a class="hyperColor" ng-click="openyoutube16()">Glipmses of 2016</a> | 8 | <a class="hyperColor" ng-click="openyoutube16()">Glipmses of 2016</a> |
9 | <a class="hyperColor" ng-click="openyoutube17()">Concept for 2017</a> | 9 | <a class="hyperColor" ng-click="openyoutube17()">Concept for 2017</a> |
10 | </div> --> | 10 | </div> --> |
11 | <div class="clearfix"></div> | 11 | <div class="clearfix"></div> |
12 | </div> | 12 | </div> |
13 | <!-- CLOSE HEADER --> | 13 | <!-- CLOSE HEADER --> |
14 | <form name="applicantForm" id="signupForm"> | 14 | <form name="applicantForm" id="signupForm"> |
15 | <div class="col-xs-12 col-md-10 col-md-offset-1"> | 15 | <div class="col-xs-12 col-md-10 col-md-offset-1"> |
16 | <p class="select-stage" style="font-size:16px;"><b>Please select one stage.</b></p> | 16 | <p class="select-stage" style="font-size:16px;"><b>Please select one stage.</b></p> |
17 | <div class="stage-shadow"> | 17 | <div class="stage-shadow"> |
18 | <div class="stages card-align"> | 18 | <div class="stages card-align"> |
19 | <div class="col-xs-4 no-padding"> | 19 | <div class="col-xs-4 no-padding"> |
20 | <div class="card stages-card"> | 20 | <div class="card stages-card"> |
21 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Idea" name="Idea" id="ideation" ng-required="Idea" ng-checked="true" checked="true" ng-click="stage('Idea')"> | 21 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Idea" name="Idea" id="ideation" ng-required="Idea" ng-checked="true" checked="true" ng-click="stage('Idea')"> |
22 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="ideation"> | 22 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="ideation"> |
23 | <img class="stage-img stage-idea" src="images/idea-stage.png" alt="Lights"> | 23 | <img class="stage-img stage-idea" src="images/idea-stage.png" alt="Lights"> |
24 | <div class="card-content f-family"> | 24 | <div class="card-content f-family"> |
25 | <p align="center">Idea</p> | 25 | <p align="center">Idea</p> |
26 | </div> | 26 | </div> |
27 | </label> | 27 | </label> |
28 | </div> | 28 | </div> |
29 | <div class="clearfix"></div> | 29 | <div class="clearfix"></div> |
30 | <div class="cards-content hidden-xs"> | 30 | <div class="cards-content hidden-xs"> |
31 | <p> | 31 | <p> |
32 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> | 32 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> |
33 | ⚬ Get feedback from mentors<br> | 33 | ⚬ Get feedback from mentors<br> |
34 | ⚬ Validate your idea. | 34 | ⚬ Validate your idea. |
35 | </p> | 35 | </p> |
36 | </div> | 36 | </div> |
37 | </div> | 37 | </div> |
38 | <div class="col-xs-4 no-padding-mobile"> | 38 | <div class="col-xs-4 no-padding-mobile"> |
39 | <div class="card stages-card margin-auto-mobile"> | 39 | <div class="card stages-card margin-auto-mobile"> |
40 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Product" name="Idea" id="Proof" ng-required="Product" ng-click="stage('Product')"> | 40 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Product" name="Idea" id="Proof" ng-required="Product" ng-click="stage('Product')"> |
41 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Proof"> | 41 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Proof"> |
42 | <img class="stage-img stage-product" src="images/production-stage.png" alt="Lights"> | 42 | <img class="stage-img stage-product" src="images/production-stage.png" alt="Lights"> |
43 | <div class="card-content f-family"> | 43 | <div class="card-content f-family"> |
44 | <p align="center">Product</p> | 44 | <p align="center">Product</p> |
45 | </div> | 45 | </div> |
46 | </label> | 46 | </label> |
47 | </div> | 47 | </div> |
48 | <div class="clearfix"></div> | 48 | <div class="clearfix"></div> |
49 | <div class="cards-content hidden-xs"> | 49 | <div class="cards-content hidden-xs"> |
50 | <p> | 50 | <p> |
51 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> | 51 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> |
52 | ⚬ Advice on fundraising<br> | 52 | ⚬ Advice on fundraising<br> |
53 | ⚬ Advice on go-to-market strategy | 53 | ⚬ Advice on go-to-market strategy |
54 | </p> | 54 | </p> |
55 | </div> | 55 | </div> |
56 | </div> | 56 | </div> |
57 | <div class="col-xs-4 no-padding"> | 57 | <div class="col-xs-4 no-padding"> |
58 | <div class="card stages-card right-stage-card"> | 58 | <div class="card stages-card right-stage-card"> |
59 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Growth" name="Idea" id="Beta" ng-required="Growth" ng-click="stage('Growth')"> | 59 | <input type="radio" ng-model="data.stage" class="stageRadio" value="Growth" name="Idea" id="Beta" ng-required="Growth" ng-click="stage('Growth')"> |
60 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Beta"> | 60 | <label style="cursor:pointer" class="thumbnail radius-border stage-thumbnail" for="Beta"> |
61 | <img class="stage-img stage-growth" src="images/growth-stage.png" alt="Lights"> | 61 | <img class="stage-img stage-growth" src="images/growth-stage.png" alt="Lights"> |
62 | <div class="card-content f-family"> | 62 | <div class="card-content f-family"> |
63 | <p align="center">Growth</p> | 63 | <p align="center">Growth</p> |
64 | </div> | 64 | </div> |
65 | </label> | 65 | </label> |
66 | </div> | 66 | </div> |
67 | <div class="clearfix"></div> | 67 | <div class="clearfix"></div> |
68 | <div class="cards-content hidden-xs"> | 68 | <div class="cards-content hidden-xs"> |
69 | <p> | 69 | <p> |
70 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> | 70 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> |
71 | ⚬ Connect with Series A investors<br> | 71 | ⚬ Connect with Series A investors<br> |
72 | ⚬ Connect and hire top startups | 72 | ⚬ Connect and hire top startups |
73 | </p> | 73 | </p> |
74 | </div> | 74 | </div> |
75 | </div> | 75 | </div> |
76 | <div class="clearfix"></div> | 76 | <div class="clearfix"></div> |
77 | </div> | 77 | </div> |
78 | <div class="clearfix"></div> | 78 | <div class="clearfix"></div> |
79 | </div> | 79 | </div> |
80 | <div class="hidden-sm hidden-md hidden-lg"> | 80 | <div class="hidden-sm hidden-md hidden-lg"> |
81 | <div class="cards-content" ng-if="data.stage == 'Idea'"> | 81 | <div class="cards-content" ng-if="data.stage == 'Idea'"> |
82 | <p> | 82 | <p> |
83 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> | 83 | ⚬ <span style="font-weight:bold">Have an idea and need execution help?</span><br> |
84 | ⚬ Get feedback from mentors<br> | 84 | ⚬ Get feedback from mentors<br> |
85 | ⚬ Validate your idea. | 85 | ⚬ Validate your idea. |
86 | </p> | 86 | </p> |
87 | </div> | 87 | </div> |
88 | <div class="cards-content" ng-if="data.stage == 'Product'"> | 88 | <div class="cards-content" ng-if="data.stage == 'Product'"> |
89 | <p> | 89 | <p> |
90 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> | 90 | ⚬ <span style="font-weight:bold">Have a prototype and want to take it to next level?</span><br> |
91 | ⚬ Advice on fundraising<br> | 91 | ⚬ Advice on fundraising<br> |
92 | ⚬ Advice on go-to-market strategy | 92 | ⚬ Advice on go-to-market strategy |
93 | </p> | 93 | </p> |
94 | </div> | 94 | </div> |
95 | <div class="cards-content" ng-if="data.stage == 'Growth'"> | 95 | <div class="cards-content" ng-if="data.stage == 'Growth'"> |
96 | <p> | 96 | <p> |
97 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> | 97 | ⚬ <span style="font-weight:bold">Have traction and looking to scale up?</span><br> |
98 | ⚬ Connect with Series A investors<br> | 98 | ⚬ Connect with Series A investors<br> |
99 | ⚬ Connect and hire top startups | 99 | ⚬ Connect and hire top startups |
100 | </p> | 100 | </p> |
101 | </div> | 101 | </div> |
102 | </div> | 102 | </div> |
103 | <!-- CLOSE STAGE SHADOW --> | 103 | <!-- CLOSE STAGE SHADOW --> |
104 | <div class="form-all"> | 104 | <div class="form-all"> |
105 | <div class="col-xs-12 col-md-6 input-wrapper"> | 105 | <div class="col-xs-12 col-md-6 input-wrapper"> |
106 | <div id="snackbar">Error ! Please fill in all fields.</div> | 106 | <div id="snackbar">Error ! Please fill in all fields.</div> |
107 | <div class="icon-circle-c"> | 107 | <div class="icon-circle-c"> |
108 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> | 108 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> |
109 | </div> | 109 | </div> |
110 | <input type="text" class="text-input" required ng-model="data.firstName" placeholder="First Name *" id="myBtn" name="firstName" ng-change="entername(data.firstName); firstNamekeyPress(data.firstName)"> | 110 | <input type="text" class="text-input" required ng-model="data.firstName" placeholder="First Name *" id="myBtn" name="firstName" ng-change="entername(data.firstName); firstNamekeyPress(data.firstName)"> |
111 | </div> | 111 | </div> |
112 | <div class="col-xs-12 col-md-6 input-wrapper"> | 112 | <div class="col-xs-12 col-md-6 input-wrapper"> |
113 | <div id="snackbar">Error ! Please fill in all fields.</div> | 113 | <div id="snackbar">Error ! Please fill in all fields.</div> |
114 | <div class="icon-circle-x"> | 114 | <div class="icon-circle-x"> |
115 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> | 115 | <i class="material-icons" style="line-height: 31px;">assignment_ind</i> |
116 | </div> | 116 | </div> |
117 | <input type="text" class="text-input" required ng-model="data.lastName" placeholder="Last Name *" id="myBtn" name="lastName" ng-change="entername(data.lastName); lastNamekeyPress(data.lastName)"> | 117 | <input type="text" class="text-input" required ng-model="data.lastName" placeholder="Last Name *" id="myBtn" name="lastName" ng-change="entername(data.lastName); lastNamekeyPress(data.lastName)"> |
118 | </div> | 118 | </div> |
119 | <div class="col-xs-12 col-md-6 input-wrapper"> | 119 | <div class="col-xs-12 col-md-6 input-wrapper"> |
120 | <div id="snackbar">Error ! Please fill in all fields.</div> | 120 | <div id="snackbar">Error ! Please fill in all fields.</div> |
121 | <div class="icon-circle-d"> | 121 | <div class="icon-circle-d"> |
122 | <i class="material-icons" style="line-height: 30px;">email</i> | 122 | <i class="material-icons" style="line-height: 30px;">email</i> |
123 | </div> | 123 | </div> |
124 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)"> | 124 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)" ng-keyup="emailTest($event)"> |
125 | <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> | 125 | <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> |
126 | <label ng-if="check">Email already exist.</label> | 126 | <label ng-if="check">Email already exist.</label> |
127 | <label style="color: #ff0000;margin: 5px 4px -5px 0px" ng-if="space == true" >Please remove the space.</label> | ||
127 | </div> | 128 | </div> |
128 | <div class="col-xs-12 col-md-6 input-wrapper f-family"> | 129 | <div class="col-xs-12 col-md-6 input-wrapper f-family"> |
129 | <div class="icon-circle-f"> | 130 | <div class="icon-circle-f"> |
130 | <i class="material-icons" style="line-height: 30px;">location_city</i> | 131 | <i class="material-icons" style="line-height: 30px;">location_city</i> |
131 | </div> | 132 | </div> |
132 | <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" required style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;"> | 133 | <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" required style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;"> |
133 | <option name="city" selected disabled value="">Choose City *</option> | 134 | <option name="city" selected disabled value="">Choose City *</option> |
134 | <option value="Agra">Agra</option> | 135 | <option value="Agra">Agra</option> |
135 | <option value="Ahmedabad">Ahmedabad</option> | 136 | <option value="Ahmedabad">Ahmedabad</option> |
136 | <option value="Ajmer">Ajmer</option> | 137 | <option value="Ajmer">Ajmer</option> |
137 | <option value="Aligarh">Aligarh</option> | 138 | <option value="Aligarh">Aligarh</option> |
138 | <option value="Allahabad">Allahabad</option> | 139 | <option value="Allahabad">Allahabad</option> |
139 | <option value="Ambattur">Ambattur</option> | 140 | <option value="Ambattur">Ambattur</option> |
140 | <option value="Amravati">Amravati</option> | 141 | <option value="Amravati">Amravati</option> |
141 | <option value="Amritsar">Amritsar</option> | 142 | <option value="Amritsar">Amritsar</option> |
142 | <option value="Asansol">Asansol</option> | 143 | <option value="Asansol">Asansol</option> |
143 | <option value="Aurangabad">Aurangabad</option> | 144 | <option value="Aurangabad">Aurangabad</option> |
144 | <option value="Bareilly">Bareilly</option> | 145 | <option value="Bareilly">Bareilly</option> |
145 | <option value="Belgaum">Belgaum</option> | 146 | <option value="Belgaum">Belgaum</option> |
146 | <option value="Bengaluru">Bengaluru</option> | 147 | <option value="Bengaluru">Bengaluru</option> |
147 | <option value="Bhavnagar">Bhavnagar</option> | 148 | <option value="Bhavnagar">Bhavnagar</option> |
148 | <option value="Bhayander">Bhayander</option> | 149 | <option value="Bhayander">Bhayander</option> |
149 | <option value="Bhilai Nagar">Bhilai Nagar</option> | 150 | <option value="Bhilai Nagar">Bhilai Nagar</option> |
150 | <option value="Bhiwandi">Bhiwandi</option> | 151 | <option value="Bhiwandi">Bhiwandi</option> |
151 | <option value="Bhopal">Bhopal</option> | 152 | <option value="Bhopal">Bhopal</option> |
152 | <option value="Bhubaneswar">Bhubaneswar</option> | 153 | <option value="Bhubaneswar">Bhubaneswar</option> |
153 | <option value="Bikaner">Bikaner</option> | 154 | <option value="Bikaner">Bikaner</option> |
154 | <option value="Chandigarh">Chandigarh</option> | 155 | <option value="Chandigarh">Chandigarh</option> |
155 | <option value="Chennai">Chennai</option> | 156 | <option value="Chennai">Chennai</option> |
156 | <option value="Chinchwad">Chinchwad</option> | 157 | <option value="Chinchwad">Chinchwad</option> |
157 | <option value="Coimbatore">Coimbatore</option> | 158 | <option value="Coimbatore">Coimbatore</option> |
158 | <option value="Cuttack">Cuttack</option> | 159 | <option value="Cuttack">Cuttack</option> |
159 | <option value="Dehradun">Dehradun</option> | 160 | <option value="Dehradun">Dehradun</option> |
160 | <option value="Delhi-NCR">Delhi-NCR</option> | 161 | <option value="Delhi-NCR">Delhi-NCR</option> |
161 | <option value="Dhanbad">Dhanbad</option> | 162 | <option value="Dhanbad">Dhanbad</option> |
162 | <option value="Dharwad">Dharwad</option> | 163 | <option value="Dharwad">Dharwad</option> |
163 | <option value="Dombivali">Dombivali</option> | 164 | <option value="Dombivali">Dombivali</option> |
164 | <option value="Durgapur">Durgapur</option> | 165 | <option value="Durgapur">Durgapur</option> |
165 | <option value="Faridabad">Faridabad</option> | 166 | <option value="Faridabad">Faridabad</option> |
166 | <option value="Firozabad">Firozabad</option> | 167 | <option value="Firozabad">Firozabad</option> |
167 | <option value="Gaya">Gaya</option> | 168 | <option value="Gaya">Gaya</option> |
168 | <option value="Ghaziabad">Ghaziabad</option> | 169 | <option value="Ghaziabad">Ghaziabad</option> |
169 | <option value="Gorakhpur">Gorakhpur</option> | 170 | <option value="Gorakhpur">Gorakhpur</option> |
170 | <option value="Gulbarga">Gulbarga</option> | 171 | <option value="Gulbarga">Gulbarga</option> |
171 | <option value="Guntur">Guntur</option> | 172 | <option value="Guntur">Guntur</option> |
172 | <option value="Gurgaon">Gurgaon</option> | 173 | <option value="Gurgaon">Gurgaon</option> |
173 | <option value="Guwahati">Guwahati</option> | 174 | <option value="Guwahati">Guwahati</option> |
174 | <option value="Gwalior">Gwalior</option> | 175 | <option value="Gwalior">Gwalior</option> |
175 | <option value="Haora">Haora</option> | 176 | <option value="Haora">Haora</option> |
176 | <option value="Hubli">Hubli</option> | 177 | <option value="Hubli">Hubli</option> |
177 | <option value="Hyderabad">Hyderabad</option> | 178 | <option value="Hyderabad">Hyderabad</option> |
178 | <option value="Indore">Indore</option> | 179 | <option value="Indore">Indore</option> |
179 | <option value="Jabalpur">Jabalpur</option> | 180 | <option value="Jabalpur">Jabalpur</option> |
180 | <option value="Jaipur">Jaipur</option> | 181 | <option value="Jaipur">Jaipur</option> |
181 | <option value="Jalandhar">Jalandhar</option> | 182 | <option value="Jalandhar">Jalandhar</option> |
182 | <option value="Jalgaon">Jalgaon</option> | 183 | <option value="Jalgaon">Jalgaon</option> |
183 | <option value="Jammu">Jammu</option> | 184 | <option value="Jammu">Jammu</option> |
184 | <option value="Jamnagar">Jamnagar</option> | 185 | <option value="Jamnagar">Jamnagar</option> |
185 | <option value="Jamshedpur">Jamshedpur</option> | 186 | <option value="Jamshedpur">Jamshedpur</option> |
186 | <option value="Jhansi">Jhansi</option> | 187 | <option value="Jhansi">Jhansi</option> |
187 | <option value="Jodhpur">Jodhpur</option> | 188 | <option value="Jodhpur">Jodhpur</option> |
188 | <option value="Kalyan">Kalyan</option> | 189 | <option value="Kalyan">Kalyan</option> |
189 | <option value="Kanpur">Kanpur</option> | 190 | <option value="Kanpur">Kanpur</option> |
190 | <option value="Kochi">Kochi</option> | 191 | <option value="Kochi">Kochi</option> |
191 | <option value="Kolapur">Kolapur</option> | 192 | <option value="Kolapur">Kolapur</option> |
192 | <option value="Kolkata">Kolkata</option> | 193 | <option value="Kolkata">Kolkata</option> |
193 | <option value="Kota">Kota</option> | 194 | <option value="Kota">Kota</option> |
194 | <option value="Loni">Loni</option> | 195 | <option value="Loni">Loni</option> |
195 | <option value="Lucknow">Lucknow</option> | 196 | <option value="Lucknow">Lucknow</option> |
196 | <option value="Ludhiana">Ludhiana</option> | 197 | <option value="Ludhiana">Ludhiana</option> |
197 | <option value="Madurai">Madurai</option> | 198 | <option value="Madurai">Madurai</option> |
198 | <option value="Maheshtala">Maheshtala</option> | 199 | <option value="Maheshtala">Maheshtala</option> |
199 | <option value="Malegoan">Malegoan</option> | 200 | <option value="Malegoan">Malegoan</option> |
200 | <option value="Mangalore">Mangalore</option> | 201 | <option value="Mangalore">Mangalore</option> |
201 | <option value="Meerut">Meerut</option> | 202 | <option value="Meerut">Meerut</option> |
202 | <option value="Mira">Mira</option> | 203 | <option value="Mira">Mira</option> |
203 | <option value="Moradabad">Moradabad</option> | 204 | <option value="Moradabad">Moradabad</option> |
204 | <option value="Mumbai">Mumbai</option> | 205 | <option value="Mumbai">Mumbai</option> |
205 | <option value="Mysore">Mysore</option> | 206 | <option value="Mysore">Mysore</option> |
206 | <option value="Nagpur">Nagpur</option> | 207 | <option value="Nagpur">Nagpur</option> |
207 | <option value="Nanded Waghala">Nanded Waghala</option> | 208 | <option value="Nanded Waghala">Nanded Waghala</option> |
208 | <option value="Nashik">Nashik</option> | 209 | <option value="Nashik">Nashik</option> |
209 | <option value="Navi Mumbai">Navi Mumbai</option> | 210 | <option value="Navi Mumbai">Navi Mumbai</option> |
210 | <option value="Nellore">Nellore</option> | 211 | <option value="Nellore">Nellore</option> |
211 | <option value="Noida">Noida</option> | 212 | <option value="Noida">Noida</option> |
212 | <option value="Patna">Patna</option> | 213 | <option value="Patna">Patna</option> |
213 | <option value="Pimpri">Pimpri</option> | 214 | <option value="Pimpri">Pimpri</option> |
214 | <option value="Pune">Pune</option> | 215 | <option value="Pune">Pune</option> |
215 | <option value="Raipur">Raipur</option> | 216 | <option value="Raipur">Raipur</option> |
216 | <option value="Rajkot">Rajkot</option> | 217 | <option value="Rajkot">Rajkot</option> |
217 | <option value="Ranchi">Ranchi</option> | 218 | <option value="Ranchi">Ranchi</option> |
218 | <option value="Saharanpur">Saharanpur</option> | 219 | <option value="Saharanpur">Saharanpur</option> |
219 | <option value="Salem">Salem</option> | 220 | <option value="Salem">Salem</option> |
220 | <option value="Sangli Miraj Kupwad">Sangli Miraj Kupwad</option> | 221 | <option value="Sangli Miraj Kupwad">Sangli Miraj Kupwad</option> |
221 | <option value="Siliguri">Siliguri</option> | 222 | <option value="Siliguri">Siliguri</option> |
222 | <option value="Solapur">Solapur</option> | 223 | <option value="Solapur">Solapur</option> |
223 | <option value="Srinagar">Srinagar</option> | 224 | <option value="Srinagar">Srinagar</option> |
224 | <option value="Surat">Surat</option> | 225 | <option value="Surat">Surat</option> |
225 | <option value="Thane">Thane</option> | 226 | <option value="Thane">Thane</option> |
226 | <option value="Thiruvananthapuram">Thiruvananthapuram</option> | 227 | <option value="Thiruvananthapuram">Thiruvananthapuram</option> |
227 | <option value="Tiruchirappalli">Tiruchirappalli</option> | 228 | <option value="Tiruchirappalli">Tiruchirappalli</option> |
228 | <option value="Tirunelveli">Tirunelveli</option> | 229 | <option value="Tirunelveli">Tirunelveli</option> |
229 | <option value="Udaipur">Udaipur</option> | 230 | <option value="Udaipur">Udaipur</option> |
230 | <option value="Ujjain">Ujjain</option> | 231 | <option value="Ujjain">Ujjain</option> |
231 | <option value="Ulhasnagar">Ulhasnagar</option> | 232 | <option value="Ulhasnagar">Ulhasnagar</option> |
232 | <option value="Vadodara">Vadodara</option> | 233 | <option value="Vadodara">Vadodara</option> |
233 | <option value="Varanasi">Varanasi</option> | 234 | <option value="Varanasi">Varanasi</option> |
234 | <option value="Vasai Virar">Vasai Virar</option> | 235 | <option value="Vasai Virar">Vasai Virar</option> |
235 | <option value="Vijayawada">Vijayawada</option> | 236 | <option value="Vijayawada">Vijayawada</option> |
236 | <option value="Visakhapatnam">Visakhapatnam</option> | 237 | <option value="Visakhapatnam">Visakhapatnam</option> |
237 | <option value="Warangal">Warangal</option> | 238 | <option value="Warangal">Warangal</option> |
238 | <option value="anyOther">Any other</option> | 239 | <option value="anyOther">Any other</option> |
239 | </select> | 240 | </select> |
240 | </div> | 241 | </div> |
241 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 242 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
242 | <strong>Which city meet-up would you like to attend? </strong> | 243 | <strong>Which city meet-up would you like to attend? </strong> |
243 | <p class="line-space" ></p> | 244 | <p class="line-space" ></p> |
244 | </div> | 245 | </div> |
245 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 246 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
246 | <div class="icon-circle-p"> | 247 | <div class="icon-circle-p"> |
247 | <i class="material-icons" style="line-height: 30px;">location_city</i> | 248 | <i class="material-icons" style="line-height: 30px;">location_city</i> |
248 | </div> | 249 | </div> |
249 | <select name="citymeetup" ng-model="data.citymeetup" ng-change="enterbusiness(data.citymeetup); businesskeyPress(data.citymeetup)" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> | 250 | <select name="citymeetup" ng-model="data.citymeetup" ng-change="enterbusiness(data.citymeetup); businesskeyPress(data.citymeetup)" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> |
250 | <option selected disabled value="">City meet-up *</option> | 251 | <option selected disabled value="">City meet-up *</option> |
251 | <option value="Chennai">November 9: Chennai</option> | 252 | <option value="Chennai">November 9: Chennai</option> |
252 | <option value="Pune">November 11: Pune</option> | 253 | <option value="Pune">November 11: Pune</option> |
253 | <option value="Ahmedabad">November 13: Ahmedabad</option> | 254 | <option value="Ahmedabad">November 13: Ahmedabad</option> |
254 | <option value="Mumbai">November 17: Mumbai</option> | 255 | <option value="Mumbai">November 17: Mumbai</option> |
255 | <option value="Bengaluru">November 23: Bengaluru</option> | 256 | <option value="Bengaluru">November 23: Bengaluru</option> |
256 | <option value="Delhi">November 25: Delhi</option> | 257 | <option value="Delhi">November 25: Delhi</option> |
257 | <option value="Hyderabad">November 17: Hyderabad</option> | 258 | <option value="Hyderabad">November 17: Hyderabad</option> |
258 | <option value="Chandigarh">December 1: Chandigarh</option> | 259 | <option value="Chandigarh">December 1: Chandigarh</option> |
259 | </select> | 260 | </select> |
260 | </div> | 261 | </div> |
261 | <div class="col-xs-12 col-md-6 input-wrapper"> | 262 | <div class="col-xs-12 col-md-6 input-wrapper"> |
262 | <div id="snackbar">Error ! Please fill in all fields.</div> | 263 | <div id="snackbar">Error ! Please fill in all fields.</div> |
263 | <div class="icon-circle-e"> | 264 | <div class="icon-circle-e"> |
264 | <i class="material-icons" style="line-height: 30px;">phone</i> | 265 | <i class="material-icons" style="line-height: 30px;">phone</i> |
265 | </div> | 266 | </div> |
266 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-blur="numbercheck(data.number)" ng-model="data.number" placeholder="Mobile No.*" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)"> | 267 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-blur="numbercheck(data.number)" ng-model="data.number" placeholder="Mobile No.*" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)"> |
267 | <label ng-if="numberCheck">Contact Number already exist.</label> | 268 | <label ng-if="numberCheck">Contact Number already exist.</label> |
268 | </div> | 269 | </div> |
269 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> | 270 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> |
270 | <div id="snackbar">Error ! Please fill in all fields.</div> | 271 | <div id="snackbar">Error ! Please fill in all fields.</div> |
271 | <div class="icon-circle-h"> | 272 | <div class="icon-circle-h"> |
272 | <i class="material-icons" style="line-height: 31px;">link</i> | 273 | <i class="material-icons" style="line-height: 31px;">link</i> |
273 | </div> | 274 | </div> |
274 | <input type="text" class="text-input" ng-model="data.linkedInUrl" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="LinkedIn URL" id="myBtn" name="linkedInUrl" ng-change="entername(data.linkedInUrl); linkedInkeyPress(data.linkedInUrl)"> | 275 | <input type="text" class="text-input" ng-model="data.linkedInUrl" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="LinkedIn URL" id="myBtn" name="linkedInUrl" ng-change="entername(data.linkedInUrl); linkedInkeyPress(data.linkedInUrl)"> |
275 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.linkedInUrl == undefined || data.linkedInUrl == ''" style="position:absolute; top: 10px; left: 116px; color: #999">*</span> | 276 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.linkedInUrl == undefined || data.linkedInUrl == ''" style="position:absolute; top: 10px; left: 116px; color: #999">*</span> |
276 | </div> | 277 | </div> |
277 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 278 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
278 | <strong>Explain your idea/product briefly</strong> | 279 | <strong>Explain your idea/product briefly</strong> |
279 | <p class="line-space" ></p> | 280 | <p class="line-space" ></p> |
280 | </div> | 281 | </div> |
281 | <div class="col-xs-12 col-md-12 input-wrapper"> | 282 | <div class="col-xs-12 col-md-12 input-wrapper"> |
282 | <div id="snackbar">Error ! Please fill in all fields.</div> | 283 | <div id="snackbar">Error ! Please fill in all fields.</div> |
283 | <div class="icon-circle-q"> | 284 | <div class="icon-circle-q"> |
284 | <i class="material-icons" style="line-height: 31px;">thumb_up</i> | 285 | <i class="material-icons" style="line-height: 31px;">thumb_up</i> |
285 | </div> | 286 | </div> |
286 | <textarea type="text" maxlength="300" class="text-input" required ng-model="data.idea" placeholder="Idea/Product *" id="myBtn" name="Idea" ng-focus="removeNooError()" ng-change="entername(data.idea); ideakeyPress(data.idea)"> | 287 | <textarea type="text" maxlength="300" class="text-input" required ng-model="data.idea" placeholder="Idea/Product *" id="myBtn" name="Idea" ng-focus="removeNooError()" ng-change="entername(data.idea); ideakeyPress(data.idea)"> |
287 | </textarea> | 288 | </textarea> |
288 | <label class="error-message f-family" id="invalidIdea">Please answer using 300 words only.</label> | 289 | <label class="error-message f-family" id="invalidIdea">Please answer using 300 words only.</label> |
289 | </div> | 290 | </div> |
290 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 291 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
291 | <div class="icon-circle-abcdefg"> | 292 | <div class="icon-circle-abcdefg"> |
292 | <i class="material-icons" style="line-height: 30px;">open_with</i> | 293 | <i class="material-icons" style="line-height: 30px;">open_with</i> |
293 | </div> | 294 | </div> |
294 | <select name="industry" ng-model="data.industry" ng-change="industry(data.industry); industrykeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="dataIndustry"> | 295 | <select name="industry" ng-model="data.industry" ng-change="industry(data.industry); industrykeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="dataIndustry"> |
295 | <option selected disabled value="">Choose Industry *</option> | 296 | <option selected disabled value="">Choose Industry *</option> |
296 | <option value="Travel">Travel</option> | 297 | <option value="Travel">Travel</option> |
297 | <option value="Retail">Retail</option> | 298 | <option value="Retail">Retail</option> |
298 | <option value="Editech">Editech</option> | 299 | <option value="Editech">Editech</option> |
299 | <option value="Fintech">Fintech</option> | 300 | <option value="Fintech">Fintech</option> |
300 | <option value="Hardware">Hardware</option> | 301 | <option value="Hardware">Hardware</option> |
301 | <option value="Digital">Digital</option> | 302 | <option value="Digital">Digital</option> |
302 | <option value="Rural">Rural</option> | 303 | <option value="Rural">Rural</option> |
303 | <option value="others">Others</option> | 304 | <option value="others">Others</option> |
304 | </select> | 305 | </select> |
305 | </div> | 306 | </div> |
306 | <div class="col-xs-12 col-md-12 input-wrapper" ng-if="addOther"> | 307 | <div class="col-xs-12 col-md-12 input-wrapper" ng-if="addOther"> |
307 | <div id="snackbar">Error ! Please fill in all fields.</div> | 308 | <div id="snackbar">Error ! Please fill in all fields.</div> |
308 | <div class="icon-circle-o"> | 309 | <div class="icon-circle-o"> |
309 | <i class="material-icons" style="line-height: 31px;">open_with</i> | 310 | <i class="material-icons" style="line-height: 31px;">open_with</i> |
310 | </div> | 311 | </div> |
311 | <input type="text" class="text-input" ng-change="industry(data.industryName); industryNamekeyPress((data.industryName))" ng-model="data.industryName" placeholder="Please mention other industry name"> | 312 | <input type="text" class="text-input" ng-change="industry(data.industryName); industryNamekeyPress((data.industryName))" ng-model="data.industryName" placeholder="Please mention other industry name"> |
312 | </div> | 313 | </div> |
313 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> | 314 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> |
314 | <div id="snackbar">Error ! Please fill in all fields.</div> | 315 | <div id="snackbar">Error ! Please fill in all fields.</div> |
315 | <div class="icon-circle-i"> | 316 | <div class="icon-circle-i"> |
316 | <i class="material-icons" style="line-height: 31px;">business</i> | 317 | <i class="material-icons" style="line-height: 31px;">business</i> |
317 | </div> | 318 | </div> |
318 | <input type="text" class="text-input" ng-model="data.companyName" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="Company Name" id="myBtn" name="companyName" ng-change="entername(data.companyName); companykeyPress(data.companyName)"> | 319 | <input type="text" class="text-input" ng-model="data.companyName" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="Company Name" id="myBtn" name="companyName" ng-change="entername(data.companyName); companykeyPress(data.companyName)"> |
319 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.companyName == undefined || data.companyName == ''" style="position:absolute; top: 10px; left: 130px; color: #999">*</span> | 320 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.companyName == undefined || data.companyName == ''" style="position:absolute; top: 10px; left: 130px; color: #999">*</span> |
320 | </div> | 321 | </div> |
321 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> | 322 | <div class="col-xs-12 col-md-6 input-wrapper" style="position:relative"> |
322 | <div id="snackbar">Error ! Please fill in all fields.</div> | 323 | <div id="snackbar">Error ! Please fill in all fields.</div> |
323 | <div class="icon-circle-j"> | 324 | <div class="icon-circle-j"> |
324 | <i class="material-icons" style="line-height: 31px;">view_comfy</i> | 325 | <i class="material-icons" style="line-height: 31px;">view_comfy</i> |
325 | </div> | 326 | </div> |
326 | <input type="text" class="text-input" ng-model="data.productName" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="Product Name" id="myBtn" name="productName" ng-change="entername(data.productName); productNamekeyPress(data.productName)"> | 327 | <input type="text" class="text-input" ng-model="data.productName" ng-required="data.stage == 'Product' || data.stage == 'Growth'" placeholder="Product Name" id="myBtn" name="productName" ng-change="entername(data.productName); productNamekeyPress(data.productName)"> |
327 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.productName == undefined || data.productName == ''" style="position:absolute; top: 10px; left: 120px; color: #999">*</span> | 328 | <span ng-if="data.stage == 'Product' || data.stage == 'Growth'" ng-show="data.productName == undefined || data.productName == ''" style="position:absolute; top: 10px; left: 120px; color: #999">*</span> |
328 | </div> | 329 | </div> |
329 | <div class="hideform" ng-if="prototyp"> | 330 | <div class="hideform" ng-if="prototyp"> |
331 | <div class="hideform" ng-if="protyp"> | ||
330 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 332 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
331 | <strong>Product Launched? </strong> | 333 | <strong>Product Launched? </strong> |
332 | <p class="line-space" ></p> | 334 | <p class="line-space" ></p> |
333 | </div> | 335 | </div> |
334 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 336 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
335 | <div class="icon-circle-ab"> | 337 | <div class="icon-circle-ab"> |
336 | <i class="material-icons" style="line-height: 30px;">launch</i> | 338 | <i class="material-icons" style="line-height: 30px;">launch</i> |
337 | </div> | 339 | </div> |
338 | <select name="productLaunch" ng-model="data.productLaunch" ng-change="productLaunch(data.productLaunch); productLaunchkeyPress()" ng-click="productCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="productDiv"> | 340 | <select name="productLaunch" ng-model="data.productLaunch" ng-change="productLaunch(data.productLaunch); productLaunchkeyPress()" ng-click="productCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="productDiv"> |
339 | <option selected disabled value="">Select *</option> | 341 | <option selected disabled value="">Select *</option> |
340 | <option value="yes">Yes</option> | 342 | <option value="yes">Yes</option> |
341 | <option value="no">No</option> | 343 | <option value="no">No</option> |
342 | </select> | 344 | </select> |
343 | </div> | 345 | </div> |
344 | <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="Productshow == 'yes'"> | 346 | <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="Productshow == 'yes'"> |
345 | <strong>Product Launch Period </strong> | 347 | <strong>Product Launch Period </strong> |
346 | <p class="line-space" ></p> | 348 | <p class="line-space" ></p> |
347 | </div> | 349 | </div> |
348 | <div class="col-xs-12 col-md-12 input-wrapper f-family" ng-if="Productshow == 'yes'"> | 350 | <div class="col-xs-12 col-md-12 input-wrapper f-family" ng-if="Productshow == 'yes'"> |
349 | <div class="icon-circle-abc"> | 351 | <div class="icon-circle-abc"> |
350 | <i class="material-icons" style="line-height: 30px;">launch</i> | 352 | <i class="material-icons" style="line-height: 30px;">launch</i> |
351 | </div> | 353 | </div> |
352 | <select name="launchPeriod" ng-model="data.launchPeriod" ng-change="launchPeriod(data.launchPeriod); launchPeriodkeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> | 354 | <select name="launchPeriod" ng-model="data.launchPeriod" ng-change="launchPeriod(data.launchPeriod); launchPeriodkeyPress()" required style="background-color: #fff;border-radius: 0; font-size: 12px;"> |
353 | <option selected disabled value="">Select</option> | 355 | <option selected disabled value="">Select</option> |
354 | <option value="less than 1 Month">less than one month</option> | 356 | <option value="less than 1 Month">less than one month</option> |
355 | <option value="less than 6 Months">less than 6 months</option> | 357 | <option value="less than 6 Months">less than 6 months</option> |
356 | <option value="more than 6 Months">more than 6 months</option> | 358 | <option value="more than 6 Months">more than 6 months</option> |
357 | </select> | 359 | </select> |
358 | </div> | 360 | </div> |
359 | </div> | 361 | </div> |
360 | <div class="hideform" ng-if="protyp"> | ||
361 | <div class="col-xs-12 col-md-6 input-wrapper"> | 362 | <div class="col-xs-12 col-md-6 input-wrapper"> |
362 | <div id="snackbar">Error ! Please fill in all fields.</div> | 363 | <div id="snackbar">Error ! Please fill in all fields.</div> |
363 | <div class="icon-circle-k"> | 364 | <div class="icon-circle-k"> |
364 | <i class="material-icons" style="line-height: 31px;">web</i> | 365 | <i class="material-icons" style="line-height: 31px;">web</i> |
365 | </div> | 366 | </div> |
366 | <input type="text" class="text-input" ng-model="data.websiteUrl" placeholder="Website URL *" id="myBtn" name="websiteUrl" ng-change="entername(data.websiteUrl); websitekeyPress(data.websiteUrl)"> | 367 | <input type="text" class="text-input" ng-model="data.websiteUrl" ng-required="Productshow == 'yes'" placeholder="Website URL *" id="myBtn" name="websiteUrl" ng-change="entername(data.websiteUrl); websitekeyPress(data.websiteUrl)"> |
367 | </div> | 368 | </div> |
368 | <div class="col-xs-12 col-md-6 input-wrapper"> | 369 | <div class="col-xs-12 col-md-6 input-wrapper"> |
369 | <div id="snackbar">Error ! Please fill in all fields.</div> | 370 | <div id="snackbar">Error ! Please fill in all fields.</div> |
370 | <div class="icon-circle-m"> | 371 | <div class="icon-circle-m"> |
371 | <i class="material-icons" style="line-height: 31px;">link</i> | 372 | <i class="material-icons" style="line-height: 31px;">link</i> |
372 | </div> | 373 | </div> |
373 | <input type="text" class="text-input" ng-model="data.demoLink" placeholder="Link to your product/app/demo *" id="myBtn" name="demoLink" ng-change="entername(data.demoLink); annualkeyPress(data.demoLink)"> | 374 | <input type="text" class="text-input" ng-model="data.demoLink" ng-required="Productshow == 'yes'" placeholder="Link to your product/app/demo *" id="myBtn" name="demoLink" ng-change="entername(data.demoLink); annualkeyPress(data.demoLink)"> |
374 | </div> | 375 | </div> |
375 | <div class="col-xs-12 col-md-6 input-wrapper"> | 376 | <div class="col-xs-12 col-md-6 input-wrapper"> |
376 | <div id="snackbar">Error ! Please fill in all fields.</div> | 377 | <div id="snackbar">Error ! Please fill in all fields.</div> |
377 | <div class="icon-circle-l"> | 378 | <div class="icon-circle-l"> |
378 | <i class="material-icons" style="line-height: 31px;">format_list_numbered</i> | 379 | <i class="material-icons" style="line-height: 31px;">format_list_numbered</i> |
379 | </div> | 380 | </div> |
380 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-model="data.numberOfEmployees" placeholder="Number of Employees *" id="myBtn" name="numberOfEmployees" ng-change="entername(data.numberOfEmployees); employeekeyPress(data.numberOfEmployees)"> | 381 | <input type="text" ng-pattern="/^[0-9+-]*$/" maxlength="15" class="text-input" ng-required="Productshow == 'yes'" ng-model="data.numberOfEmployees" placeholder="Number of Employees *" id="myBtn" name="numberOfEmployees" ng-change="entername(data.numberOfEmployees); employeekeyPress(data.numberOfEmployees)"> |
381 | </div> | 382 | </div> |
382 | <div class="col-xs-12 col-md-6 input-wrapper"> | 383 | <div class="col-xs-12 col-md-6 input-wrapper"> |
383 | <div id="snackbar">Error ! Please fill in all fields.</div> | 384 | <div id="snackbar">Error ! Please fill in all fields.</div> |
384 | <div class="icon-circle-n"> | 385 | <div class="icon-circle-n"> |
385 | <i class="material-icons" style="line-height: 31px;">view_stream</i> | 386 | <i class="material-icons" style="line-height: 31px;">view_stream</i> |
386 | </div> | 387 | </div> |
387 | <input type="text" class="text-input" ng-model="data.revenueMonth" placeholder="Monthly Revenue *" id="myBtn" name="revenueMonth" ng-change="entername(data.revenueMonth); revenuekeyPress(data.revenueMonth)"> | 388 | <input type="text" class="text-input" ng-model="data.revenueMonth" ng-required="Productshow == 'yes'" placeholder="Monthly Revenue *" id="myBtn" name="revenueMonth" ng-change="entername(data.revenueMonth); revenuekeyPress(data.revenueMonth)"> |
388 | </div> | 389 | </div> |
389 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 390 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
390 | <p><b>Have you risen any funding yet?</b></p> | 391 | <p><b>Have you risen any funding yet?</b></p> |
391 | <div class="icon-circle-bc"> | 392 | <div class="icon-circle-bc"> |
392 | <i class="material-icons" style="line-height: 30px;">payment</i> | 393 | <i class="material-icons" style="line-height: 30px;">payment</i> |
393 | </div> | 394 | </div> |
394 | <select name="amount" ng-model="data.amount" ng-change="amount(data.amount); amountkeyPress()" ng-click="textCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="fundingDiv"> | 395 | <select name="amount" ng-model="data.amount" ng-required="Productshow == 'yes'" ng-change="amount(data.amount); amountkeyPress()" ng-click="textCheck()" required style="background-color: #fff;border-radius: 0; font-size: 12px;" id="fundingDiv"> |
395 | <option selected disabled value="">Select *</option> | 396 | <option selected disabled value="">Select *</option> |
396 | <option value="yes">Yes</option> | 397 | <option value="yes">Yes</option> |
397 | <option value="no">No</option> | 398 | <option value="no">No</option> |
398 | </select> | 399 | </select> |
399 | </div> | 400 | </div> |
400 | <div class="col-xs-12 col-md-12 input-wrapper" ng-if="Textshow == 'yes'"> | 401 | <div class="col-xs-12 col-md-12 input-wrapper" ng-if="Textshow == 'yes'"> |
401 | <div class="icon-circle-y" > | 402 | <div class="icon-circle-y" > |
402 | <i class="material-icons" style="line-height: 31px;">money</i> | 403 | <i class="material-icons" style="line-height: 31px;">money</i> |
403 | </div> | 404 | </div> |
404 | <input type="text" name="fund" class="text-input" ng-model="data.fund" placeholder="Fill amount" ng-change="fund(data.fund); fundkeyPress(data.fund)"></input> | 405 | <input type="text" name="fund" class="text-input" ng-model="data.fund" placeholder="Fill amount" ng-change="fund(data.fund); fundkeyPress(data.fund)"></input> |
405 | </div> | 406 | </div> |
406 | </div> | 407 | </div> |
407 | <!-- <div class="identity-shadow"> | 408 | <!-- <div class="identity-shadow"> |
408 | <div class="icon-circle-bc"> | 409 | <div class="icon-circle-bc"> |
409 | <i class="material-icons" style="line-height: 30px;">payment</i> | 410 | <i class="material-icons" style="line-height: 30px;">payment</i> |
410 | </div> | 411 | </div> |
411 | <div class="identity-question"> | 412 | <div class="identity-question"> |
412 | <div class="col-xs-12 font f-family" style="margin:10px 10px 0px 10px;"> | 413 | <div class="col-xs-12 font f-family" style="margin:10px 10px 0px 10px;"> |
413 | <b>Have you risen any funding yet?</b> | 414 | <b>Have you risen any funding yet?</b> |
414 | <p style="color:grey"></p> | 415 | <p style="color:grey"></p> |
415 | </div> | 416 | </div> |
416 | <div class="clearfix"></div> | 417 | <div class="clearfix"></div> |
417 | </div> | 418 | </div> |
418 | <div class="stages identity-align"> | 419 | <div class="stages identity-align"> |
419 | <div class="col-xs-12"> | 420 | <div class="col-xs-12"> |
420 | <label class="card-small margin-right-label"> | 421 | <label class="card-small margin-right-label"> |
421 | <input type="radio" value="yes" ng-model="data.amount" class="option-input-a radio-a pull-left" id="yesRadio" ng-change="amount(data.amount); amountkeyPress(); textCheck('yes')" name="amount" > | 422 | <input type="radio" value="yes" ng-model="data.amount" class="option-input-a radio-a pull-left" id="yesRadio" ng-change="amount(data.amount); amountkeyPress(); textCheck('yes')" name="amount" > |
422 | <label class="f-family pull-left width-auto" for="yesRadio">Yes</label> | 423 | <label class="f-family pull-left width-auto" for="yesRadio">Yes</label> |
423 | </label> | 424 | </label> |
424 | <label class="card-small margin-right-label"> | 425 | <label class="card-small margin-right-label"> |
425 | <input type="radio" value="no" ng-model="data.amount" class="option-input-a radio-a pull-left" id="noRadio" ng-change="amount(data.amount); amountkeyPress(); textCheck('no')" name="amount" > | 426 | <input type="radio" value="no" ng-model="data.amount" class="option-input-a radio-a pull-left" id="noRadio" ng-change="amount(data.amount); amountkeyPress(); textCheck('no')" name="amount" > |
426 | 427 | ||
427 | <label class="f-family pull-left width-auto" for="noRadio">No</label> | 428 | <label class="f-family pull-left width-auto" for="noRadio">No</label> |
428 | </label> | 429 | </label> |
429 | </div> | 430 | </div> |
430 | </div> | 431 | </div> |
431 | 432 | ||
432 | <div class="clearfix"></div> | 433 | <div class="clearfix"></div> |
433 | </div> --> | 434 | </div> --> |
434 | <div class="col-xs-12 input-wrapper"> | 435 | <div class="col-xs-12 input-wrapper"> |
435 | <div class="referel-icon" style="z-index: 999;"> | 436 | <div class="referel-icon" style="z-index: 999;"> |
436 | <i class="material-icons" style="line-height: 30px;">code</i> | 437 | <i class="material-icons" style="line-height: 30px;">code</i> |
437 | </div> | 438 | </div> |
438 | <input class="text-input" ng-model="data.referalToken" placeholder="Enter Promo code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> | 439 | <input class="text-input" ng-model="data.referalToken" placeholder="Enter Promo code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> |
439 | <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> | 440 | <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> |
440 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> | 441 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> |
441 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> | 442 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> |
442 | </div> | 443 | </div> |
443 | <div class="clearfix"></div> | 444 | <div class="clearfix"></div> |
444 | <div class="text-center"> | 445 | <div class="text-center"> |
445 | <input type="submit" class="btn submit-button" ng-disabled="applicantForm.$invalid|| check|| numberCheck" value="Submit" ng-click="calculateAmount()"> | 446 | <input type="submit" class="btn submit-button" ng-disabled="applicantForm.$invalid|| check|| numberCheck" value="Submit" ng-click="calculateAmount()"> |
446 | </div> | 447 | </div> |
447 | 448 | ||
448 | </div> | 449 | </div> |
449 | </div> | 450 | </div> |
450 | <!-- CLOSE step-two-form --> | 451 | <!-- CLOSE step-two-form --> |
451 | </div> | 452 | </div> |
452 | <!-- col-xs-12 col-md-8 col-md-offset-2 --> | 453 | <!-- col-xs-12 col-md-8 col-md-offset-2 --> |
453 | </form> | 454 | </form> |
454 | <!-- CLOSE FORM --> | 455 | <!-- CLOSE FORM --> |
455 | <footer> | 456 | <footer> |
456 | <img id="footer" class="img-responsive banner"> | 457 | <img id="footer" class="img-responsive banner"> |
457 | <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technolgies.</a> </center> | 458 | <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technolgies.</a> </center> |
458 | </footer> | 459 | </footer> |
459 | <!-- </div> CLOSE CHECK VIEW --> | 460 | <!-- </div> CLOSE CHECK VIEW --> |
460 | <div ng-if="verifyView"> | 461 | <div ng-if="verifyView"> |
461 | <div style="margin-bottom: 0px;" class="text-center"> | 462 | <div style="margin-bottom: 0px;" class="text-center"> |
462 | <input type="button" class="btn submit-button" ng-disabled="applicantForm.$invalid" value="check the status" ng-click="update()"> | 463 | <input type="button" class="btn submit-button" ng-disabled="applicantForm.$invalid" value="check the status" ng-click="update()"> |
463 | </div> | 464 | </div> |
464 | </div> | 465 | </div> |
465 | </div> <!-- CLOSE NEW-CONTROLLER --> | 466 | </div> <!-- CLOSE NEW-CONTROLLER --> |
466 | <!-- <div id="snacsskbar">Registration done successfully.</div> | 467 | <!-- <div id="snacsskbar">Registration done successfully.</div> |
467 | --><!-- <div class="modal fade" id="myModal" role="dialog"> | 468 | --><!-- <div class="modal fade" id="myModal" role="dialog"> |
468 | <div class="modal-dialog" style="left: auto;"> | 469 | <div class="modal-dialog" style="left: auto;"> |
469 | <div class="modal-content"> | 470 | <div class="modal-content"> |
470 | <h4 style="text-align:center;">Congratulations, you are now eligible for:</h4> | 471 | <h4 style="text-align:center;">Congratulations, you are now eligible for:</h4> |
471 | <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" style="border:1px solid #f6f6eb;margin-top:10px"> | 472 | <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" style="border:1px solid #f6f6eb;margin-top:10px"> |
472 | <tbody style="background-color:#f9f9f9"> | 473 | <tbody style="background-color:#f9f9f9"> |
473 | <tr> | 474 | <tr> |
474 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> | 475 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> |
475 | </tr> | 476 | </tr> |
476 | <tr> | 477 | <tr> |
477 | <td align="left" valign="top" style="padding:10px"> | 478 | <td align="left" valign="top" style="padding:10px"> |
478 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | 479 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
479 | <tbody> | 480 | <tbody> |
480 | <tr> | 481 | <tr> |
481 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:20px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Summary</td> | 482 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:20px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Summary</td> |
482 | </tr> | 483 | </tr> |
483 | </tbody> | 484 | </tbody> |
484 | </table> | 485 | </table> |
485 | </td> | 486 | </td> |
486 | </tr> | 487 | </tr> |
487 | </tbody> | 488 | </tbody> |
488 | <tbody> | 489 | <tbody> |
489 | <tr> | 490 | <tr> |
490 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> | 491 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> |
491 | </tr> | 492 | </tr> |
492 | <tr> | 493 | <tr> |
493 | <td align="left" valign="top" style="padding:10px"> | 494 | <td align="left" valign="top" style="padding:10px"> |
494 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | 495 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
495 | <tbody> | 496 | <tbody> |
496 | <tr> | 497 | <tr> |
497 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Amount</td> | 498 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Ticket Amount</td> |
498 | <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{ticketAmnt}}</td> | 499 | <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{ticketAmnt}}</td> |
499 | </tr> | 500 | </tr> |
500 | </tbody> | 501 | </tbody> |
501 | </table> | 502 | </table> |
502 | </td> | 503 | </td> |
503 | </tr> | 504 | </tr> |
504 | <tr> | 505 | <tr> |
505 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> | 506 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> |
506 | </tr> | 507 | </tr> |
507 | <tr> | 508 | <tr> |
508 | <td align="left" valign="top" style="padding:10px"> | 509 | <td align="left" valign="top" style="padding:10px"> |
509 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | 510 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
510 | <tbody> | 511 | <tbody> |
511 | <tr> | 512 | <tr> |
512 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Discount</td> | 513 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Discount</td> |
513 | <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{discountAmount}}</td> | 514 | <td align="right" valign="middle" style="color:#5e5e5e;font-size:18px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{discountAmount}}</td> |
514 | </tr> | 515 | </tr> |
515 | </tbody> | 516 | </tbody> |
516 | </table> | 517 | </table> |
517 | </td> | 518 | </td> |
518 | </tr> | 519 | </tr> |
519 | <tr> | 520 | <tr> |
520 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> | 521 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> |
521 | </tr> | 522 | </tr> |
522 | <tr> | 523 | <tr> |
523 | <td align="left" valign="top" style="padding:10px"> | 524 | <td align="left" valign="top" style="padding:10px"> |
524 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | 525 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
525 | <tbody> | 526 | <tbody> |
526 | <tr> | 527 | <tr> |
527 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:14px;line-height:26px;font-family:Avenir-Medium,arial,sans-serif">GST</td> | 528 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:14px;line-height:26px;font-family:Avenir-Medium,arial,sans-serif">GST</td> |
528 | <td align="right" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{taxTotal}}</td> | 529 | <td align="right" valign="middle" style="color:#5e5e5e;font-size:16px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{taxTotal}}</td> |
529 | </tr> | 530 | </tr> |
530 | </tbody> | 531 | </tbody> |
531 | </table> | 532 | </table> |
532 | </td> | 533 | </td> |
533 | </tr> | 534 | </tr> |
534 | <tr> | 535 | <tr> |
535 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> | 536 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> |
536 | </tr> | 537 | </tr> |
537 | <tr> | 538 | <tr> |
538 | <td align="left" valign="top" bgcolor="#f9f9f9" style="padding:10px"> | 539 | <td align="left" valign="top" bgcolor="#f9f9f9" style="padding:10px"> |
539 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | 540 | <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
540 | <tbody> | 541 | <tbody> |
541 | <tr> | 542 | <tr> |
542 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:22px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Total Amount</td> | 543 | <td align="left" valign="middle" style="color:#5e5e5e;font-size:22px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">Total Amount</td> |
543 | <td align="right" valign="middle" style="color:#29bd9d;font-size:24px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{payingAmnt}}</td> | 544 | <td align="right" valign="middle" style="color:#29bd9d;font-size:24px;line-height:26px;font-family:Avenir-Heavy,arial,sans-serif">{{payingAmnt}}</td> |
544 | </tr> | 545 | </tr> |
545 | </tbody> | 546 | </tbody> |
546 | </table> | 547 | </table> |
547 | </td> | 548 | </td> |
548 | </tr> | 549 | </tr> |
549 | <tr> | 550 | <tr> |
550 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> | 551 | <td bgcolor="#efefeb" style="font-size:1px;line-height:1px"></td> |
551 | </tr> | 552 | </tr> |
552 | </tbody> | 553 | </tbody> |
553 | </table> | 554 | </table> |
554 | <div style="text-align:center;margin-bottom:5%"> | 555 | <div style="text-align:center;margin-bottom:5%"> |
555 | <button type="button" style="color:#fff;background-color:#4CAF50;margin-top:5%" class="btn btn-default" data-dismiss="modal" ng-click="create()">Proceed to Pay</button> | 556 | <button type="button" style="color:#fff;background-color:#4CAF50;margin-top:5%" class="btn btn-default" data-dismiss="modal" ng-click="create()">Proceed to Pay</button> |
556 | </div> | 557 | </div> |
557 | </div> | 558 | </div> |
558 | </div> | 559 | </div> |
559 | </div> | 560 | </div> |
560 | 561 | ||
561 | <div class="modal fade" id="videoModel" role="dialog" ng-click="closeModal()"> | 562 | <div class="modal fade" id="videoModel" role="dialog" ng-click="closeModal()"> |
562 | <div class="modal-dialog" style="left: auto;"> | 563 | <div class="modal-dialog" style="left: auto;"> |
563 | <div class="modal-content" > | 564 | <div class="modal-content" > |
564 | 565 | ||
565 | <div class="modal-body" style="text-align: right;" > | 566 | <div class="modal-body" style="text-align: right;" > |
566 | <i class="material-icons" style="cursor: pointer;" data-dismiss="modal" ng-click="closeModal()">clear</i> | 567 | <i class="material-icons" style="cursor: pointer;" data-dismiss="modal" ng-click="closeModal()">clear</i> |
567 | <iframe width="560" id="youtubePlayer" height="315" src="https://www.youtube.com/embed/8i1bLQ7jS0I" frameborder="0" allowfullscreen></iframe> | 568 | <iframe width="560" id="youtubePlayer" height="315" src="https://www.youtube.com/embed/8i1bLQ7jS0I" frameborder="0" allowfullscreen></iframe> |
568 | </div> | 569 | </div> |
569 | 570 | ||
570 | </div> | 571 | </div> |
571 | </div> | 572 | </div> |
572 | </div> | 573 | </div> |
573 | 574 | ||
574 | 575 | ||
575 | <div class="modal fade" id="videoModels" role="dialog" ng-click="closed()"> | 576 | <div class="modal fade" id="videoModels" role="dialog" ng-click="closed()"> |
576 | <div class="modal-dialog" style="left: auto;"> | 577 | <div class="modal-dialog" style="left: auto;"> |
577 | <div class="modal-content"> | 578 | <div class="modal-content"> |
578 | <div class="modal-body" style="text-align: right;" > | 579 | <div class="modal-body" style="text-align: right;" > |
579 | <i class="material-icons" style="cursor: pointer;" data-dismiss="modal" ng-click="closed()">clear</i> | 580 | <i class="material-icons" style="cursor: pointer;" data-dismiss="modal" ng-click="closed()">clear</i> |
580 | <iframe width="560" id="youtubePlayersss" height="315" src="https://www.youtube.com/embed/oBqdz-p3R6Y" frameborder="0" allowfullscreen></iframe> | 581 | <iframe width="560" id="youtubePlayersss" height="315" src="https://www.youtube.com/embed/oBqdz-p3R6Y" frameborder="0" allowfullscreen></iframe> |
581 | </div> | 582 | </div> |
582 | 583 | ||
583 | </div> | 584 | </div> |
584 | </div> | 585 | </div> |
585 | </div> | 586 | </div> |
586 | 587 | ||
587 | 588 | ||
588 | 589 | ||
589 | 590 | ||
590 | 591 | ||
591 | 592 |
script.js
1 | // create the module and name it scotchApp | 1 | // create the module and name it scotchApp |
2 | var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); | 2 | var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); |
3 | 3 | ||
4 | // configure our routes | 4 | // configure our routes |
5 | scotchApp.config(function($routeProvider) { | 5 | scotchApp.config(function($routeProvider) { |
6 | $routeProvider | 6 | $routeProvider |
7 | 7 | ||
8 | // route for the Home page | 8 | // route for the Home page |
9 | .when('/', { | 9 | .when('/', { |
10 | templateUrl: 'pages/Home.html', | 10 | templateUrl: 'pages/Home.html', |
11 | controller: 'mainController' | 11 | controller: 'mainController' |
12 | }) | 12 | }) |
13 | 13 | ||
14 | // route for the registration page | 14 | // route for the registration page |
15 | .when('/registration', { | 15 | .when('/registration', { |
16 | templateUrl: 'pages/registration.html', | 16 | templateUrl: 'pages/registration.html', |
17 | controller: 'mainController' | 17 | controller: 'mainController' |
18 | }) | 18 | }) |
19 | 19 | ||
20 | // route for the paymentVerify page | 20 | // route for the paymentVerify page |
21 | .when('/pendingPayment/:id', { | 21 | .when('/pendingPayment/:id', { |
22 | templateUrl: 'pages/verify.html', | 22 | templateUrl: 'pages/verify.html', |
23 | controller: 'verifyController' | 23 | controller: 'verifyController' |
24 | }) | 24 | }) |
25 | 25 | ||
26 | // route for the ambassador page | 26 | // route for the ambassador page |
27 | .when('/ambassador', { | 27 | .when('/ambassador', { |
28 | templateUrl: 'pages/ambassador.html', | 28 | templateUrl: 'pages/ambassador.html', |
29 | controller: 'ambassadorController' | 29 | controller: 'ambassadorController' |
30 | }) | 30 | }) |
31 | 31 | ||
32 | // route for the confirmation page | 32 | // route for the confirmation page |
33 | .when('/confirmation', { | 33 | .when('/confirmation', { |
34 | templateUrl: 'pages/confirmation.html', | 34 | templateUrl: 'pages/confirmation.html', |
35 | controller: 'mainController' | 35 | controller: 'mainController' |
36 | }) | 36 | }) |
37 | 37 | ||
38 | }); | 38 | }); |
39 | 39 | ||
40 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { | 40 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { |
41 | // Add configuration code as desired | 41 | // Add configuration code as desired |
42 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code | 42 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code |
43 | 43 | ||
44 | // Track all routes (default is true). | 44 | // Track all routes (default is true). |
45 | AnalyticsProvider.trackPages(true); | 45 | AnalyticsProvider.trackPages(true); |
46 | 46 | ||
47 | // Track all URL query params (default is false). | 47 | // Track all URL query params (default is false). |
48 | AnalyticsProvider.trackUrlParams(true); | 48 | AnalyticsProvider.trackUrlParams(true); |
49 | 49 | ||
50 | }]).run(['Analytics', function(Analytics) { }]); | 50 | }]).run(['Analytics', function(Analytics) { }]); |
51 | 51 | ||
52 | scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api") | 52 | scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api") |
53 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api") | 53 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/api") |
54 | 54 | ||
55 | // create the controller and inject Angular's $scope | 55 | // create the controller and inject Angular's $scope |
56 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { | 56 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { |
57 | $scope.data = { | 57 | $scope.data = { |
58 | show: true, | 58 | show: true, |
59 | hide: false | 59 | hide: false |
60 | }; | 60 | }; |
61 | 61 | ||
62 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 62 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
63 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | ||
63 | // $scope.Textshow = "yes" | 64 | // $scope.Textshow = "yes" |
64 | $scope.max = 100; | 65 | $scope.max = 100; |
65 | $scope.current = 0; | 66 | $scope.current = 0; |
66 | $scope.payingAmnt = 0; | 67 | $scope.payingAmnt = 0; |
67 | if ($scope.data.stage == 'select') { | 68 | if ($scope.data.stage == 'select') { |
68 | 69 | ||
69 | } | 70 | } |
70 | 71 | ||
71 | //$scope.author = 'Swarn Singh'; | 72 | //$scope.author = 'Swarn Singh'; |
72 | $scope.data = {}; | 73 | $scope.data = {}; |
73 | $scope.data.stage = 'Idea'; | 74 | $scope.data.stage = 'Idea'; |
74 | $scope.discountAmount = 0; | 75 | $scope.discountAmount = 0; |
75 | $scope.check = false; | 76 | $scope.check = false; |
76 | $scope.numberCheck = false; | 77 | $scope.numberCheck = false; |
77 | $scope.paymentResult = {}; | 78 | $scope.paymentResult = {}; |
78 | var data = { | 79 | var data = { |
79 | "amount": $scope.payingAmnt, | 80 | "amount": $scope.payingAmnt, |
80 | "currency": "INR", | 81 | "currency": "INR", |
81 | "status": "pending" | 82 | "status": "pending" |
82 | } | 83 | } |
83 | 84 | ||
84 | /*open videos in modal*/ | 85 | /*open videos in modal*/ |
85 | // $scope.openyoutube16 = function(){ | 86 | // $scope.openyoutube16 = function(){ |
86 | // $('#videoModel').modal('show'); | 87 | // $('#videoModel').modal('show'); |
87 | // } | 88 | // } |
88 | 89 | ||
89 | // $scope.openyoutube17 = function(){ | 90 | // $scope.openyoutube17 = function(){ |
90 | // $('#videoModels').modal('show'); | 91 | // $('#videoModels').modal('show'); |
91 | // } | 92 | // } |
92 | 93 | ||
93 | // $scope.closeModal = function(){ | 94 | // $scope.closeModal = function(){ |
94 | // var url = $('#youtubePlayer').attr('src'); | 95 | // var url = $('#youtubePlayer').attr('src'); |
95 | // $('#youtubePlayer').attr('src', ''); | 96 | // $('#youtubePlayer').attr('src', ''); |
96 | // $('#youtubePlayer').attr('src', url); | 97 | // $('#youtubePlayer').attr('src', url); |
97 | // } | 98 | // } |
98 | 99 | ||
99 | 100 | ||
100 | // $scope.closed = function(){ | 101 | // $scope.closed = function(){ |
101 | // var url = $('#youtubePlayersss').attr('src'); | 102 | // var url = $('#youtubePlayersss').attr('src'); |
102 | // $('#youtubePlayersss').attr('src', ''); | 103 | // $('#youtubePlayersss').attr('src', ''); |
103 | // $('#youtubePlayersss').attr('src', url); | 104 | // $('#youtubePlayersss').attr('src', url); |
104 | // } | 105 | // } |
105 | /*open videos ends here*/ | 106 | /*open videos ends here*/ |
106 | $scope.apply = function() { | 107 | $scope.apply = function() { |
107 | Analytics.trackEvent('register', 'click', 'django.mp4'); | 108 | Analytics.trackEvent('register', 'click', 'django.mp4'); |
108 | $location.path("/registration") | 109 | $location.path("/registration") |
109 | } | 110 | } |
110 | 111 | ||
111 | $scope.removeError = function() { | 112 | $scope.removeError = function() { |
112 | $('#invalidEmail').css('display', 'none'); | 113 | $('#invalidEmail').css('display', 'none'); |
113 | $('#alreadyExist').css('display', 'none'); | 114 | $('#alreadyExist').css('display', 'none'); |
114 | }; | 115 | }; |
115 | 116 | ||
116 | $scope.emailcheck = function(val) { | 117 | $scope.emailcheck = function(val) { |
118 | console.log(val) | ||
119 | $scope.space = /\s/g.test(val); | ||
120 | console.log("space",$scope.space) | ||
117 | if (val == undefined) { | 121 | if (val == undefined) { |
118 | $('#invalidEmail').css('display', 'block'); | 122 | $('#invalidEmail').css('display', 'block'); |
119 | } else { | 123 | } else { |
120 | $http({ | 124 | $http({ |
121 | method: 'GET', | 125 | method: 'GET', |
122 | url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', | 126 | url: BASE_URL + '/applicants?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', |
123 | headers: {} | 127 | headers: {} |
124 | }).then(function mySuccess(searchResult) { | 128 | }).then(function mySuccess(searchResult) { |
125 | console.log("searchResult1===>", searchResult) | 129 | console.log("searchResult1===>", searchResult) |
126 | if (searchResult.data.length == 0) { | 130 | if (searchResult.data.length == 0) { |
127 | $scope.check = false; | 131 | $scope.check = false; |
128 | } else { | 132 | } else { |
129 | $scope.check = true; | 133 | $scope.check = true; |
130 | $('#alreadyExist').css('display', 'block'); | 134 | $('#alreadyExist').css('display', 'block'); |
131 | } | 135 | } |
132 | }, function myError(error) {}); | 136 | }, function myError(error) {}); |
133 | } | 137 | } |
134 | }; | 138 | }; |
135 | 139 | ||
136 | $scope.removeNoError = function() { | 140 | $scope.removeNoError = function() { |
137 | $('#noExist').css('display', 'none'); | 141 | $('#noExist').css('display', 'none'); |
138 | }; | 142 | }; |
139 | 143 | ||
140 | $scope.numbercheck = function(number) { | 144 | $scope.numbercheck = function(number) { |
141 | $http({ | 145 | $http({ |
142 | method: 'GET', | 146 | method: 'GET', |
143 | url: BASE_URL + '/applicants?filter={"where": {"phone": {"like":"%25' + number + '%25"}}}', | 147 | url: BASE_URL + '/applicants?filter={"where": {"phone": {"like":"%25' + number + '%25"}}}', |
144 | data: $scope.data, | 148 | data: $scope.data, |
145 | headers: {} | 149 | headers: {} |
146 | }).then(function mySuccess(searchResult) { | 150 | }).then(function mySuccess(searchResult) { |
147 | console.log("searchResult===>", searchResult) | 151 | console.log("searchResult===>", searchResult) |
148 | if (searchResult.data.length == 0) { | 152 | if (searchResult.data.length == 0) { |
149 | $scope.numberCheck = false; | 153 | $scope.numberCheck = false; |
150 | 154 | ||
151 | } else { | 155 | } else { |
152 | $scope.numberCheck = true; | 156 | $scope.numberCheck = true; |
153 | $('#noExist').css('display', 'block'); | 157 | $('#noExist').css('display', 'block'); |
154 | } | 158 | } |
155 | }, function myError(error) {}); | 159 | }, function myError(error) {}); |
156 | }; | 160 | }; |
157 | 161 | ||
158 | $rootScope.tokenCall = function(val) { | 162 | $rootScope.tokenCall = function(val) { |
159 | console.log('val-------->', val); | 163 | console.log('val-------->', val); |
160 | if (val == undefined) { | 164 | if (val == undefined) { |
161 | $('#invalidEmail').css('display', 'block'); | 165 | $('#invalidEmail').css('display', 'block'); |
162 | } else { | 166 | } else { |
163 | val = val.toUpperCase(); | 167 | val = val.toUpperCase(); |
164 | $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": {"like":"%25' + val + '%25"}}}') | 168 | $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": {"like":"%25' + val + '%25"}}}') |
165 | .then(function(searchResult) { | 169 | .then(function(searchResult) { |
166 | if (searchResult.data.length == 0) { | 170 | if (searchResult.data.length == 0) { |
167 | $scope.tokencheck = false; | 171 | $scope.tokencheck = false; |
168 | $scope.discountAmount = 0; | 172 | $scope.discountAmount = 0; |
169 | } else { | 173 | } else { |
170 | $scope.tokencheck = true; | 174 | $scope.tokencheck = true; |
171 | } | 175 | } |
172 | },function(err){ | 176 | },function(err){ |
173 | console.log(err) | 177 | console.log(err) |
174 | }); | 178 | }); |
175 | 179 | ||
176 | } | 180 | } |
177 | }; | 181 | }; |
178 | 182 | ||
183 | |||
184 | |||
179 | 185 | ||
180 | /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ | 186 | /*THIS CODE FOR ENABLED SUBMIT BUTTON AFTER UPLOAD IMAGE*/ |
181 | $(document).ready( | 187 | $(document).ready( |
182 | function() { | 188 | function() { |
183 | $('input:submit').attr('disabled', true); | 189 | $('input:submit').attr('disabled', true); |
184 | $('input:file').change( | 190 | $('input:file').change( |
185 | function() { | 191 | function() { |
186 | if ($("#picture").val()) { | 192 | if ($("#picture").val()) { |
187 | $('input:submit').removeAttr('disabled'); | 193 | $('input:submit').removeAttr('disabled'); |
188 | } else { | 194 | } else { |
189 | $('input:submit').attr('disabled', true); | 195 | $('input:submit').attr('disabled', true); |
190 | } | 196 | } |
191 | }); | 197 | }); |
192 | }); | 198 | }); |
193 | 199 | ||
194 | /*****THIS IS FOR STEP ONE FORM ******/ | 200 | /*****THIS IS FOR STEP ONE FORM ******/ |
195 | // $scope.next = function() { | 201 | // $scope.next = function() { |
196 | // $scope.data.status = null | 202 | // $scope.data.status = null |
197 | // if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { | 203 | // if ($scope.data.stage == undefined || $scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { |
198 | // var x = document.getElementById("snackbar") | 204 | // var x = document.getElementById("snackbar") |
199 | // x.className = "show"; | 205 | // x.className = "show"; |
200 | // setTimeout(function() { | 206 | // setTimeout(function() { |
201 | // x.className = x.className.replace("show", ""); | 207 | // x.className = x.className.replace("show", ""); |
202 | // }, 3000); | 208 | // }, 3000); |
203 | // } else if ($scope.data.stage != undefined && $scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { | 209 | // } else if ($scope.data.stage != undefined && $scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { |
204 | // $scope.infoForm = true; | 210 | // $scope.infoForm = true; |
205 | // console.log("sdasdasdsa"); | 211 | // console.log("sdasdasdsa"); |
206 | // $scope.data.stage = $scope.data.stage; | 212 | // $scope.data.stage = $scope.data.stage; |
207 | // $scope.detail = {}; | 213 | // $scope.detail = {}; |
208 | // $scope.data.phone = "+91" + $scope.data.number; | 214 | // $scope.data.phone = "+91" + $scope.data.number; |
209 | // $http({ | 215 | // $http({ |
210 | // method: 'POST', | 216 | // method: 'POST', |
211 | // url: BASE_URL + '/information', | 217 | // url: BASE_URL + '/information', |
212 | // data: $scope.data, | 218 | // data: $scope.data, |
213 | // headers: {} | 219 | // headers: {} |
214 | // }).then(function mySuccess(result) { | 220 | // }).then(function mySuccess(result) { |
215 | // Analytics.trackEvent('information', 'click', 'django.mp4'); | 221 | // Analytics.trackEvent('information', 'click', 'django.mp4'); |
216 | // console.log("result", result) | 222 | // console.log("result", result) |
217 | // $scope.detail = result; | 223 | // $scope.detail = result; |
218 | // data.applicantId = result.data.id; | 224 | // data.applicantId = result.data.id; |
219 | // $scope.userId = result.data.id; | 225 | // $scope.userId = result.data.id; |
220 | 226 | ||
221 | // }, function myError(error) {}); | 227 | // }, function myError(error) {}); |
222 | 228 | ||
223 | // } | 229 | // } |
224 | 230 | ||
225 | // } | 231 | // } |
226 | 232 | ||
227 | $scope.calculateAmount = function(){ | 233 | $scope.calculateAmount = function(){ |
228 | if ($scope.data.stage == undefined || $scope.data.firstName == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { | 234 | if ($scope.data.stage == undefined || $scope.data.firstName == undefined || $scope.data.email == undefined || $scope.data.number == undefined || $scope.data.city == undefined) { |
229 | var x = document.getElementById("snackbar") | 235 | var x = document.getElementById("snackbar") |
230 | x.className = "show"; | 236 | x.className = "show"; |
231 | setTimeout(function() { | 237 | setTimeout(function() { |
232 | x.className = x.className.replace("show", ""); | 238 | x.className = x.className.replace("show", ""); |
233 | }, 3000); | 239 | }, 3000); |
234 | } else if ($scope.data.stage != undefined && $scope.data.firstName != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { | 240 | } else if ($scope.data.stage != undefined && $scope.data.firstName != undefined && $scope.data.email != undefined && $scope.data.number != undefined && $scope.data.city != undefined) { |
235 | $scope.infoForm = true; | 241 | $scope.infoForm = true; |
236 | console.log("sdasdasdsa"); | 242 | console.log("sdasdasdsa"); |
237 | $scope.data.stage = $scope.data.stage; | 243 | $scope.data.stage = $scope.data.stage; |
238 | $scope.detail = {}; | 244 | $scope.detail = {}; |
239 | $scope.data.phone = "+91" + $scope.data.number; | 245 | $scope.data.phone = "+91" + $scope.data.number; |
240 | $http({ | 246 | $http({ |
241 | method: 'POST', | 247 | method: 'POST', |
242 | url: BASE_URL + '/applicants', | 248 | url: BASE_URL + '/applicants', |
243 | data: $scope.data, | 249 | data: $scope.data, |
244 | headers: {} | 250 | headers: {} |
245 | }).then(function mySuccess(result) { | 251 | }).then(function mySuccess(result) { |
246 | Analytics.trackEvent('applicants', 'click', 'django.mp4'); | 252 | Analytics.trackEvent('applicants', 'click', 'django.mp4'); |
247 | console.log("result", result) | 253 | console.log("result", result) |
248 | $scope.detail = result; | 254 | $scope.detail = result; |
249 | data.applicantId = result.data.id; | 255 | data.applicantId = result.data.id; |
250 | //$scope.userId = result.data.id; | 256 | //$scope.userId = result.data.id; |
251 | 257 | ||
252 | if ($scope.data.stage == "Idea") { | 258 | if ($scope.data.stage == "Idea") { |
253 | console.log("$scope.data", $scope.data) | 259 | console.log("$scope.data", $scope.data) |
254 | $scope.ticketAmnt = 500; | 260 | $scope.ticketAmnt = 500; |
255 | } | 261 | } |
256 | 262 | ||
257 | if ($scope.data.stage == "Product") { | 263 | if ($scope.data.stage == "Product") { |
258 | $scope.ticketAmnt = 1000; | 264 | $scope.ticketAmnt = 1000; |
259 | } | 265 | } |
260 | 266 | ||
261 | if ($scope.data.stage == "Growth") { | 267 | if ($scope.data.stage == "Growth") { |
262 | $scope.ticketAmnt = 1000; | 268 | $scope.ticketAmnt = 1000; |
263 | } | 269 | } |
264 | var amount = $scope.ticketAmnt * 100 | 270 | var amount = $scope.ticketAmnt * 100 |
265 | if($scope.tokencheck == true){ | 271 | if($scope.tokencheck == true){ |
266 | var amount = $scope.ticketAmnt | 272 | var amount = $scope.ticketAmnt |
267 | // $scope.discountAmount = (amount * 10)/100 | 273 | // $scope.discountAmount = (amount * 10)/100 |
268 | console.log("finalAmount====>",$scope.payingAmnt) | 274 | console.log("finalAmount====>",$scope.payingAmnt) |
269 | } | 275 | } |
270 | 276 | ||
271 | var taxAmount = $scope.ticketAmnt | 277 | var taxAmount = $scope.ticketAmnt |
272 | // $scope.taxTotal = (taxAmount * 18)/100 | 278 | // $scope.taxTotal = (taxAmount * 18)/100 |
273 | $scope.payingAmnt = taxAmount | 279 | $scope.payingAmnt = taxAmount |
274 | console.log("taxincludedamount----", $scope.payingAmnt) | 280 | console.log("taxincludedamount----", $scope.payingAmnt) |
275 | // } | 281 | // } |
276 | 282 | ||
277 | /*****THIS IS FOR STEP THREE FORM ******/ | 283 | /*****THIS IS FOR STEP THREE FORM ******/ |
278 | // $scope.create = function() { | 284 | // $scope.create = function() { |
279 | // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { | 285 | // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { |
280 | // var x = document.getElementById("snackbar") | 286 | // var x = document.getElementById("snackbar") |
281 | // x.className = "show"; | 287 | // x.className = "show"; |
282 | // setTimeout(function() { | 288 | // setTimeout(function() { |
283 | // x.className = x.className.replace("show", ""); | 289 | // x.className = x.className.replace("show", ""); |
284 | // }, 3000); | 290 | // }, 3000); |
285 | // } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { | 291 | // } else if ($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { |
286 | // $scope.infoForm = true; | 292 | // $scope.infoForm = true; |
287 | // console.log("sdasdasdsa"); | 293 | // console.log("sdasdasdsa"); |
288 | // $scope.data.stage = $scope.data.stage; | 294 | // $scope.data.stage = $scope.data.stage; |
289 | // $scope.detail = {}; | 295 | // $scope.detail = {}; |
290 | // $scope.data.phone = "+91" + $scope.data.number; | 296 | // $scope.data.phone = "+91" + $scope.data.number; |
291 | // $http({ | 297 | // $http({ |
292 | // method: 'POST', | 298 | // method: 'POST', |
293 | // url: BASE_URL + '/applicants', | 299 | // url: BASE_URL + '/applicants', |
294 | // data: $scope.data, | 300 | // data: $scope.data, |
295 | // headers: {} | 301 | // headers: {} |
296 | // }).then(function mySuccess(result) { | 302 | // }).then(function mySuccess(result) { |
297 | 303 | ||
298 | // console.log("=====result=====", result) | 304 | // console.log("=====result=====", result) |
299 | // $scope.detail = result; | 305 | // $scope.detail = result; |
300 | // data.applicantId = result.data.id; | 306 | // data.applicantId = result.data.id; |
301 | // $scope.userId = result.data.id; | 307 | // $scope.userId = result.data.id; |
302 | // console.log("=====data=====", data) | 308 | // console.log("=====data=====", data) |
303 | data.amount = $scope.payingAmnt; | 309 | data.amount = $scope.payingAmnt; |
304 | if ($scope.detail != null) { | 310 | if ($scope.detail != null) { |
305 | $http({ | 311 | $http({ |
306 | method: 'POST', | 312 | method: 'POST', |
307 | url: BASE_URL + '/payments', | 313 | url: BASE_URL + '/payments', |
308 | data: data, | 314 | data: data, |
309 | headers: {} | 315 | headers: {} |
310 | }).then(function mySuccess(paymentResult) { | 316 | }).then(function mySuccess(paymentResult) { |
311 | Analytics.trackEvent('payments', 'click', 'django.mp4'); | 317 | Analytics.trackEvent('payments', 'click', 'django.mp4'); |
312 | console.log("paymentResult",paymentResult) | 318 | console.log("paymentResult",paymentResult) |
313 | $scope.paymentResult = paymentResult; | 319 | $scope.paymentResult = paymentResult; |
314 | }, function myError(error) {}); | 320 | }, function myError(error) {}); |
315 | } | 321 | } |
316 | var i = 0; | 322 | var i = 0; |
317 | $scope.payingAmnt = $scope.payingAmnt * 100; | 323 | $scope.payingAmnt = $scope.payingAmnt * 100; |
318 | var options = { | 324 | var options = { |
319 | "key": "rzp_live_mhSE1uOBlXvFyJ", | 325 | "key": "rzp_live_mhSE1uOBlXvFyJ", |
320 | "amount": $scope.payingAmnt, | 326 | "amount": $scope.payingAmnt, |
321 | 327 | ||
322 | "name": "Startup Jalsa", | 328 | "name": "Startup Jalsa", |
323 | "description": "amount", | 329 | "description": "amount", |
324 | "currency": "INR", | 330 | "currency": "INR", |
325 | "status": "done", | 331 | "status": "done", |
326 | 332 | ||
327 | "theme": { | 333 | "theme": { |
328 | "color": "#2196f3 ", | 334 | "color": "#2196f3 ", |
329 | "image_padding": "NO" | 335 | "image_padding": "NO" |
330 | }, | 336 | }, |
331 | "modal": { | 337 | "modal": { |
332 | "ondismiss": function() {} | 338 | "ondismiss": function() {} |
333 | }, | 339 | }, |
334 | "handler": function(response) { | 340 | "handler": function(response) { |
335 | createPayment(response); | 341 | createPayment(response); |
336 | } | 342 | } |
337 | }; | 343 | }; |
338 | var rzp1 = new Razorpay(options); | 344 | var rzp1 = new Razorpay(options); |
339 | rzp1.open(); | 345 | rzp1.open(); |
340 | $scope.paymentResponse = {}; | 346 | $scope.paymentResponse = {}; |
341 | 347 | ||
342 | function createPayment(response) { | 348 | function createPayment(response) { |
343 | Analytics.trackEvent('payments', 'click', 'django.mp4'); | 349 | Analytics.trackEvent('payments', 'click', 'django.mp4'); |
344 | console.log("response====from===razorpay",response) | 350 | console.log("response====from===razorpay",response) |
345 | $route.reload(); | 351 | $route.reload(); |
346 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 352 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
347 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; | 353 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; |
348 | $scope.paymentResponse.amount = data.amount; | 354 | $scope.paymentResponse.amount = data.amount; |
349 | $scope.paymentResponse.currency = "INR"; | 355 | $scope.paymentResponse.currency = "INR"; |
350 | $scope.paymentResponse.status = $scope.paymentResult.data.status; | 356 | $scope.paymentResponse.status = $scope.paymentResult.data.status; |
351 | $http({ | 357 | $http({ |
352 | method: 'PUT', | 358 | method: 'PUT', |
353 | url: BASE_URL + '/payments/' + $scope.paymentResult.data.id, | 359 | url: BASE_URL + '/payments/' + $scope.paymentResult.data.id, |
354 | data: $scope.paymentResponse, | 360 | data: $scope.paymentResponse, |
355 | headers: {} | 361 | headers: {} |
356 | }).then(function mySuccess(searchResult) { | 362 | }).then(function mySuccess(searchResult) { |
357 | Analytics.trackEvent('payments', 'click', 'django.mp4'); | 363 | Analytics.trackEvent('payments', 'click', 'django.mp4'); |
358 | console.log("searchResult", searchResult) | 364 | console.log("searchResult", searchResult) |
359 | $location.path("/confirmation") | 365 | $location.path("/confirmation") |
360 | //$scope.showToastr() | 366 | //$scope.showToastr() |
361 | //toaster.success("Registration done successfully"); | 367 | //toaster.success("Registration done successfully"); |
362 | 368 | ||
363 | }, function myError(error) {}); | 369 | }, function myError(error) {}); |
364 | } | 370 | } |
365 | }, function myError(error) {}); | 371 | }, function myError(error) {}); |
366 | } | 372 | } |
367 | 373 | ||
368 | } | 374 | } |
369 | 375 | ||
370 | //}, function myError(error) {}); | 376 | //}, function myError(error) {}); |
371 | //} | 377 | //} |
372 | 378 | ||
373 | //} | 379 | //} |
374 | 380 | ||
375 | // $scope.showToastr = function() { | 381 | // $scope.showToastr = function() { |
376 | // console.log("called toast") | 382 | // console.log("called toast") |
377 | // var x = document.getElementById("snacsskbar") | 383 | // var x = document.getElementById("snacsskbar") |
378 | // x.className = "show"; | 384 | // x.className = "show"; |
379 | // setTimeout(function() { | 385 | // setTimeout(function() { |
380 | // x.className = x.className.replace("show", ""); | 386 | // x.className = x.className.replace("show", ""); |
381 | // }, 3000); | 387 | // }, 3000); |
382 | // } | 388 | // } |
383 | 389 | ||
384 | /*kk***This code for change data when click to chooses stages***/ | 390 | /*kk***This code for change data when click to chooses stages***/ |
385 | $scope.proto = true; | 391 | $scope.proto = true; |
386 | $scope.businessmodel = true; | 392 | $scope.businessmodel = true; |
387 | $scope.Idea = true; | 393 | $scope.Idea = true; |
388 | $scope.current = true; | 394 | $scope.current = true; |
389 | 395 | ||
390 | $scope.stage = function(stage) { | 396 | $scope.stage = function(stage) { |
391 | $scope.stagekeyPress(); | 397 | $scope.stagekeyPress(); |
392 | console.log("stage--2",stage) | 398 | console.log("stage--2",stage) |
399 | |||
393 | if (stage == 'Idea') { | 400 | if (stage == 'Idea') { |
401 | $scope.Productshow = "no"; | ||
394 | $scope.current = 10; | 402 | $scope.current = 10; |
395 | $scope.proto = true; | 403 | $scope.proto = true; |
396 | $scope.prototyp = false; | 404 | $scope.prototyp = false; |
397 | $scope.protyp = false; | 405 | $scope.protyp = false; |
398 | $scope.market = false; | 406 | $scope.market = false; |
399 | $scope.risks = false; | 407 | $scope.risks = false; |
400 | $scope.team = false; | 408 | $scope.team = false; |
401 | $scope.pitch = false; | 409 | $scope.pitch = false; |
402 | $scope.financials = false; | 410 | $scope.financials = false; |
403 | $scope.businessmodel = true; | 411 | $scope.businessmodel = true; |
404 | $scope.data.stage = stage; | 412 | $scope.data.stage = stage; |
405 | // for right content | 413 | // for right content |
406 | $scope.Idea = true; | 414 | $scope.Idea = true; |
407 | $scope.Product = false; | 415 | $scope.Product = false; |
408 | $scope.Growth = false; | 416 | $scope.Growth = false; |
409 | } else if (stage == 'Product') { | 417 | } else if (stage == 'Product') { |
418 | $scope.Productshow = "no"; | ||
410 | $scope.current = 10; | 419 | $scope.current = 10; |
411 | $scope.proto = true; | 420 | $scope.proto = true; |
412 | $scope.prototyp = true; | 421 | $scope.prototyp = true; |
413 | $scope.protyp = true; | 422 | $scope.protyp = true; |
414 | $scope.market = true; | 423 | $scope.market = true; |
415 | $scope.risks = true; | 424 | $scope.risks = true; |
416 | $scope.team = true; | 425 | $scope.team = true; |
417 | $scope.pitch = true; | 426 | $scope.pitch = true; |
418 | $scope.financials = true; | 427 | $scope.financials = true; |
419 | $scope.businessmodel = false; | 428 | $scope.businessmodel = false; |
420 | $scope.data.stage = stage; | 429 | $scope.data.stage = stage; |
421 | // for right content | 430 | // for right content |
422 | $scope.Idea = false; | 431 | $scope.Idea = false; |
423 | $scope.Product = true; | 432 | $scope.Product = true; |
424 | $scope.Growth = false; | 433 | $scope.Growth = false; |
425 | } else if (stage == 'Growth') { | 434 | } else if (stage == 'Growth') { |
435 | $scope.Productshow = "yes"; | ||
426 | $scope.current = 10; | 436 | $scope.current = 10; |
427 | $scope.proto = false; | 437 | $scope.proto = false; |
428 | $scope.prototyp = false; | 438 | $scope.prototyp = true; |
429 | $scope.protyp = true; | 439 | $scope.protyp = false; |
430 | $scope.market = true; | 440 | $scope.market = true; |
431 | $scope.risks = true; | 441 | $scope.risks = true; |
432 | $scope.team = true; | 442 | $scope.team = true; |
433 | $scope.pitch = true; | 443 | $scope.pitch = true; |
434 | $scope.financials = true; | 444 | $scope.financials = true; |
435 | $scope.businessmodel = false; | 445 | $scope.businessmodel = false; |
436 | // for right content | 446 | // for right content |
437 | $scope.Idea = false; | 447 | $scope.Idea = false; |
438 | $scope.Product = false; | 448 | $scope.Product = false; |
439 | $scope.Growth = true; | 449 | $scope.Growth = true; |
440 | $scope.data.stage = stage; | 450 | $scope.data.stage = stage; |
441 | } | 451 | } |
442 | } | 452 | } |
453 | |||
454 | $scope.emailTest = function(s){ | ||
455 | $scope.space = /\s/g.test(s.delegateTarget.value); | ||
456 | console.log("space",$scope.space) | ||
457 | |||
458 | } | ||
443 | // $scope.enterbusiness = function(business) { | 459 | // $scope.enterbusiness = function(business) { |
444 | // console.log("business", business); | 460 | // console.log("business", business); |
445 | // if (name == undefined) { | 461 | // if (name == undefined) { |
446 | // $scope.current = false; | 462 | // $scope.current = false; |
447 | 463 | ||
448 | // } else if (name != undefined) { | 464 | // } else if (name != undefined) { |
449 | // $scope.current = true; | 465 | // $scope.current = true; |
450 | // } | 466 | // } |
451 | // } | 467 | // } |
452 | /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/ | 468 | /*******FOR FILL THE DATA AND SHOWS ICON GREEN*/ |
453 | $scope.stagekeyPress = function() { | 469 | $scope.stagekeyPress = function() { |
454 | $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)'); | 470 | $('.icon-circle-a').css('background-color', 'rgb(66, 181, 73)'); |
455 | } | 471 | } |
456 | $scope.sectorkeyPress = function() { | 472 | $scope.sectorkeyPress = function() { |
457 | $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)'); | 473 | $('.icon-circle-b').css('background-color', 'rgb(66, 181, 73)'); |
458 | } | 474 | } |
459 | 475 | ||
460 | $scope.productLaunchkeyPress = function() { | 476 | $scope.productLaunchkeyPress = function() { |
461 | $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)'); | 477 | $('.icon-circle-ab').css('background-color', 'rgb(66, 181, 73)'); |
462 | } | 478 | } |
463 | 479 | ||
464 | $scope.launchPeriodkeyPress = function() { | 480 | $scope.launchPeriodkeyPress = function() { |
465 | $('.icon-circle-abc').css('background-color', 'rgb(66, 181, 73)'); | 481 | $('.icon-circle-abc').css('background-color', 'rgb(66, 181, 73)'); |
466 | } | 482 | } |
467 | 483 | ||
468 | $scope.industrykeyPress = function() { | 484 | $scope.industrykeyPress = function() { |
469 | $scope.addOther = false; | 485 | $scope.addOther = false; |
470 | $scope.hideSelectBox = true; | 486 | $scope.hideSelectBox = true; |
471 | $('.icon-circle-abcdefg').css('background-color', 'rgb(66, 181, 73)'); | 487 | $('.icon-circle-abcdefg').css('background-color', 'rgb(66, 181, 73)'); |
472 | var e = document.getElementById("dataIndustry"); | 488 | var e = document.getElementById("dataIndustry"); |
473 | var dataIndustry = e.options[e.selectedIndex].value; | 489 | var dataIndustry = e.options[e.selectedIndex].value; |
474 | if(dataIndustry == "others") { | 490 | if(dataIndustry == "others") { |
475 | $scope.addOther = true; | 491 | $scope.addOther = true; |
476 | $scope.hideSelectBox = false; | 492 | $scope.hideSelectBox = false; |
477 | } | 493 | } |
478 | } | 494 | } |
479 | 495 | ||
480 | $scope.industryNamekeyPress = function(firstName) { | 496 | $scope.industryNamekeyPress = function(firstName) { |
481 | console.log("lastName==", firstName); | 497 | console.log("lastName==", firstName); |
482 | if (firstName == undefined) { | 498 | if (firstName == undefined) { |
483 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 499 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
484 | } else { | 500 | } else { |
485 | $('.icon-circle-o').css('background-color', 'rgb(66, 181, 73)'); | 501 | $('.icon-circle-o').css('background-color', 'rgb(66, 181, 73)'); |
486 | } | 502 | } |
487 | } | 503 | } |
488 | 504 | ||
489 | $scope.amountkeyPress = function() { | 505 | $scope.amountkeyPress = function() { |
490 | $('.icon-circle-bc').css('background-color', 'rgb(66, 181, 73)'); | 506 | $('.icon-circle-bc').css('background-color', 'rgb(66, 181, 73)'); |
491 | } | 507 | } |
492 | 508 | ||
493 | $scope.firstNamekeyPress = function(firstName) { | 509 | $scope.firstNamekeyPress = function(firstName) { |
494 | console.log("lastName==", firstName); | 510 | console.log("lastName==", firstName); |
495 | if (firstName == undefined) { | 511 | if (firstName == undefined) { |
496 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); | 512 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); |
497 | } else { | 513 | } else { |
498 | $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)'); | 514 | $('.icon-circle-c').css('background-color', 'rgb(66, 181, 73)'); |
499 | } | 515 | } |
500 | } | 516 | } |
501 | 517 | ||
502 | $scope.emailkeyPress = function(email) { | 518 | $scope.emailkeyPress = function(email) { |
503 | console.log("email", email); | 519 | console.log("email", email); |
504 | if (email == undefined) { | 520 | if (email == undefined) { |
505 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); | 521 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); |
506 | } else { | 522 | } else { |
507 | $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)'); | 523 | $('.icon-circle-d').css('background-color', 'rgb(66, 181, 73)'); |
508 | } | 524 | } |
509 | } | 525 | } |
510 | 526 | ||
511 | $scope.textCheck = function(){ | 527 | $scope.textCheck = function(){ |
512 | console.log("Val1:::", $scope.textCheck); | 528 | console.log("Val1:::", $scope.textCheck); |
513 | var e = document.getElementById("fundingDiv"); | 529 | var e = document.getElementById("fundingDiv"); |
514 | var funding = e.options[e.selectedIndex].value; | 530 | var funding = e.options[e.selectedIndex].value; |
515 | $scope.Textshow = "no"; | 531 | $scope.Textshow = "no"; |
516 | if(funding == "yes") { | 532 | if(funding == "yes") { |
517 | $scope.Textshow = "yes"; | 533 | $scope.Textshow = "yes"; |
518 | console.log("Val:::", $scope.Textshow); | 534 | console.log("Val:::", $scope.Textshow); |
519 | } | 535 | } |
520 | 536 | ||
521 | } | 537 | } |
522 | 538 | ||
523 | $scope.productCheck = function(){ | 539 | $scope.productCheck = function(){ |
524 | console.log("Val2:::", $scope.productCheck); | 540 | console.log("Val2:::", $scope.productCheck); |
525 | var e = document.getElementById("productDiv"); | 541 | var e = document.getElementById("productDiv"); |
526 | var product = e.options[e.selectedIndex].value; | 542 | var product = e.options[e.selectedIndex].value; |
527 | $scope.Productshow = "no"; | 543 | $scope.Productshow = "no"; |
528 | if(product == "yes") { | 544 | if(product == "yes") { |
529 | $scope.Productshow = "yes"; | 545 | $scope.Productshow = "yes"; |
530 | console.log("Val1:::", $scope.Productshow); | 546 | console.log("Val1:::", $scope.Productshow); |
531 | } | 547 | } |
532 | 548 | ||
533 | } | 549 | } |
534 | 550 | ||
535 | $scope.phonekeyPress = function(number) { | 551 | $scope.phonekeyPress = function(number) { |
536 | console.log("number", number); | 552 | console.log("number", number); |
537 | if (number == undefined || number == '') { | 553 | if (number == undefined || number == '') { |
538 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); | 554 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); |
539 | } else { | 555 | } else { |
540 | $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)'); | 556 | $('.icon-circle-e').css('background-color', 'rgb(66, 181, 73)'); |
541 | } | 557 | } |
542 | } | 558 | } |
543 | 559 | ||
544 | $scope.citykeyPress = function(city) { | 560 | $scope.citykeyPress = function(city) { |
545 | console.log("city", city); | 561 | console.log("city", city); |
546 | if (city == undefined) { | 562 | if (city == undefined) { |
547 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); | 563 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); |
548 | } else { | 564 | } else { |
549 | $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)'); | 565 | $('.icon-circle-f').css('background-color', 'rgb(66, 181, 73)'); |
550 | } | 566 | } |
551 | } | 567 | } |
552 | 568 | ||
553 | $scope.lastNamekeyPress = function(q) { | 569 | $scope.lastNamekeyPress = function(q) { |
554 | if (q == undefined) { | 570 | if (q == undefined) { |
555 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); | 571 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); |
556 | } else { | 572 | } else { |
557 | $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)'); | 573 | $('.icon-circle-x').css('background-color', 'rgb(66, 181, 73)'); |
558 | } | 574 | } |
559 | } | 575 | } |
560 | 576 | ||
561 | $scope.linkedInkeyPress = function(technology) { | 577 | $scope.linkedInkeyPress = function(technology) { |
562 | if (technology == undefined || technology == '') { | 578 | if (technology == undefined || technology == '') { |
563 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); | 579 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); |
564 | } else { | 580 | } else { |
565 | $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)'); | 581 | $('.icon-circle-h').css('background-color', 'rgb(66, 181, 73)'); |
566 | } | 582 | } |
567 | } | 583 | } |
568 | $scope.companykeyPress = function(problem) { | 584 | $scope.companykeyPress = function(problem) { |
569 | if (problem == undefined) { | 585 | if (problem == undefined) { |
570 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); | 586 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); |
571 | } else { | 587 | } else { |
572 | $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)'); | 588 | $('.icon-circle-i').css('background-color', 'rgb(66, 181, 73)'); |
573 | } | 589 | } |
574 | } | 590 | } |
575 | $scope.productNamekeyPress = function(solution) { | 591 | $scope.productNamekeyPress = function(solution) { |
576 | if (solution == undefined) { | 592 | if (solution == undefined) { |
577 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); | 593 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); |
578 | } else { | 594 | } else { |
579 | $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)'); | 595 | $('.icon-circle-j').css('background-color', 'rgb(66, 181, 73)'); |
580 | } | 596 | } |
581 | } | 597 | } |
582 | $scope.businesskeyPress = function(business) { | 598 | $scope.businesskeyPress = function(business) { |
583 | $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)'); | 599 | $('.icon-circle-p').css('background-color', 'rgb(66, 181, 73)'); |
584 | } | 600 | } |
585 | 601 | ||
586 | $scope.websitekeyPress = function(prototype) { | 602 | $scope.websitekeyPress = function(prototype) { |
587 | if (prototype == undefined || prototype == '') { | 603 | if (prototype == undefined || prototype == '') { |
588 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); | 604 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); |
589 | } else { | 605 | } else { |
590 | $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)'); | 606 | $('.icon-circle-k').css('background-color', 'rgb(66, 181, 73)'); |
591 | } | 607 | } |
592 | } | 608 | } |
593 | 609 | ||
594 | $scope.employeekeyPress = function(market) { | 610 | $scope.employeekeyPress = function(market) { |
595 | if (market == undefined || market == '') { | 611 | if (market == undefined || market == '') { |
596 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); | 612 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); |
597 | } else { | 613 | } else { |
598 | $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)'); | 614 | $('.icon-circle-l').css('background-color', 'rgb(66, 181, 73)'); |
599 | } | 615 | } |
600 | } | 616 | } |
601 | 617 | ||
602 | $scope.annualkeyPress = function(risk) { | 618 | $scope.annualkeyPress = function(risk) { |
603 | if (risk == undefined || risk == '') { | 619 | if (risk == undefined || risk == '') { |
604 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); | 620 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); |
605 | } else { | 621 | } else { |
606 | $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)'); | 622 | $('.icon-circle-m').css('background-color', 'rgb(66, 181, 73)'); |
607 | } | 623 | } |
608 | } | 624 | } |
609 | 625 | ||
610 | $scope.revenuekeyPress = function(team) { | 626 | $scope.revenuekeyPress = function(team) { |
611 | if (team == undefined || team == '') { | 627 | if (team == undefined || team == '') { |
612 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); | 628 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); |
613 | } else { | 629 | } else { |
614 | $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)'); | 630 | $('.icon-circle-n').css('background-color', 'rgb(66, 181, 73)'); |
615 | } | 631 | } |
616 | } | 632 | } |
617 | 633 | ||
618 | $scope.descriptionkeyPress = function(pitch) { | 634 | $scope.descriptionkeyPress = function(pitch) { |
619 | if (pitch == undefined) { | 635 | if (pitch == undefined) { |
620 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); | 636 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); |
621 | } else { | 637 | } else { |
622 | $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)'); | 638 | $('.icon-circle-z').css('background-color', 'rgb(66, 181, 73)'); |
623 | } | 639 | } |
624 | } | 640 | } |
625 | 641 | ||
626 | $scope.removeNooError = function() { | 642 | $scope.removeNooError = function() { |
627 | $('#invalidIdea').css('display', 'block'); | 643 | $('#invalidIdea').css('display', 'block'); |
628 | $('#noExist').css('display', 'none'); | 644 | $('#noExist').css('display', 'none'); |
629 | }; | 645 | }; |
630 | 646 | ||
631 | $scope.ideakeyPress = function(financial) { | 647 | $scope.ideakeyPress = function(financial) { |
632 | console.log("financial", financial); | 648 | console.log("financial", financial); |
633 | if (financial == undefined) { | 649 | if (financial == undefined) { |
634 | $('#invalidIdea').css('display', 'block'); | 650 | $('#invalidIdea').css('display', 'block'); |
635 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); | 651 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); |
636 | } else { | 652 | } else { |
637 | $('#invalidIdea').css('display', 'none'); | 653 | $('#invalidIdea').css('display', 'none'); |
638 | $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); | 654 | $('.icon-circle-q').css('background-color', 'rgb(66, 181, 73)'); |
639 | } | 655 | } |
640 | } | 656 | } |
641 | 657 | ||
642 | $scope.fundkeyPress = function(financial) { | 658 | $scope.fundkeyPress = function(financial) { |
643 | console.log("financial", financial); | 659 | console.log("financial", financial); |
644 | if (financial == undefined) { | 660 | if (financial == undefined) { |
645 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); | 661 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); |
646 | } else { | 662 | } else { |
647 | $('.icon-circle-y').css('background-color', 'rgb(66, 181, 73)'); | 663 | $('.icon-circle-y').css('background-color', 'rgb(66, 181, 73)'); |
648 | } | 664 | } |
649 | } | 665 | } |
650 | 666 | ||
651 | $scope.changeReferalIconColor = function(referalToken){ | 667 | $scope.changeReferalIconColor = function(referalToken){ |
652 | if (referalToken == undefined || referalToken == '') { | 668 | if (referalToken == undefined || referalToken == '') { |
653 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); | 669 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); |
654 | }else { | 670 | }else { |
655 | $('.referel-icon').css('background-color', 'rgb(66, 181, 73)'); | 671 | $('.referel-icon').css('background-color', 'rgb(66, 181, 73)'); |
656 | } | 672 | } |
657 | } | 673 | } |
658 | 674 | ||
659 | }); | 675 | }); |
660 | 676 | ||
661 | scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { | 677 | scotchApp.controller('verifyController', function($scope, $http, $location, $route,BASE_URL) { |
662 | $scope.pendingPaymentId = $route.current.params.id | 678 | $scope.pendingPaymentId = $route.current.params.id |
663 | $http({ | 679 | $http({ |
664 | method: "GET", | 680 | method: "GET", |
665 | url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, | 681 | url: BASE_URL + '/applicants/' + $scope.pendingPaymentId, |
666 | }).then(function mySuccess(response) { | 682 | }).then(function mySuccess(response) { |
667 | $scope.data = response.data; | 683 | $scope.data = response.data; |
668 | console.log("response-1", response); | 684 | console.log("response-1", response); |
669 | $scope.pendingPaymentId = $route.current.params.id; | 685 | $scope.pendingPaymentId = $route.current.params.id; |
670 | 686 | ||
671 | $http({ | 687 | $http({ |
672 | method: "GET", | 688 | method: "GET", |
673 | url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}', | 689 | url: BASE_URL + '/payments?filter={"where":{"applicantId":' + $scope.pendingPaymentId + '}}', |
674 | }).then(function mySuccess(response) { | 690 | }).then(function mySuccess(response) { |
675 | $scope.paymentRecord = response.data; | 691 | $scope.paymentRecord = response.data; |
676 | }, function myError(response) { | 692 | }, function myError(response) { |
677 | }); | 693 | }); |
678 | }, function myError(response) { | 694 | }, function myError(response) { |
679 | $scope.myWelcome = response.statusText; | 695 | $scope.myWelcome = response.statusText; |
680 | }); | 696 | }); |
681 | 697 | ||
682 | $scope.checkView = false; | 698 | $scope.checkView = false; |
683 | $scope.verifyView = false; | 699 | $scope.verifyView = false; |
684 | 700 | ||
685 | $scope.pendingPaymentId = ''; | 701 | $scope.pendingPaymentId = ''; |
686 | 702 | ||
687 | $scope.update = function() { | 703 | $scope.update = function() { |
688 | 704 | ||
689 | $http({ | 705 | $http({ |
690 | method: 'GET', | 706 | method: 'GET', |
691 | url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}', | 707 | url: BASE_URL + '/payments?filter={"where":{"applicantId": ' + $scope.pendingPaymentId + '}}', |
692 | headers: {} | 708 | headers: {} |
693 | }).then(function mySuccess(searchResult) { | 709 | }).then(function mySuccess(searchResult) { |
694 | if (searchResult.data[0].status == "created") { | 710 | if (searchResult.data[0].status == "created") { |
695 | //if (searchResult.data[0].status == "cancelled") { | 711 | //if (searchResult.data[0].status == "cancelled") { |
696 | $scope.checkView = true; | 712 | $scope.checkView = true; |
697 | $scope.verifyView = false; | 713 | $scope.verifyView = false; |
698 | $scope.amount = searchResult.data[0].amount; | 714 | $scope.amount = searchResult.data[0].amount; |
699 | $scope.searchResult = searchResult.data[0]; | 715 | $scope.searchResult = searchResult.data[0]; |
700 | console.log('====searchResult===', searchResult); | 716 | console.log('====searchResult===', searchResult); |
701 | console.log("searchResult=====",searchResult.data[0].razorOrderId) | 717 | console.log("searchResult=====",searchResult.data[0].razorOrderId) |
702 | var i = 0; | 718 | var i = 0; |
703 | $scope.amount = $scope.amount * 100; | 719 | $scope.amount = $scope.amount * 100; |
704 | var options = { | 720 | var options = { |
705 | "key": "rzp_live_mhSE1uOBlXvFyJ", | 721 | "key": "rzp_live_mhSE1uOBlXvFyJ", |
706 | //"key" : "rzp_test_YwHsVFiDIQ2WUQ", | 722 | //"key" : "rzp_test_YwHsVFiDIQ2WUQ", |
707 | "amount": $scope.amount, | 723 | "amount": $scope.amount, |
708 | 724 | ||
709 | "name": "Startup Jalsa", | 725 | "name": "Startup Jalsa", |
710 | "description": "amount", | 726 | "description": "amount", |
711 | "currency": "INR", | 727 | "currency": "INR", |
712 | "status": "done", | 728 | "status": "done", |
713 | 729 | ||
714 | "theme": { | 730 | "theme": { |
715 | "color": "#2196f3 ", | 731 | "color": "#2196f3 ", |
716 | "image_padding": "NO" | 732 | "image_padding": "NO" |
717 | }, | 733 | }, |
718 | "modal": { | 734 | "modal": { |
719 | "ondismiss": function() {} | 735 | "ondismiss": function() {} |
720 | }, | 736 | }, |
721 | "handler": function(response) { | 737 | "handler": function(response) { |
722 | createPayment(response); | 738 | createPayment(response); |
723 | } | 739 | } |
724 | }; | 740 | }; |
725 | var rzp1 = new Razorpay(options); | 741 | var rzp1 = new Razorpay(options); |
726 | rzp1.open(); | 742 | rzp1.open(); |
727 | $scope.paymentResponse = {}; | 743 | $scope.paymentResponse = {}; |
728 | function createPayment(response) { | 744 | function createPayment(response) { |
729 | $scope.amount = $scope.amount / 100; | 745 | $scope.amount = $scope.amount / 100; |
730 | console.log("response======retepaymen",response); | 746 | console.log("response======retepaymen",response); |
731 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 747 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
732 | $scope.paymentResponse.razorOrderId = $scope.searchResult.razorOrderId; | 748 | $scope.paymentResponse.razorOrderId = $scope.searchResult.razorOrderId; |
733 | $scope.paymentResponse.amount = $scope.amount; | 749 | $scope.paymentResponse.amount = $scope.amount; |
734 | $scope.paymentResponse.currency = $scope.searchResult.currency; | 750 | $scope.paymentResponse.currency = $scope.searchResult.currency; |
735 | $scope.paymentResponse.status = $scope.searchResult.status; | 751 | $scope.paymentResponse.status = $scope.searchResult.status; |
736 | $scope.paymentResponse.applicantId = $scope.searchResult.applicantId; | 752 | $scope.paymentResponse.applicantId = $scope.searchResult.applicantId; |
737 | console.log("$scope.paymentResponse", $scope.paymentResponse) | 753 | console.log("$scope.paymentResponse", $scope.paymentResponse) |
738 | $http({ | 754 | $http({ |
739 | method: 'PUT', | 755 | method: 'PUT', |
740 | url: BASE_URL + '/payments/' + $scope.searchResult.id, | 756 | url: BASE_URL + '/payments/' + $scope.searchResult.id, |
741 | data: $scope.paymentResponse, | 757 | data: $scope.paymentResponse, |
742 | headers: {} | 758 | headers: {} |
743 | }).then(function mySuccess(searchResult) { | 759 | }).then(function mySuccess(searchResult) { |
744 | console.log("finalsearchResult",searchResult) | 760 | console.log("finalsearchResult",searchResult) |
745 | $location.path("/confirmation") | 761 | $location.path("/confirmation") |
746 | }, function myError(error) { | 762 | }, function myError(error) { |
747 | 763 | ||
748 | }); | 764 | }); |
749 | } | 765 | } |
750 | } else { | 766 | } else { |
751 | 767 | ||
752 | } | 768 | } |
753 | 769 | ||
754 | }, function myError(error) {}); | 770 | }, function myError(error) {}); |
755 | } | 771 | } |
756 | }); | 772 | }); |
757 | 773 | ||
758 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { | 774 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { |
759 | $scope.data = {}; | 775 | $scope.data = {}; |
760 | $scope.check = false; | 776 | $scope.check = false; |
761 | $scope.numberCheck = false; | 777 | $scope.numberCheck = false; |
762 | 778 | ||
763 | /*open videos in modal*/ | 779 | /*open videos in modal*/ |
764 | $scope.openyoutube16 = function(){ | 780 | $scope.openyoutube16 = function(){ |
765 | $('#videoModel').modal('show'); | 781 | $('#videoModel').modal('show'); |
766 | } | 782 | } |
767 | 783 | ||
768 | $scope.openyoutube17 = function(){ | 784 | $scope.openyoutube17 = function(){ |
769 | $('#videoModels').modal('show'); | 785 | $('#videoModels').modal('show'); |
770 | } | 786 | } |
771 | 787 | ||
772 | $scope.closeModal = function(){ | 788 | $scope.closeModal = function(){ |
773 | var url = $('#youtubePlayer').attr('src'); | 789 | var url = $('#youtubePlayer').attr('src'); |
774 | $('#youtubePlayer').attr('src', ''); | 790 | $('#youtubePlayer').attr('src', ''); |
775 | $('#youtubePlayer').attr('src', url); | 791 | $('#youtubePlayer').attr('src', url); |
776 | } | 792 | } |
777 | /*open videos ends here*/ | 793 | /*open videos ends here*/ |
778 | 794 | ||
779 | $scope.removeError = function() { | 795 | $scope.removeError = function() { |
796 | console.log("doooo") | ||
780 | $('#invalidEmail').css('display', 'none'); | 797 | $('#invalidEmail').css('display', 'none'); |
781 | $('#alreadyExist').css('display', 'none'); | 798 | $('#alreadyExist').css('display', 'none'); |
782 | }; | 799 | }; |
783 | 800 | ||
784 | $scope.emailcheck = function(val) { | 801 | $scope.emailcheck = function(val) { |
802 | consol.log("kdsbd") | ||
803 | $scope.space = /\s/g.test(val); | ||
804 | console.log("space",$scope.space) | ||
785 | if (val == undefined) { | 805 | if (val == undefined) { |
786 | $('#invalidEmail').css('display', 'block'); | 806 | $('#invalidEmail').css('display', 'block'); |
787 | } else { | 807 | } else { |
788 | $http({ | 808 | $http({ |
789 | method: 'GET', | 809 | method: 'GET', |
790 | url: BASE_URL + '/ambassadors?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', | 810 | url: BASE_URL + '/ambassadors?filter={"where": {"email": {"like":"%25' + $scope.data.email + '%25"}}}', |
791 | headers: {} | 811 | headers: {} |
792 | }).then(function mySuccess(searchResult) { | 812 | }).then(function mySuccess(searchResult) { |
793 | console.log("searchResult1===>", searchResult) | 813 | console.log("searchResult1===>", searchResult) |
794 | if (searchResult.data.length == 0) { | 814 | if (searchResult.data.length == 0) { |
795 | $scope.check = false; | 815 | $scope.check = false; |
796 | } else { | 816 | } else { |
797 | $scope.check = true; | 817 | $scope.check = true; |
798 | $('#alreadyExist').css('display', 'block'); | 818 | $('#alreadyExist').css('display', 'block'); |
799 | } | 819 | } |
800 | }, function myError(error) {}); | 820 | }, function myError(error) {}); |
801 | } | 821 | } |
802 | }; | 822 | }; |
803 | 823 | ||
804 | $scope.removeNoError = function() { | 824 | $scope.removeNoError = function() { |
805 | $('#invalidNumber').css('display', 'none'); | 825 | $('#invalidNumber').css('display', 'none'); |
806 | $('#noExist').css('display', 'none'); | 826 | $('#noExist').css('display', 'none'); |
807 | }; | 827 | }; |
808 | 828 | ||
809 | $scope.numbercheck = function(number) { | 829 | $scope.numbercheck = function(number) { |
810 | // if (val == undefined) { | 830 | // if (val == undefined) { |
811 | // $('#invalidNumber').css('display', 'block'); | 831 | // $('#invalidNumber').css('display', 'block'); |
812 | // } else { | 832 | // } else { |
813 | $http({ | 833 | $http({ |
814 | method: 'GET', | 834 | method: 'GET', |
815 | url: BASE_URL + '/ambassadors?filter={"where": {"mobile": {"like":"%25' + number + '%25"}}}', | 835 | url: BASE_URL + '/ambassadors?filter={"where": {"mobile": {"like":"%25' + number + '%25"}}}', |
816 | data: $scope.data, | 836 | data: $scope.data, |
817 | headers: {} | 837 | headers: {} |
818 | }).then(function mySuccess(searchResult) { | 838 | }).then(function mySuccess(searchResult) { |
819 | console.log("searchResult===>", searchResult) | 839 | console.log("searchResult===>", searchResult) |
820 | if (searchResult.data.length == 0) { | 840 | if (searchResult.data.length == 0) { |
821 | $scope.numberCheck = false; | 841 | $scope.numberCheck = false; |
822 | } else { | 842 | } else { |
823 | $scope.numberCheck = true; | 843 | $scope.numberCheck = true; |
824 | $('#noExist').css('display', 'block'); | 844 | $('#noExist').css('display', 'block'); |
825 | } | 845 | } |
826 | }, function myError(error) {}); | 846 | }, function myError(error) {}); |
827 | //} | 847 | //} |
828 | 848 | ||
829 | }; | 849 | }; |
830 | 850 | ||
831 | $scope.submit = function() { | 851 | $scope.submit = function() { |
832 | console.log($scope.data.name) | 852 | console.log($scope.data.name) |
833 | var randomNumber = ""+Math.random(); | 853 | var randomNumber = ""+Math.random(); |
834 | var nameSpliced = $scope.data.name.slice(0,3); | 854 | var nameSpliced = $scope.data.name.slice(0,3); |
835 | var numberSpliced = randomNumber.slice(2,5); | 855 | var numberSpliced = randomNumber.slice(2,5); |
836 | $scope.data.referalToken = nameSpliced+numberSpliced; | 856 | $scope.data.referalToken = nameSpliced+numberSpliced; |
837 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); | 857 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); |
838 | 858 | ||
839 | $http({ | 859 | $http({ |
840 | method: 'POST', | 860 | method: 'POST', |
841 | url: BASE_URL + '/ambassadors', | 861 | url: BASE_URL + '/ambassadors', |
842 | data: $scope.data, | 862 | data: $scope.data, |
843 | headers: {} | 863 | headers: {} |
844 | }).then(function mySuccess(result) { | 864 | }).then(function mySuccess(result) { |
845 | console.log("result", result) | 865 | console.log("result", result) |
846 | $scope.detail = result; | 866 | $scope.detail = result; |
847 | $('#myModal').modal('show'); | 867 | $('#myModal').modal('show'); |
848 | $scope.data.name = ''; | 868 | $scope.data.name = ''; |
849 | $scope.data.email = ''; | 869 | $scope.data.email = ''; |
850 | $scope.data.mobile = ''; | 870 | $scope.data.mobile = ''; |
851 | 871 | ||
852 | }, function myError(error) { | 872 | }, function myError(error) { |
853 | console.log(error) | 873 | console.log(error) |
854 | console.log(error.data.error.message) | 874 | console.log(error.data.error.message) |
855 | }); | 875 | }); |
856 | console.log($scope.data) | 876 | console.log($scope.data) |
857 | } | 877 | } |
858 | }); | 878 | }); |
859 | 879 | ||
860 | 880 | ||
861 | 881 | ||
862 | 882 |