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
Show hidden characters
[ | |
{ | |
"keys": ["ctrl+b"], "command": "reple" | |
} | |
] |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
watch: { | |
// src/jsフォルダ以下のjs拡張子ファイルを対象に監視 | |
files: ['src/js/*.js'], | |
// 変更があったらタスクjasmineを実行 | |
tasks: ['jasmine'] | |
}, | |
jasmine: { | |
// プロパティ名はテストケース名 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<style> | |
h2[title] { | |
color : red; | |
} | |
</style> | |
<h2>これにはヒットしない<h2> | |
<h2 title="タイトル内容">ヒットする<h2> |
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
<style> | |
h2[title="hogehoge"] { | |
color : red; | |
} | |
</style> | |
<h2 title="hogehoge">ヒットする<h2> | |
<h2 title="piyopiyo">ヒットしない<h2> |
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
<style type="text/css"> | |
span[class~="hoge"] { | |
color : red; | |
} | |
</style> | |
<span class="fuga piyo">ヒットしない</span> | |
<span class="piyo hoge">ヒットする</span> | |
<span class="piyo hogeboo">ヒットしない 要素の一致であって文字が含まれるかどうかではない</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
<style type="text/css"> | |
span[class^="hoge"] { | |
color : red; | |
} | |
</style> | |
<span class="fugafuga">ヒットしない</span> | |
<span class="hoge">ヒットする</span> | |
<span class="hogeboo">ヒットする</span> | |
<span class="fugahoge">ヒットしない</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
<style type="text/css"> | |
a[href$=".php"] { | |
color : red; | |
} | |
</style> | |
<a href="http://hogehoge.net/piyo.php">ヒットする</a> | |
<a href="http://hogehoge.net/piyo.html">ヒットしない</a> | |
<a href="http://hogehoge.php/piyo.html">ヒットしない</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
<style type="text/css"> | |
a[href*="google.com"] { | |
color : red; | |
} | |
</style> | |
<a href="http://google.com/hugahuga">ヒットする</a> | |
<a href="http://yahoo.com/hugahuga">ヒットしない</a> | |
<a href="http://yahoo.com/q=http://google.com&hoge=fuga">ヒットする</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
<style type="text/css"> | |
a[hreflang|="en"] { | |
color : red; | |
} | |
</style> | |
<a href="#" hreflang="en">ヒットする</a> | |
<a href="#" hreflang="ending">ヒットしない</a> | |
<a href="#" hreflang="en-US">ヒットする</a> | |
<a href="#" hreflang="en-scouse">ヒットする</a> |
OlderNewer