Skip to content

Commit de73fed

Browse files
committed
resources: errors: Fix onclick issue
Signed-off-by: Dicky Herlambang (花) <[email protected]>
1 parent 0d491b1 commit de73fed

File tree

10 files changed

+8
-14
lines changed

10 files changed

+8
-14
lines changed

public/ext-js/kao-main.js

-4
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,3 @@ function wmLayout_TextInputRestore() {
767767
wmRadioRotationD.checked = true
768768
}
769769
}
770-
771-
function returnToHome() {
772-
window.location.href = "/";
773-
}

resources/views/errors/401.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">You are not authorized to access this page.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/402.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">PLACEHOLDER</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/403.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">You do not have access this for this page.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/404.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">It may already move or deleted permanently.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/419.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">Please wait and try again later.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/429.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">Please wait and try again later.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/500.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">It may already move or deleted permanently.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/errors/503.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="text-xs lg:text-lg text-center font-medium font-quicksand text-lt4">Please wait and try again later.</h3>
1313
</div>
1414
<div class="mt-10 px-4">
15-
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="returnToHome()" data-ripple-light="true">Go Back Home</button>
15+
<button type="button" id="submitBtn_1" class="p-4 font-quicksand font-medium bg-rt1 text-lt1 rounded-lg cursor-pointer w-full h-14" onclick="window.location.href='/'" data-ripple-light="true">Go Back Home</button>
1616
</div>
1717
</section>
1818
</div>

resources/views/layouts/clean-layout.blade.php

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
</head>
55
<body class="bg-origin-padding bg-top bg-scroll bg-dt1 bg-no-repeat min-h-screen grid grid-cols-1 lg:grid-cols-2" style="background-image: url('{{ asset('assets/home.avif') }}');">
66
@yield('content')
7-
<script async type="text/javascript" src="/ext-js/kao-controller.js"></script>
8-
<script async type="text/javascript" src="/ext-js/kao-main.js"></script>
97
<script async type="text/javascript" src="https://unpkg.com/@material-tailwind/html@latest/scripts/ripple.js"></script>
108
</body>
119
</html>

0 commit comments

Comments
 (0)