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
$LAB.script = function(src){ | |
$('head').append('<script src="' + src + '"></script>'); | |
return $LAB; | |
}; | |
$LAB.wait = function(fn){ | |
fn && fn(); | |
return $LAB; | |
}; |
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
/* load http://www.modernizr.com/ then, do following for Retina display. */ | |
.className { | |
background:url([email protected]); /* low res img */ | |
} | |
@media only screen and (-webkit-min-device-pixel-ratio:2) { | |
.backgroundsize .className { | |
background:url([email protected]); /* high res img */ | |
} | |
} |
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
<!-- | |
see http://www.modernizr.com/docs/#backgroundsize | |
--> | |
<script src="modernizr-1.7.min.js"></script> |
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
window.loadYoutube = function(params){ | |
swfobject.embedSWF( | |
'http://www.youtube.com/v/' + params.videoId + '?enablejsapi=1&version=3', | |
params.placeholder, | |
params.width, | |
params.height, | |
'9.0.0', | |
'/rootdir/common/js/libs/expressInstall.swf', | |
null, | |
{ wmode: 'transparent' } |
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
.foo{ | |
background:url(hoge.png) 0 0 no-repeat; | |
_background:none; | |
_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='fixed', src='hoge.png'); | |
*zoom:1; /* ie */ | |
} |
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
/* author:Takazudo */ | |
$.fn.alphaBg = function(options){ | |
return this.each(function(){ | |
var src = options.src; | |
var $el = $(this); | |
if(!$.browser.ie6){ | |
$el.css('background-image', 'url(' + src + ')'); | |
}else{ | |
$el.css('filter', "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='fixed', src='" + src + "')"); |
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
/* bigscope */ | |
(function($, window, document, undefined){ | |
// your codes here | |
})(jQuery, this, this.document); |
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 lang="en" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>$.gmapV3</title> | |
<meta name="description" content=""> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script src="jquery.gmapv3.js"></script> |
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 lang="en" class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>jQuery.requireCss</title> | |
<meta name="description" content=""> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | |
<script src="jquery.requreCss.js"></script> | |
<script> |
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
$.widget('ui.orewidget', { | |
... | |
_create: function(){ | |
this.widgetEventPrefix = 'ore.'; | |
this._eventify(); | |
return this; | |
}, | |
_eventify: function(){ | |
var self = this; | |
this.element.bind('click', function(e){ |