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
/** | |
* $.fixedConsole | |
* dom console | |
*/ | |
$.FixedConsole = function(){ | |
this.element = null; | |
this.max = 20; | |
}; | |
$.FixedConsole.prototype = { | |
init: 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
/* jQuery1.4.3 has bug? IE couldn't catch scrollTop using $.fn.scrollTop */ | |
function scrollTop(){ | |
return $(document).scrollTop() || document.documentElement.scrollTop || document.body.scrollTop || window.pageYOffset || 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
//----------- simply do this like json ----------- | |
define({ | |
color: black, | |
size: 170 | |
}); | |
//----------- or you can run something in it ----------- | |
define(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
/** | |
* $.fn.gMap | |
* $('div').gMap will attach googleMap in it | |
* 'lat' and 'lng' needs to be specified via object. | |
* depends: google maps API v3 | |
*/ | |
$.fn.gMap = function(options){ | |
if(!options.hasOwnProperty('lat')){ | |
throw new Error('"lat" needs to be specified.'); |
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
/** | |
* $.gMapLoader | |
*/ | |
$.GMapLoader = function(){}; | |
$.GMapLoader.prototype = { | |
options: { | |
language: 'en', | |
sensor: false, | |
callbackProperty: 'gMapCallback' |
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
/* something to include wordpress page */ | |
$s = $_SERVER; | |
$name = $s['SERVER_NAME']; | |
$url = strpos($s['SERVER_PROTOCOL'], 'HTTPS') ? 'https://' : 'http://'; | |
$url .= $name . '/press/index.php'; | |
$url = htmlspecialchars($url); | |
echo file_get_contents($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
/** | |
* $.ui.overflowKiller | |
* attach this to 'html' | |
*/ | |
$.widget('ui.overflowKiller', { | |
options: { | |
killXY: false, | |
killX: true, | |
killY: false | |
}, |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<title>socialTools</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script src="scripts.js"></script> | |
<script> | |
jQuery(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
<div class="mod-globalLoading ui-globalLoading"> | |
<div class="overlay"></div> | |
<div class="img"></div> | |
<!-- /mod-globalLoading --></div> |
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
/* | |
* $.ui.swipable | |
* | |
* http://github.com/Takazudo/jQuery.ui.swipable | |
* version 0.1.3a (2010/12/13) | |
* Copyright (c) 2010 Takeshi Takatsudo (takazudo[at]gmail.com) | |
* MIT license | |
* | |
============================================================================= | |
depends on |