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($){ | |
$.fn.postGist = function(option){ | |
var option = $.extend({ | |
id:'anonymous' | |
},option); | |
return this.each(function(){ | |
var self = this, | |
postId = $(this)[0].className.split(' ')[1]; |
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($){ | |
$.fn.commentPic = function(option){ | |
var | |
option = $.extend({ | |
id:null, | |
pics:true, | |
profile:true, | |
blog:true, |
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
/* jQuery.slideShow.js | |
* | |
* The MIT License (MIT) Copyright (c) 2013 | |
* copyright : Mistuki Suzuki | |
*/ | |
;(function($){ | |
$.prototype.imageSlider = function main(){ | |
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
jQuery.fn.transform = function(setting,callback,elem,undefined){ | |
return this.each(function(){ | |
var | |
self = this, | |
elem = elem ? elem : this, | |
loop = setting.loop, | |
type = setting.type, | |
duration = setting.duration, |
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($){ | |
$.fn.myPlugin = function myPlugin(options){ | |
var that = this; | |
that.options = $.extend( | |
{ | |
optionA:'A', | |
optionB:'B' |
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
$.id = function(selector, context){ | |
return new jQuery.prototype.init.id(selector, context); | |
}; | |
$.html = function(selector, context){ | |
return new jQuery.prototype.init.html(selector, context); | |
}; | |
$.extend( | |
jQuery.prototype.init, | |
{ |
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(){ | |
var | |
divElement = document.getElementsByTagName('div'); | |
divElement[0].innerHTML = '<span>hello world</span>'; | |
})(); |
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.fontWall = function(options){ | |
var options = $.extend({ | |
init:13,fontRetio:1,heightRetio:0.8 | |
},options); | |
var text = $(this).text(), | |
text = text.split('/'), |
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
//javaScript Library | |
; | |
(function (window, undefined) { | |
//initalize | |
var Document = document, | |
Window = window, | |
Query = function (selector, context) { | |
return new Query.fn.init(selector, context); | |
}; |
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
/* animate JS | |
/ | |
/ var Element = document.getElementById('id'); | |
/ animate(Element).start({opacity:0},1000,function(){...},'easeInOutQuad') | |
/ | |
/ @attributes = [array]{ prop : chenge in value (int) } | |
/ @duration = int (msec) | |
/ @callback = function(){...} | |
/ @easing = 'name of type' (strings) | |
/ |
OlderNewer