Index.cshtml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @{
  2. ViewData["Title"] = "BuyTicket";
  3. Layout = "~/Views/Shared/_Layout.cshtml";
  4. }
  5. @using LotteryWebApp.Languages;
  6. @using LotteryWebApp.Controllers;
  7. @using LotteryWebApp.Common;
  8. @model BuyTicket_ViewModel
  9. <div class="app-content content" style="position:relative">
  10. <div class="card-title text-center ">
  11. <div class="news-button-header-container" style="text-align: start; margin: 0 10px;">
  12. @await Component.InvokeAsync("SmallHeader", new { title = Lang.buy_ticket.ToUpper()})
  13. </div>
  14. </div>
  15. <div class="content-wrapper buy-ticket-container" style="margin-top:65px;">
  16. <div class="content-body">
  17. <section class="flexbox-container">
  18. <div class="row tabs-style" style=" margin-top: 30px;">
  19. <div class="col-4 tab-style">
  20. <input type="radio" id="tab-1" name="tab-group-1" @(Model.termType == Constants.NEW_YORK_BOLET_CODE ? "checked" : "")>
  21. <label for="tab-1">
  22. <a style="font-size: 11px;" href="@ViewBag.MyConfig.MyValue/BuyTicket?termType=@Constants.NEW_YORK_BOLET_CODE"
  23. class="@(Model.termType == Constants.NEW_YORK_BOLET_CODE ? "active-tab" : "")">
  24. <img style="height: 30px;" src="~/img/logo-deebef36ed9bb3f8e07e8492eecbb7ae (1) 1.png" />
  25. NEW YORK
  26. </a>
  27. </label>
  28. </div>
  29. <div class="col-4 tab-style">
  30. <input type="radio" id="tab-2" name="tab-group-1" @(Model.termType == Constants.FLORIDA_BOLET_CODE ? "checked" : "")>
  31. <label for="tab-2">
  32. <a style="font-size: 11px;" href="@ViewBag.MyConfig.MyValue/BuyTicket?termType=@Constants.FLORIDA_BOLET_CODE"
  33. class="@(Model.termType == Constants.FLORIDA_BOLET_CODE ? "active-tab" : "")">
  34. <img style="height: 30px;" src="~/img/siteLogo 2.png" />
  35. FLORIDA
  36. </a>
  37. </label>
  38. </div>
  39. <div class="col-4 tab-style">
  40. <input type="radio" id="tab-2" name="tab-group-1" @(Model.termType == Constants.BOULCHANS_CODE ? "checked" : "")>
  41. <label for="tab-2">
  42. <a style="font-size: 11px;" href="@ViewBag.MyConfig.MyValue/BuyTicket?termType=@Constants.BOULCHANS_CODE"
  43. class="@(Model.termType == Constants.BOULCHANS_CODE ? "active-tab" : "")">
  44. @*<img style="height: 30px;" src="~/img/siteLogo 2.png" />*@
  45. BOULCHANS
  46. </a>
  47. </label>
  48. </div>
  49. </div>
  50. <div id="last-term-result-data" style="margin-bottom:20px;">
  51. </div>
  52. <script>
  53. var countPage = 1;
  54. getLastTermResultData(@Model.termType, countPage);
  55. $(window).scroll(function() {
  56. if ($(window).scrollTop() == $(document).height() - $(window).height()) {
  57. // ajax call get data from server and append to the div
  58. countPage += 1;
  59. console.log("next " + countPage);
  60. getLastTermResultData(@Model.termType, countPage);
  61. }
  62. });
  63. </script>
  64. </section>
  65. </div>
  66. </div>
  67. </div>
  68. <script>
  69. stopLoading();
  70. </script>