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