This file contains hidden or 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(){ | |
$(".btn-open-block").click(function(event){ | |
event.preventDefault(); | |
var $el = $(this); | |
var hasOpenClass = $el.hasClass('flg-open'); | |
$el.next().stop(true, true).slideToggle(200); | |
$el.toggleClass("flg-close", hasOpenClass); | |
$el.toggleClass("flg-open", !hasOpenClass); |
This file contains hidden or 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(function($) { | |
$(expr).bgSwitcher({ | |
switchHandler: function() { | |
var | |
// アニメーション対象の要素 | |
node = this.node, | |
// 要素のオフセット | |
offset = node.offset(), |
This file contains hidden or 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
// Ajaxを使用する場合 | |
jQuery(expr).flexigrid({ | |
onSuccess: function() { | |
var $ = jQuery; | |
// 対象tableのtbody内にあるtrを取得 | |
$('table.hoge tbody tr').each(function() { | |
// trをキャッシュ | |
var tr = $(this); | |
// tdの中にdivがあるので取得 | |
$('div', tr).each(function() { |
This file contains hidden or 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:(function(b){var c=false,d=document.createTextNode("Add Tag"),f=[];FlowApi.prototype._trigger=FlowApi.prototype.trigger;FlowApi.prototype.trigger=function(){if(c)arguments[1]+=" "+f;return this._trigger.apply(this,arguments)};b("#chat_controls").append(b("<button/>",{"class":["app-button app-button-toggleable ui-corner-all ui-state-default app-button-bevel",c?"ui-state-active":undefined].join(" "),css:{top:"2px",left:"10px"},click:function(){var g=+(navigator.language.toLowerCase()==="ja"),h=["Please input tags split by space\n(# is optional)", "\u30bf\u30b0\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u5165\u529b\u3057\u3066\u4e0b\u3055\u3044\u3002\n(#\u306f\u7701\u7565\u53ef\u80fd\u3067\u3059)"],i=function(){var a=prompt(h[g]);if(!a)return false;a=a.split(/ |\u3000/);for(var e in a)a[e].match(/^#/)||(a[e]="#"+a[e]);return f=a=a.join(" ")};return function(){if(c=!c){var a=i();if(!a)return c=!c;b(this).addClass("ui-state-active");d.nodeValue=a}else{b(this).removeClass("ui-state-active");d. |
This file contains hidden or 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(function($) { | |
$('#example').calendar({ | |
addDay: function(td) { | |
// 目的のリンクへ飛ばすためのa要素を作成 | |
var link = $('<a/>') | |
.text(this.day) | |
.attr('href', 'example.html?year='+ this.year +'&month='+ this.month +'&day='+ this.day) | |
// td要素を一度空にして、上記で作成したa要素を追加 | |
td.empty().append(link); | |
} |
This file contains hidden or 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(function($) { | |
// 対象のテキストエリア | |
var textarea = $('textarea'); | |
$(expr).calendar({ | |
addDay: function(td) { | |
var self = this; | |
// 日付セルがクリックされた時の処理 | |
td.click(function() { | |
// テキストエリアにYYYY年MM月DD日を書き出す |