Kaynağa Gözat

scroll to download when click login and register

staging
azri 2 hafta önce
ebeveyn
işleme
35b25ceed3

+ 0
- 4
content/trees/navigation/main_menu.yaml Dosyayı Görüntüle

@@ -19,7 +19,3 @@ tree:
19 19
     id: c23fcb6b-2e4e-4626-a525-447d3e1cfb7f
20 20
     title: Contact
21 21
     url: /contact
22
-  -
23
-    id: e913b861-ce87-448d-8243-7fbd48b53cb5
24
-    title: Register
25
-    url: 'https://thebola.club/register'

+ 6
- 1
public/js/main.js Dosyayı Görüntüle

@@ -11031,7 +11031,12 @@ $(document).ready(function () {
11031 11031
     $(inputDate).attr("max", maxDate);
11032 11032
     resetDate();
11033 11033
   }
11034
-  $("#booknow-btn").on('click', function () {
11034
+  $("#register-btn").on('click', function (e) {
11035
+    e.preventDefault();
11036
+    document.getElementById("download-container").scrollIntoView();
11037
+  });
11038
+  $("#signin-btn").on('click', function (e) {
11039
+    e.preventDefault();
11035 11040
     document.getElementById("download-container").scrollIntoView();
11036 11041
   });
11037 11042
   $("#select-location").on('change', function () {

+ 8
- 1
resources/js/main.js Dosyayı Görüntüle

@@ -94,10 +94,17 @@ $(document).ready(function () {
94 94
 
95 95
     }
96 96
 
97
-    $("#booknow-btn").on('click', function(){
97
+    $("#register-btn").on('click', function(e){
98
+        e.preventDefault();
99
+        document.getElementById("download-container").scrollIntoView();
100
+    })
101
+
102
+    $("#signin-btn").on('click', function(e){
103
+        e.preventDefault();
98 104
         document.getElementById("download-container").scrollIntoView();
99 105
     })
100 106
 
107
+
101 108
     $("#select-location").on('change', function(){
102 109
 
103 110
         resetDate()

+ 4
- 1
resources/views/partials/_navbar.antlers.html Dosyayı Görüntüle

@@ -24,7 +24,10 @@
24 24
                             </li>
25 25
                         {{ /nav:main_menu }}
26 26
                         <li class="nav-item my-1">
27
-                            <a href="https://thebola.club/login" class="nav-link db-btn" style="padding: 0.5rem 2rem" href="#">Sign in</a>
27
+                            <a id="register-btn" href="{{ url }}" class="nav-link" aria-current="page"> Register </a>
28
+                        </li>
29
+                        <li class="nav-item my-1">
30
+                            <a id="signin-btn" href="https://thebola.club/login" class="nav-link db-btn" style="padding: 0.5rem 2rem" href="#">Sign in</a>
28 31
                         </li>
29 32
                     </ul>
30 33
                 </div>

+ 1
- 0
users/dev@mirfalah.com.yaml Dosyayı Görüntüle

@@ -1,4 +1,5 @@
1 1
 name: mirfalah
2 2
 super: true
3
+email: dev@mirfalah.com
3 4
 id: 0fe06f55-99d6-459d-8bfe-0ba1055ae246
4 5
 password_hash: $2y$10$0rntgPgUqEATzto5vio74eh/vy/EZtn2zGroTkykNJe7OS/T/.vGa

Loading…
İptal
Kaydet