Commit 58efec61e20ef8c62d500e8fbeb6c6b7b3657c63
1 parent
1f35c170c3
Exists in
master
and in
1 other branch
color change
Showing
2 changed files
with
9 additions
and
3 deletions
Show diff stats
pages/ambassador.html
1 | <div class="header"> | 1 | <div class="header"> |
2 | <div> | 2 | <div> |
3 | <h1 class="startup-jalsa">STARTUP JALSA 2018</h1> | 3 | <h1 class="startup-jalsa">STARTUP JALSA 2018</h1> |
4 | </div> | 4 | </div> |
5 | <div class="clearfix"></div> | 5 | <div class="clearfix"></div> |
6 | </div> | 6 | </div> |
7 | <!-- CLOSE HEADER --> | 7 | <!-- CLOSE HEADER --> |
8 | <form name="applicantForm"> | 8 | <form name="applicantForm"> |
9 | <div class="col-xs-12 col-md-8 col-md-offset-2"> | 9 | <div class="col-xs-12 col-md-8 col-md-offset-2"> |
10 | <div class="form-all"> | 10 | <div class="form-all"> |
11 | <!-- <table style="width: 100%;"> | 11 | <!-- <table style="width: 100%;"> |
12 | <tr> | 12 | <tr> |
13 | <td> | 13 | <td> |
14 | <div class="step-one-form" > --> | 14 | <div class="step-one-form" > --> |
15 | <!-- form step 1 --> | 15 | <!-- form step 1 --> |
16 | <div class="col-xs-12 col-md-6 input-wrapper" > | 16 | <div class="col-xs-12 col-md-6 input-wrapper" > |
17 | <div id="snackbar">Error ! Please fill in all fields.</div> | 17 | <div id="snackbar">Error ! Please fill in all fields.</div> |
18 | <div class="icon-circle-c"> | 18 | <div class="icon-circle-c"> |
19 | <i class="material-icons" style="line-height: 31px;">person</i> | 19 | <i class="material-icons" style="line-height: 31px;">person</i> |
20 | </div> | 20 | </div> |
21 | <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)"> | 21 | <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)"> |
22 | </div> | 22 | </div> |
23 | <div class="col-xs-12 col-md-6 input-wrapper" > | 23 | <div class="col-xs-12 col-md-6 input-wrapper" > |
24 | <div id="snackbar">Error ! Please fill in all fields.</div> | 24 | <div id="snackbar">Error ! Please fill in all fields.</div> |
25 | <div class="icon-circle-d"> | 25 | <div class="icon-circle-d"> |
26 | <i class="material-icons" style="line-height: 30px;">email</i> | 26 | <i class="material-icons" style="line-height: 30px;">email</i> |
27 | </div> | 27 | </div> |
28 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)"> | 28 | <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address *" ng-change="enteremail(data.email); emailkeyPress(data.email)"> |
29 | <!-- <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> | 29 | <!-- <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label> |
30 | <label ng-if="check">Email already exist.</label> --> | 30 | <label ng-if="check">Email already exist.</label> --> |
31 | </div> | 31 | </div> |
32 | <div class="col-xs-12 col-md-6 input-wrapper" > | 32 | <div class="col-xs-12 col-md-6 input-wrapper" > |
33 | <div class="icon-circle-e"> | 33 | <div class="icon-circle-e"> |
34 | <i class="material-icons" style="line-height: 30px;">phone</i> | 34 | <i class="material-icons" style="line-height: 30px;">phone</i> |
35 | </div> | 35 | </div> |
36 | <input type="text" ng-pattern="/^\d*(?:\.\d{1,2})?$/" title="Please enter only numberic numbers" maxlength="10" required class="text-input" ng-model="data.number" placeholder="Mobile No.*" ng-change="enternumber(data.number); phonekeyPress(data.number)"> | 36 | <input type="text" ng-pattern="/^\d*(?:\.\d{1,2})?$/" title="Please enter only numberic numbers" maxlength="10" required class="text-input" ng-model="data.number" placeholder="Mobile No.*" ng-change="enternumber(data.number); phonekeyPress(data.number)"> |
37 | <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value in mobile number field.</label> --> | 37 | <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value in mobile number field.</label> --> |
38 | <label ng-if="numberCheck">Contact Number already exist.</label> | 38 | <label ng-if="numberCheck">Contact Number already exist.</label> |
39 | </div> | 39 | </div> |
40 | <div class="col-xs-12 col-md-6 input-wrapper"> | 40 | <div class="col-xs-12 col-md-6 input-wrapper"> |
41 | <div class="icon-circle-f"> | 41 | <div class="icon-circle-f"> |
42 | <i class="material-icons" style="line-height: 30px;">location_city</i> | 42 | <i class="material-icons" style="line-height: 30px;">location_city</i> |
43 | </div> | 43 | </div> |
44 | <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> | 44 | <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> |
45 | <option name="city" selected disabled value="">{{data.city}}</option> | 45 | <option name="city" selected disabled value="">{{data.city}}</option> |
46 | <option value="Ahmedabad">Ahmedabad</option> | 46 | <option value="Ahmedabad">Ahmedabad</option> |
47 | <option value="Bangalore">Bangalore</option> | 47 | <option value="Bangalore">Bangalore</option> |
48 | <option value="Chennai">Chennai</option> | 48 | <option value="Chennai">Chennai</option> |
49 | <option value="Delhi">Delhi</option> | 49 | <option value="Delhi">Delhi</option> |
50 | <option value="Hyderabad">Hyderabad</option> | 50 | <option value="Hyderabad">Hyderabad</option> |
51 | <option value="Jaipur">Jaipur</option> | 51 | <option value="Jaipur">Jaipur</option> |
52 | <option value="Kanpur">Kanpur</option> | 52 | <option value="Kanpur">Kanpur</option> |
53 | <option value="Kolkata">Kolkata</option> | 53 | <option value="Kolkata">Kolkata</option> |
54 | <option value="Mumbai">Mumbai</option> | 54 | <option value="Mumbai">Mumbai</option> |
55 | </select> | 55 | </select> |
56 | </div> | 56 | </div> |
57 | <div class="col-xs-12 col-md-6 input-wrapper"> | 57 | <div class="col-xs-12 col-md-6 input-wrapper"> |
58 | <div class="icon-circle-i"> | 58 | <div class="icon-circle-i"> |
59 | <i class="material-icons" style="line-height: 30px;">perm_identity</i> | 59 | <i class="material-icons" style="line-height: 30px;">perm_identity</i> |
60 | </div> | 60 | </div> |
61 | <input type="text" class="text-input" ng-model="data.companyName" placeholder="Company Name *" ng-change="enternumber(data.companyName); companykeyPress(data.companyName)" required> | 61 | <input type="text" class="text-input" ng-model="data.companyName" placeholder="Company Name *" ng-change="enternumber(data.companyName); companykeyPress(data.companyName)" required> |
62 | </div> | 62 | </div> |
63 | <div class="col-xs-12 col-md-6 input-wrapper"> | 63 | <div class="col-xs-12 col-md-6 input-wrapper"> |
64 | <div class="icon-circle-z"> | 64 | <div class="icon-circle-n"> |
65 | <i class="material-icons" style="line-height: 30px;">web</i> | 65 | <i class="material-icons" style="line-height: 30px;">web</i> |
66 | </div> | 66 | </div> |
67 | <input name="website" class="text-input" ng-model="data.website" placeholder="Website link" ng-change="abc(); descriptionkeyPress(data.website)"></input> | 67 | <input name="website" class="text-input" ng-model="data.website" placeholder="Website link" ng-change="enterwebsite(data.website); revenuekeyPress(data.website)"></input> |
68 | </div> | 68 | </div> |
69 | <div class="col-xs-12 col-md-6 input-wrapper"> | 69 | <div class="col-xs-12 col-md-6 input-wrapper"> |
70 | <div class="icon-circle-y"> | 70 | <div class="icon-circle-y"> |
71 | <i class="material-icons" style="line-height: 30px;">assignment</i> | 71 | <i class="material-icons" style="line-height: 30px;">assignment</i> |
72 | </div> | 72 | </div> |
73 | <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> | 73 | <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> |
74 | <option name="stage" selected disabled value="">Choose Startup Stage *</option> | 74 | <option name="stage" selected disabled value="">Choose Startup Stage *</option> |
75 | <option value="Proof of Concept">Proof of Concept</option> | 75 | <option value="Proof of Concept">Proof of Concept</option> |
76 | <option value="Beta Launched">Beta Launched</option> | 76 | <option value="Beta Launched">Beta Launched</option> |
77 | <option value="Early Revenues">Early Revenues</option> | 77 | <option value="Early Revenues">Early Revenues</option> |
78 | <option value="Steady Revenues">Steady Revenues</option> | 78 | <option value="Steady Revenues">Steady Revenues</option> |
79 | <option value="Other">Other</option> | 79 | <option value="Other">Other</option> |
80 | </select> | 80 | </select> |
81 | </div> | 81 | </div> |
82 | <div class="col-xs-12 col-md-6 input-wrapper"> | 82 | <div class="col-xs-12 col-md-6 input-wrapper"> |
83 | <div class="icon-circle-q"> | 83 | <div class="icon-circle-q"> |
84 | <i class="material-icons" style="line-height: 30px;">business</i> | 84 | <i class="material-icons" style="line-height: 30px;">business</i> |
85 | </div> | 85 | </div> |
86 | <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> | 86 | <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> |
87 | <option name="business" selected disabled value="">Type of business *</option> | 87 | <option name="business" selected disabled value="">Type of business *</option> |
88 | <option value="B2B">B2B</option> | 88 | <option value="B2B">B2B</option> |
89 | <option value="B2C">B2C</option> | 89 | <option value="B2C">B2C</option> |
90 | </select> | 90 | </select> |
91 | </div> | 91 | </div> |
92 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 92 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
93 | <strong>How many founders/teammates will be attending the meetup? *</strong> | 93 | <strong>How many founders/teammates will be attending the meetup? *</strong> |
94 | <p class="line-space" ></p> | 94 | <p class="line-space" ></p> |
95 | </div> | 95 | </div> |
96 | <div class="col-xs-12 col-md-12 input-wrapper" > | 96 | <div class="col-xs-12 col-md-12 input-wrapper" > |
97 | <div class="icon-circle-o"> | 97 | <div class="icon-circle-o"> |
98 | <i class="material-icons" style="line-height: 30px;">confirmation_number</i> | 98 | <i class="material-icons" style="line-height: 30px;">confirmation_number</i> |
99 | </div> | 99 | </div> |
100 | <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> | 100 | <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> |
101 | <option name="founder" selected disabled value="">Choose</option> | 101 | <option name="founder" selected disabled value="">Choose</option> |
102 | <option value="1">1</option> | 102 | <option value="1">1</option> |
103 | <option value="2">2</option> | 103 | <option value="2">2</option> |
104 | <option value="3">3</option> | 104 | <option value="3">3</option> |
105 | <option value="more than 3">more than 3</option> | 105 | <option value="more than 3">more than 3</option> |
106 | </select> | 106 | </select> |
107 | </div> | 107 | </div> |
108 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 108 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
109 | <strong>In which city is your startup registered at?</strong> | 109 | <strong>In which city is your startup registered at?</strong> |
110 | <p class="line-space" ></p> | 110 | <p class="line-space" ></p> |
111 | </div> | 111 | </div> |
112 | <div class="col-xs-12 col-md-12 input-wrapper"> | 112 | <div class="col-xs-12 col-md-12 input-wrapper"> |
113 | <div class="icon-circle-m"> | 113 | <div class="icon-circle-m"> |
114 | <i class="material-icons" style="line-height: 30px;">assessment</i> | 114 | <i class="material-icons" style="line-height: 30px;">assessment</i> |
115 | </div> | 115 | </div> |
116 | <input type="text" class="text-input" ng-model="data.cityRegister" placeholder="Your Answer.." ng-change="entertechnology(data.cityRegister); annualkeyPress(data.cityRegister)"> | 116 | <input type="text" class="text-input" ng-model="data.cityRegister" placeholder="Your Answer.." ng-change="entertechnology(data.cityRegister); annualkeyPress(data.cityRegister)"> |
117 | </div> | 117 | </div> |
118 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 118 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
119 | <strong>Give us a brief introduction about your startup. *</strong> | 119 | <strong>Give us a brief introduction about your startup. *</strong> |
120 | <p class="line-space" >Kindly write a powerful Twitter Pitch.</p> | 120 | <p class="line-space" >Kindly write a powerful Twitter Pitch.</p> |
121 | </div> | 121 | </div> |
122 | <div class="col-xs-12 col-md-12 input-wrapper"> | 122 | <div class="col-xs-12 col-md-12 input-wrapper"> |
123 | <div class="icon-circle-x"> | 123 | <div class="icon-circle-x"> |
124 | <i class="material-icons" style="line-height: 30px;">line_weight</i> | 124 | <i class="material-icons" style="line-height: 30px;">line_weight</i> |
125 | </div> | 125 | </div> |
126 | <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> | 126 | <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> |
127 | </div> | 127 | </div> |
128 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 128 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
129 | <strong>Who are your customers? *</strong> | 129 | <strong>Who are your customers? *</strong> |
130 | <p class="line-space" >We are looking for a simple and clear answer of who you are selling to.</p> | 130 | <p class="line-space" >We are looking for a simple and clear answer of who you are selling to.</p> |
131 | </div> | 131 | </div> |
132 | <div class="col-xs-12 col-md-12 input-wrapper"> | 132 | <div class="col-xs-12 col-md-12 input-wrapper"> |
133 | <div class="icon-circle-k"> | 133 | <div class="icon-circle-k"> |
134 | <i class="material-icons" style="line-height: 30px;">help</i> | 134 | <i class="material-icons" style="line-height: 30px;">help</i> |
135 | </div> | 135 | </div> |
136 | <textarea name="customer" class="text-input textarea" ng-model="data.customer" placeholder="Your Answer.." ng-change="entersolution(data.customer); websitekeyPress(data.customer)" required></textarea> | 136 | <textarea name="customer" class="text-input textarea" ng-model="data.customer" placeholder="Your Answer.." ng-change="entersolution(data.customer); websitekeyPress(data.customer)" required></textarea> |
137 | </div> | 137 | </div> |
138 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 138 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
139 | <strong>What problem you are solving for them? *</strong> | 139 | <strong>What problem you are solving for them? *</strong> |
140 | <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> | 140 | <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> |
141 | </div> | 141 | </div> |
142 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 142 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
143 | <div class="icon-circle-p"> | 143 | <div class="icon-circle-p"> |
144 | <i class="material-icons" style="line-height: 30px;">business_center</i> | 144 | <i class="material-icons" style="line-height: 30px;">business_center</i> |
145 | </div> | 145 | </div> |
146 | <textarea name="problem" class="text-input textarea" ng-model="data.problem" placeholder="Your Answer.." ng-change="enterbusiness(data.problem); businesskeyPress(data.problem)" required> | 146 | <textarea name="problem" class="text-input textarea" ng-model="data.problem" placeholder="Your Answer.." ng-change="enterbusiness(data.problem); businesskeyPress(data.problem)" required> |
147 | </textarea> | 147 | </textarea> |
148 | </div> | 148 | </div> |
149 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 149 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
150 | <strong>Link your pitch deck presentation. *</strong> | 150 | <strong>Link your pitch deck presentation. *</strong> |
151 | <p class="line-space" >Kindly upload your pitch deck to Google Presentation and make the link sharing settings open to all.</p> | 151 | <p class="line-space" >Kindly upload your pitch deck to Google Presentation and make the link sharing settings open to all.</p> |
152 | </div> | 152 | </div> |
153 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> | 153 | <div class="col-xs-12 col-md-12 input-wrapper f-family"> |
154 | <div class="icon-circle-h"> | 154 | <div class="icon-circle-h"> |
155 | <i class="material-icons" style="line-height: 30px;">web</i> | 155 | <i class="material-icons" style="line-height: 30px;">web</i> |
156 | </div> | 156 | </div> |
157 | <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> | 157 | <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> |
158 | <!-- <label class="error-message f-family" id="invalidEmail">Please enter a valid link.</label> --> | 158 | <!-- <label class="error-message f-family" id="invalidEmail">Please enter a valid link.</label> --> |
159 | </div> | 159 | </div> |
160 | <div class="col-xs-12 col-md-12 f-family line-adjust"> | 160 | <div class="col-xs-12 col-md-12 f-family line-adjust"> |
161 | <strong>Coupon Code.</strong> | 161 | <strong>Coupon Code.</strong> |
162 | <p class="line-space" >It's applicable.</p> | 162 | <p class="line-space" >It's applicable.</p> |
163 | </div> | 163 | </div> |
164 | <div class="col-xs-12 input-wrapper"> | 164 | <div class="col-xs-12 input-wrapper"> |
165 | <div class="referel-icon" style="z-index: 999;"> | 165 | <div class="referel-icon" style="z-index: 999;"> |
166 | <i class="material-icons" style="line-height: 30px;">code</i> | 166 | <i class="material-icons" style="line-height: 30px;">code</i> |
167 | </div> | 167 | </div> |
168 | <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> | 168 | <input class="text-input" ng-model="data.referalToken" placeholder="Enter Coupon code" style="position: relative;" ng-required="referalToken" ng-change="changeReferalIconColor(data.referalToken)"> |
169 | <!-- <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> | 169 | <!-- <i class="material-icons coupen-approved" ng-if="tokencheck == true">check</i> |
170 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> | 170 | <i class="material-icons coupen-approved" style="color:red;" ng-if="tokencheck == false">close</i> |
171 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> --> | 171 | <button type="button" ng-click="tokenCall(data.referalToken)" class="pull-right apply-coupen-btn">Apply</button> --> |
172 | </div> | 172 | </div> |
173 | <div class="clearfix"></div> | 173 | <div class="clearfix"></div> |
174 | <!-- </div> --> | 174 | <!-- </div> --> |
175 | <!-- close step-one-form --> | 175 | <!-- close step-one-form --> |
176 | <!-- </td> | 176 | <!-- </td> |
177 | </tr> | 177 | </tr> |
178 | </table> --> | 178 | </table> --> |
179 | </div> | 179 | </div> |
180 | <!-- CLOSE form-all --> | 180 | <!-- CLOSE form-all --> |
181 | <!-- </div> --> | 181 | <!-- </div> --> |
182 | <div class="clearfix"></div> | 182 | <div class="clearfix"></div> |
183 | <div class="text-center"> | 183 | <div class="text-center"> |
184 | <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()"> | 184 | <input type="submit" class="btn submit-button-form" ng-disabled="applicantForm.$invalid" value="Submit" ng-click="submit()"> |
185 | </div> | 185 | </div> |
186 | </div> | 186 | </div> |
187 | <!-- col-xs-12 col-md-8 col-md-offset-2 --> | 187 | <!-- col-xs-12 col-md-8 col-md-offset-2 --> |
188 | <footer> | 188 | <footer> |
189 | <img id="footer" class="img-responsive banner"> | 189 | <img id="footer" class="img-responsive banner"> |
190 | <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> | 190 | <center class="footer"><a class="footer-link" href="http://www.viithiisys.com/" target="_blank"></a> |
191 | </center> | 191 | </center> |
192 | </footer> | 192 | </footer> |
193 | </form> | 193 | </form> |
194 | <!-- CLOSE FORM --> | 194 | <!-- CLOSE FORM --> |
195 | <!-- </div> CLOSE CHECK VIEW --> | 195 | <!-- </div> CLOSE CHECK VIEW --> |
script.js
1 | // create the module and name it scotchApp | 1 | // create the module and name it scotchApp |
2 | var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); | 2 | var scotchApp = angular.module('scotchApp', ['ngRoute','angular-google-analytics']); |
3 | 3 | ||
4 | // configure our routes | 4 | // configure our routes |
5 | scotchApp.config(function($routeProvider) { | 5 | scotchApp.config(function($routeProvider) { |
6 | $routeProvider | 6 | $routeProvider |
7 | 7 | ||
8 | // route for the Home page | 8 | // route for the Home page |
9 | .when('/', { | 9 | .when('/', { |
10 | templateUrl: 'pages/Home.html', | 10 | templateUrl: 'pages/Home.html', |
11 | controller: 'mainController' | 11 | controller: 'mainController' |
12 | }) | 12 | }) |
13 | 13 | ||
14 | // route for the registration page | 14 | // route for the registration page |
15 | .when('/caricatures', { | 15 | .when('/caricatures', { |
16 | templateUrl: 'pages/registration.html', | 16 | templateUrl: 'pages/registration.html', |
17 | controller: 'mainController' | 17 | controller: 'mainController' |
18 | }) | 18 | }) |
19 | 19 | ||
20 | // // route for the paymentVerify page | 20 | // // route for the paymentVerify page |
21 | // .when('/pendingPayment/:id', { | 21 | // .when('/pendingPayment/:id', { |
22 | // templateUrl: 'pages/verify.html', | 22 | // templateUrl: 'pages/verify.html', |
23 | // controller: 'verifyController' | 23 | // controller: 'verifyController' |
24 | // }) | 24 | // }) |
25 | 25 | ||
26 | // route for the ambassador page | 26 | // route for the ambassador page |
27 | .when('/registration', { | 27 | .when('/registration', { |
28 | templateUrl: 'pages/ambassador.html', | 28 | templateUrl: 'pages/ambassador.html', |
29 | controller: 'ambassadorController' | 29 | controller: 'ambassadorController' |
30 | }) | 30 | }) |
31 | 31 | ||
32 | // route for the confirmation page | 32 | // route for the confirmation page |
33 | .when('/confirmation', { | 33 | .when('/confirmation', { |
34 | templateUrl: 'pages/confirmation.html', | 34 | templateUrl: 'pages/confirmation.html', |
35 | controller: 'ambassadorController' | 35 | controller: 'ambassadorController' |
36 | }) | 36 | }) |
37 | 37 | ||
38 | }); | 38 | }); |
39 | 39 | ||
40 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { | 40 | scotchApp.config(['AnalyticsProvider', function (AnalyticsProvider) { |
41 | // Add configuration code as desired | 41 | // Add configuration code as desired |
42 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code | 42 | AnalyticsProvider.setAccount('UA-106416759-1'); //UU-XXXXXXX-X should be your tracking code |
43 | 43 | ||
44 | // Track all routes (default is true). | 44 | // Track all routes (default is true). |
45 | AnalyticsProvider.trackPages(true); | 45 | AnalyticsProvider.trackPages(true); |
46 | 46 | ||
47 | // Track all URL query params (default is false). | 47 | // Track all URL query params (default is false). |
48 | AnalyticsProvider.trackUrlParams(true); | 48 | AnalyticsProvider.trackUrlParams(true); |
49 | 49 | ||
50 | }]).run(['Analytics', function(Analytics) { }]); | 50 | }]).run(['Analytics', function(Analytics) { }]); |
51 | 51 | ||
52 | scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") | 52 | scotchApp.constant("BASE_URL", "http://35.154.24.158:4001/v1") |
53 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") | 53 | //scotchApp.constant("BASE_URL", "http://0.0.0.0:4001/v1") |
54 | 54 | ||
55 | // create the controller and inject Angular's $scope | 55 | // create the controller and inject Angular's $scope |
56 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { | 56 | scotchApp.controller('mainController', function($scope, $http, $location, $route, $rootScope, BASE_URL, Analytics) { |
57 | $scope.data = { | 57 | $scope.data = { |
58 | show: true, | 58 | show: true, |
59 | hide: false | 59 | hide: false |
60 | }; | 60 | }; |
61 | 61 | ||
62 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 62 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
63 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 63 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
64 | // $scope.Textshow = "yes" | 64 | // $scope.Textshow = "yes" |
65 | $scope.max = 100; | 65 | $scope.max = 100; |
66 | $scope.formPage = false; | 66 | $scope.formPage = false; |
67 | $scope.current = 0; | 67 | $scope.current = 0; |
68 | $scope.payingAmnt = 0; | 68 | $scope.payingAmnt = 0; |
69 | $scope.data = {}; | 69 | $scope.data = {}; |
70 | $scope.discountAmount = 0; | 70 | $scope.discountAmount = 0; |
71 | // $scope.data.quantity = "1"; | 71 | // $scope.data.quantity = "1"; |
72 | $scope.check = false; | 72 | $scope.check = false; |
73 | $scope.numberCheck = false; | 73 | $scope.numberCheck = false; |
74 | $scope.paymentResult = {}; | 74 | $scope.paymentResult = {}; |
75 | var data = { | 75 | var data = { |
76 | "amount": $scope.payingAmnt, | 76 | "amount": $scope.payingAmnt, |
77 | "currency": "INR", | 77 | "currency": "INR", |
78 | "status": "pending" | 78 | "status": "pending" |
79 | } | 79 | } |
80 | 80 | ||
81 | $scope.apply = function() { | 81 | $scope.apply = function() { |
82 | //Analytics.trackEvent('register', 'click', 'Registration'); | 82 | //Analytics.trackEvent('register', 'click', 'Registration'); |
83 | $location.path("/caricatures") | 83 | $location.path("/caricatures") |
84 | } | 84 | } |
85 | 85 | ||
86 | $scope.data.city = ''; | 86 | $scope.data.city = ''; |
87 | $scope.watch = function(value){ | 87 | $scope.watch = function(value){ |
88 | console.log("cllll",value) | 88 | console.log("cllll",value) |
89 | $scope.data.city = value; | 89 | $scope.data.city = value; |
90 | localStorage.setItem("city" ,value); | 90 | localStorage.setItem("city" ,value); |
91 | //$location.path('/registration').search({city: value}); | 91 | //$location.path('/registration').search({city: value}); |
92 | $location.path('/registration'); | 92 | $location.path('/registration'); |
93 | //$state.go('registration', { 'city': value}) | 93 | //$state.go('registration', { 'city': value}) |
94 | } | 94 | } |
95 | 95 | ||
96 | $scope.stagekeyPress = function() { | 96 | $scope.stagekeyPress = function() { |
97 | $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); | 97 | $('.icon-circle-a').css('background-color', 'rgb(25, 104, 157)'); |
98 | } | 98 | } |
99 | $scope.sectorkeyPress = function() { | 99 | $scope.sectorkeyPress = function() { |
100 | $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); | 100 | $('.icon-circle-b').css('background-color', 'rgb(25, 104, 157)'); |
101 | } | 101 | } |
102 | 102 | ||
103 | $scope.productLaunchkeyPress = function() { | 103 | $scope.productLaunchkeyPress = function() { |
104 | $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); | 104 | $('.icon-circle-ab').css('background-color', 'rgb(25, 104, 157)'); |
105 | } | 105 | } |
106 | 106 | ||
107 | $scope.launchPeriodkeyPress = function() { | 107 | $scope.launchPeriodkeyPress = function() { |
108 | $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); | 108 | $('.icon-circle-abc').css('background-color', 'rgb(25, 104, 157)'); |
109 | } | 109 | } |
110 | 110 | ||
111 | $scope.industrykeyPress = function(quantity) { | 111 | $scope.industrykeyPress = function(quantity) { |
112 | console.log("fghj",quantity) | 112 | console.log("fghj",quantity) |
113 | $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); | 113 | $('.icon-circle-abcdefg').css('background-color', 'rgb(25, 104, 157)'); |
114 | } | 114 | } |
115 | 115 | ||
116 | $scope.industryNamekeyPress = function(firstName) { | 116 | $scope.industryNamekeyPress = function(firstName) { |
117 | console.log("lastName==", firstName); | 117 | console.log("lastName==", firstName); |
118 | if (firstName == undefined) { | 118 | if (firstName == undefined) { |
119 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 119 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
120 | } else { | 120 | } else { |
121 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); | 121 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); |
122 | } | 122 | } |
123 | } | 123 | } |
124 | 124 | ||
125 | $scope.amountkeyPress = function() { | 125 | $scope.amountkeyPress = function() { |
126 | $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); | 126 | $('.icon-circle-bc').css('background-color', 'rgb(25, 104, 157)'); |
127 | } | 127 | } |
128 | 128 | ||
129 | $scope.firstNamekeyPress = function(name) { | 129 | $scope.firstNamekeyPress = function(name) { |
130 | console.log("lastName==", name); | 130 | console.log("lastName==", name); |
131 | if (name == undefined) { | 131 | if (name == undefined) { |
132 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); | 132 | $('.icon-circle-c').css('background-color', 'rgb(102, 102, 102)'); |
133 | } else { | 133 | } else { |
134 | $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); | 134 | $('.icon-circle-c').css('background-color', 'rgb(25, 104, 157)'); |
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||
138 | $scope.emailkeyPress = function(email) { | 138 | $scope.emailkeyPress = function(email) { |
139 | console.log("email", email); | 139 | console.log("email", email); |
140 | if (email == undefined) { | 140 | if (email == undefined) { |
141 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); | 141 | $('.icon-circle-d').css('background-color', 'rgb(102, 102, 102)'); |
142 | } else { | 142 | } else { |
143 | $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); | 143 | $('.icon-circle-d').css('background-color', 'rgb(25, 104, 157)'); |
144 | } | 144 | } |
145 | } | 145 | } |
146 | 146 | ||
147 | $scope.phonekeyPress = function(number) { | 147 | $scope.phonekeyPress = function(number) { |
148 | console.log("number", number); | 148 | console.log("number", number); |
149 | if (number == undefined || number == '') { | 149 | if (number == undefined || number == '') { |
150 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); | 150 | $('.icon-circle-e').css('background-color', 'rgb(102, 102, 102)'); |
151 | } else { | 151 | } else { |
152 | $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); | 152 | $('.icon-circle-e').css('background-color', 'rgb(25, 104, 157)'); |
153 | } | 153 | } |
154 | } | 154 | } |
155 | 155 | ||
156 | $scope.citykeyPress = function(city) { | 156 | $scope.citykeyPress = function(city) { |
157 | console.log("city", city); | 157 | console.log("city", city); |
158 | if (city == undefined) { | 158 | if (city == undefined) { |
159 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); | 159 | $('.icon-circle-f').css('background-color', 'rgb(102, 102, 102)'); |
160 | } else { | 160 | } else { |
161 | $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); | 161 | $('.icon-circle-f').css('background-color', 'rgb(25, 104, 157)'); |
162 | } | 162 | } |
163 | } | 163 | } |
164 | 164 | ||
165 | $scope.startupNamekeyPress = function(q) { | 165 | $scope.startupNamekeyPress = function(q) { |
166 | if (q == undefined) { | 166 | if (q == undefined) { |
167 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); | 167 | $('.icon-circle-x').css('background-color', 'rgb(102, 102, 102)'); |
168 | } else { | 168 | } else { |
169 | $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); | 169 | $('.icon-circle-x').css('background-color', 'rgb(25, 104, 157)'); |
170 | } | 170 | } |
171 | } | 171 | } |
172 | 172 | ||
173 | $scope.linkedInkeyPress = function(technology) { | 173 | $scope.linkedInkeyPress = function(technology) { |
174 | if (technology == undefined || technology == '') { | 174 | if (technology == undefined || technology == '') { |
175 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); | 175 | $('.icon-circle-h').css('background-color', 'rgb(102, 102, 102)'); |
176 | } else { | 176 | } else { |
177 | $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); | 177 | $('.icon-circle-h').css('background-color', 'rgb(25, 104, 157)'); |
178 | } | 178 | } |
179 | } | 179 | } |
180 | $scope.companykeyPress = function(problem) { | 180 | $scope.companykeyPress = function(problem) { |
181 | if (problem == undefined) { | 181 | if (problem == undefined) { |
182 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); | 182 | $('.icon-circle-i').css('background-color', 'rgb(102, 102, 102)'); |
183 | } else { | 183 | } else { |
184 | $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); | 184 | $('.icon-circle-i').css('background-color', 'rgb(25, 104, 157)'); |
185 | } | 185 | } |
186 | } | 186 | } |
187 | $scope.productNamekeyPress = function(solution) { | 187 | $scope.productNamekeyPress = function(solution) { |
188 | if (solution == undefined) { | 188 | if (solution == undefined) { |
189 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); | 189 | $('.icon-circle-j').css('background-color', 'rgb(102, 102, 102)'); |
190 | } else { | 190 | } else { |
191 | $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); | 191 | $('.icon-circle-j').css('background-color', 'rgb(25, 104, 157)'); |
192 | } | 192 | } |
193 | } | 193 | } |
194 | $scope.businesskeyPress = function(business) { | 194 | $scope.businesskeyPress = function(business) { |
195 | $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); | 195 | if (business == undefined) { |
196 | $('.icon-circle-p').css('background-color', 'rgb(102, 102, 102)'); | ||
197 | } else { | ||
198 | $('.icon-circle-p').css('background-color', 'rgb(25, 104, 157)'); | ||
199 | } | ||
196 | } | 200 | } |
197 | 201 | ||
198 | $scope.websitekeyPress = function(prototype) { | 202 | $scope.websitekeyPress = function(prototype) { |
199 | if (prototype == undefined || prototype == '') { | 203 | if (prototype == undefined || prototype == '') { |
200 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); | 204 | $('.icon-circle-k').css('background-color', 'rgb(102, 102, 102)'); |
201 | } else { | 205 | } else { |
202 | $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); | 206 | $('.icon-circle-k').css('background-color', 'rgb(25, 104, 157)'); |
203 | } | 207 | } |
204 | } | 208 | } |
205 | 209 | ||
206 | $scope.employeekeyPress = function(market) { | 210 | $scope.employeekeyPress = function(market) { |
207 | if (market == undefined || market == '') { | 211 | if (market == undefined || market == '') { |
208 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); | 212 | $('.icon-circle-l').css('background-color', 'rgb(102, 102, 102)'); |
209 | } else { | 213 | } else { |
210 | $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); | 214 | $('.icon-circle-l').css('background-color', 'rgb(25, 104, 157)'); |
211 | } | 215 | } |
212 | } | 216 | } |
213 | 217 | ||
214 | $scope.annualkeyPress = function(risk) { | 218 | $scope.annualkeyPress = function(risk) { |
215 | if (risk == undefined || risk == '') { | 219 | if (risk == undefined || risk == '') { |
216 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); | 220 | $('.icon-circle-m').css('background-color', 'rgb(102, 102, 102)'); |
217 | } else { | 221 | } else { |
218 | $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); | 222 | $('.icon-circle-m').css('background-color', 'rgb(25, 104, 157)'); |
219 | } | 223 | } |
220 | } | 224 | } |
221 | 225 | ||
222 | $scope.revenuekeyPress = function(team) { | 226 | $scope.revenuekeyPress = function(team) { |
223 | if (team == undefined || team == '') { | 227 | if (team == undefined || team == '') { |
224 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); | 228 | $('.icon-circle-n').css('background-color', 'rgb(102, 102, 102)'); |
225 | } else { | 229 | } else { |
226 | $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); | 230 | $('.icon-circle-n').css('background-color', 'rgb(25, 104, 157)'); |
227 | } | 231 | } |
228 | } | 232 | } |
229 | 233 | ||
230 | $scope.descriptionkeyPress = function(pitch) { | 234 | $scope.descriptionkeyPress = function(pitch) { |
231 | if (pitch == undefined) { | 235 | if (pitch == undefined) { |
236 | console.log("pitch",pitch) | ||
232 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); | 237 | $('.icon-circle-z').css('background-color', 'rgb(102, 102, 102)'); |
233 | } else { | 238 | } else { |
239 | console.log("pitch",pitch) | ||
234 | $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); | 240 | $('.icon-circle-z').css('background-color', 'rgb(25, 104, 157)'); |
235 | } | 241 | } |
236 | } | 242 | } |
237 | 243 | ||
238 | $scope.discountkeyPress = function(discount) { | 244 | $scope.discountkeyPress = function(discount) { |
239 | if (discount == undefined) { | 245 | if (discount == undefined) { |
240 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); | 246 | $('.icon-circle-o').css('background-color', 'rgb(102, 102, 102)'); |
241 | } else { | 247 | } else { |
242 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); | 248 | $('.icon-circle-o').css('background-color', 'rgb(25, 104, 157)'); |
243 | } | 249 | } |
244 | } | 250 | } |
245 | 251 | ||
246 | $scope.removeNooError = function() { | 252 | $scope.removeNooError = function() { |
247 | $('#invalidIdea').css('display', 'block'); | 253 | $('#invalidIdea').css('display', 'block'); |
248 | $('#noExist').css('display', 'none'); | 254 | $('#noExist').css('display', 'none'); |
249 | }; | 255 | }; |
250 | 256 | ||
251 | $scope.ideakeyPress = function(financial) { | 257 | $scope.ideakeyPress = function(financial) { |
252 | console.log("financial", financial); | 258 | console.log("financial", financial); |
253 | if (financial == undefined) { | 259 | if (financial == undefined) { |
254 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); | 260 | $('.icon-circle-q').css('background-color', 'rgb(102, 102, 102)'); |
255 | } else { | 261 | } else { |
256 | $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); | 262 | $('.icon-circle-q').css('background-color', 'rgb(25, 104, 157)'); |
257 | } | 263 | } |
258 | } | 264 | } |
259 | 265 | ||
260 | $scope.fundkeyPress = function(financial) { | 266 | $scope.fundkeyPress = function(financial) { |
261 | console.log("financial", financial); | 267 | console.log("financial", financial); |
262 | if (financial == undefined) { | 268 | if (financial == undefined) { |
263 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); | 269 | $('.icon-circle-y').css('background-color', 'rgb(102, 102, 102)'); |
264 | } else { | 270 | } else { |
265 | $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); | 271 | $('.icon-circle-y').css('background-color', 'rgb(25, 104, 157)'); |
266 | } | 272 | } |
267 | } | 273 | } |
268 | 274 | ||
269 | $scope.changeReferalIconColor = function(referalToken){ | 275 | $scope.changeReferalIconColor = function(referalToken){ |
270 | if (referalToken == undefined || referalToken == '') { | 276 | if (referalToken == undefined || referalToken == '') { |
271 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); | 277 | $('.referel-icon').css('background-color', 'rgb(102, 102, 102)'); |
272 | }else { | 278 | }else { |
273 | $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); | 279 | $('.referel-icon').css('background-color', 'rgb(25, 104, 157)'); |
274 | } | 280 | } |
275 | } | 281 | } |
276 | 282 | ||
277 | }); | 283 | }); |
278 | 284 | ||
279 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { | 285 | scotchApp.controller('ambassadorController', function($scope, $http, $location, $route,BASE_URL) { |
280 | $scope.data = {}; | 286 | $scope.data = {}; |
281 | $scope.check = false; | 287 | $scope.check = false; |
282 | $scope.numberCheck = false; | 288 | $scope.numberCheck = false; |
283 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 289 | $scope.infoForm = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
284 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ | 290 | $scope.space = false; /*THIS CODE FOR HIDE STEP 2 FORM*/ |
285 | $scope.max = 100; | 291 | $scope.max = 100; |
286 | $scope.formPage = false; | 292 | $scope.formPage = false; |
287 | $scope.current = 0; | 293 | $scope.current = 0; |
288 | $scope.payingAmnt = 0; | 294 | $scope.payingAmnt = 0; |
289 | $scope.discountAmount = 0; | 295 | $scope.discountAmount = 0; |
290 | // $scope.data.quantity = "1"; | 296 | // $scope.data.quantity = "1"; |
291 | $scope.check = false; | 297 | $scope.check = false; |
292 | $scope.numberCheck = false; | 298 | $scope.numberCheck = false; |
293 | $scope.paymentResult = {}; | 299 | $scope.paymentResult = {}; |
294 | var data = { | 300 | var data = { |
295 | "amount": $scope.payingAmnt, | 301 | "amount": $scope.payingAmnt, |
296 | "currency": "INR", | 302 | "currency": "INR", |
297 | "status": "pending" | 303 | "status": "pending" |
298 | } | 304 | } |
299 | 305 | ||
300 | $scope.removeError = function() { | 306 | $scope.removeError = function() { |
301 | $('#invalidEmail').css('display', 'none'); | 307 | $('#invalidEmail').css('display', 'none'); |
302 | $('#alreadyExist').css('display', 'none'); | 308 | $('#alreadyExist').css('display', 'none'); |
303 | }; | 309 | }; |
304 | 310 | ||
305 | $scope.emailcheck = function(val) { | 311 | $scope.emailcheck = function(val) { |
306 | if (val == undefined) { | 312 | if (val == undefined) { |
307 | $('#invalidEmail').css('display', 'block'); | 313 | $('#invalidEmail').css('display', 'block'); |
308 | } else { | 314 | } else { |
309 | $('#alreadyExist').css('display', 'block'); | 315 | $('#alreadyExist').css('display', 'block'); |
310 | } | 316 | } |
311 | }; | 317 | }; |
312 | 318 | ||
313 | // $scope.$on('city', function (event, value) { | 319 | // $scope.$on('city', function (event, value) { |
314 | $scope.data.city = localStorage.getItem("city"); | 320 | $scope.data.city = localStorage.getItem("city"); |
315 | console.log("HERE===",$scope.data.city ); | 321 | console.log("HERE===",$scope.data.city ); |
316 | // }); | 322 | // }); |
317 | $scope.submit = function() { | 323 | $scope.submit = function() { |
318 | $scope.payingAmnt = 50000; | 324 | $scope.payingAmnt = 50000; |
319 | if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { | 325 | if ($scope.data.name == undefined || $scope.data.email == undefined || $scope.data.number == undefined) { |
320 | var x = document.getElementById("snackbar") | 326 | var x = document.getElementById("snackbar") |
321 | setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); | 327 | setTimeout(function(){ x.className = x.className.replace("show", ""); }, 3000); |
322 | }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { | 328 | }else if($scope.data.name != undefined && $scope.data.email != undefined && $scope.data.number != undefined) { |
323 | $scope.infoForm = true; | 329 | $scope.infoForm = true; |
324 | $scope.detail = {}; | 330 | $scope.detail = {}; |
325 | $scope.data.phone = "+91"+$scope.data.number; | 331 | $scope.data.phone = "+91"+$scope.data.number; |
326 | $http({ | 332 | $http({ |
327 | method: 'POST', | 333 | method: 'POST', |
328 | url: BASE_URL+'/applicants', | 334 | url: BASE_URL+'/applicants', |
329 | data: $scope.data, | 335 | data: $scope.data, |
330 | headers: {} | 336 | headers: {} |
331 | }).then(function mySuccess(result) { | 337 | }).then(function mySuccess(result) { |
332 | console.log("=====result=====",result) | 338 | console.log("=====result=====",result) |
333 | $scope.detail = result; | 339 | $scope.detail = result; |
334 | data.applicantId = result.data.id; | 340 | data.applicantId = result.data.id; |
335 | $scope.userId = result.data.id; | 341 | $scope.userId = result.data.id; |
336 | console.log("=====data=====",data) | 342 | console.log("=====data=====",data) |
337 | data.amount = $scope.payingAmnt /100; | 343 | data.amount = $scope.payingAmnt /100; |
338 | if($scope.detail != null){ | 344 | if($scope.detail != null){ |
339 | $http({ | 345 | $http({ |
340 | method: 'POST', | 346 | method: 'POST', |
341 | url: BASE_URL+'/payments', | 347 | url: BASE_URL+'/payments', |
342 | data: data, | 348 | data: data, |
343 | headers: {} | 349 | headers: {} |
344 | }).then(function mySuccess(paymentResult) { | 350 | }).then(function mySuccess(paymentResult) { |
345 | $scope.paymentResult = paymentResult; | 351 | $scope.paymentResult = paymentResult; |
346 | }, function myError(error) { | 352 | }, function myError(error) { |
347 | }); | 353 | }); |
348 | } | 354 | } |
349 | var i = 0; | 355 | var i = 0; |
350 | var options = { | 356 | var options = { |
351 | //"key": "rzp_test_YwHsVFiDIQ2WUQ", | 357 | //"key": "rzp_test_YwHsVFiDIQ2WUQ", |
352 | "key": "rzp_live_mkmCb4FkstuWaS", | 358 | "key": "rzp_live_mkmCb4FkstuWaS", |
353 | "amount": $scope.payingAmnt, | 359 | "amount": $scope.payingAmnt, |
354 | 360 | ||
355 | "name": "Startup Jalsa", | 361 | "name": "Startup Jalsa", |
356 | "description":"amount", | 362 | "description":"amount", |
357 | "currency": "INR", | 363 | "currency": "INR", |
358 | "status": "done", | 364 | "status": "done", |
359 | 365 | ||
360 | "prefill": { | 366 | "prefill": { |
361 | "email": $scope.detail.email, | 367 | "email": $scope.detail.email, |
362 | "contact": $scope.detail.phone | 368 | "contact": $scope.detail.phone |
363 | }, | 369 | }, |
364 | 370 | ||
365 | "theme": { | 371 | "theme": { |
366 | "color": "#2196f3 ", | 372 | "color": "#2196f3 ", |
367 | "image_padding":"NO" | 373 | "image_padding":"NO" |
368 | }, | 374 | }, |
369 | "modal": { | 375 | "modal": { |
370 | "ondismiss": function(){ | 376 | "ondismiss": function(){ |
371 | } | 377 | } |
372 | }, | 378 | }, |
373 | "handler": function (response){ | 379 | "handler": function (response){ |
374 | createPayment(response); | 380 | createPayment(response); |
375 | } | 381 | } |
376 | }; | 382 | }; |
377 | var rzp1 = new Razorpay(options); | 383 | var rzp1 = new Razorpay(options); |
378 | rzp1.open(); | 384 | rzp1.open(); |
379 | $scope.paymentResponse = {}; | 385 | $scope.paymentResponse = {}; |
380 | function createPayment(response){ | 386 | function createPayment(response){ |
381 | console.log("response12333333",response) | 387 | console.log("response12333333",response) |
382 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; | 388 | $scope.paymentResponse.razorPaymentId = response.razorpay_payment_id; |
383 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; | 389 | $scope.paymentResponse.razorOrderId = $scope.paymentResult.data.razorOrderId; |
384 | $scope.paymentResponse.amount = data.amount; | 390 | $scope.paymentResponse.amount = data.amount; |
385 | $scope.paymentResponse.currency = "INR"; | 391 | $scope.paymentResponse.currency = "INR"; |
386 | $scope.paymentResponse.status = $scope.paymentResult.data.status; | 392 | $scope.paymentResponse.status = $scope.paymentResult.data.status; |
387 | $http({ | 393 | $http({ |
388 | method: 'PUT', | 394 | method: 'PUT', |
389 | url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, | 395 | url: BASE_URL+'/payments/'+$scope.paymentResult.data.id, |
390 | data: $scope.paymentResponse, | 396 | data: $scope.paymentResponse, |
391 | headers: {} | 397 | headers: {} |
392 | }).then(function mySuccess(searchResult) { | 398 | }).then(function mySuccess(searchResult) { |
393 | console.log("searchResult",searchResult) | 399 | console.log("searchResult",searchResult) |
394 | $location.path("/confirmation") | 400 | $location.path("/confirmation") |
395 | }, function myError(error) { | 401 | }, function myError(error) { |
396 | }); | 402 | }); |
397 | } | 403 | } |
398 | 404 | ||
399 | }, function myError(error) { | 405 | }, function myError(error) { |
400 | 406 | ||
401 | }); | 407 | }); |
402 | 408 | ||
403 | } | 409 | } |
404 | 410 | ||
405 | } | 411 | } |
406 | 412 | ||
407 | }); | 413 | }); |
408 | 414 | ||
409 | 415 | ||
410 | 416 | ||
411 | 417 |