Fixed mistakes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user