Commit 5348de778f8a5ca0385ef69159c147b730e565d8

Authored by Palak Handa
1 parent 836430b0f1
Exists in master and in 1 other branch paytm

design updated

1   -*{
  1 +{
2 2 outline: none !important;
3 3 }
4 4 .header{
... ... @@ -209,7 +209,7 @@
209 209 .error-message{
210 210 font-weight: inherit;
211 211 color: #ff0000;
212   - margin: 7px 4px -5px 26px;
  212 + margin: 5px 4px -5px 0px;
213 213 display: none;
214 214 }
215 215  
... ... @@ -841,7 +841,7 @@ stroke-dashoffset:0
841 841 visibility: hidden;
842 842 min-width: 250px;
843 843 margin-left: -125px;
844   - background-color: #333;
  844 + background-color: #F44336;
845 845 color: #fff;
846 846 text-align: center;
847 847 border-radius: 2px;
... ...
pages/ambassador.html
1   -<div class="panel-heading" style="background-color: #42b549;"><img src="images/white.png" style="width: 100px;"></div>
  1 +<div class="header">
  2 + <div style="float: left;">
  3 + <img src="images/white.png" class="logo" >
  4 + </div>
  5 + <div style="float: right;" class="right-side-links">
  6 + <a class="hyperColor" ng-click="openyoutube16()">Glipmses of 2016</a>
  7 + <a class="hyperColor" ng-click="openyoutube17()">Concept for 2017</a>
  8 + </div>
  9 + <div class="clearfix"></div>
  10 +</div>
  11 +<!-- CLOSE HEADER -->
2 12 <form name="applicantForm" id="signupForm">
3 13 <div style="text-align:center;">
4 14 <h4>Startup Ambassador</h4>
... ... @@ -23,17 +33,17 @@
23 33 <div class="icon-circle-d">
24 34 <i class="material-icons" style="line-height: 30px;">email</i>
25 35 </div>
26   - <input type="email" name="email" class="text-input" required class="" ng-model="data.email" placeholder="Email Address" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)">
  36 + <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)">
27 37 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label>
28   - <label ng-if="check">Email already exist.</label>
  38 + <label ng-if="check">Email already exist.</label>
29 39 </div>
30 40 <div class="clearfix"></div>
31 41 <div class="col-xs-12 input-wrapper" >
32 42 <div class="icon-circle-e">
33 43 <i class="material-icons" style="line-height: 30px;">phone</i>
34 44 </div>
35   - <input type="number" required class="text-input" ng-model="data.mobile" placeholder="Mobile No." ng-blur="numbercheck(data.mobile)" ng-focus="removeNoError()" ng-change="enternumber(data.mobile); phonekeyPress(data.mobile)">
36   -
  45 + <input type="number" ng-pattern="/^[0-9+-]*$/" maxlength="15" required class="text-input" ng-model="data.mobile" placeholder="Mobile No." ng-blur="numbercheck(data.mobile)" ng-focus="removeNoError()" ng-change="enternumber(data.mobile); phonekeyPress(data.mobile)">
  46 + <!-- <label class="error-message f-family" id="invalidNumber">Please enter only numeric value in mobile number field.</label> -->
