LaosIndex.cshtml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. 
  2. @{
  3. ViewBag.Title = "Laos";
  4. Layout = "~/Views/Shared/_LayoutHome.cshtml";
  5. }
  6. <link rel="stylesheet" href="~/Content/assets/css/animate.css" />
  7. <link rel="stylesheet" href="~/Content/assets/css/home-listening.css" />
  8. <link rel="stylesheet" href="~/Content/assets/css/m-home-listen.css" />
  9. @*<link rel="stylesheet" href="~/Content/assets/css/main-listening.css" />*@
  10. <script src="~/Content/assets/js/wow.min.js" type="text/javascript"></script>
  11. <script src="~/Content/assets/js/home-listening.js" type="text/javascript"></script>
  12. <script src="~/Content/assets/js/m-home-listen.js" type="text/javascript"></script>
  13. @using NEducation.Content.Texts;
  14. @using NEducation.Controllers;
  15. @using NEducation.Code;
  16. @{
  17. String isSub = Session["isSub"] as String;
  18. UserProfile profile = Session["profile"] as UserProfile;
  19. }
  20. @section navMenu{
  21. <a href="/Home/" class="nav-link">@Lang.Home</a>
  22. <a href="/Home/EnglishIndex/" class="navigation-all nav-link" typeLanguage="@UtilsController.Constant.ENGLISH">@Lang.english</a>
  23. <a href="/Home/VietnameseIndex/" class="navigation-all nav-link" typeLanguage="@UtilsController.Constant.VIETNAMESE">@Lang.vietnamese</a>
  24. <a href="/Home/LaosIndex/" class="navigation-all nav-link" typeLanguage="@UtilsController.Constant.LAOS">@Lang.laos</a>
  25. @*<a href="/Ebook/" class="nav-link">
  26. @Lang.Ebook
  27. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  28. </a>*@
  29. <div class="dropdown nav-link">
  30. <button onclick="myFunction()" class="dropbtn">
  31. E-Library
  32. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  33. </button>
  34. <div id="myDropdown" class="dropdown-content">
  35. <a href="/Ebook/">@Lang.Ebook</a>
  36. <a href="/Ebook/Video">Children's Video</a>
  37. </div>
  38. </div>
  39. }
  40. @section menu{
  41. <a href="/Home/" class="header-menu-link ">@Lang.Home</a>
  42. <a href="/Home/EnglishIndex/" class="navigation-all header-menu-link" typeLanguage="@UtilsController.Constant.ENGLISH">@Lang.english</a>
  43. <a href="/Home/VietnameseIndex/" class="navigation-all header-menu-link" typeLanguage="@UtilsController.Constant.VIETNAMESE">@Lang.vietnamese</a>
  44. <a href="/Home/LaosIndex/" class="navigation-all header-menu-link" typeLanguage="@UtilsController.Constant.LAOS">@Lang.laos</a>
  45. @*<a href="/Ebook/" class="header-menu-link ">
  46. @Lang.Ebook
  47. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  48. </a>*@
  49. <li class="menu-item-has-children header-menu-link ">
  50. <a href="#" class="">
  51. E-Library
  52. <img src="~/Content/assets/imgs/giphy.gif" style=" width: 50px;" />
  53. </a>
  54. <ul class="" style=" margin-left: 20px;">
  55. <li><a href="/Ebook/">@Lang.Ebook</a></li>
  56. <li><a href="/Ebook/Video">Children's Video</a></li>
  57. </ul>
  58. </li>
  59. }
  60. <!-- Bottom -->
  61. <div class="home-bottom">
  62. <img class="home-method-bg" src="~/Content/assets/imgs/home_content_bg.svg" />
  63. <div class="home-cover">
  64. <img class="bottom-image wow bounceIn" data-wow-duration="3s" alt="Rinh VOCA Music về nhà nào" src="~/Content/assets/imgs/home_register.png" />
  65. <p class="bottom-title">
  66. @Lang.DoYouWantToGoodAtLaos
  67. </p>
  68. <p class="bottom-text">
  69. @Lang.RegisterWithUnitelEduLao
  70. </p>
  71. @{
  72. if (isSub == "true")
  73. {
  74. <a class="bottom-button" href="/Common/Course?courseType=@UtilsController.Constant.LAO_LISTEN">
  75. @Lang.JoinWithUs
  76. </a>
  77. }
  78. else if (profile != null)
  79. {
  80. <a class="bottom-button" href="#" onclick="registerAction(@UtilsController.Constant.LAOS); return 0;">
  81. @NEducation.Content.Texts.Lang.Register
  82. </a>
  83. }
  84. else
  85. {
  86. <a class="bottom-button" data-toggle="modal" data-target="#signup-dialog" href="#">
  87. @NEducation.Content.Texts.Lang.Register
  88. </a>
  89. }
  90. }
  91. </div>
  92. </div>
  93. <!-- MODAL -->
  94. <style type="text/css">
  95. #home-video {
  96. text-align: center;
  97. }
  98. #home-video .modal-dialog {
  99. display: inline-block;
  100. width: unset;
  101. }
  102. #home-video .modal-content {
  103. padding: 30px;
  104. border-radius: 10px;
  105. }
  106. #home-video .modal-video-close {
  107. position: absolute;
  108. right: -8px;
  109. top: -8px;
  110. background: #fff;
  111. border-radius: 50%;
  112. height: 21px;
  113. width: 20px;
  114. cursor: pointer;
  115. z-index: 2;
  116. }
  117. #home-video .modal-video-close i {
  118. font-size: 25px;
  119. color: #2e2e2e;
  120. line-height: 22px;
  121. transition: all 0.2s linear;
  122. }
  123. #home-video .modal-video-close:hover i {
  124. color: #3c3c3c;
  125. }
  126. #home-video iframe {
  127. max-width: 100%;
  128. max-height: 100%;
  129. }
  130. </style>
  131. @*<div class="modal fade" id="home-video" tabindex="-1" role="dialog">
  132. <div class="modal-dialog" role="document">
  133. <div class="modal-content">
  134. <span class="modal-video-close" data-dismiss="modal"><i class="fa fa-times-circle"></i></span>
  135. <iframe width="680" height="495" src="https://www.youtube.com/embed/Fd7xJx4Qf9Q?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  136. </div>
  137. </div>
  138. </div>*@
  139. <script src="~/Content/assets/js/jssor.slider.min.js" type="text/javascript"></script>
  140. <script src="~/Content/assets/js/home.js" type="text/javascript"></script>
  141. <script>
  142. $(document).ready(function () {
  143. // Optimalisation: Store the references outside the event handler:
  144. var $window = $(window);
  145. var $panew = $('#top-wide');
  146. var $panem = $('#top-m');
  147. function checkWidth() {
  148. var windowsize = $window.width();
  149. if (windowsize > 440) {
  150. //if the window is greater than 440px wide then turn on jScrollPane..
  151. $panew.css('display', '');
  152. $panem.css('display', 'none');
  153. } else {
  154. $panew.css('display', 'none');
  155. $panem.css('display', '');
  156. }
  157. }
  158. // Execute on load
  159. checkWidth();
  160. // Bind event listener
  161. $(window).resize(checkWidth);
  162. });
  163. </script>