Compare commits
5
Commits
35c60ca0d9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66862856e4 | ||
|
|
69b3f079ea | ||
|
|
a42ea124cc | ||
|
|
32645c0414 | ||
|
|
12acbfc16b |
@@ -1,6 +1,3 @@
|
|||||||
//=require element-closest/closest.js
|
|
||||||
//=require whatwg-fetch/fetch.js
|
|
||||||
|
|
||||||
(function(app) {
|
(function(app) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@@ -19,9 +16,7 @@
|
|||||||
form.classList.add('form--sent');
|
form.classList.add('form--sent');
|
||||||
|
|
||||||
// Get form data
|
// Get form data
|
||||||
// Explicitly add value of submit button (browser bug in Chrome/FF?)
|
|
||||||
var data = new FormData(form);
|
var data = new FormData(form);
|
||||||
data.append('_submit', form._submit.value);
|
|
||||||
|
|
||||||
// Send the form data via AJAX
|
// Send the form data via AJAX
|
||||||
var options = {
|
var options = {
|
||||||
@@ -61,7 +56,7 @@
|
|||||||
|
|
||||||
// Display the error to the user
|
// Display the error to the user
|
||||||
form.classList.remove('form--sent');
|
form.classList.remove('form--sent');
|
||||||
form.querySelector('.form__message').innerText = err;
|
form.querySelector('.form__message').innerHTML = err;
|
||||||
|
|
||||||
// Enable the submit button again
|
// Enable the submit button again
|
||||||
form._submit.disabled = false;
|
form._submit.disabled = false;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<a href="#top" class="footer__top">↑ <?= l::get('footer.top', 'Top') ?> ↑</a>
|
<a href="#top" class="footer__top">↑ <?= l::get('footer.top', 'Top') ?> ↑</a>
|
||||||
<div>
|
|
||||||
<?= $site->copyright() ?>
|
<?= $site->copyright()->kirbytext() ?>
|
||||||
</div>
|
|
||||||
<nav class="footer__nav">
|
<nav class="footer__nav">
|
||||||
<ul>
|
<ul>
|
||||||
<li><?= l::get('footer.madewith', 'Made with') ?> <a href="https://getkirby.com">Kirby</a></li><!--
|
<li><?= l::get('footer.madewith', 'Made with') ?> <a href="https://getkirby.com">Kirby</a></li><!--
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
//=require element-closest/closest.js
|
|
||||||
//=require whatwg-fetch/fetch.js
|
|
||||||
//=require flexismooth/flexismooth.js
|
//=require flexismooth/flexismooth.js
|
||||||
|
|
||||||
(function(app) {
|
(function(app) {
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
//=require element-closest/element-closest.js
|
||||||
|
//=require promise-polyfill/dist/polyfill.js
|
||||||
|
//=require whatwg-fetch/dist/fetch.umd.js
|
||||||
Reference in New Issue
Block a user