This file contains hidden or 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
| var touchstartX = 0; | |
| var touchstartY = 0; | |
| var touchendX = 0; | |
| var touchendY = 0; | |
| var gesuredZone = document.getElementById('gesuredZone'); | |
| gesuredZone.addEventListener('touchstart', function(event) { | |
| touchstartX = event.screenX; | |
| touchstartY = event.screenY; |
This file contains hidden or 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
| <?php | |
| # Simple Image Resizing API | |
| # | |
| # A simple HTTP API for resizing an image (given by the URL). | |
| # This small and dirty ad hoc web application is entirely written in | |
| # PHP 5.3+ with GD. The source code is distributed under Public License. | |
| function is_url($string, $scheme = null) { | |
| $url = parse_url($string); | |
| if (!isset($url['scheme'])) return false; |