This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demo http://codepen.io/AlexEmashev/pen/BKgQdx | |
(function ($) { | |
$.fn.swipeDetector = function (options) { | |
// States: 0 - no swipe, 1 - swipe started, 2 - swipe released | |
var swipeState = 0; | |
// Coordinates when swipe started | |
var startX = 0; | |
var startY = 0; | |
// Distance of swipe | |
var pixelOffsetX = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html<?php print $html_attributes; ?>> | |
<head> | |
<?php print $head; ?> | |
<title><?php print $head_title; ?></title> | |
<?php print $styles; ?> | |
<?php print $head_scripts; ?> | |
</head> | |
<body<?php print $body_attributes;?>> |