37 47 <label ng-if="numberCheck">Contact Number already exist.</label>
38 48 </div>
39 49 <div class="clearfix"></div>
... ... @@ -64,7 +74,6 @@
64 74 </div>
65 75 </div>
66 76 </div> <!-- CLOSE NEW-CONTROLLER -->
67   -<div id="snacsskbar">Registration done successfully.</div>
68 77 <div class="modal fade" id="myModal" role="dialog">
69 78 <div class="modal-dialog" style="left: auto;">
70 79 <div class="modal-content">
... ... @@ -77,3 +86,30 @@
77 86 </div>
78 87 </div>
79 88 </div>
  89 +
  90 +<div class="modal fade" id="videoModel" role="dialog" ng-click="closeModal()">
  91 + <div class="modal-dialog" style="left: auto;">
  92 + <div class="modal-content">
  93 + <div class="modal-body">
  94 + <iframe width="560" id="youtubePlayer" height="315" src="https://www.youtube.com/embed/8i1bLQ7jS0I" frameborder="0" allowfullscreen></iframe>
  95 + </div>
  96 + <!-- <div class="modal-footers" style="text-align: center;margin-bottom: 5px;">
  97 + <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="closeModal()">Close</button>
  98 + </div> -->
  99 + </div>
  100 + </div>
  101 +</div>
  102 +
  103 +
  104 +<div class="modal fade" id="videoModels" role="dialog" ng-click="closeModal()">
  105 + <div class="modal-dialog" style="left: auto;">
  106 + <div class="modal-content">
  107 + <div class="modal-body">
  108 + <iframe width="560" id="youtubePlayer" height="315" src="https://www.youtube.com/embed/oBqdz-p3R6Y" frameborder="0" allowfullscreen></iframe>
  109 + </div>
  110 + <!-- <div class="modal-footers" style="text-align: center;margin-bottom: 5px;">
  111 + <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="closeModal()">Close</button>
  112 + </div> -->
  113 + </div>
  114 + </div>
  115 +</div>
... ...
pages/confirmation.html
... ... @@ -0,0 +1,14 @@
  1 +<html>
  2 +<head>
  3 + <div class="panel-heading" style="background-color: #42b549;"><img src="images/white.png" style="width: 100px;"></div>
  4 +</head>
  5 +<body>
  6 + <h3 style="text-align:center;margin-top:4%">Thank you for registering at Startup Jalsa 2017.</h3>
  7 + <p style="text-align:center;font-size:20px;">You will receive a confirmation email from us, if not please contact at <a href="http://www.startupjalsa.com/">ping@startupjalsa.com</a></p>
  8 + <footer style="margin-top:23%">
  9 + <img id="footer" class="img-responsive banner">
  10 + <center class="footer"> Powered By <a class="footer-link" href="http://www.viithiisys.com/" target="_blank">Viithiisys Technologies.</a>
  11 + </center>
  12 + </footer>
  13 +</body>
  14 +</html>
0 15 \ No newline at end of file
... ...
... ... @@ -10,8 +10,7 @@
10 10  
11 11 </div>
12 12 <!-- CLOSE HEADER -->
13   -<form name="applicantForm" id="signupForm">
14   -
  13 +<form name="applicantForm" id="signupForm">
15 14 <div class="col-xs-12 col-md-10 col-md-offset-1">
16 15 <p class="select-stage" style="font-size:20px;">Please select one stage.</p>
17 16 <div class="stage-shadow">
... ... @@ -101,6 +100,7 @@
101 100 </div>
102 101 </div>
103 102 <!-- CLOSE STAGE SHADOW -->
  103 + <form name="informationForm">
104 104 <div class="form-all">
105 105 <table style="width: 100%;">
106 106 <tr>
... ... @@ -119,7 +119,7 @@
119 119 <div class="icon-circle-d">
120 120 <i class="material-icons" style="line-height: 30px;">email</i>
121 121 </div>
122   - <input type="email" name="email" class="text-input" required class="" ng-model="data.email" placeholder="Email Address" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)">
  122 + <input type="email" name="email" ng-pattern="/^[^\s@]+@[^\s@]+\.[^\s@]+$/" class="text-input" required class="" ng-model="data.email" placeholder="Email Address" ng-blur="emailcheck(data.email)" ng-focus="removeError()" ng-change="enteremail(data.email); emailkeyPress(data.email)">
123 123 <label class="error-message f-family" id="invalidEmail">Please enter a valid email address.</label>
124 124 <label ng-if="check">Email already exist.</label>
125 125 </div>
... ... @@ -127,7 +127,7 @@
127 127 <div class="icon-circle-e">
128 128 <i class="material-icons" style="line-height: 30px;">phone</i>
129 129 </div>
130   - <input type="number" required class="text-input" ng-model="data.number" placeholder="Mobile No." ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)">
  130 + <input type="number" ng-pattern="/^[0-9+-]*$/" maxlength="15" required class="text-input" ng-model="data.number" placeholder="Mobile No." ng-blur="numbercheck(data.number)" ng-focus="removeNoError()" ng-change="enternumber(data.number); phonekeyPress(data.number)">
