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
function unicode2utf8($c) | |
{ | |
$output=""; | |
if($c < 0x80) | |
{ | |
return chr($c); | |
} | |
else if($c < 0x800) | |
{ |
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
var swipeFunc = function() { | |
this._swipe_direction = ['left','right']; | |
this._y_diff = -1; | |
this._x_diff = -1; | |
this._x_min_length = 30; | |
this.touches = { | |
'touchstart': {'entered':false,'x':-1, 'y':-1}, | |
'touchmove' : {'entered':false,'x':-1, 'y':-1}, | |
'touchend' : false, | |
'direction' : 'undetermined' |
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
/** | |
* Get instance names of an object | |
* | |
* Returns instances | |
*/ | |
function getInstancesOf() | |
{ | |
var instances = []; | |
for(var v in window) { |
NewerOlder