Commit e01ea6e4594932412c5567fbf5a883e88e1c63f7
1 parent
9406f4e4f7
Exists in
master
and in
1 other branch
validation required in upload file
Showing
2 changed files
with
11 additions
and
3 deletions
Show diff stats
pages/registration.html
1 | <div class="header"> | 1 | <div class="header"> |
2 | <div> | 2 | <div> |
3 | <!-- <img src="images/LOGO.png" class="logojalsa"><span class="jalsaheadr" style="">2018</span> --> | 3 | <!-- <img src="images/LOGO.png" class="logojalsa"><span class="jalsaheadr" style="">2018</span> --> |
4 | <!-- <img src="images/SartupJalsa_Logo.png" style="width:200px;position:relative;"> --> | 4 | <!-- <img src="images/SartupJalsa_Logo.png" style="width:200px;position:relative;"> --> |
5 | </div> | 5 | </div> |
6 | <div class="clearfix"></div> | 6 | <div class="clearfix"></div> |
7 | </div> | 7 | </div> |
8 | <!-- CLOSE HEADER --> | 8 | <!-- CLOSE HEADER --> |
9 | <form name="applicantForm"> | 9 | <form name="applicantForm"> |
10 | <div class="col-xs-12 col-md-8 col-md-offset-2"> | 10 | <div class="col-xs-12 col-md-8 col-md-offset-2"> |
11 | <div class="form-all"> | 11 | <div class="form-all"> |
12 | <h4 class="title">General Information</h4> | 12 | <h4 class="title">General Information</h4> |
13 | <!-- <table style="width: 100%;"> | 13 | <!-- <table style="width: 100%;"> |
14 | <tr> | 14 | <tr> |
15 | <td> | 15 | <td> |
16 | <div class="step-one-form" > --> | 16 | <div class="step-one-form" > --> |
17 | <!-- form step 1 --> | 17 | <!-- form step 1 --> |
18 | <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" > | 18 | <div class="col-xs-12 col-md-8 col-md-offset-2 input-wrapper" > |
19 | <div class="form-group"> | 19 | <div class="form-group"> |
20 | <label>Name: *</label> | 20 | <label>Name: *</label> |
21 | <input type="name" class="form-control" ng-model="data.name" required> | 21 | <input type="name" class="form-control" ng-model="data.name" required> |
22 | </div> | 22 | </div> |
23 | <div class="form-group"> | 23 | <div class="form-group"> |
24 | <label>Startup Name: *</label> | 24 | <label>Startup Name: *</label> |
25 | <input type="text" class="form-control" ng-model="data.startupName" required> | 25 | <input type="text" class="form-control" ng-model="data.startupName" required> |
26 | </div> | 26 | </div> |
27 | <div class="form-group"> | 27 | <div class="form-group"> |
28 | <label>Phone No: *</label> | 28 | <label>Phone No: *</label> |
29 | <input type="number" class="form-control" ng-model="data.number" required> | 29 | <input type="number" class="form-control" ng-model="data.number" required> |
30 | </div> | 30 | </div> |
31 | <div class="form-group"> | 31 | <div class="form-group"> |
32 | <label>Email: *</label> | 32 | <label>Email: *</label> |
33 | <input type="email" class="form-control" ng-model="data.email" required> | 33 | <input type="email" class="form-control" ng-model="data.email" required> |
34 | </div> | 34 | </div> |
35 | <div class="form-group"> | 35 | <div class="form-group"> |
36 | <label>City:</label> | 36 | <label>City:</label> |
37 | <input type="text" class="form-control" ng-model="data.city" readonly> | 37 | <input type="text" class="form-control" ng-model="data.city" readonly> |
38 | </div> | 38 | </div> |
39 | <div class="form-group"> | 39 | <div class="form-group"> |
40 | <label>Website:</label> | 40 | <label>Website:</label> |
41 | <input type="text" class="form-control" ng-model="data.website"> | 41 | <input type="text" class="form-control" ng-model="data.website"> |
42 | </div> | 42 | </div> |
43 | <div class="form-group"> | 43 | <div class="form-group"> |
44 | <label>Founding Year: *</label> | 44 | <label>Founding Year: *</label> |
45 | <input type="text" class="form-control" ng-model="data.founder" required> | 45 | <input type="text" class="form-control" ng-model="data.founder" required> |
46 | </div> | 46 | </div> |
47 | <div class="form-group"> | 47 | <div class="form-group"> |
48 | <label>Business Types: *</label> | 48 | <label>Business Types: *</label> |
49 | <select class="form-control" ng-model="data.business" required> | 49 | <select class="form-control" ng-model="data.business" required> |
50 | <option name="business" selected disabled value="">Choose business type</option> | 50 | <option name="business" selected disabled value="">Choose business type</option> |
51 | <option value="B2B">B2B</option> | 51 | <option value="B2B">B2B</option> |
52 | <option value="B2C">B2C</option> | 52 | <option value="B2C">B2C</option> |
53 | </select> | 53 | </select> |
54 | </div> | 54 | </div> |
55 | <div class="form-group"> | 55 | <div class="form-group"> |
56 | <label>Stage: *</label> | 56 | <label>Stage: *</label> |
57 | <select class="form-control" ng-model="data.stage" required> | 57 | <select class="form-control" ng-model="data.stage" required> |
58 | <option name="stage" selected disabled value="">Choose Startup Stage</option> | 58 | <option name="stage" selected disabled value="">Choose Startup Stage</option> |
59 | <option value="Idea">Idea</option> | 59 | <option value="Idea">Idea</option> |
60 | <option value="Prototype">Prototype</option> | 60 | <option value="Prototype">Prototype</option> |
61 | </select> | 61 | </select> |
62 | </div> | 62 | </div> |
63 | <div class="form-group"> | 63 | <div class="form-group"> |
64 | <label>Sector: *</label> | 64 | <label>Sector: *</label> |
65 | <select class="form-control" ng-model="data.sector" ng-change="GetValue()" required> | 65 | <select class="form-control" ng-model="data.sector" ng-change="GetValue()" required> |
66 | <option name="sector" selected disabled value="">Choose sector</option> | 66 | <option name="sector" selected disabled value="">Choose sector</option> |
67 | <option value="Agriculture">Agriculture</option> | 67 | <option value="Agriculture">Agriculture</option> |
68 | <option value="Healthcare">Healthcare</option> | 68 | <option value="Healthcare">Healthcare</option> |
69 | <option value="e-Governance">e-Governance</option> | 69 | <option value="e-Governance">e-Governance</option> |
70 | <option value="Retail">Retail</option> | 70 | <option value="Retail">Retail</option> |
71 | <option value="Food and Beverages">Food and Beverages</option> | 71 | <option value="Food and Beverages">Food and Beverages</option> |
72 | <option value="Hardware">Hardware</option> | 72 | <option value="Hardware">Hardware</option> |
73 | <option value="Software">Software</option> | 73 | <option value="Software">Software</option> |
74 | <option value="Media and Entertainment">Media and Entertainment</option> | 74 | <option value="Media and Entertainment">Media and Entertainment</option> |
75 | <option value="AI">AI</option> | 75 | <option value="AI">AI</option> |
76 | <option value="AR&VR">AR&VR</option> | 76 | <option value="AR&VR">AR&VR</option> |
77 | <option value="Automobile">Automobile</option> | 77 | <option value="Automobile">Automobile</option> |
78 | <option value="Other">Other</option> | 78 | <option value="Other">Other</option> |
79 | </select> | 79 | </select> |
80 | </div> | 80 | </div> |
81 | <div class="form-group" ng-if="ngShowhide"> | 81 | <div class="form-group" ng-if="ngShowhide"> |
82 | <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> | 82 | <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> |
83 | </div> | 83 | </div> |
84 | <div class="form-group"> | 84 | <div class="form-group"> |
85 | <label>Introduction: *</label> | 85 | <label>Introduction: *</label> |
86 | <textarea type="text" class="form-control" ng-model="data.intro" placeholder="Give us a brief introduction in two lines" rows="3" required></textarea> | 86 | <textarea type="text" class="form-control" ng-model="data.intro" placeholder="Give us a brief introduction in two lines" rows="3" required></textarea> |
87 | </div> | 87 | </div> |
88 | <div class="form-group"> | 88 | <div class="form-group"> |
89 | <label>Revenue: *</label> | 89 | <label>Revenue: *</label> |
90 | <textarea type="text" class="form-control" ng-model="data.revenue" placeholder="Are you generating any revenue? If yes, then mention your numbers" rows="3" required></textarea> | 90 | <textarea type="text" class="form-control" ng-model="data.revenue" placeholder="Are you generating any revenue? If yes, then mention your numbers" rows="3" required></textarea> |
91 | </div> | 91 | </div> |
92 | <div class="form-group"> | 92 | <div class="form-group"> |
93 | <label>Previous Investments: *</label> | 93 | <label>Previous Investments: *</label> |
94 | <textarea type="text" class="form-control" ng-model="data.investment" placeholder="Did you receive any previous investment? If yes, then mention the investment amount and the equity you diluted?" rows="3" required></textarea> | 94 | <textarea type="text" class="form-control" ng-model="data.investment" placeholder="Did you receive any previous investment? If yes, then mention the investment amount and the equity you diluted?" rows="3" required></textarea> |
95 | </div> | 95 | </div> |
96 | <div class="form-group"> | 96 | <div class="form-group"> |
97 | <label>Coupon Code:</label> | 97 | <label>Coupon Code:</label> |
98 | <input type="text" class="form-control" placeholder="If you have a coupon code then apply here"ng-model="data.referalToken"> | 98 | <input type="text" class="form-control" placeholder="If you have a coupon code then apply here"ng-model="data.referalToken"> |
99 | <!-- <input type="text" class="form-control" ng-model="data.referalToken" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> | 99 | <!-- <input type="text" class="form-control" ng-model="data.referalToken" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> |
100 | <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> | 100 | <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> |
101 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> | 101 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> |
102 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> --> | 102 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> --> |
103 | </div> | 103 | </div> |
104 | <div class="form-group"> | 104 | <div class="form-group"> |
105 | <label>Attach Pitch Deck: *</label> | 105 | <label>Attach Pitch Deck: *</label> |
106 | <input type="file" class="form-control-file" ng-model="data.uploadFile" id="filePicker" accept=".png, .jpg, .jpeg, .pdf, .ppt"> | 106 | <input type="file" class="form-control-file" ng-model="data.uploadFile" id="filePicker" accept=".png, .jpg, .jpeg, .pdf, .ppt"> |
107 | <!-- <span ng-show="fileSelect" class=form-group-text>Please Select a File.</span> --> | ||
107 | </div> | 108 | </div> |
108 | <div class=form-group-text> | 109 | <div class=form-group-text> |
109 | Fields marked with "<b>*</b>" are mandatory. | 110 | Fields marked with "<b>*</b>" are mandatory. |
110 | </div> | 111 | </div> |
111 | </div> | 112 | </div> |
112 | <!-- <div class="col-xs-12 col-md-6 input-wrapper" > | 113 | <!-- <div class="col-xs-12 col-md-6 input-wrapper" > |
113 | <div id="snackbar">Error ! Please fill in all fields.</div> | 114 | <div id="snackbar">Error ! Please fill in all fields.</div> |
114 | <div class="icon-circle-c"> | 115 | <div class="icon-circle-c"> |
115 | <i class="material-icons" style="line-height: 31px;">person</i> | 116 | <i class="material-icons" style="line-height: 31px;">person</i> |
116 | </div> | 117 | </div> |
117 | <input type="text" class="text-input" required ng-model="data.name" placeholder="Name *" id="myBtn" name="name" ng-change="entername(data.name); firstNamekeyPress(data.name)"> | 118 | <input type="text" class="text-input" required ng-model="data.name" placeholder="Name *" id="myBtn" name="name" ng-change="entername(data.name); firstNamekeyPress(data.name)"> |
118 | </div> | 119 | </div> |
119 | <div class="col-xs-12 col-md-6 input-wrapper" > | 120 | <div class="col-xs-12 col-md-6 input-wrapper" > |
120 | <div id="snackbar">Error ! Please fill in all fields.</div> | 121 | <div id="snackbar">Error ! Please fill in all fields.</div> |
121 | <div class="icon-circle-d"> | 122 | <div class="icon-circle-d"> |
122 | <i class="material-icons" style="line-height: 30px;">email</i> | 123 | <i class="material-icons" style="line-height: 30px;">email</i> |
123 | </div> | 124 | </div> |
124 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" ng-blur="emailcheck(data.email)" ng-focus="removeError()" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)"> | 125 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" ng-blur="emailcheck(data.email)" ng-focus="removeError()" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)"> |
125 | <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> | 126 | <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> |
126 | </div> | 127 | </div> |
127 | <div class="col-xs-12 col-md-6 input-wrapper"> | 128 | <div class="col-xs-12 col-md-6 input-wrapper"> |
128 | <div class="icon-circle-f"> | 129 | <div class="icon-circle-f"> |
129 | <i class="material-icons" style="line-height: 30px;">location_city</i> | 130 | <i class="material-icons" style="line-height: 30px;">location_city</i> |
130 | </div> | 131 | </div> |
131 | <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> | 132 | <select ng-model="data.city" ng-change="selectcity(data.city); citykeyPress(data.city)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> |
132 | <option name="city" selected disabled value="">{{data.city}}</option> | 133 | <option name="city" selected disabled value="">{{data.city}}</option> |
133 | <option value="Ahmedabad">Ahmedabad</option> | 134 | <option value="Ahmedabad">Ahmedabad</option> |
134 | <option value="Bengaluru">Bengaluru</option> | 135 | <option value="Bengaluru">Bengaluru</option> |
135 | <option value="Chennai">Chennai</option> | 136 | <option value="Chennai">Chennai</option> |
136 | <option value="Delhi">Delhi</option> | 137 | <option value="Delhi">Delhi</option> |
137 | <option value="Hyderabad">Hyderabad</option> | 138 | <option value="Hyderabad">Hyderabad</option> |
138 | <option value="Jaipur">Jaipur</option> | 139 | <option value="Jaipur">Jaipur</option> |
139 | <option value="Kanpur">Kanpur</option> | 140 | <option value="Kanpur">Kanpur</option> |
140 | <option value="Kolkata">Kolkata</option> | 141 | <option value="Kolkata">Kolkata</option> |
141 | <option value="Mumbai">Mumbai</option> | 142 | <option value="Mumbai">Mumbai</option> |
142 | </select> | 143 | </select> |
143 | </div> | 144 | </div> |
144 | <div class="col-xs-12 col-md-6 input-wrapper" > | 145 | <div class="col-xs-12 col-md-6 input-wrapper" > |
145 | <div class="icon-circle-e"> | 146 | <div class="icon-circle-e"> |
146 | <i class="material-icons" style="line-height: 30px;">phone</i> | 147 | <i class="material-icons" style="line-height: 30px;">phone</i> |
147 | </div> | 148 | </div> |
148 | <input type="phone" name="phone" ng-pattern="/^\d*(?:\.\d{1,2})?$/" maxlength="10" class="text-input" required class="" ng-model="data.number" ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" placeholder="Mobile No.*" ng-change="enternumber(data.number); phonekeyPress(data.number)"> | 149 | <input type="phone" name="phone" ng-pattern="/^\d*(?:\.\d{1,2})?$/" maxlength="10" class="text-input" required class="" ng-model="data.number" ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" placeholder="Mobile No.*" ng-change="enternumber(data.number); phonekeyPress(data.number)"> |
149 | <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label> | 150 | <label class="error-message f-family" id="invalidNumber">Please enter only numeric value.</label> |
150 | </div> | 151 | </div> |
151 | <div class="col-xs-12 col-md-6 input-wrapper"> | 152 | <div class="col-xs-12 col-md-6 input-wrapper"> |
152 | <div class="icon-circle-i"> | 153 | <div class="icon-circle-i"> |
153 | <i class="material-icons" style="line-height: 30px;">perm_identity</i> | 154 | <i class="material-icons" style="line-height: 30px;">perm_identity</i> |
154 | </div> | 155 | </div> |
155 | <input type="text" class="text-input" ng-model="data.companyName" placeholder="Company Name *" ng-change="enternumber(data.companyName); companykeyPress(data.companyName)" required> | 156 | <input type="text" class="text-input" ng-model="data.companyName" placeholder="Company Name *" ng-change="enternumber(data.companyName); companykeyPress(data.companyName)" required> |
156 | </div> | 157 | </div> |
157 | <div class="col-xs-12 col-md-6 input-wrapper"> | 158 | <div class="col-xs-12 col-md-6 input-wrapper"> |
158 | <div class="icon-circle-n"> | 159 | <div class="icon-circle-n"> |
159 | <i class="material-icons" style="line-height: 30px;">web</i> | 160 | <i class="material-icons" style="line-height: 30px;">web</i> |
160 | </div> | 161 | </div> |
161 | <input name="website" class="text-input" ng-model="data.website" placeholder="Website link" ng-change="enterwebsite(data.website); revenuekeyPress(data.website)"></input> | 162 | <input name="website" class="text-input" ng-model="data.website" placeholder="Website link" ng-change="enterwebsite(data.website); revenuekeyPress(data.website)"></input> |
162 | </div> | 163 | </div> |
163 | <div class="col-xs-12 col-md-6 input-wrapper"> | 164 | <div class="col-xs-12 col-md-6 input-wrapper"> |
164 | <div class="icon-circle-y"> | 165 | <div class="icon-circle-y"> |
165 | <i class="material-icons" style="line-height: 30px;">assignment</i> | 166 | <i class="material-icons" style="line-height: 30px;">assignment</i> |
166 | </div> | 167 | </div> |
167 | <select ng-model="data.stage" ng-change="selectechnology(data.stage); fundkeyPress(data.stage)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> | 168 | <select ng-model="data.stage" ng-change="selectechnology(data.stage); fundkeyPress(data.stage)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> |
168 | <option name="stage" selected disabled value="">Choose Startup Stage *</option> | 169 | <option name="stage" selected disabled value="">Choose Startup Stage *</option> |
169 | <option value="Idea">Idea</option> | 170 | <option value="Idea">Idea</option> |
170 | <option value="Prototype">Prototype</option> | 171 | <option value="Prototype">Prototype</option> |
171 | </select> | 172 | </select> |
172 | </div> | 173 | </div> |
173 | <div class="col-xs-12 col-md-6 input-wrapper"> | 174 | <div class="col-xs-12 col-md-6 input-wrapper"> |
174 | <div class="icon-circle-q"> | 175 | <div class="icon-circle-q"> |
175 | <i class="material-icons" style="line-height: 30px;">business</i> | 176 | <i class="material-icons" style="line-height: 30px;">business</i> |
176 | </div> | 177 | </div> |
177 | <select ng-model="data.business" ng-change="selectechnology(data.business); ideakeyPress(data.business)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> | 178 | <select ng-model="data.business" ng-change="selectechnology(data.business); ideakeyPress(data.business)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> |
178 | <option name="business" selected disabled value="">Type of business *</option> | 179 | <option name="business" selected disabled value="">Type of business *</option> |
179 | <option value="B2B">B2B</option> | 180 | <option value="B2B">B2B</option> |
180 | <option value="B2C">B2C</option> | 181 | <option value="B2C">B2C</option> |
181 | <option value="Other">Other</option> | 182 | <option value="Other">Other</option> |
182 | </select> | 183 | </select> |
183 | </div> | 184 | </div> |
184 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 185 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
185 | <strong>How many founders/teammates will be attending pitch session? *</strong> | 186 | <strong>How many founders/teammates will be attending pitch session? *</strong> |
186 | <p class="line-space" ></p> | 187 | <p class="line-space" ></p> |
187 | </div> | 188 | </div> |
188 | <div class="col-xs-12 col-md-12 input-wrapper" > | 189 | <div class="col-xs-12 col-md-12 input-wrapper" > |
189 | <div class="icon-circle-o"> | 190 | <div class="icon-circle-o"> |
190 | <i class="material-icons" style="line-height: 30px;">confirmation_number</i> | 191 | <i class="material-icons" style="line-height: 30px;">confirmation_number</i> |
191 | </div> | 192 | </div> |
192 | <select ng-model="data.founder" ng-change="selectfounder(data.founder); discountkeyPress(data.founder)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> | 193 | <select ng-model="data.founder" ng-change="selectfounder(data.founder); discountkeyPress(data.founder)" style="background-color: #fff; border-radius: 0; font-size: 12px; height: 44px;" required> |
193 | <option name="founder" selected disabled value="">Choose</option> | 194 | <option name="founder" selected disabled value="">Choose</option> |
194 | <option value="1">1</option> | 195 | <option value="1">1</option> |
195 | <option value="2">2</option> | 196 | <option value="2">2</option> |
196 | <option value="3">3</option> | 197 | <option value="3">3</option> |
197 | <option value="more than 3">more than 3</option> | 198 | <option value="more than 3">more than 3</option> |
198 | </select> | 199 | </select> |
199 | </div> --> | 200 | </div> --> |
200 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> | 201 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> |
201 | <strong>In which city is your startup registered at?</strong> | 202 | <strong>In which city is your startup registered at?</strong> |
202 | <p class="line-space" ></p> | 203 | <p class="line-space" ></p> |
203 | </div> --> | 204 | </div> --> |
204 | <!-- <div class="col-xs-12 col-md-12 input-wrapper"> | 205 | <!-- <div class="col-xs-12 col-md-12 input-wrapper"> |
205 | <div class="icon-circle-m"> | 206 | <div class="icon-circle-m"> |
206 | <i class="material-icons" style="line-height: 30px;">assessment</i> | 207 | <i class="material-icons" style="line-height: 30px;">assessment</i> |
207 | </div> | 208 | </div> |
208 | <input type="text" class="text-input" ng-model="data.cityRegister" placeholder="Your Answer.." ng-change="entertechnology(data.cityRegister); annualkeyPress(data.cityRegister)"> | 209 | <input type="text" class="text-input" ng-model="data.cityRegister" placeholder="Your Answer.." ng-change="entertechnology(data.cityRegister); annualkeyPress(data.cityRegister)"> |
209 | </div> --> | 210 | </div> --> |
210 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> | 211 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> |
211 | <strong>Give us a brief introduction about your startup. *</strong> | 212 | <strong>Give us a brief introduction about your startup. *</strong> |
212 | <p class="line-space" >Kindly write a powerful Twitter Pitch (characters limit - 200).</p> | 213 | <p class="line-space" >Kindly write a powerful Twitter Pitch (characters limit - 200).</p> |
213 | </div> | 214 | </div> |
214 | <div class="col-xs-12 col-md-12 input-wrapper"> | 215 | <div class="col-xs-12 col-md-12 input-wrapper"> |
215 | <div class="icon-circle-x"> | 216 | <div class="icon-circle-x"> |
216 | <i class="material-icons" style="line-height: 30px;">line_weight</i> | 217 | <i class="material-icons" style="line-height: 30px;">line_weight</i> |
217 | </div> | 218 | </div> |
218 | <textarea name="intro" class="text-input textarea" ng-model="data.intro" placeholder="Your Answer.." maxlength="200" ng-change="enterproblem(data.intro); startupNamekeyPress(data.intro)" required></textarea> | 219 | <textarea name="intro" class="text-input textarea" ng-model="data.intro" placeholder="Your Answer.." maxlength="200" ng-change="enterproblem(data.intro); startupNamekeyPress(data.intro)" required></textarea> |
219 | </div> | 220 | </div> |
220 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 221 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
221 | <strong>Who are your customers? *</strong> | 222 | <strong>Who are your customers? *</strong> |
222 | <p class="line-space" >We are looking for a simple and clear answer of who you are selling to (characters limit - 512).</p> | 223 | <p class="line-space" >We are looking for a simple and clear answer of who you are selling to (characters limit - 512).</p> |
223 | </div> | 224 | </div> |
224 | <div class="col-xs-12 col-md-12 input-wrapper"> | 225 | <div class="col-xs-12 col-md-12 input-wrapper"> |
225 | <div class="icon-circle-k"> | 226 | <div class="icon-circle-k"> |
226 | <i class="material-icons" style="line-height: 30px;">help</i> | 227 | <i class="material-icons" style="line-height: 30px;">help</i> |
227 | </div> | 228 | </div> |
228 | <textarea name="customer" class="text-input textarea" ng-model="data.customer" placeholder="Your Answer.." maxlength="512" ng-change="entersolution(data.customer); websitekeyPress(data.customer)" required></textarea> | 229 | <textarea name="customer" class="text-input textarea" ng-model="data.customer" placeholder="Your Answer.." maxlength="512" ng-change="entersolution(data.customer); websitekeyPress(data.customer)" required></textarea> |
229 | </div> --> | 230 | </div> --> |
230 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> | 231 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> |
231 | <strong>What problem you are solving for them? *</strong> | 232 | <strong>What problem you are solving for them? *</strong> |
232 | <p class="line-space" >We want to understand how clearly you know the pain point, and how big of a problem it is for the customers.</p> | 233 | <p class="line-space" >We want to understand how clearly you know the pain point, and how big of a problem it is for the customers.</p> |
233 | </div> | 234 | </div> |
234 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 235 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
235 | <div class="icon-circle-p"> | 236 | <div class="icon-circle-p"> |
236 | <i class="material-icons" style="line-height: 30px;">business_center</i> | 237 | <i class="material-icons" style="line-height: 30px;">business_center</i> |
237 | </div> | 238 | </div> |
238 | <textarea name="problem" class="text-input textarea" ng-model="data.problem" placeholder="Your Answer.." ng-change="enterbusiness(data.problem); businesskeyPress(data.problem)" required> | 239 | <textarea name="problem" class="text-input textarea" ng-model="data.problem" placeholder="Your Answer.." ng-change="enterbusiness(data.problem); businesskeyPress(data.problem)" required> |
239 | </textarea> | 240 | </textarea> |
240 | </div> --> | 241 | </div> --> |
241 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> | 242 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> |
242 | <strong>Link your pitch deck presentation. *</strong> | 243 | <strong>Link your pitch deck presentation. *</strong> |
243 | <p class="line-space" > Kindly upload the link to your pitch deck (Dropbox/Google Drive, if on google drive make the link open to all).</p> | 244 | <p class="line-space" > Kindly upload the link to your pitch deck (Dropbox/Google Drive, if on google drive make the link open to all).</p> |
244 | </div> | 245 | </div> |
245 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 246 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
246 | <div class="icon-circle-h"> | 247 | <div class="icon-circle-h"> |
247 | <i class="material-icons" style="line-height: 30px;">web</i> | 248 | <i class="material-icons" style="line-height: 30px;">web</i> |
248 | </div> | 249 | </div> |
249 | <input name="link" class="text-input" ng-pattern="/^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/" ng-blur="emailcheck(data.link)" ng-focus="removeError()" ng-model="data.link" placeholder="link" ng-change="enterbusiness(data.link); linkedInkeyPress(data.link)" required> | 250 | <input name="link" class="text-input" ng-pattern="/^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/" ng-blur="emailcheck(data.link)" ng-focus="removeError()" ng-model="data.link" placeholder="link" ng-change="enterbusiness(data.link); linkedInkeyPress(data.link)" required> |
250 | <label class="error-message f-family" id="invalidEmail">Please enter a valid link.</label> | 251 | <label class="error-message f-family" id="invalidEmail">Please enter a valid link.</label> |
251 | </div> --> | 252 | </div> --> |
252 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> | 253 | <!-- <div class="col-xs-12 col-md-12 f-family line-adjust"> |
253 | <strong>Coupon Code.</strong> | 254 | <strong>Coupon Code.</strong> |
254 | <p class="line-space" >Only applicable for venue partner ecosystem</p> | 255 | <p class="line-space" >Only applicable for venue partner ecosystem</p> |
255 | </div> | 256 | </div> |
256 | <div class="col-xs-12 input-wrapper"> | 257 | <div class="col-xs-12 input-wrapper"> |
257 | <div class="referel-icon" style="z-index: 999;"> | 258 | <div class="referel-icon" style="z-index: 999;"> |
258 | <i class="material-icons" style="line-height: 30px;">code</i> | 259 | <i class="material-icons" style="line-height: 30px;">code</i> |
259 | </div> | 260 | </div> |
260 | <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> | 261 | <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> |
261 | <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> | 262 | <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> |
262 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> | 263 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> |
263 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> | 264 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> |
264 | </div> --> | 265 | </div> --> |
265 | <div class="clearfix"></div> | 266 | <div class="clearfix"></div> |
266 | <!-- </div> --> | 267 | <!-- </div> --> |
267 | <!-- close step-one-form --> | 268 | <!-- close step-one-form --> |
268 | <!-- </td> | 269 | <!-- </td> |
269 | </tr> | 270 | </tr> |
270 | </table> --> | 271 | </table> --> |
271 | <div class="text-center"> | 272 | <div class="text-center"> |
272 | <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid || disabled" value="Submit" ng-click="submit()"> | 273 | <input type="submit" class="btn submit-button-form" id="disableButton" ng-disabled="applicantForm.$invalid || disabled" value="Submit" ng-click="submit()"> |
273 | </div> | 274 | </div> |
274 | </div> | 275 | </div> |
275 | <!-- CLOSE form-all --> | 276 | <!-- CLOSE form-all --> |
276 | <!-- </div> --> | 277 | <!-- </div> --> |
277 | <!-- <div class="clearfix"></div> | 278 | <!-- <div class="clearfix"></div> |
278 | <div class="text-center"> | 279 | <div class="text-center"> |
279 | <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()"> | 280 | <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()"> |
280 | </div> --> | 281 | </div> --> |
281 | </div> | 282 | </div> |
282 | <div class="text-center"> | 283 | <div class="text-center"> |
283 | <input type="submit" class="btn submit-button-form" value="Submit" ng-click="click()"> | 284 | <input type="submit" class="btn submit-button-form" value="Submit" ng-click="click()"> |
284 | </div> | 285 | </div> |
285 | <!-- col-xs-12 col-md-8 col-md-offset-2 --> | 286 | <!-- col-xs-12 col-md-8 col-md-offset-2 --> |
286 | <!-- <footer> | 287 | <!-- <footer> |
287 | <img id="footer" class="img-responsive banner"> | 288 | <img id="footer" class="img-responsive banner"> |
288 | <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> | 289 | <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> |
289 | </center> | 290 | </center> |
290 | </footer> --> | 291 | </footer> --> |
291 | </form> | 292 | </form> |
292 | <!-- CLOSE FORM --> | 293 | <!-- CLOSE FORM --> |
293 | <!-- </div> CLOSE CHECK VIEW --> | 294 | <!-- </div> CLOSE CHECK VIEW --> |
294 | <span ng-show="span == true"> | 295 | <span ng-show="span == true"> |
295 | <span id="chennai"></span> | 296 | <span id="chennai"></span> |
296 | <span id="mumbai"></span> | 297 | <span id="mumbai"></span> |
297 | <span id="hyderabad"></span> | 298 | <span id="hyderabad"></span> |
298 | <span id="kolkata"></span> | 299 | <span id="kolkata"></span> |
299 | <span id="delhi"></span> | 300 | <span id="delhi"></span> |
300 | <span id="ahmedabad"></span> | 301 | <span id="ahmedabad"></span> |
301 | <span id="bengaluru"></span> | 302 | <span id="bengaluru"></span> |
302 | <span id="jaipur"></span>kanpur | 303 | <span id="jaipur"></span>kanpur |
303 | <span id="kanpur"></span> | 304 | <span id="kanpur"></span> |
304 | <span id="dharamsala"></span> | 305 | <span id="dharamsala"></span> |
305 | </span> | 306 | </span> |
306 | 307 |
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,$locationProvider) { | 5 | scotchApp.config(function($routeProvider,$locationProvider) { |
6 | 6 | ||
7 | // use the HTML5 History API | 7 | // use the HTML5 History API |
8 | // $locationProvider.html5Mode({ | 8 | // $locationProvider.html5Mode({ |
9 | // enabled: true, | 9 | // enabled: true, |
10 | // requireBase: false | 10 | // requireBase: false |
11 | // }); | 11 | // }); |
12 | //$locationProvider.hashPrefix('!'); | 12 | //$locationProvider.hashPrefix('!'); |
13 | $routeProvider | 13 | $routeProvider |
14 | // route for the Home page | 14 | // route for the Home page |
15 | .when('/', { | 15 | .when('/', { |
16 | templateUrl: 'pages/Home.html', | 16 | templateUrl: 'pages/Home.html', |
17 | controller: 'mainController' | 17 | controller: 'mainController' |
18 | }) | 18 | }) |
19 | 19 | ||
20 | // route for the caricatures page | 20 | // route for the caricatures page |
21 | .when('/caricatures', { | 21 | .when('/caricatures', { |
22 | templateUrl: 'pages/caricatures.html', | 22 | templateUrl: 'pages/caricatures.html', |
23 | controller: 'mainController' | 23 | controller: 'mainController' |
24 | }) | 24 | }) |
25 | 25 | ||
26 | // route for the paymentVerify page | 26 | // route for the paymentVerify page |
27 | .when('/pendingPayment/:id', { | 27 | .when('/pendingPayment/:id', { |
28 | templateUrl: 'pages/verify.html', | 28 | templateUrl: 'pages/verify.html', |
29 | controller: 'verifyController' | 29 | controller: 'verifyController' |
30 | }) | 30 | }) |
31 | 31 | ||
32 | // route for the registration page | 32 | // route for the registration page |
33 | .when('/registration', { | 33 | .when('/registration', { |
34 | templateUrl: 'pages/registration.html', | 34 | templateUrl: 'pages/registration.html', |
35 | controller: 'registrationController' | 35 | controller: 'registrationController' |
36 | }) | 36 | }) |
37 | 37 | ||
38 | //route for the ambassador page | 38 | //route for the ambassador page |
39 | // .when('/startupJalsaPromocode', { | 39 | // .when('/startupJalsaPromocode', { |
40 | // templateUrl: 'pages/ambassador.html', | 40 | // templateUrl: 'pages/ambassador.html', |
41 | // controller: 'ambassadorController' | 41 | // controller: 'ambassadorController' |
42 | // }) | 42 | // }) |
43 | 43 | ||
44 | // route for the confirmation page | 44 | // route for the confirmation page |
45 | .when('/confirmation', { | 45 | .when('/confirmation', { |
46 | templateUrl: 'pages/confirmation.html', | 46 | templateUrl: 'pages/confirmation.html', |
47 | controller: 'registrationController' | 47 | controller: 'registrationController' |
48 | }) | 48 | }) |
49 | 49 | ||
50 | .otherwise({ | 50 | .otherwise({ |
51 | redirectTo: '/' | 51 | redirectTo: '/' |
52 | }); | 52 | }); |
53 | 53 | ||
54 | }); | 54 | }); |
55 | 55 | ||
56 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { | 56 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { |
57 | // Add configuration code as desired | 57 | // Add configuration code as desired |
58 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code | 58 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code |
59 | 59 | ||
60 | // Track all routes (default is true). | 60 | // Track all routes (default is true). |
61 | AnalyticsProvider.trackPages(true); | 61 | AnalyticsProvider.trackPages(true); |
62 | 62 | ||
63 | // Track all URL query params (default is false). | 63 | // Track all URL query params (default is false). |
64 | AnalyticsProvider.trackUrlParams(true); | 64 | AnalyticsProvider.trackUrlParams(true); |
65 | 65 | ||
66 | }]).run(['Analytics', function(Analytics) { }]); | 66 | }]).run(['Analytics', function(Analytics) { }]); |
67 | 67 | ||
68 | scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") | 68 | scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") |
69 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") | 69 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") |
70 | 70 | ||
71 | // create the controller and inject Angular's $scope | 71 | // create the controller and inject Angular's $scope |
72 | scotchApp.controller('mainController', function($scope, $http, $window, $location, $route, $rootScope, BASE_URL, Analytics) { | 72 | scotchApp.controller('mainController', function($scope, $http, $window, $location, $route, $rootScope, BASE_URL, Analytics) { |
73 | $scope.data = { | 73 | $scope.data = { |
74 | show: true, | 74 | show: true, |
75 | hide: false | 75 | hide: false |
76 | }; | 76 | }; |
77 | window.onload = function(){ | 77 | window.onload = function(){ |
78 | var element = document.getElementById("defaultcountry"); | 78 | var element = document.getElementById("defaultcountry"); |
79 | element.classList.add("btn-active"); | 79 | element.classList.add("btn-active"); |
80 | //document.getElementById("ahmedabad").src = "images/Ahmedabad_1.png"; | 80 | //document.getElementById("ahmedabad").src = "images/Ahmedabad_1.png"; |
81 | } | 81 | } |
82 | 82 | ||
83 | var chennai = new Date("Sept 19, 2018 12:00:00").getTime(); | 83 | var chennai = new Date("Sept 19, 2018 12:00:00").getTime(); |
84 | // Update the count down every 1 second | 84 | // Update the count down every 1 second |
85 | var x = setInterval(function() { | 85 | var x = setInterval(function() { |
86 | // Get todays date and time | 86 | // Get todays date and time |
87 | var now = new Date().getTime(); | 87 | var now = new Date().getTime(); |
88 | // Find the distance between now an the count down date | 88 | // Find the distance between now an the count down date |
89 | var distance = chennai - now; | 89 | var distance = chennai - now; |
90 | // Time calculations for days, hours, minutes and seconds | 90 | // Time calculations for days, hours, minutes and seconds |
91 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 91 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
92 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 92 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
93 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 93 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
94 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 94 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
95 | $scope.timer = days + "d " + hours + "h " | 95 | $scope.timer = days + "d " + hours + "h " |
96 | + minutes + "m " + seconds + "s " | 96 | + minutes + "m " + seconds + "s " |
97 | // Output the result in an element with id="demo" | 97 | // Output the result in an element with id="demo" |
98 | document.getElementById("chennai").innerHTML = days + "d " + hours + "h " | 98 | document.getElementById("chennai").innerHTML = days + "d " + hours + "h " |
99 | + minutes + "m " + seconds + "s "; | 99 | + minutes + "m " + seconds + "s "; |
100 | // If the count down is over, write some text | 100 | // If the count down is over, write some text |
101 | if (distance < 0) { | 101 | if (distance < 0) { |
102 | clearInterval(x); | 102 | clearInterval(x); |
103 | document.getElementById("chennai").innerHTML = "EXPIRED"; | 103 | document.getElementById("chennai").innerHTML = "EXPIRED"; |
104 | } | 104 | } |
105 | }, 1000); | 105 | }, 1000); |
106 | 106 | ||
107 | var hyderabad = new Date("Sept 22, 2018 14:00:00").getTime(); | 107 | var hyderabad = new Date("Sept 22, 2018 14:00:00").getTime(); |
108 | // Update the count down every 1 second | 108 | // Update the count down every 1 second |
109 | var x = setInterval(function() { | 109 | var x = setInterval(function() { |
110 | // Get todays date and time | 110 | // Get todays date and time |
111 | var now = new Date().getTime(); | 111 | var now = new Date().getTime(); |
112 | // Find the distance between now an the count down date | 112 | // Find the distance between now an the count down date |
113 | var distance = hyderabad - now; | 113 | var distance = hyderabad - now; |
114 | // Time calculations for days, hours, minutes and seconds | 114 | // Time calculations for days, hours, minutes and seconds |
115 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 115 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
116 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 116 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
117 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 117 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
118 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 118 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
119 | $scope.timer = days + "d " + hours + "h " | 119 | $scope.timer = days + "d " + hours + "h " |
120 | + minutes + "m " + seconds + "s " | 120 | + minutes + "m " + seconds + "s " |
121 | // Output the result in an element with id="demo" | 121 | // Output the result in an element with id="demo" |
122 | document.getElementById("hyderabad").innerHTML = days + "d " + hours + "h " | 122 | document.getElementById("hyderabad").innerHTML = days + "d " + hours + "h " |
123 | + minutes + "m " + seconds + "s "; | 123 | + minutes + "m " + seconds + "s "; |
124 | // If the count down is over, write some text | 124 | // If the count down is over, write some text |
125 | if (distance < 0) { | 125 | if (distance < 0) { |
126 | clearInterval(x); | 126 | clearInterval(x); |
127 | document.getElementById("hyderabad").innerHTML = "EXPIRED"; | 127 | document.getElementById("hyderabad").innerHTML = "EXPIRED"; |
128 | } | 128 | } |
129 | }, 1000); | 129 | }, 1000); |
130 | 130 | ||
131 | var mumbai = new Date("Sept 26, 2018 14:00:00").getTime(); | 131 | var mumbai = new Date("Sept 26, 2018 14:00:00").getTime(); |
132 | // Update the count down every 1 second | 132 | // Update the count down every 1 second |
133 | var x = setInterval(function() { | 133 | var x = setInterval(function() { |
134 | // Get todays date and time | 134 | // Get todays date and time |
135 | var now = new Date().getTime(); | 135 | var now = new Date().getTime(); |
136 | // Find the distance between now an the count down date | 136 | // Find the distance between now an the count down date |
137 | var distance = mumbai - now; | 137 | var distance = mumbai - now; |
138 | // Time calculations for days, hours, minutes and seconds | 138 | // Time calculations for days, hours, minutes and seconds |
139 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 139 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
140 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 140 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
141 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 141 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
142 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 142 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
143 | $scope.timer = days + "d " + hours + "h " | 143 | $scope.timer = days + "d " + hours + "h " |
144 | + minutes + "m " + seconds + "s " | 144 | + minutes + "m " + seconds + "s " |
145 | // Output the result in an element with id="demo" | 145 | // Output the result in an element with id="demo" |
146 | document.getElementById("mumbai").innerHTML = days + "d " + hours + "h " | 146 | document.getElementById("mumbai").innerHTML = days + "d " + hours + "h " |
147 | + minutes + "m " + seconds + "s "; | 147 | + minutes + "m " + seconds + "s "; |
148 | // If the count down is over, write some text | 148 | // If the count down is over, write some text |
149 | if (distance < 0) { | 149 | if (distance < 0) { |
150 | clearInterval(x); | 150 | clearInterval(x); |
151 | document.getElementById("mumbai").innerHTML = "EXPIRED"; | 151 | document.getElementById("mumbai").innerHTML = "EXPIRED"; |
152 | } | 152 | } |
153 | }, 1000); | 153 | }, 1000); |
154 | 154 | ||
155 | var kolkata = new Date("Oct 3, 2018 14:00:00").getTime(); | 155 | var kolkata = new Date("Oct 3, 2018 14:00:00").getTime(); |
156 | // Update the count down every 1 second | 156 | // Update the count down every 1 second |
157 | var x = setInterval(function() { | 157 | var x = setInterval(function() { |
158 | // Get todays date and time | 158 | // Get todays date and time |
159 | var now = new Date().getTime(); | 159 | var now = new Date().getTime(); |
160 | // Find the distance between now an the count down date | 160 | // Find the distance between now an the count down date |
161 | var distance = kolkata - now; | 161 | var distance = kolkata - now; |
162 | // Time calculations for days, hours, minutes and seconds | 162 | // Time calculations for days, hours, minutes and seconds |
163 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 163 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
164 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 164 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
165 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 165 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
166 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 166 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
167 | $scope.timer = days + "d " + hours + "h " | 167 | $scope.timer = days + "d " + hours + "h " |
168 | + minutes + "m " + seconds + "s " | 168 | + minutes + "m " + seconds + "s " |
169 | // Output the result in an element with id="demo" | 169 | // Output the result in an element with id="demo" |
170 | document.getElementById("kolkata").innerHTML = days + "d " + hours + "h " | 170 | document.getElementById("kolkata").innerHTML = days + "d " + hours + "h " |
171 | + minutes + "m " + seconds + "s "; | 171 | + minutes + "m " + seconds + "s "; |
172 | // If the count down is over, write some text | 172 | // If the count down is over, write some text |
173 | if (distance < 0) { | 173 | if (distance < 0) { |
174 | clearInterval(x); | 174 | clearInterval(x); |
175 | document.getElementById("kolkata").innerHTML = "EXPIRED"; | 175 | document.getElementById("kolkata").innerHTML = "EXPIRED"; |
176 | } | 176 | } |
177 | }, 1000); | 177 | }, 1000); |
178 | 178 | ||
179 | var jaipur = new Date("Oct 5, 2018 14:00:00").getTime(); | 179 | var jaipur = new Date("Oct 5, 2018 14:00:00").getTime(); |
180 | // Update the count down every 1 second | 180 | // Update the count down every 1 second |
181 | var x = setInterval(function() { | 181 | var x = setInterval(function() { |
182 | // Get todays date and time | 182 | // Get todays date and time |
183 | var now = new Date().getTime(); | 183 | var now = new Date().getTime(); |
184 | // Find the distance between now an the count down date | 184 | // Find the distance between now an the count down date |
185 | var distance = jaipur - now; | 185 | var distance = jaipur - now; |
186 | // Time calculations for days, hours, minutes and seconds | 186 | // Time calculations for days, hours, minutes and seconds |
187 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 187 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
188 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 188 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
189 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 189 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
190 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 190 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
191 | $scope.timer = days + "d " + hours + "h " | 191 | $scope.timer = days + "d " + hours + "h " |
192 | + minutes + "m " + seconds + "s " | 192 | + minutes + "m " + seconds + "s " |
193 | // Output the result in an element with id="demo" | 193 | // Output the result in an element with id="demo" |
194 | document.getElementById("jaipur").innerHTML = days + "d " + hours + "h " | 194 | document.getElementById("jaipur").innerHTML = days + "d " + hours + "h " |
195 | + minutes + "m " + seconds + "s "; | 195 | + minutes + "m " + seconds + "s "; |
196 | // If the count down is over, write some text | 196 | // If the count down is over, write some text |
197 | if (distance < 0) { | 197 | if (distance < 0) { |
198 | clearInterval(x); | 198 | clearInterval(x); |
199 | document.getElementById("jaipur").innerHTML = "EXPIRED"; | 199 | document.getElementById("jaipur").innerHTML = "EXPIRED"; |
200 | } | 200 | } |
201 | }, 1000); | 201 | }, 1000); |
202 | 202 | ||
203 | var delhi = new Date("Oct 8, 2018 14:00:00").getTime(); | 203 | var delhi = new Date("Oct 8, 2018 14:00:00").getTime(); |
204 | // Update the count down every 1 second | 204 | // Update the count down every 1 second |
205 | var x = setInterval(function() { | 205 | var x = setInterval(function() { |
206 | // Get todays date and time | 206 | // Get todays date and time |
207 | var now = new Date().getTime(); | 207 | var now = new Date().getTime(); |
208 | // Find the distance between now an the count down date | 208 | // Find the distance between now an the count down date |
209 | var distance = delhi - now; | 209 | var distance = delhi - now; |
210 | // Time calculations for days, hours, minutes and seconds | 210 | // Time calculations for days, hours, minutes and seconds |
211 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 211 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
212 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 212 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
213 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 213 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
214 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 214 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
215 | $scope.timer = days + "d " + hours + "h " | 215 | $scope.timer = days + "d " + hours + "h " |
216 | + minutes + "m " + seconds + "s " | 216 | + minutes + "m " + seconds + "s " |
217 | // Output the result in an element with id="demo" | 217 | // Output the result in an element with id="demo" |
218 | document.getElementById("delhi").innerHTML = days + "d " + hours + "h " | 218 | document.getElementById("delhi").innerHTML = days + "d " + hours + "h " |
219 | + minutes + "m " + seconds + "s "; | 219 | + minutes + "m " + seconds + "s "; |
220 | // If the count down is over, write some text | 220 | // If the count down is over, write some text |
221 | if (distance < 0) { | 221 | if (distance < 0) { |
222 | clearInterval(x); | 222 | clearInterval(x); |
223 | document.getElementById("delhi").innerHTML = "EXPIRED"; | 223 | document.getElementById("delhi").innerHTML = "EXPIRED"; |
224 | } | 224 | } |
225 | }, 1000); | 225 | }, 1000); |
226 | 226 | ||
227 | var kanpur = new Date("Oct 10, 2018 14:00:00").getTime(); | 227 | var kanpur = new Date("Oct 10, 2018 14:00:00").getTime(); |
228 | // Update the count down every 1 second | 228 | // Update the count down every 1 second |
229 | var x = setInterval(function() { | 229 | var x = setInterval(function() { |
230 | // Get todays date and time | 230 | // Get todays date and time |
231 | var now = new Date().getTime(); | 231 | var now = new Date().getTime(); |
232 | // Find the distance between now an the count down date | 232 | // Find the distance between now an the count down date |
233 | var distance = kanpur - now; | 233 | var distance = kanpur - now; |
234 | // Time calculations for days, hours, minutes and seconds | 234 | // Time calculations for days, hours, minutes and seconds |
235 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 235 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
236 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 236 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
237 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 237 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
238 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 238 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
239 | $scope.timer = days + "d " + hours + "h " | 239 | $scope.timer = days + "d " + hours + "h " |
240 | + minutes + "m " + seconds + "s " | 240 | + minutes + "m " + seconds + "s " |
241 | // Output the result in an element with id="demo" | 241 | // Output the result in an element with id="demo" |
242 | document.getElementById("kanpur").innerHTML = days + "d " + hours + "h " | 242 | document.getElementById("kanpur").innerHTML = days + "d " + hours + "h " |
243 | + minutes + "m " + seconds + "s "; | 243 | + minutes + "m " + seconds + "s "; |
244 | // If the count down is over, write some text | 244 | // If the count down is over, write some text |
245 | if (distance < 0) { | 245 | if (distance < 0) { |
246 | clearInterval(x); | 246 | clearInterval(x); |
247 | document.getElementById("kanpur").innerHTML = "EXPIRED"; | 247 | document.getElementById("kanpur").innerHTML = "EXPIRED"; |
248 | } | 248 | } |
249 | }, 1000); | 249 | }, 1000); |
250 | 250 | ||
251 | var ahmedabad = new Date("Oct 12, 2018 14:00:00").getTime(); | 251 | var ahmedabad = new Date("Oct 12, 2018 14:00:00").getTime(); |
252 | // Update the count down every 1 second | 252 | // Update the count down every 1 second |
253 | var x = setInterval(function() { | 253 | var x = setInterval(function() { |
254 | // Get todays date and time | 254 | // Get todays date and time |
255 | var now = new Date().getTime(); | 255 | var now = new Date().getTime(); |
256 | // Find the distance between now an the count down date | 256 | // Find the distance between now an the count down date |
257 | var distance = ahmedabad - now; | 257 | var distance = ahmedabad - now; |
258 | // Time calculations for days, hours, minutes and seconds | 258 | // Time calculations for days, hours, minutes and seconds |
259 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 259 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
260 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 260 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
261 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 261 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
262 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 262 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
263 | $scope.timer = days + "d " + hours + "h " | 263 | $scope.timer = days + "d " + hours + "h " |
264 | + minutes + "m " + seconds + "s " | 264 | + minutes + "m " + seconds + "s " |
265 | // Output the result in an element with id="demo" | 265 | // Output the result in an element with id="demo" |
266 | document.getElementById("ahmedabad").innerHTML = days + "d " + hours + "h " | 266 | document.getElementById("ahmedabad").innerHTML = days + "d " + hours + "h " |
267 | + minutes + "m " + seconds + "s "; | 267 | + minutes + "m " + seconds + "s "; |
268 | // If the count down is over, write some text | 268 | // If the count down is over, write some text |
269 | if (distance < 0) { | 269 | if (distance < 0) { |
270 | clearInterval(x); | 270 | clearInterval(x); |
271 | document.getElementById("ahmedabad").innerHTML = "EXPIRED"; | 271 | document.getElementById("ahmedabad").innerHTML = "EXPIRED"; |
272 | } | 272 | } |
273 | }, 1000); | 273 | }, 1000); |
274 | 274 | ||
275 | var bengaluru = new Date("Oct 13, 2018 14:00:00").getTime(); | 275 | var bengaluru = new Date("Oct 13, 2018 14:00:00").getTime(); |
276 | // Update the count down every 1 second | 276 | // Update the count down every 1 second |
277 | var x = setInterval(function() { | 277 | var x = setInterval(function() { |
278 | // Get todays date and time | 278 | // Get todays date and time |
279 | var now = new Date().getTime(); | 279 | var now = new Date().getTime(); |
280 | // Find the distance between now an the count down date | 280 | // Find the distance between now an the count down date |
281 | var distance = bengaluru - now; | 281 | var distance = bengaluru - now; |
282 | // Time calculations for days, hours, minutes and seconds | 282 | // Time calculations for days, hours, minutes and seconds |
283 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 283 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
284 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 284 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
285 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 285 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
286 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 286 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
287 | $scope.timer = days + "d " + hours + "h " | 287 | $scope.timer = days + "d " + hours + "h " |
288 | + minutes + "m " + seconds + "s " | 288 | + minutes + "m " + seconds + "s " |
289 | // Output the result in an element with id="demo" | 289 | // Output the result in an element with id="demo" |
290 | document.getElementById("bengaluru").innerHTML = days + "d " + hours + "h " | 290 | document.getElementById("bengaluru").innerHTML = days + "d " + hours + "h " |
291 | + minutes + "m " + seconds + "s "; | 291 | + minutes + "m " + seconds + "s "; |
292 | // If the count down is over, write some text | 292 | // If the count down is over, write some text |
293 | if (distance < 0) { | 293 | if (distance < 0) { |
294 | clearInterval(x); | 294 | clearInterval(x); |
295 | document.getElementById("bengaluru").innerHTML = "EXPIRED"; | 295 | document.getElementById("bengaluru").innerHTML = "EXPIRED"; |
296 | } | 296 | } |
297 | }, 1000); | 297 | }, 1000); |
298 | 298 | ||
299 | var dharamsala = new Date("Dec 14, 2018 14:00:00").getTime(); | 299 | var dharamsala = new Date("Dec 14, 2018 14:00:00").getTime(); |
300 | // Update the count down every 1 second | 300 | // Update the count down every 1 second |
301 | var x = setInterval(function() { | 301 | var x = setInterval(function() { |
302 | // Get todays date and time | 302 | // Get todays date and time |
303 | var now = new Date().getTime(); | 303 | var now = new Date().getTime(); |
304 | // Find the distance between now an the count down date | 304 | // Find the distance between now an the count down date |
305 | var distance = dharamsala - now; | 305 | var distance = dharamsala - now; |
306 | // Time calculations for days, hours, minutes and seconds | 306 | // Time calculations for days, hours, minutes and seconds |
307 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); | 307 | var days = Math.floor(distance / (1000 * 60 * 60 * 24)); |
308 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | 308 | var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); |
309 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); | 309 | var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); |
310 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); | 310 | var seconds = Math.floor((distance % (1000 * 60)) / 1000); |
311 | $scope.timer = days + "d " + hours + "h " | 311 | $scope.timer = days + "d " + hours + "h " |
312 | + minutes + "m " + seconds + "s " | 312 | + minutes + "m " + seconds + "s " |
313 | // Output the result in an element with id="demo" | 313 | // Output the result in an element with id="demo" |
314 | document.getElementById("dharamsala").innerHTML = days + "d " + hours + "h " | 314 | document.getElementById("dharamsala").innerHTML = days + "d " + hours + "h " |
315 | + minutes + "m " + seconds + "s "; | 315 | + minutes + "m " + seconds + "s "; |
316 | // If the count down is over, write some text | 316 | // If the count down is over, write some text |
317 | if (distance < 0) { | 317 | if (distance < 0) { |
318 | clearInterval(x); | 318 | clearInterval(x); |
319 | document.getElementById("dharamsala").innerHTML = "EXPIRED"; | 319 | document.getElementById("dharamsala").innerHTML = "EXPIRED"; |
320 | } | 320 | } |
321 | }, 1000); | 321 | }, 1000); |
322 | 322 | ||
323 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 323 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
324 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 324 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
325 | // $scope.Textshow = "yes" | 325 | // $scope.Textshow = "yes" |
326 | $scope.max = 100; | 326 | $scope.max = 100; |
327 | $scope.formPage = false; | 327 | $scope.formPage = false; |
328 | $scope.current = 0; | 328 | $scope.current = 0; |
329 | $scope.payingAmnt = 0; | 329 | $scope.payingAmnt = 0; |
330 | $scope.data = {}; | 330 | $scope.data = {}; |
331 | $scope.discountAmount = 0; | 331 | $scope.discountAmount = 0; |
332 | // $scope.data.quantity = "1"; | 332 | // $scope.data.quantity = "1"; |
333 | $scope.check = false; | 333 | $scope.check = false; |
334 | $scope.numberCheck = false; | 334 | $scope.numberCheck = false; |
335 | $scope.paymentResult = {}; | 335 | $scope.paymentResult = {}; |
336 | var data = { | 336 | var data = { |
337 | "amount": $scope.payingAmnt, | 337 | "amount": $scope.payingAmnt, |
338 | "currency": "INR", | 338 | "currency": "INR", |
339 | "status": "pending" | 339 | "status": "pending" |
340 | } | 340 | } |
341 | 341 | ||
342 | $scope.showval = true; | 342 | $scope.showval = true; |
343 | $scope.hideval = false; | 343 | $scope.hideval = false; |
344 | $scope.showvalue = false; | 344 | $scope.showvalue = false; |
345 | $scope.hidevalue = false; | 345 | $scope.hidevalue = false; |
346 | $scope.isShowHide = function (value) { | 346 | $scope.isShowHide = function (value) { |
347 | console.log(value) | 347 | console.log(value) |
348 | var element = document.getElementById("defaultcountry"); | 348 | var element = document.getElementById("defaultcountry"); |
349 | element.classList.remove("btn-active"); | 349 | element.classList.remove("btn-active"); |
350 | 350 | ||
351 | if (value == "INDIA") { | 351 | if (value == "INDIA") { |
352 | console.log("value",value) | 352 | console.log("value",value) |
353 | $scope.showval = true; | 353 | $scope.showval = true; |
354 | $scope.hideval = false; | 354 | $scope.hideval = false; |
355 | $scope.showvalue = false; | 355 | $scope.showvalue = false; |
356 | $scope.hidevalue = false; | 356 | $scope.hidevalue = false; |
357 | } | 357 | } |
358 | else if (value == "SRI LANKA") { | 358 | else if (value == "SRI LANKA") { |
359 | console.log("value1",value) | 359 | console.log("value1",value) |
360 | $scope.showval = false; | 360 | $scope.showval = false; |
361 | $scope.hideval = true; | 361 | $scope.hideval = true; |
362 | $scope.showvalue = false; | 362 | $scope.showvalue = false; |
363 | $scope.hidevalue = false; | 363 | $scope.hidevalue = false; |
364 | } | 364 | } |
365 | else if (value == "BANGLADESH") { | 365 | else if (value == "BANGLADESH") { |
366 | console.log("value2",value) | 366 | console.log("value2",value) |
367 | $scope.showval = false; | 367 | $scope.showval = false; |
368 | $scope.hideval = false; | 368 | $scope.hideval = false; |
369 | $scope.showvalue = true; | 369 | $scope.showvalue = true; |
370 | $scope.hidevalue = false; | 370 | $scope.hidevalue = false; |
371 | } | 371 | } |
372 | else { | 372 | else { |
373 | console.log("value3",value) | 373 | console.log("value3",value) |
374 | $scope.showval = false; | 374 | $scope.showval = false; |
375 | $scope.hideval = false; | 375 | $scope.hideval = false; |
376 | $scope.showvalue = false; | 376 | $scope.showvalue = false; |
377 | $scope.hidevalue = true; | 377 | $scope.hidevalue = true; |
378 | } | 378 | } |
379 | } | 379 | } |
380 | 380 | ||
381 | // $scope.apply = function() { | 381 | // $scope.apply = function() { |
382 | // //Analytics.trackEvent('register', 'click', 'Registration'); | 382 | // //Analytics.trackEvent('register', 'click', 'Registration'); |
383 | // $location.path("/caricatures") | 383 | // $location.path("/caricatures") |
384 | // } | 384 | // } |
385 | 385 | ||
386 | // $scope.data.city = ''; | 386 | // $scope.data.city = ''; |
387 | $scope.watch = function(value){ | 387 | $scope.watch = function(value){ |
388 | console.log(value) | 388 | console.log(value) |
389 | //document.getElementById("ahmedabad").src = ""; | 389 | //document.getElementById("ahmedabad").src = ""; |
390 | // console.log("cllll",value) | 390 | // console.log("cllll",value) |
391 | $scope.data.city = value; | 391 | $scope.data.city = value; |
392 | // if($scope.data.city == "Chennai"){ | 392 | // if($scope.data.city == "Chennai"){ |
393 | // console.log("cllll1",value) | 393 | // console.log("cllll1",value) |
394 | // $window.location.href = 'http://35.154.24.158:8007'; | 394 | // $window.location.href = 'http://35.154.24.158:8007'; |
395 | // }else{ | 395 | // }else{ |
396 | // console.log("cllll2",value) | 396 | // console.log("cllll2",value) |
397 | localStorage.setItem("city" ,value); | 397 | localStorage.setItem("city" ,value); |
398 | //$location.path('/registration').search({city: value}); | 398 | //$location.path('/registration').search({city: value}); |
399 | // $location.path('/registration/'+value+''); | 399 | // $location.path('/registration/'+value+''); |
400 | $location.path('/registration'); | 400 | $location.path('/registration'); |
401 | //$state.go('registration', { 'city': value}) | 401 | //$state.go('registration', { 'city': value}) |
402 | // } | 402 | // } |
403 | } | 403 | } |
404 | 404 | ||
405 | $scope.select = function(url){ | 405 | $scope.select = function(url){ |
406 | console.log("cllll") | 406 | console.log("cllll") |
407 | window.open(url) | 407 | window.open(url) |
408 | } | 408 | } |
409 | 409 | ||
410 | $scope.stagekeyPress = function() { | 410 | $scope.stagekeyPress = function() { |
411 | $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); | 411 | $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); |
412 | } | 412 | } |
413 | $scope.sectorkeyPress = function() { | 413 | $scope.sectorkeyPress = function() { |
414 | $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); | 414 | $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); |
415 | } | 415 | } |
416 | 416 | ||
417 | $scope.productLaunchkeyPress = function() { | 417 | $scope.productLaunchkeyPress = function() { |
418 | $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); | 418 | $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); |
419 | } | 419 | } |
420 | 420 | ||
421 | $scope.launchPeriodkeyPress = function() { | 421 | $scope.launchPeriodkeyPress = function() { |
422 | $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); | 422 | $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); |
423 | } | 423 | } |
424 | 424 | ||
425 | $scope.industrykeyPress = function(quantity) { | 425 | $scope.industrykeyPress = function(quantity) { |
426 | console.log("fghj",quantity) | 426 | console.log("fghj",quantity) |
427 | $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); | 427 | $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); |
428 | } | 428 | } |
429 | 429 | ||
430 | $scope.industryNamekeyPress = function(firstName) { | 430 | $scope.industryNamekeyPress = function(firstName) { |
431 | console.log("lastName==", firstName); | 431 | console.log("lastName==", firstName); |
432 | if (firstName == undefined) { | 432 | if (firstName == undefined) { |
433 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 433 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
434 | } else { | 434 | } else { |
435 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); | 435 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); |
436 | } | 436 | } |
437 | } | 437 | } |
438 | 438 | ||
439 | $scope.amountkeyPress = function() { | 439 | $scope.amountkeyPress = function() { |
440 | $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); | 440 | $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); |
441 | } | 441 | } |
442 | 442 | ||
443 | $scope.firstNamekeyPress = function(name) { | 443 | $scope.firstNamekeyPress = function(name) { |
444 | console.log("lastName==", name); | 444 | console.log("lastName==", name); |
445 | if (name == undefined) { | 445 | if (name == undefined) { |
446 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); | 446 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); |
447 | } else { | 447 | } else { |
448 | $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); | 448 | $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); |
449 | } | 449 | } |
450 | } | 450 | } |
451 | 451 | ||
452 | $scope.emailkeyPress = function(email) { | 452 | $scope.emailkeyPress = function(email) { |
453 | console.log("email", email); | 453 | console.log("email", email); |
454 | if (email == undefined) { | 454 | if (email == undefined) { |
455 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); | 455 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); |
456 | } else { | 456 | } else { |
457 | $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); | 457 | $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); |
458 | } | 458 | } |
459 | } | 459 | } |
460 | 460 | ||
461 | $scope.phonekeyPress = function(number) { | 461 | $scope.phonekeyPress = function(number) { |
462 | console.log("number", number); | 462 | console.log("number", number); |
463 | if (number == undefined || number == '') { | 463 | if (number == undefined || number == '') { |
464 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); | 464 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); |
465 | } else { | 465 | } else { |
466 | $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); | 466 | $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); |
467 | } | 467 | } |
468 | } | 468 | } |
469 | 469 | ||
470 | $scope.citykeyPress = function(city) { | 470 | $scope.citykeyPress = function(city) { |
471 | console.log("city", city); | 471 | console.log("city", city); |
472 | if (city == undefined) { | 472 | if (city == undefined) { |
473 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); | 473 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); |
474 | } else { | 474 | } else { |
475 | $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); | 475 | $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); |
476 | } | 476 | } |
477 | } | 477 | } |
478 | 478 | ||
479 | $scope.startupNamekeyPress = function(q) { | 479 | $scope.startupNamekeyPress = function(q) { |
480 | if (q == undefined) { | 480 | if (q == undefined) { |
481 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); | 481 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); |
482 | } else { | 482 | } else { |
483 | $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); | 483 | $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); |
484 | } | 484 | } |
485 | } | 485 | } |
486 | 486 | ||
487 | $scope.linkedInkeyPress = function(technology) { | 487 | $scope.linkedInkeyPress = function(technology) { |
488 | if (technology == undefined || technology == '') { | 488 | if (technology == undefined || technology == '') { |
489 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); | 489 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); |
490 | } else { | 490 | } else { |
491 | $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); | 491 | $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); |
492 | } | 492 | } |
493 | } | 493 | } |
494 | $scope.companykeyPress = function(problem) { | 494 | $scope.companykeyPress = function(problem) { |
495 | if (problem == undefined) { | 495 | if (problem == undefined) { |
496 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); | 496 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); |
497 | } else { | 497 | } else { |
498 | $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); | 498 | $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); |
499 | } | 499 | } |
500 | } | 500 | } |
501 | $scope.productNamekeyPress = function(solution) { | 501 | $scope.productNamekeyPress = function(solution) { |
502 | if (solution == undefined) { | 502 | if (solution == undefined) { |
503 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); | 503 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); |
504 | } else { | 504 | } else { |
505 | $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); | 505 | $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); |
506 | } | 506 | } |
507 | } | 507 | } |
508 | $scope.businesskeyPress = function(business) { | 508 | $scope.businesskeyPress = function(business) { |
509 | if (business == undefined) { | 509 | if (business == undefined) { |
510 | $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)'); | 510 | $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)'); |
511 | } else { | 511 | } else { |
512 | $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); | 512 | $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); |
513 | } | 513 | } |
514 | } | 514 | } |
515 | 515 | ||
516 | $scope.websitekeyPress = function(prototype) { | 516 | $scope.websitekeyPress = function(prototype) { |
517 | if (prototype == undefined || prototype == '') { | 517 | if (prototype == undefined || prototype == '') { |
518 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); | 518 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); |
519 | } else { | 519 | } else { |
520 | $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); | 520 | $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); |
521 | } | 521 | } |
522 | } | 522 | } |
523 | 523 | ||
524 | $scope.employeekeyPress = function(market) { | 524 | $scope.employeekeyPress = function(market) { |
525 | if (market == undefined || market == '') { | 525 | if (market == undefined || market == '') { |
526 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); | 526 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); |
527 | } else { | 527 | } else { |
528 | $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); | 528 | $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); |
529 | } | 529 | } |
530 | } | 530 | } |
531 | 531 | ||
532 | $scope.annualkeyPress = function(risk) { | 532 | $scope.annualkeyPress = function(risk) { |
533 | if (risk == undefined || risk == '') { | 533 | if (risk == undefined || risk == '') { |
534 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); | 534 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); |
535 | } else { | 535 | } else { |
536 | $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); | 536 | $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); |
537 | } | 537 | } |
538 | } | 538 | } |
539 | 539 | ||
540 | $scope.revenuekeyPress = function(team) { | 540 | $scope.revenuekeyPress = function(team) { |
541 | if (team == undefined) { | 541 | if (team == undefined) { |
542 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); | 542 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); |
543 | } else { | 543 | } else { |
544 | $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); | 544 | $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); |
545 | } | 545 | } |
546 | } | 546 | } |
547 | 547 | ||
548 | $scope.descriptionkeyPress = function(pitch) { | 548 | $scope.descriptionkeyPress = function(pitch) { |
549 | if (pitch == undefined) { | 549 | if (pitch == undefined) { |
550 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); | 550 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); |
551 | } else { | 551 | } else { |
552 | $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); | 552 | $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); |
553 | } | 553 | } |
554 | } | 554 | } |
555 | 555 | ||
556 | $scope.discountkeyPress = function(discount) { | 556 | $scope.discountkeyPress = function(discount) { |
557 | if (discount == undefined) { | 557 | if (discount == undefined) { |
558 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 558 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
559 | } else { | 559 | } else { |
560 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); | 560 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); |
561 | } | 561 | } |
562 | } | 562 | } |
563 | 563 | ||
564 | $scope.removeNooError = function() { | 564 | $scope.removeNooError = function() { |
565 | $('#invalidIdea').css('display', 'block'); | 565 | $('#invalidIdea').css('display', 'block'); |
566 | $('#noExist').css('display', 'none'); | 566 | $('#noExist').css('display', 'none'); |
567 | }; | 567 | }; |
568 | 568 | ||
569 | $scope.ideakeyPress = function(financial) { | 569 | $scope.ideakeyPress = function(financial) { |
570 | console.log("financial", financial); | 570 | console.log("financial", financial); |
571 | if (financial == undefined) { | 571 | if (financial == undefined) { |
572 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); | 572 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); |
573 | } else { | 573 | } else { |
574 | $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); | 574 | $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); |
575 | } | 575 | } |
576 | } | 576 | } |
577 | 577 | ||
578 | $scope.fundkeyPress = function(financial) { | 578 | $scope.fundkeyPress = function(financial) { |
579 | console.log("financial", financial); | 579 | console.log("financial", financial); |
580 | if (financial == undefined) { | 580 | if (financial == undefined) { |
581 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); | 581 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); |
582 | } else { | 582 | } else { |
583 | $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); | 583 | $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); |
584 | } | 584 | } |
585 | } | 585 | } |
586 | 586 | ||
587 | $scope.changeReferalIconColor = function(referalToken){ | 587 | $scope.changeReferalIconColor = function(referalToken){ |
588 | if (referalToken == undefined || referalToken == '') { | 588 | if (referalToken == undefined || referalToken == '') { |
589 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); | 589 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); |
590 | }else { | 590 | }else { |
591 | $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); | 591 | $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); |
592 | } | 592 | } |
593 | } | 593 | } |
594 | 594 | ||
595 | }); | 595 | }); |
596 | 596 | ||
597 | scotchApp.controller('registrationController', function($q, $scope, $http, $location, $rootScope,$route,BASE_URL) { | 597 | scotchApp.controller('registrationController', function($q, $scope, $http, $location, $rootScope,$route,BASE_URL) { |
598 | $scope.data = {}; | 598 | $scope.data = {}; |
599 | $scope.check = false; | 599 | $scope.check = false; |
600 | $scope.numberCheck = false; | 600 | $scope.numberCheck = false; |
601 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 601 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
602 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 602 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
603 | $scope.max = 100; | 603 | $scope.max = 100; |
604 | $scope.formPage = false; | 604 | $scope.formPage = false; |
605 | $scope.current = 0; | 605 | $scope.current = 0; |
606 | $scope.payingAmnt = 0; | 606 | $scope.payingAmnt = 0; |
607 | $scope.discountAmount = 0; | 607 | $scope.discountAmount = 0; |
608 | // $scope.data.quantity = "1"; | 608 | // $scope.data.quantity = "1"; |
609 | $scope.check = false; | 609 | $scope.check = false; |
610 | $scope.numberCheck = false; | 610 | $scope.numberCheck = false; |
611 | $scope.paymentResult = {}; | 611 | $scope.paymentResult = {}; |
612 | var data = { | 612 | var data = { |
613 | "amount": $scope.payingAmnt, | 613 | "amount": $scope.payingAmnt, |
614 | "currency": "INR", | 614 | "currency": "INR", |
615 | "status": "pending" | 615 | "status": "pending" |
616 | } | 616 | } |
617 | 617 | ||
618 | $scope.removeError = function() { | 618 | $scope.removeError = function() { |
619 | $('#invalidEmail').css('display', 'none'); | 619 | $('#invalidEmail').css('display', 'none'); |
620 | $('#alreadyExist').css('display', 'none'); | 620 | $('#alreadyExist').css('display', 'none'); |
621 | }; | 621 | }; |
622 | 622 | ||
623 | $scope.emailcheck = function(val) { | 623 | $scope.emailcheck = function(val) { |
624 | if (val == undefined) { | 624 | if (val == undefined) { |
625 | $('#invalidEmail').css('display', 'block'); | 625 | $('#invalidEmail').css('display', 'block'); |
626 | } else { | 626 | } else { |
627 | $('#alreadyExist').css('display', 'block'); | 627 | $('#alreadyExist').css('display', 'block'); |
628 | } | 628 | } |
629 | }; | 629 | }; |
630 | 630 | ||
631 | $scope.removeNoError = function() { | 631 | $scope.removeNoError = function() { |
632 | $('#invalidNumber').css('display', 'none'); | 632 | $('#invalidNumber').css('display', 'none'); |
633 | $('#alreadyExist').css('display', 'none'); | 633 | $('#alreadyExist').css('display', 'none'); |
634 | }; | 634 | }; |
635 | 635 | ||
636 | $scope.numbercheck = function(val) { | 636 | $scope.numbercheck = function(val) { |
637 | if (val == undefined) { | 637 | if (val == undefined) { |
638 | $('#invalidNumber').css('display', 'block'); | 638 | $('#invalidNumber').css('display', 'block'); |
639 | } else { | 639 | } else { |
640 | $('#alreadyExist').css('display', 'block'); | 640 | $('#alreadyExist').css('display', 'block'); |
641 | } | 641 | } |
642 | }; | 642 | }; |
643 | 643 | ||
644 | // $scope.$on('city', function (event, value) { | 644 | // $scope.$on('city', function (event, value) { |
645 | $scope.data.city = localStorage.getItem("city"); | 645 | $scope.data.city = localStorage.getItem("city"); |
646 | // console.log("HERE===",$scope.data.city ); | 646 | // console.log("HERE===",$scope.data.city ); |
647 | // }); | 647 | // }); |
648 | var handleFileSelect = function(evt) { | 648 | var handleFileSelect = function(evt) { |
649 | var files = evt.target.files; | 649 | var files = evt.target.files; |
650 | var file = files[0]; | 650 | var file = files[0]; |
651 | 651 | ||
652 | if (files && file) { | 652 | if (files && file) { |
653 | var reader = new FileReader(); | 653 | var reader = new FileReader(); |
654 | 654 | ||
655 | reader.onload = function(readerEvt) { | 655 | reader.onload = function(readerEvt) { |
656 | var binaryString = readerEvt.target.result; | 656 | var binaryString = readerEvt.target.result; |
657 | $scope.base64textString = btoa(binaryString); | 657 | $scope.base64textString = btoa(binaryString); |
658 | console.log("base64textarea",$scope.base64textString) | 658 | //console.log("base64textarea",$scope.base64textString) |
659 | $scope.data.uploadFile = file.name; | 659 | $scope.data.uploadFile = file.name; |
660 | }; | 660 | }; |
661 | 661 | ||
662 | reader.readAsBinaryString(file); | 662 | reader.readAsBinaryString(file); |
663 | } | 663 | } |
664 | }; | 664 | }; |
665 | if (window.File && window.FileReader && window.FileList && window.Blob) { | 665 | if (window.File && window.FileReader && window.FileList && window.Blob) { |
666 | document.getElementById('filePicker').addEventListener('change', handleFileSelect, false); | 666 | document.getElementById('filePicker').addEventListener('change', handleFileSelect, false); |
667 | } | 667 | } |
668 | 668 | ||
669 | $scope.ngShowhide = false; | 669 | $scope.ngShowhide = false; |
670 | $scope.GetValue = function(){ | 670 | $scope.GetValue = function(){ |
671 | console.log("====$scope.value===",$scope.data.sector) | 671 | console.log("====$scope.value===",$scope.data.sector) |
672 | if($scope.data.sector == "Other"){ | 672 | if($scope.data.sector == "Other"){ |
673 | $scope.ngShowhide = true; | 673 | $scope.ngShowhide = true; |
674 | }else{ | 674 | }else{ |
675 | $scope.ngShowhide = false; | 675 | $scope.ngShowhide = false; |
676 | } | 676 | } |
677 | } | 677 | } |
678 | 678 | ||
679 | // $rootScope.tokenCall = function(val) { | 679 | // $rootScope.tokenCall = function(val) { |
680 | // console.log('val-------->', val); | 680 | // console.log('val-------->', val); |
681 | // if (val == undefined) { | 681 | // if (val == undefined) { |
682 | // $('#invalidToken').css('display', 'block'); | 682 | // $('#invalidToken').css('display', 'block'); |
683 | // } else { | 683 | // } else { |
684 | // val = val.toUpperCase(); | 684 | // val = val.toUpperCase(); |
685 | // if((val == "IITH99" && $scope.data.city != "Hyderabad") || (val == "IITM99" && $scope.data.city != "Chennai") || (val == "IITD99" && $scope.data.city != "Delhi") || (val == "IITB99" && $scope.data.city != "Mumbai") || (val == "IITK99" && $scope.data.city != "Kanpur") || (val == "IIMC99" && $scope.data.city != "Kolkata") || (val == "IIMA99" && $scope.data.city != "Ahmedabad") || (val == "JAI40" && $scope.data.city != "Jaipur")){ | 685 | // if((val == "IITH99" && $scope.data.city != "Hyderabad") || (val == "IITM99" && $scope.data.city != "Chennai") || (val == "IITD99" && $scope.data.city != "Delhi") || (val == "IITB99" && $scope.data.city != "Mumbai") || (val == "IITK99" && $scope.data.city != "Kanpur") || (val == "IIMC99" && $scope.data.city != "Kolkata") || (val == "IIMA99" && $scope.data.city != "Ahmedabad") || (val == "JAI40" && $scope.data.city != "Jaipur")){ |
686 | // $scope.tokencheck = false; | 686 | // $scope.tokencheck = false; |
687 | // return; | 687 | // return; |
688 | // } | 688 | // } |
689 | // $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}') | 689 | // $http.get(BASE_URL + '/ambassadors?filter={"where": {"referalToken": "' + val + '"}}') |
690 | // .then(function(searchResult) { | 690 | // .then(function(searchResult) { |
691 | // console.log("searchResult",searchResult) | 691 | // console.log("searchResult",searchResult) |
692 | // if (searchResult.data.length == 0) { | 692 | // if (searchResult.data.length == 0) { |
693 | // $scope.tokencheck = false; | 693 | // $scope.tokencheck = false; |
694 | // $scope.discountAmount = 0; | 694 | // $scope.discountAmount = 0; |
695 | // } else { | 695 | // } else { |
696 | // console.log("===searchResult.data[0].discount===",searchResult.data[0].discount); | 696 | // console.log("===searchResult.data[0].discount===",searchResult.data[0].discount); |
697 | // $scope.discountpercentage = searchResult.data[0].discount; | 697 | // $scope.discountpercentage = searchResult.data[0].discount; |
698 | // console.log("===searchResultdiscountpercentage===",$scope.discountpercentage); | 698 | // console.log("===searchResultdiscountpercentage===",$scope.discountpercentage); |
699 | // $scope.tokencheck = true; | 699 | // $scope.tokencheck = true; |
700 | // } | 700 | // } |
701 | // },function(err){ | 701 | // },function(err){ |
702 | // console.log(err) | 702 | // console.log(err) |
703 | // }); | 703 | // }); |
704 | 704 | ||
705 | // } | 705 | // } |
706 | // }; | 706 | // }; |
707 | $scope.click = function(){ | 707 | $scope.click = function(){ |
708 | $http({ | 708 | $http({ |
709 | method: 'GET', | 709 | method: 'GET', |
710 | url: "https://securegw.paytm.in/theia/processTransaction", | 710 | url: "https://securegw.paytm.in/theia/processTransaction", |
711 | headers: {} | 711 | headers: {} |
712 | }).then(function mySuccess(result) { | 712 | }).then(function mySuccess(result) { |
713 | console.log("rslt",result) | 713 | console.log("rslt",result) |
714 | }); | 714 | }); |
715 | } | 715 | } |
716 | 716 | ||
717 | $scope.submit = function() { | 717 | $scope.submit = function() { |
718 | 718 | ||
719 | $scope.ticketAmnt = 500; | 719 | $scope.fileSelect = false; |
720 | if($scope.data.uploadFile == null){ | ||
721 | $scope.fileSelect = true; | ||
722 | }else{ | ||
723 | $scope.fileSelect = false; | ||
724 | $scope.ticketAmnt = 500; | ||
720 | // if($scope.tokencheck == false){ | 725 | // if($scope.tokencheck == false){ |
721 | // $scope.data.referalToken = null; | 726 | // $scope.data.referalToken = null; |
722 | // } | 727 | // } |
723 | // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { | 728 | // if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { |
724 | // var x = document.getElementById("snackbar") | 729 | // var x = document.getElementById("snackbar") |
725 | // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); | 730 | // setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); |
726 | // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { | 731 | // }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { |
727 | $scope.infoForm = true; | 732 | $scope.infoForm = true; |
728 | $scope.detail = {}; | 733 | $scope.detail = {}; |
729 | $scope.data.phone = "+91"+$scope.data.number; | 734 | $scope.data.phone = "+91"+$scope.data.number; |
730 | // if($scope.data.referalToken == null){ | 735 | // if($scope.data.referalToken == null){ |
731 | // $scope.data.referalToken = "N.A." | 736 | // $scope.data.referalToken = "N.A." |
732 | // } | 737 | // } |
733 | // var file =document.getElementById('filePicker').files[0]; | 738 | // var file =document.getElementById('filePicker').files[0]; |
734 | // console.log("file",filePicker) | 739 | // console.log("file",filePicker) |
735 | // var image = BASE_URL+'/containers/applicants/download/' | 740 | // var image = BASE_URL+'/containers/applicants/download/' |
736 | // var imagePath = file.name; | 741 | // var imagePath = file.name; |
737 | // $scope.data.uploadFile = image + imagePath; | 742 | // $scope.data.uploadFile = image + imagePath; |
738 | // console.log($scope.data.uploadFile) | 743 | // console.log($scope.data.uploadFile) |
739 | // var fd = new FormData() | 744 | // var fd = new FormData() |
740 | // fd.append('filePicker',$scope.data); | 745 | // fd.append('filePicker',$scope.data); |
741 | // var deferred = $q.defer(); | 746 | // var deferred = $q.defer(); |
742 | // $http({ | 747 | // $http({ |
743 | // method:'POST', | 748 | // method:'POST', |
744 | // url: BASE_URL+'/containers/applicants/upload', | 749 | // url: BASE_URL+'/containers/applicants/upload', |
745 | // data:fd, | 750 | // data:fd, |
746 | // transformRequest:angular.identity, | 751 | // transformRequest:angular.identity, |
747 | // headers:{'Content-Type':undefined} | 752 | // headers:{'Content-Type':undefined} |
748 | // }) | 753 | // }) |
749 | // .success(function(result){ | 754 | // .success(function(result){ |
750 | // deferred.resolve(result); | 755 | // deferred.resolve(result); |
751 | $http({ | 756 | $http({ |
752 | method: 'POST', | 757 | method: 'POST', |
753 | url: BASE_URL+'/applicants', | 758 | url: BASE_URL+'/applicants', |
754 | data: $scope.data, | 759 | data: $scope.data, |
755 | headers: {} | 760 | headers: {} |
756 | }).then(function mySuccess(result) { | 761 | }).then(function mySuccess(result) { |
757 | console.log("=====result=====",result) | 762 | console.log("=====result=====",result) |
758 | $scope.detail = result; | 763 | $scope.detail = result; |
759 | data.applicantId = result.data.id; | 764 | data.applicantId = result.data.id; |
760 | $scope.userId = result.data.id; | 765 | $scope.userId = result.data.id; |
761 | console.log("=====data=====",data) | 766 | console.log("=====data=====",data) |
762 | var amount = $scope.ticketAmnt * 100 | 767 | var amount = $scope.ticketAmnt * 100 |
763 | if($scope.tokencheck == true){ | 768 | if($scope.tokencheck == true){ |
764 | var amount = $scope.ticketAmnt | 769 | var amount = $scope.ticketAmnt |
765 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); | 770 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); |
766 | console.log("resultcity===",$scope.data.city) | 771 | console.log("resultcity===",$scope.data.city) |
767 | if($scope.discountpercentage == "100") { | 772 | if($scope.discountpercentage == "100") { |
768 | $scope.discountpercentage = "99.8"; | 773 | $scope.discountpercentage = "99.8"; |
769 | console.log("$scope.discountpercentage====",$scope.discountpercentage) | 774 | console.log("$scope.discountpercentage====",$scope.discountpercentage) |
770 | } | 775 | } |
771 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); | 776 | console.log("====$scope.discountpercentage====",$scope.discountpercentage); |
772 | $scope.percDiscount = $scope.discountpercentage/100; | 777 | $scope.percDiscount = $scope.discountpercentage/100; |
773 | console.log("====$scope.percDiscount====",$scope.percDiscount); | 778 | console.log("====$scope.percDiscount====",$scope.percDiscount); |
774 | console.log("====amount=====",amount); | 779 | console.log("====amount=====",amount); |
775 | $scope.discountAmount = amount * $scope.percDiscount; | 780 | $scope.discountAmount = amount * $scope.percDiscount; |
776 | console.log("finalAmount====>",$scope.discountAmount) | 781 | console.log("finalAmount====>",$scope.discountAmount) |
777 | } | 782 | } |
778 | var taxAmount = $scope.ticketAmnt - $scope.discountAmount | 783 | var taxAmount = $scope.ticketAmnt - $scope.discountAmount |
779 | console.log("$scope.taxTotal----",taxAmount) | 784 | console.log("$scope.taxTotal----",taxAmount) |
780 | $scope.payingAmnt = taxAmount; | 785 | $scope.payingAmnt = taxAmount; |
781 | console.log("====$scope.payingAmnt====",$scope.payingAmnt) | 786 | console.log("====$scope.payingAmnt====",$scope.payingAmnt) |
782 | $scope.payingAmnt = $scope.payingAmnt.toFixed() | 787 | $scope.payingAmnt = $scope.payingAmnt.toFixed() |
783 | data.amount = $scope.payingAmnt; | 788 | data.amount = $scope.payingAmnt; |
784 | console.log("data.amount==",data.amount) | 789 | console.log("data.amount==",data.amount) |
785 | if($scope.detail != null){ | 790 | if($scope.detail != null){ |
786 | $http({ | 791 | $http({ |
787 | method: 'POST', | 792 | method: 'POST', |
788 | url: BASE_URL+'/payments', | 793 | url: BASE_URL+'/payments', |
789 | data: data, | 794 | data: data, |
790 | headers: {} | 795 | headers: {} |
791 | }).then(function mySuccess(paymentResult) { | 796 | }).then(function mySuccess(paymentResult) { |
792 | $scope.paymentResult = paymentResult; | 797 | $scope.paymentResult = paymentResult; |
793 | }, function myError(error) { | 798 | }, function myError(error) { |
794 | }); | 799 | }); |
795 | } | 800 | } |
796 | var i = 0; | 801 | var i = 0; |
797 | $scope.payingAmnt = $scope.payingAmnt * 100; | 802 | $scope.payingAmnt = $scope.payingAmnt * 100; |
798 | var options = { | 803 | var options = { |
799 | //"key": "rzp_test_YwHsVFiDIQ2WUQ", | 804 | //"key": "rzp_test_YwHsVFiDIQ2WUQ", |
800 | "key": "rzp_live_mkmCb4FkstuWaS", | 805 | "key": "rzp_live_mkmCb4FkstuWaS", |
801 | "amount": $scope.payingAmnt, | 806 | "amount": $scope.payingAmnt, |
802 | 807 | ||
803 | "name": "Startup Jalsa", | 808 | "name": "Startup Jalsa", |
804 | "description":"amount", | 809 | "description":"amount", |
805 | "currency": "INR", | 810 | "currency": "INR", |
806 | "status": "done", | 811 | "status": "done", |
807 | 812 | ||
808 | "prefill": { | 813 | "prefill": { |
809 | "email": $scope.detail.email, | 814 | "email": $scope.detail.email, |
810 | "contact": $scope.detail.phone | 815 | "contact": $scope.detail.phone |
811 | }, | 816 | }, |
812 | 817 | ||
813 | "theme": { | 818 | "theme": { |
814 | "color": "#2196f3 ", | 819 | "color": "#2196f3 ", |
815 | "image_padding":"NO" | 820 | "image_padding":"NO" |
816 | }, | 821 | }, |
817 | "modal": { | 822 | "modal": { |
818 | "ondismiss": function(){ | 823 | "ondismiss": function(){ |
819 | } | 824 | } |
820 | }, | 825 | }, |
821 | "handler": function (response){ | 826 | "handler": function (response){ |
822 | createPayment(response); | 827 | createPayment(response); |
823 | } | 828 | } |
824 | }; | 829 | }; |
825 | var rzp1 = new Razorpay(options); | 830 | var rzp1 = new Razorpay(options); |
826 | rzp1.open(); | 831 | rzp1.open(); |
827 | $scope.paymentResponse = {}; | 832 | $scope.paymentResponse = {}; |
828 | function createPayment(response){ | 833 | function createPayment(response){ |
829 | console.log("response12333333",response) | 834 | console.log("response12333333",response) |
830 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 835 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
831 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; | 836 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; |
832 | $scope.paymentResponse.amount = data.amount; | 837 | $scope.paymentResponse.amount = data.amount; |
833 | $scope.paymentResponse.currency = "INR"; | 838 | $scope.paymentResponse.currency = "INR"; |
834 | $scope.paymentResponse.status = $scope.paymentResult.data.status; | 839 | $scope.paymentResponse.status = $scope.paymentResult.data.status; |
835 | console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) | 840 | console.log("$scope.paymentResponse.amount=====",$scope.paymentResponse.amount) |
836 | $http({ | 841 | $http({ |
837 | method: 'PUT', | 842 | method: 'PUT', |
838 | url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, | 843 | url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, |
839 | data: $scope.paymentResponse, | 844 | data: $scope.paymentResponse, |
840 | headers: {} | 845 | headers: {} |
841 | }).then(function mySuccess(searchResult) { | 846 | }).then(function mySuccess(searchResult) { |
842 | console.log("searchResult",searchResult) | 847 | console.log("searchResult",searchResult) |
843 | $location.path("/confirmation") | 848 | $location.path("/confirmation") |
844 | }, function myError(error) { | 849 | }, function myError(error) { |
845 | }); | 850 | }); |
846 | } | 851 | } |
847 | //} | 852 | //} |
848 | 853 | ||
849 | }, function myError(error) { | 854 | }, function myError(error) { |
850 | 855 | ||
851 | }); | 856 | }); |
857 | |||
858 | } | ||
852 | 859 | ||
853 | // }) | 860 | // }) |
854 | 861 | ||
855 | //} | 862 | //} |
856 | 863 | ||
857 | } | 864 | } |
858 | 865 | ||
859 | }); | 866 | }); |
860 | 867 | ||
861 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { | 868 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { |
862 | $scope.data = {}; | 869 | $scope.data = {}; |
863 | $scope.check = false; | 870 | $scope.check = false; |
864 | $scope.numberCheck = false; | 871 | $scope.numberCheck = false; |
865 | 872 | ||
866 | $scope.submit = function() { | 873 | $scope.submit = function() { |
867 | console.log($scope.data.name) | 874 | console.log($scope.data.name) |
868 | var randomNumber = ""+Math.random(); | 875 | var randomNumber = ""+Math.random(); |
869 | var nameSpliced = $scope.data.name.slice(0,5); | 876 | var nameSpliced = $scope.data.name.slice(0,5); |
870 | var numberSpliced = randomNumber.slice(2,4);; | 877 | var numberSpliced = randomNumber.slice(2,4);; |
871 | $scope.data.referalToken = nameSpliced+numberSpliced; | 878 | $scope.data.referalToken = nameSpliced+numberSpliced; |
872 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); | 879 | $scope.data.referalToken = $scope.data.referalToken.toUpperCase(); |
873 | console.log("dsdfs",numberSpliced); | 880 | console.log("dsdfs",numberSpliced); |
874 | $http({ | 881 | $http({ |
875 | method: 'POST', | 882 | method: 'POST', |
876 | url: BASE_URL + '/ambassadors', | 883 | url: BASE_URL + '/ambassadors', |
877 | data: $scope.data, | 884 | data: $scope.data, |
878 | headers: {} | 885 | headers: {} |
879 | }).then(function mySuccess(result) { | 886 | }).then(function mySuccess(result) { |
880 | console.log("result", result) | 887 | console.log("result", result) |
881 | $scope.detail = result; | 888 | $scope.detail = result; |
882 | $('#myModal').modal('show'); | 889 | $('#myModal').modal('show'); |
883 | $scope.data.name = ''; | 890 | $scope.data.name = ''; |
884 | $scope.data.email = ''; | 891 | $scope.data.email = ''; |
885 | $scope.data.mobile = ''; | 892 | $scope.data.mobile = ''; |
886 | //$scope.data.discount = ''; | 893 | //$scope.data.discount = ''; |
887 | 894 | ||
888 | }, function myError(error) { | 895 | }, function myError(error) { |
889 | console.log(error) | 896 | console.log(error) |
890 | console.log(error.data.error.message) | 897 | console.log(error.data.error.message) |
891 | }); | 898 | }); |
892 | } | 899 | } |
893 | }); | 900 | }); |
894 | 901 | ||
895 | 902 | ||
896 | 903 | ||
897 | 904 | ||
898 | 905 |