Fixed mistakes

This commit is contained in:
Anders
2020-06-25 15:11:59 +02:00
parent 8bda01c1dc
commit 1d08ddbf58
4 changed files with 10 additions and 28 deletions
@@ -21,28 +21,5 @@
@endsection
@section("scripts")
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(){
// Handler when the DOM is fully loaded
start();
});
function start() {
document.getElementById('input').addEventListener ('click', toggleCall, false);
}
function toggleCall() {
var elm = document.getElementById('input');
if(elm.checked) {
document.getElementById('call').classList.remove("btn-disabled");
document.getElementById('call').href = "tel:+4556304566";
}
else
{
document.getElementById('call').classList.add("btn-disabled");
document.getElementById('call').removeAttribute("href");
}
}
</script>
@endsection