Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions resources/views/community.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,10 @@ class="text-[#1C4DA1] text-2xl md:text-4xl leading-[44px] font-medium font-['Mon
{{-- <script src="{{asset('js/leaflet.markercluster.js')}}" type="text/javascript"/> --}}
@endpush

@push('scripts')
@section('extra-js')
<script src="https://cdn.jsdelivr.net/npm/nice-select2@2.1.0/dist/js/nice-select2.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Initialize Nice Select for the country select element
const select = document.getElementById('country-select');
const niceSelect = NiceSelect.bind(select, {
Expand Down Expand Up @@ -808,6 +809,7 @@ function populateTeacherInfo(teachers, city = null) {
}
}
mymap.setView([centerInfo.latitude, centerInfo.longitude], centerInfo.zoom);
});
</script>
<script src="{{ asset('js/countriesGeoCentroids.js') }}" type="text/javascript"></script>

Expand All @@ -832,6 +834,6 @@ function populateTeacherInfo(teachers, city = null) {
triggerAnimations(target);
});
</script>
@endpush
@endsection

</section>
Loading