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 checkerUsername = new Class({ | |
/* implements */ | |
Implements:[Options,Events], | |
/* options */ | |
options: { | |
trigger: 'keyup', | |
offset: {x: 0,y: 0}, | |
minLength : 5, |
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 checkerUsername = new Class({ | |
/* implements */ | |
Implements:[Options,Events], | |
/* options */ | |
options: { | |
trigger: 'keyup', | |
offset: {x: 0,y: 0}, | |
minLength : 5, |
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
<?php | |
if(isset($_GET['username']) && $_GET['username']!="") { | |
require_once("config.php"); | |
$username = $_GET['username']; | |
if(!$handler = mysql_connect($host,$user,$pass)){ | |
throw new Exception(mysql_error($handler)); | |
} |
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 validate = new checkerUsername('username',{ | |
trigger: 'blur', | |
availableImage: 'checkmark.jpg', | |
takenImage: 'warning.jpg', | |
loading: 'ajax-loader.gif', | |
minLength : 3, | |
offset:{x: 4,y: 10}, | |
url: '' | |
}); |
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(){ | |
new MooGeo('ipvisitor',{ | |
onSuccess: function(o){ | |
var info = $('info'); | |
var ob = o.ip; | |
if(window.console){console.log('IP: '+ob);} | |
document.id('info').set('text','Your IP is: '+ob); | |
new MooGeo(o.ip,{ | |
onComplete: function(o) { | |
var lat = o.place.centroid.latitude, lon = o.place.centroid.longitude, name = o.place.name; |
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
MooGeo_map={};var MooGeo=new Class({Implements:[Options,Events],options:{endpoint:"http://query.yahooapis.com/v1/public/yql?q=",format:"json",injectScript:document.head},initialize:function(){var args=arguments;for(var i=0;i<args.length;i++){if(typeof args[i]==="object"&&typeof args[i].join==="undefined"){this.setOptions(args[i])}}if(args[0]==="ipvisitor"){this.grabIP()}if(args[0]==="visitor"){this.getVisitor()}if(typeof args[0]==="string"&&args[0]!="visitor"&&args[0]!="ipvisitor"){if(args[0]){if(/^http:\/\/.*/.test(args[0])){this.getFromURL(args[0])}else{if(/^[\d+\.?]+$/.test(args[0])){this.getFromIP(args[0])}else{this.getFromText(args[0])}}}}var lat=args[0],lon=args[1];if(typeof lat.join!=="undefined"&&args[0][1]){lat=args[0][0];lon=args[0][1]}if(isFinite(lat)&&isFinite(lon)){if(lat>-90&&lat<90&&lon>-180&&lon<180){this.getFromLatLon(lat,lon)}}},getFromIP:function(ip){var yql="select * from geo.places where woeid in (select place.woeid from flickr.places where (lat,lon) in (select Latitude,Longitude from ip. |
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
/** | |
* @constructor Animate | |
* @param (HTMLElement) el the element we want to animate | |
* @param (String) prop the CSS property we will be animating | |
* @param (Object) opt a configuration object | |
* object properties include | |
* from (Int) | |
* to (Int) | |
* time (Int) time in milliseconds. | |
* callback (Function) |
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
<?php | |
/** @Description: | |
* with this quick hack class you can get a number of tweets | |
* for a given twitter screen name formatted HTML. | |
* @Author: Adrian Statescu Dumitru | |
* --------------------------------------------------------------------- | |
* @Methods: | |
* __construct() (public) - constructor of class. initialize the object with passed actual parameters. | |
* _retrieve_status (private) - call api twitter for timeline tweets |
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 loadScript(url,callback) { | |
var script = document.createElement('script'); | |
script.setAttribute('type','text/javascript'); | |
if(script.readyState) { | |
script.onreadystatechange = function() { |
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
//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 Aaron Newton <http://clientcide.com/>, Valerio Proietti <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License. | |
MooTools.More={version:"1.2.4.4",build:"6f6057dc645fdb7547689183b2311063bd653ddf"};(function(){var c=this;var b=function(){if(c.console&&console.log){try{console.log.apply(console,arguments); | |
}catch(d){console.log(Array.slice(arguments));}}else{Log.logged.push(arguments);}return this;};var a=function(){this.logged.push(arguments);return this; | |
};this.Log=new Class({logged:[],log:a,resetLog:function(){this.logged.empty();return this;},enableLog:function(){this.log=b;this.logged.each(function(d){this.log.apply(this,d); | |
},this);return this.resetLog();},disableLog:function(){this.log=a;return this;}});Log.extend(new Log).enableLog();Log.logger=function(){return this.log.apply(this,arguments); | |
};})();Request.JSONP=new Class({Implements:[Chain,Events,Options,Log],options:{url:"",data:{},retries:0,ti |