|
@@ -7,7 +7,7 @@
|
|
|
@endphp
|
|
@endphp
|
|
|
@if (isset($home->footer_image) && $home->footer_image != '')
|
|
@if (isset($home->footer_image) && $home->footer_image != '')
|
|
|
<div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
<div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->footer_url }}"><img src="/files/{{ $home->footer_image }}" width="300" alt="" style="border:1px solid gray;"></a>
|
|
|
|
|
|
|
+ <a href="{{ $home->footer_url }}"><img src="/files/{{ $home->footer_image }}" alt="" style="border:1px solid gray;"></a>
|
|
|
</div>
|
|
</div>
|
|
|
@php
|
|
@php
|
|
|
$count += 1;
|
|
$count += 1;
|
|
@@ -15,7 +15,7 @@
|
|
|
@endif
|
|
@endif
|
|
|
@if (isset($home->footer_image_2) && $home->footer_image_2 != '')
|
|
@if (isset($home->footer_image_2) && $home->footer_image_2 != '')
|
|
|
<div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
<div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->footer_url_2 }}"><img src="/files/{{ $home->footer_image_2 }}" width="300" alt="" style="border:1px solid gray;"></a>
|
|
|
|
|
|
|
+ <a href="{{ $home->footer_url_2 }}"><img src="/files/{{ $home->footer_image_2 }}" alt="" style="border:1px solid gray;"></a>
|
|
|
</div>
|
|
</div>
|
|
|
@php
|
|
@php
|
|
|
$count += 1;
|
|
$count += 1;
|
|
@@ -23,7 +23,7 @@
|
|
|
@endif
|
|
@endif
|
|
|
@if (isset($home->footer_image_3) && $home->footer_image_3 != '')
|
|
@if (isset($home->footer_image_3) && $home->footer_image_3 != '')
|
|
|
<div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
<div class="item {{ $count == 0 ? 'active' : '' }}">
|
|
|
- <a href="{{ $home->footer_url_3 }}"><img src="/files/{{ $home->footer_image_3 }}" width="300" alt="" style="border:1px solid gray;"></a>
|
|
|
|
|
|
|
+ <a href="{{ $home->footer_url_3 }}"><img src="/files/{{ $home->footer_image_3 }}" alt="" style="border:1px solid gray;"></a>
|
|
|
</div>
|
|
</div>
|
|
|
@php
|
|
@php
|
|
|
$count += 1;
|
|
$count += 1;
|
|
@@ -35,9 +35,26 @@
|
|
|
@endif
|
|
@endif
|
|
|
</div>
|
|
</div>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+ document.addEventListener("DOMContentLoaded", updateFooterAdvHeight);
|
|
|
|
|
+ window.addEventListener("load", updateFooterAdvHeight);
|
|
|
|
|
+ window.addEventListener("resize", updateFooterAdvHeight);
|
|
|
|
|
+
|
|
|
|
|
+ let footer_adv;
|
|
|
|
|
+ let footer;
|
|
|
|
|
+
|
|
|
|
|
+ function updateFooterAdvHeight() {
|
|
|
|
|
+ footer_adv = document.getElementById("footer_adv");
|
|
|
|
|
+ footer = document.querySelector("footer");
|
|
|
|
|
+
|
|
|
|
|
+ if (typeof footer_adv !== "undefined" && typeof footer !== "undefined") {
|
|
|
|
|
+ let height = footer_adv.getBoundingClientRect().height;
|
|
|
|
|
+ footer.style.setProperty("--footer_adv-height", `${height}px`);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
function hideFooterAdv()
|
|
function hideFooterAdv()
|
|
|
{
|
|
{
|
|
|
- document.getElementById('footer_adv').style.visibility = 'hidden';
|
|
|
|
|
|
|
+ document.getElementById('footer_adv').classList.add("hidden");
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<!-- footer
|
|
<!-- footer
|