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
if ($('selector').length) { | |
//要素がある場合の処理 | |
} else { | |
//要素がない場合の処理 | |
} |
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() { | |
alert('即時関数です'); | |
})(); |
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
package jp.ceroan { | |
import flash.errors.*; | |
/** | |
* Singleton | |
* @author OKI Yoshiya (ceroan) | |
*/ | |
public class Singleton { | |
private static var _instance:Singleton = new Singleton(); | |
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
// CS5では、FLAに同じフォントを指定したテキストフィールドが含まれていると、埋め込みフォントとコンフリクトを起こして埋め込みフォントが表示されなくなる。 | |
// リンケージ名でnew | |
var embedFont:Font = new HiraginoKakuGoProW3DF3(); | |
// 利用できる埋め込みフォントを確認 | |
var _fonts:Array = Font.enumerateFonts(); | |
for each (var i:Font in _fonts){ | |
// フォント名を出力 | |
trace(i.fontName); |
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
<!--[if IE]> | |
<link rel="stylesheet" href="/css/ie.css" type="text/css" /> | |
<![endif]--> |
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
<a>リンク文字列</a> |
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
npm install grunt@0.3.17 |