Explorar o código

js bấm nút ở home

vuDUng hai 2 semanas
pai
achega
cd20c433ec
Modificáronse 1 ficheiros con 23 adicións e 3 borrados
  1. 23 3
      SicboSub/SicboSub.Web/Views/Home/Index.cshtml

+ 23 - 3
SicboSub/SicboSub.Web/Views/Home/Index.cshtml

@@ -44,13 +44,13 @@
         </div>
     </div>
     <div class="frame-parent3">
-        <div class="rectangle-parent">
+        <div class="rectangle-parent" style="cursor: pointer;" onclick="handleRegister()">
             <div class="rectangle-div">
             </div>
             <!-- Register Button -->
             <div class="button-label">Register</div>
         </div>
-        <div class="rectangle-parent">
+        <div class="rectangle-parent" style="cursor: pointer;" onclick="handleBuyMore()">
             <div class="rectangle-div">
             </div>
             <!-- Buy more Button -->
@@ -58,7 +58,7 @@
         </div>
 
         <!-- PLAY BUTTON COMPLEX -->
-        <div class="button-small">
+        <div class="button-small" style="cursor: pointer;" onclick="handlePlay()">
             <div class="button-small-child"></div>
             <div class="button-small-item"></div>
 
@@ -84,3 +84,23 @@
     <!-- <img class="home-barpro-icon" alt=""> -->
 
 </div>
+
+<script>
+    function handleRegister() {
+        // TODO: Implement register logic
+        alert('Register clicked!');
+        // window.location.href = '/Home/Register';
+    }
+
+    function handleBuyMore() {
+        // TODO: Implement buy more logic
+        alert('Buy more clicked!');
+        // window.location.href = '/Home/BuyMore';
+    }
+
+    function handlePlay() {
+        // TODO: Implement play logic
+        alert('Play clicked!');
+        // window.location.href = '/Home/Play';
+    }
+</script>