131 131 <label ng-if="numberCheck">Contact Number already exist.</label>
132 132 </div>
133 133 <div class="col-xs-12 col-md-6 input-wrapper f-family">
... ... @@ -245,7 +245,7 @@
245 245 </div>
246 246 <div class="clearfix"></div>
247 247 <div class="col-xs-12 text-right">
248   - <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" ng-click="next()">
  248 + <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" ng-disabled="informationForm.$invalid|| check|| numberCheck" ng-click="next()">
249 249 Next
250 250 </button>
251 251 </div>
... ... @@ -255,7 +255,8 @@
255 255 </tr>
256 256 </table>
257 257 </div>
258   - <!-- CLOSE form-all -->
  258 + <!-- CLOSE form-all -->
  259 + </form>
259 260 <div class="step-two-form" ng-show="infoForm">
260 261 <div class="sectors-card">
261 262 <div class="icon-circle-b">
... ... @@ -329,15 +330,15 @@
329 330 <div class="clearfix"></div>
330 331 </div>
331 332 <!-- CLOSE sectors-card -->
332   - <div class="col-xs-11 col-md-12 f-family line-adjust">
333   - <strong>What technology are you using in the product?</strong>
334   - <p class="line-space" >Please explain in detail the technologies that you are using or plan to use in the product?</p>
  333 + <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="proto">
  334 + <strong>Do you have a prototype ready?</strong>
  335 + <p class="line-space" >If yes, please share the link to demo/website/application</p>
335 336 </div>
336   - <div class="col-xs-12 col-md-12 input-wrapper">
337   - <div class="icon-circle-h">
338   - <i class="material-icons" style="line-height: 30px;">phone_android</i>
  337 + <div class="col-xs-12 col-md-12 input-wrapper" ng-if="proto">
  338 + <div class="icon-circle-k">
  339 + <i class="material-icons" style="line-height: 30px;">device_hub</i>
339 340 </div>
340   - <input type="text" class="text-input" ng-model="data.technology" placeholder="Technology" ng-change="entertechnology(data.technology); technologykeyPress(data.technology)" required>
  341 + <textarea name="proto" ng-required="proto" class="text-input textarea" ng-model="data.prototype" ng-if="proto" placeholder="Prototype" ng-change="abc(); prototypekeyPress(data.prototype)"></textarea>
341 342 </div>
342 343 <div class="col-xs-11 col-md-12 f-family line-adjust">
343 344 <strong>Tell us about the problem that your company is trying to address. </strong>
... ... @@ -375,6 +376,7 @@
375 376 </select>
376 377 </div>
377 378 <div class="clearfix"></div>
  379 + <div class="hideform" ng-if="prototyp">
378 380 <!-- **************************For Quiz All About Input********************** -->
379 381 <div class="question-shadow">
380 382 <div class="icon-circle-x">
... ... @@ -393,8 +395,8 @@
393 395 <span class="bar"></span>
394 396 </div>
395 397 <div class="col-sm-3 col-md-offset-1">
396   - <select class="drop-down" ng-model="data.typeQ1" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
397   - <option value="typeQ1" selected disabled value="">Select</option>
  398 + <select class="drop-down" ng-model="data.typeQ1" placeholder="select" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
  399 + <option selected disabled value="">Select</option>
398 400 <option>Sales</option>
399 401 <option>Marketing</option>
400 402 <option>Technology</option>
... ... @@ -412,8 +414,8 @@
412 414 <span class="bar"></span>
413 415 </div>
414 416 <div class="col-sm-3 col-md-offset-1">
415   - <select class="drop-down" ng-model="data.typeQ2" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
416   - <option value="typeQ2" selected disabled value="">Select</option>
  417 + <select class="drop-down" ng-model="data.typeQ2" placeholder="select" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
  418 + <option selected disabled value="">Select</option>
