Skip to content

Instantly share code, notes, and snippets.

View plaidpowered's full-sized avatar
:shipit:
Always Be Committing

Paul plaidpowered

:shipit:
Always Be Committing
View GitHub Profile
@bastianallgeier
bastianallgeier / controllers--contact.php
Created October 1, 2014 19:36
Plain contactform example for Kirby 2
<?php
return function($site, $pages, $page) {
$alert = null;
if(get('submit')) {
$data = array(
'name' => get('name'),
/*
Usage:
document.addEventListener("swipe", function(ev){
console.log("swipe: "+JSON.stringify(ev));
});
*/
(function() {
var CURRENT_TOUCH, EVENT, FIRST_TOUCH, GESTURE, HOLD_DELAY, TAPS, TOUCH_TIMEOUT, _angle, _capturePinch, _captureRotation, _cleanGesture, _distance, _fingersPosition, _getTouches, _hold, _isSwipe, _listenTouches, _onTouchEnd, _onTouchMove, _onTouchStart, _swipeDirection, _trigger;
TAPS = null;