Skip to content

Instantly share code, notes, and snippets.

View mi3tek-amb's full-sized avatar

Mitsuki Suzuki mi3tek-amb

View GitHub Profile
@mi3tek-amb
mi3tek-amb / jQuery.postGist.js
Last active December 22, 2015 17:19
pass a eval's riskiness with "to return error if jQuery objects wrapped script tags " .
(function($){
$.fn.postGist = function(option){
var option = $.extend({
id:'anonymous'
},option);
return this.each(function(){
var self = this,
postId = $(this)[0].className.split(' ')[1];
(function($){
$.fn.commentPic = function(option){
var
option = $.extend({
id:null,
pics:true,
profile:true,
blog:true,
/* jQuery.slideShow.js
*
* The MIT License (MIT) Copyright (c) 2013
* copyright : Mistuki Suzuki
*/
;(function($){
$.prototype.imageSlider = function main(){
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,
(function($){
$.fn.myPlugin = function myPlugin(options){
var that = this;
that.options = $.extend(
{
optionA:'A',
optionB:'B'
$.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,
{
@mi3tek-amb
mi3tek-amb / test.js
Last active December 24, 2015 13:09
;(function(){
var
divElement = document.getElementsByTagName('div');
divElement[0].innerHTML = '<span>hello world</span>';
})();
$.fn.fontWall = function(options){
var options = $.extend({
init:13,fontRetio:1,heightRetio:0.8
},options);
var text = $(this).text(),
text = text.split('/'),
//javaScript Library
;
(function (window, undefined) {
//initalize
var Document = document,
Window = window,
Query = function (selector, context) {
return new Query.fn.init(selector, context);
};
/* 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)
/