417 419 <option>Sales</option>
418 420 <option>Marketing</option>
419 421 <option>Technology</option>
... ... @@ -431,8 +433,8 @@
431 433 <span class="bar"></span>
432 434 </div>
433 435 <div class="col-sm-3 col-md-offset-1">
434   - <select class="drop-down" ng-model="data.typeQ3" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
435   - <option value="typeQ3" selected disabled value="">Select</option>
  436 + <select class="drop-down" ng-model="data.typeQ3" placeholder="select" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
  437 + <option selected disabled value="">Select</option>
436 438 <option>Sales</option>
437 439 <option>Marketing</option>
438 440 <option>Technology</option>
... ... @@ -450,8 +452,8 @@
450 452 <span class="bar"></span>
451 453 </div>
452 454 <div class="col-sm-3 col-md-offset-1">
453   - <select class="drop-down" ng-model="data.typeQ4" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
454   - <option value="typeQ4" selected disabled value="">Select</option>
  455 + <select class="drop-down" ng-model="data.typeQ4" placeholder="select" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
  456 + <option selected disabled value="">Select</option>
455 457 <option>Sales</option>
456 458 <option>Marketing</option>
457 459 <option>Technology</option>
... ... @@ -469,8 +471,8 @@
469 471 <span class="bar"></span>
470 472 </div>
471 473 <div class="col-sm-3 col-md-offset-1">
472   - <select class="drop-down" ng-model="data.typeQ5" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
473   - <option value="typeQ5" selected disabled value="">Select</option>
  474 + <select class="drop-down" ng-model="data.typeQ5" placeholder="select" id="lunch" class="" data-live-search="true" title="Please select a lunch ..." required>
  475 + <option selected disabled value="">Select</option>
474 476 <option>Sales</option>
475 477 <option>Marketing</option>
476 478 <option>Technology</option>
... ... @@ -489,16 +491,15 @@
489 491 <!--CLOSE question-shadow -->
490 492 <div class="clearfix"></div>
491 493 <!-- **************************CLOSE QUIZ FORM********************** -->
492   - <div class="hideform" ng-if="prototyp">
493   - <div class="col-xs-12 col-md-12 f-family line-adjust">
494   - <strong>Do you have a prototype ready?</strong>
495   - <p class="line-space" >If yes, please share the link to demo/website/application</p>
  494 + <div class="col-xs-11 col-md-12 f-family line-adjust">
  495 + <strong>What technology are you using in the product?</strong>
  496 + <p class="line-space" >Please explain in detail the technologies that you are using or plan to use in the product?</p>
496 497 </div>
497   - <div class="col-xs-12 col-md-12 input-wrapper" ng-if="prototyp">
498   - <div class="icon-circle-k">
499   - <i class="material-icons" style="line-height: 30px;">device_hub</i>
  498 + <div class="col-xs-12 col-md-12 input-wrapper">
  499 + <div class="icon-circle-h">
  500 + <i class="material-icons" style="line-height: 30px;">phone_android</i>
500 501 </div>
501   - <textarea name="prototyp" ng-required="prototyp" class="text-input textarea" ng-model="data.prototype" ng-if="prototyp" placeholder="Prototype" ng-change="abc(); prototypekeyPress(data.prototype)"></textarea>
  502 + <input type="text" class="text-input" ng-model="data.technology" placeholder="Technology" ng-change="entertechnology(data.technology); technologykeyPress(data.technology)" required>
502 503 </div>
503 504 <div class="col-xs-12 col-md-12 f-family line-adjust" ng-if="market">
504 505 <strong>What is your go-to-market strategy?</strong>
... ... @@ -611,10 +612,11 @@
611 612 </div>
612 613 </div>
613 614 </div> <!-- CLOSE NEW-CONTROLLER -->
614   -<div id="snacsskbar">Registration done successfully.</div>
615   -<div class="modal fade" id="myModal" role="dialog">
  615 +<!-- <div id="snacsskbar">Registration done successfully.</div>
  616 + --><div class="modal fade" id="myModal" role="dialog">
