43 lines
No EOL
1.3 KiB
PHP
43 lines
No EOL
1.3 KiB
PHP
@extends('layouts.layout')
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<h2>Liga-Spiel Einstellungen</h2>
|
|
<div class="lead">{{ $season->name }}</div>
|
|
|
|
|
|
<div class="dropdown">
|
|
<button onclick="myFunction()" class="dropbtn">Dropdown</button>
|
|
<div id="myDropdown" class="dropdown-content">
|
|
<a href="#">Link 1</a>
|
|
<a href="#">Link 2</a>
|
|
<a href="#">Link 3</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
/* When the user clicks on the button,
|
|
toggle between hiding and showing the dropdown content */
|
|
function myFunction() {
|
|
document.getElementById("myDropdown").classList.toggle("show");
|
|
}
|
|
|
|
// Close the dropdown menu if the user clicks outside of it
|
|
window.onclick = function(event) {
|
|
if (!event.target.matches('.dropbtn')) {
|
|
|
|
var dropdowns = document.getElementsByClassName("dropdown-content");
|
|
var i;
|
|
for (i = 0; i < dropdowns.length; i++) {
|
|
var openDropdown = dropdowns[i];
|
|
if (openDropdown.classList.contains('show')) {
|
|
openDropdown.classList.remove('show');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
@endsection |