Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Faizul committed Sep 16, 2023
1 parent 9688f4c commit 847a091
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion public/newData.json

Large diffs are not rendered by default.

30 changes: 21 additions & 9 deletions resources/views/layouts/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,37 +91,37 @@
@endif

<div class="row" style="text-align: center;">
<div class="col-4" style="border-right: 1px dotted black">
<a href="{{ route('home') }}" style="text-decoration:none; color: black;">
<div class="col-4" style="border-right: 1px dotted black" id="btnHome">
{{-- <a href="{{ route('home') }}" style="text-decoration:none; color: black;"> --}}
<i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="green" class="bi bi-house" viewBox="0 0 16 16">
<path d="M8.707 1.5a1 1 0 0 0-1.414 0L.646 8.146a.5.5 0 0 0 .708.708L2 8.207V13.5A1.5 1.5 0 0 0 3.5 15h9a1.5 1.5 0 0 0 1.5-1.5V8.207l.646.647a.5.5 0 0 0 .708-.708L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.707 1.5ZM13 7.207V13.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V7.207l5-5 5 5Z"/>
</svg>
</i>
<b>Home</b>
</a>
{{-- </a> --}}
</div>
<div class="col-4" style="border-right: 1px dotted black">
<a href="{{ route('map.index') }}" style="text-decoration:none; color: black;">
<div class="col-4" style="border-right: 1px dotted black" id="btnMap">
{{-- <a href="{{ route('map.index') }}" style="text-decoration:none; color: black;"> --}}
<i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-geo-alt" viewBox="0 0 16 16">
<path d="M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493 31.493 0 0 1 8 14.58a31.481 31.481 0 0 1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0 0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10z"/>
<path d="M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>
</svg>
</i>
<b>Map</b>
</a>
{{-- </a> --}}
</div>
<div class="col-4">
<a href="{{ route('create.index') }}" style="text-decoration:none; color: black;">
<div class="col-4" id="btnAdd">
{{-- <a href="{{ route('create.index') }}" style="text-decoration:none; color: black;"> --}}
<i>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="blue" class="bi bi-file-earmark-plus" viewBox="0 0 16 16">
<path d="M8 6.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V11a.5.5 0 0 1-1 0V9.5H6a.5.5 0 0 1 0-1h1.5V7a.5.5 0 0 1 .5-.5z"/>
<path d="M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"/>
</svg>
</i>
<b>New</b>
</a>
{{-- </a> --}}
</div>
</div>
</div>
Expand Down Expand Up @@ -172,6 +172,18 @@
function openFilter() {
$('#filter').modal('show');
}
$("#btnHome").on("click", function() {
window.location = "{{route('home')}}"
})
$("#btnMap").on("click", function() {
window.location = "{{route('map.index')}}"
})
$("#btnAdd").on("click", function() {
window.location = "{{route('create.index')}}"
})
$(".form-check-input").on("change", function() {
let placeholder = $('.form-check-input:checked').val();
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta content="CariBurger in your area. Built by burger lover." name="description" />
<meta content="CariBurger in your area. Built for your tummy." name="description" />
<meta content="fzlxtech" name="author" />
<title>Cari Burger</title>
<link rel="icon" type="image/png" href="{{ asset('favicon.png') }}">
Expand Down
11 changes: 6 additions & 5 deletions resources/views/modals/info.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
</div>
<div class="modal-body">
<p>
This website is using public data, anyone can add or edit any data provided, please be responsible. <br> <br>
CariBurger in your area. Built for your tummy.
{{-- This website is using public data, anyone can add or edit any data provided, please be responsible. <br> <br>
If you found some <span style="font-style: italic; font-weight: 900;">burger tepi jalan</span>, kindly insert their data in the <span style="font-weight: 900;">'+ New'</span> tab. Your kindness might help those who crave <span style="font-style: italic; font-weight: 900;">burger tepi jalan</span>. <br> <br>
If any issue or improvement needed, kindly email me @ faizul@fzlxtech.my or you can open an issue directly in my <a href="https://github.com/faizulramir/cariburger/issues/new" target="_blank">github</a>.
If any issue or improvement needed, kindly email me @ faizul@fzlxtech.my or you can open an issue directly in my <a href="https://github.com/faizulramir/cariburger/issues/new" target="_blank">github</a>. --}}
</p>

<div class="row">
<div class="col-6">
{{-- <div class="col-6">
- Faizul
</div>
<div class="col-6" style="text-align: right">
</div> --}}
<div class="col-12" style="text-align: right">
<a href="https://github.com/faizulramir/cariburger" target="_blank">
<i>
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
Expand Down

0 comments on commit 847a091

Please sign in to comment.