#JavaScript .getSearchQueries
リクエストURLから?key=valueを抜き出し、objectを返す。
Ext.override(Ext.util.Sorter, { | |
defaultSorterFn: function( o1, o2 ) { | |
var me = this, | |
transform = me.transform, | |
v1 = me.getRoot(o1)[me.property], | |
v2 = me.getRoot(o2)[me.property]; | |
if (transform) { | |
v1 = transform(v1); | |
v2 = transform(v2); |
function dataFormat(){ | |
var t = "", | |
a = arguments, | |
i, l; | |
for( i = 0, l = a.length; i < l; i++ ){ | |
if( a[i] !== undefined ){ | |
if( a[i] === "" ){ | |
t += '""'; | |
}else{ |
/*! | |
* CSS Reset 2011-12-25 | |
* https://gist.github.com/gists/1360380 | |
* | |
* Author: Takeru Suzuki, http://terkel.jp/ | |
* License: Public domain | |
* | |
* Inspired by Normalize.css: http://necolas.github.com/normalize.css/ | |
*/ |
var foo = [ | |
{ "id": 1, "alt": "Orange" }, | |
{ "id": 2, "alt": "Apple" }, | |
{ "id": 3, "alt": "Banana" } | |
], | |
item, | |
html; | |
for ( var i = 0, len = foo.length; i < len ; i++ ) { | |
item = foo[i]; |
<a href="">foo/index.html</a> | |
<a href="">bar/index.html</a> | |
<a href="foo/index.html">foo/index.html</a> | |
<a href="bar/index.html">bar/index.html</a> | |
%s/href="">\([a-zA-Z0-9\/\.]*\)/href="\1">\1/ |
ls | |
hoge.jpg | |
figure.png | |
bar.png | |
title.png | |
ls | grep 'jpg\|png' | sed -e 's/^/<img src="images\//' -e 's/$/" alt="" \/>/' |
var OpacityOver = function(config){ | |
this.ITEMS = config.ITEMS; | |
this.ITEMS.on("mouseover", this.onOpacityOver) | |
.on("mouseout", this.onOpacityOut); | |
}; | |
OpacityOver.prototype = { | |
onOver: function(e){ | |
$(this).stop().animate({ | |
opacity: 0.6 |
var ExtLinks = {}; | |
ExtLinks.onBoxLink = function( event ){ | |
event.preventDefault(); | |
if( /^http|^ftp/.test(this.href) ){ | |
window.open( this.href, "" ); | |
}else{ | |
location.href = this.href; | |
} |
#JavaScript .getSearchQueries
リクエストURLから?key=valueを抜き出し、objectを返す。
(function(w){ | |
var SwfoWrapper = function(options){ | |
this.initialize(options); | |
}; | |
SwfoWrapper.prototype = { | |
callback_: function(e){ | |
// swfobject Callback | |
var condition = "SmartPhone"; |