Browse Source

new cdn source to fix time out problems and releas submitt butten nur im fehlerfall

master
Christopher Bross 5 years ago
parent
commit
ebff9097b4
  1. 6
      frontend/index.html
  2. 11
      frontend/js/form.js

6
frontend/index.html

@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
<!-- Font Awesome icons (free version)-->
<script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js" crossorigin="anonymous"></script>
<!-- Google fonts-->
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet" type="text/css" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
</head>
@ -708,7 +708,9 @@ @@ -708,7 +708,9 @@
<!-- Bootstrap core JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
<!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script> -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Third party plugin JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<!-- Contact form JS-->

11
frontend/js/form.js

@ -46,7 +46,7 @@ $(function () { @@ -46,7 +46,7 @@ $(function () {
.append("<script src='js/scripts.js'></script>");
//hide sendMessageButton
$("#sendMessageButton").style.visibility = "hidden";
// $this.style.visibility = "hidden";
//clear all fields
$("#form_anmelden").trigger("reset");
@ -81,13 +81,16 @@ $(function () { @@ -81,13 +81,16 @@ $(function () {
.append("</div>")
.append("<script src='js/scripts.js'></script>");
},
complete: function () {
setTimeout(function () {
$this.prop("disabled", false); // Re-enable submit button when AJAX call is complete
}, 1000);
},
// complete: function () {
// setTimeout(function () {
// $this.prop("disabled", false); // Re-enable submit button when AJAX call is complete
// }, 1000);
// },
});
},
filter: function () {

Loading…
Cancel
Save