Compare commits

...
5 Commits
Author SHA1 Message Date
lukas 66862856e4 Add Promise polyfill for IE 2018-10-28 15:40:20 +01:00
lukas 69b3f079ea Extract polyfills into a separate JS file 2018-10-28 15:08:27 +01:00
lukas a42ea124cc Dynamic copyright 2018-01-01 13:06:38 +01:00
lukas 32645c0414 Compatibility with element-closest v2.0.2 2017-06-04 22:36:43 +02:00
lukas 12acbfc16b Support for Uniform v3 2017-06-04 22:06:54 +02:00
4 changed files with 7 additions and 11 deletions
+1 -6
View File
@@ -1,6 +1,3 @@
//=require element-closest/closest.js
//=require whatwg-fetch/fetch.js
(function(app) {
'use strict';
@@ -19,9 +16,7 @@
form.classList.add('form--sent');
// Get form data
// Explicitly add value of submit button (browser bug in Chrome/FF?)
var data = new FormData(form);
data.append('_submit', form._submit.value);
// Send the form data via AJAX
var options = {
@@ -61,7 +56,7 @@
// Display the error to the user
form.classList.remove('form--sent');
form.querySelector('.form__message').innerText = err;
form.querySelector('.form__message').innerHTML = err;
// Enable the submit button again
form._submit.disabled = false;
+3 -3
View File
@@ -1,8 +1,8 @@
<footer class="footer">
<a href="#top" class="footer__top">↑ <?= l::get('footer.top', 'Top') ?> ↑</a>
<div>
<?= $site->copyright() ?>
</div>
<?= $site->copyright()->kirbytext() ?>
<nav class="footer__nav">
<ul>
<li><?= l::get('footer.madewith', 'Made with') ?> <a href="https://getkirby.com">Kirby</a></li><!--
-2
View File
@@ -1,5 +1,3 @@
//=require element-closest/closest.js
//=require whatwg-fetch/fetch.js
//=require flexismooth/flexismooth.js
(function(app) {
+3
View File
@@ -0,0 +1,3 @@
//=require element-closest/element-closest.js
//=require promise-polyfill/dist/polyfill.js
//=require whatwg-fetch/dist/fetch.umd.js