616 617 <div class="modal-dialog" style="left: auto;">
617 618 <div class="modal-content">
  619 + <h4 style="text-align:center;">Congratulations, you are now eligible for:</h4>
618 620 <table width="100%" border="0" align="right" cellpadding="0" cellspacing="0" style="border:1px solid #f6f6eb;margin-top:10px">
619 621 <tbody style="background-color:#f9f9f9">
620 622 <tr>
... ...
... ... @@ -22,6 +22,13 @@
22 22 templateUrl: 'pages/ambassador.html',
23 23 controller: 'ambassadorController'
24 24 })
  25 +
  26 + // route for the confirmation page
  27 + .when('/confirmation', {
  28 + templateUrl: 'pages/confirmation.html',
  29 + controller: 'mainController'
  30 + })
  31 +
25 32 });
26 33  
27 34 scotchApp.constant("BASE_URL", "http://139.59.68.74:4001/api")
... ... @@ -56,11 +63,6 @@
56 63 "status": "pending"
57 64 }
58 65  
59   - $scope.removeError = function() {
60   - $('#invalidEmail').css('display', 'none');
61   - $('#alreadyExist').css('display', 'none');
62   - };
63   -
64 66 /*open videos in modal*/
65 67 $scope.openyoutube16 = function(){
66 68 $('#videoModel').modal('show');
... ... @@ -77,6 +79,11 @@
77 79 }
78 80 /*open videos ends here*/
79 81  
  82 + $scope.removeError = function() {
  83 + $('#invalidEmail').css('display', 'none');
  84 + $('#alreadyExist').css('display', 'none');
  85 + };
  86 +
80 87 $scope.emailcheck = function(val) {
81 88 if (val == undefined) {
82 89 $('#invalidEmail').css('display', 'block');
... ... @@ -279,7 +286,7 @@
279 286 var i = 0;
280 287 $scope.payingAmnt = $scope.payingAmnt * 100;
281 288 var options = {
282   - "key": "rzp_live_mhSE1uOBlXvFyJ",
  289 + "key": "rzp_test_YwHsVFiDIQ2WUQ",
283 290 "amount": $scope.payingAmnt,
284 291  
285 292 "name": "Startup Jalsa",
... ... @@ -317,7 +324,8 @@
317 324 headers: {}
318 325 }).then(function mySuccess(searchResult) {
319 326 console.log("searchResult", searchResult)
320   - $scope.showToastr()
  327 + $location.path("/confirmation")
  328 + //$scope.showToastr()
321 329 //toaster.success("Registration done successfully");
322 330  
323 331 }, function myError(error) {});
... ... @@ -328,16 +336,17 @@
328 336  
329 337 }
330 338  
331   - $scope.showToastr = function() {
332   - console.log("called toast")
333   - var x = document.getElementById("snacsskbar")
334   - x.className = "show";
335   - setTimeout(function() {
336   - x.className = x.className.replace("show", "");
337   - }, 3000);
338   - }
  339 + // $scope.showToastr = function() {
  340 + // console.log("called toast")
  341 + // var x = document.getElementById("snacsskbar")
  342 + // x.className = "show";
  343 + // setTimeout(function() {
  344 + // x.className = x.className.replace("show", "");
  345 + // }, 3000);
  346 + // }
339 347  
340 348 /*kk***This code for change data when click to chooses stages***/
  349 + $scope.proto = true;
