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