341 350 $scope.businessmodel = true;
342 351 $scope.Idea = true;
343 352 $scope.current = true;
... ... @@ -347,6 +356,7 @@
347 356 console.log("stage--2",stage)
348 357 if (stage == 'Idea') {
349 358 $scope.current = 10;
  359 + $scope.proto = true;
350 360 $scope.prototyp = false;
351 361 $scope.market = false;
352 362 $scope.risks = false;
... ... @@ -361,6 +371,7 @@
361 371 $scope.Growth = false;
362 372 } else if (stage == 'Product') {
363 373 $scope.current = 10;
  374 + $scope.proto = true;
364 375 $scope.prototyp = true;
365 376 $scope.market = true;
366 377 $scope.risks = true;
... ... @@ -375,6 +386,7 @@
375 386 $scope.Growth = false;
376 387 } else if (stage == 'Growth') {
377 388 $scope.current = 10;
  389 + $scope.proto = false;
378 390 $scope.prototyp = true;
379 391 $scope.market = true;
380 392 $scope.risks = true;
... ... @@ -577,8 +589,8 @@
577 589 console.log('pending data', searchResult);
578 590 var i = 0;
579 591 var options = {
580   - "key": "rzp_live_mhSE1uOBlXvFyJ",
581   - //"key" : "rzp_test_YwHsVFiDIQ2WUQ",
  592 + //"key": "rzp_live_mhSE1uOBlXvFyJ",
  593 + "key" : "rzp_test_YwHsVFiDIQ2WUQ",
582 594 "amount": $scope.amount,
583 595  
584 596 "name": "Startup Jalsa",
... ... @@ -634,6 +646,27 @@
634 646 $scope.check = false;
635 647 $scope.numberCheck = false;
636 648  
  649 + /*open videos in modal*/
  650 + $scope.openyoutube16 = function(){
  651 + $('#videoModel').modal('show');
  652 + }
  653 +
  654 + $scope.openyoutube17 = function(){
  655 + $('#videoModels').modal('show');
  656 + }
  657 +
  658 + $scope.closeModal = function(){
  659 + var url = $('#youtubePlayer').attr('src');
  660 + $('#youtubePlayer').attr('src', '');
  661 + $('#youtubePlayer').attr('src', url);
  662 + }
  663 + /*open videos ends here*/
  664 +
  665 + $scope.removeError = function() {
  666 + $('#invalidEmail').css('display', 'none');
  667 + $('#alreadyExist').css('display', 'none');
  668 + };
  669 +
637 670 $scope.emailcheck = function(val) {
638 671 if (val == undefined) {
639 672 $('#invalidEmail').css('display', 'block');
... ... @@ -654,26 +687,31 @@
654 687 }
655 688 };
656 689  
657   - $scope.removeNoError = function() {
658   - $('#noExist').css('display', 'none');
659   - };
  690 + // $scope.removeNoError = function() {
  691 + // $('#invalidNumber').css('display', 'none');
  692 + // $('#noExist').css('display', 'none');
  693 + // };
660 694  
661 695 $scope.numbercheck = function(number) {
662   - $http({
663   - method: 'GET',
664   - url: BASE_URL + '/ambassadors?filter={"where": {"mobile": {"like":"%25' + number + '%25"}}}',
665   - data: $scope.data,
666   - headers: {}
667   - }).then(function mySuccess(searchResult) {
668   - console.log("searchResult===>", searchResult)
669   - if (searchResult.data.length == 0) {
670   - $scope.numberCheck = false;
  696 + // if (val == undefined) {
  697 + // $('#invalidNumber').css('display', 'block');
  698 + // } else {
  699 + $http({
  700 + method: 'GET',
  701 + url: BASE_URL + '/ambassadors?filter={"where": {"mobile": {"like":"%25' + number + '%25"}}}',
  702 + data: $scope.data,
  703 + headers: {}
  704 + }).then(function mySuccess(searchResult) {
  705 + console.log("searchResult===>", searchResult)
  706 + if (searchResult.data.length == 0) {
  707 + $scope.numberCheck = false;
  708 + } else {
  709 + $scope.numberCheck = true;
  710 + $('#noExist').css('display', 'block');
  711 + }
  712 + }, function myError(error) {});
  713 + //}
671 714  
672   - } else {
673   - $scope.numberCheck = true;
674   - $('#noExist').css('display', 'block');
675   - }
676   - }, function myError(error) {});
677 715 };
678 716  
679 717 $scope.submit = function() {
... ...