これは CSS Programming Advent Calendar 2012 の 7 日目の記事です。
CSS プログラミングの基本は、「ユーザの操作をなんとかして受け取ってスタイルをあてる」ということの繰り返しです。
クリックの検出に :checked や :active, mouseover なら :hover を使う……とやるわけですね。
ならば次は「ドラッグ」も検出したいところです。
| diff -ru asterisk-13.2.0-orig/apps/Makefile asterisk-13.2.0-patched/apps/Makefile | |
| --- asterisk-13.2.0-orig/apps/Makefile 2013-04-15 18:43:47.000000000 +0200 | |
| +++ asterisk-13.2.0-patched/apps/Makefile 2015-03-24 03:28:53.684406200 +0100 | |
| @@ -34,6 +34,6 @@ | |
| $(subst .c,.o,$(wildcard confbridge/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,app_confbridge) | |
| ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) | |
| - LIBS+= -lres_features.so -lres_ael_share.so -lres_monitor.so -lres_speech.so | |
| + LIBS+= -lres_stasis.so -lres_ael_share.so -lres_monitor.so -lres_speech.so | |
| LIBS+= -lres_smdi.so |
| (function(){ //make __dirname, __filename work in the browser | |
| if(window && !window['__dirname']){ | |
| var stackTrace = function () { | |
| var lines = (new Error()).stack.split("\n"); | |
| // 0 = message, 1 = stackTrace | |
| lines.shift(); lines.shift(); | |
| var result = lines.map(function(line){ | |
| if(line.indexOf('(native)') != -1){ | |
| return { |
| 'use strict' | |
| var DEFINE_NOT_WRITABLE = {writable: false}; | |
| /** | |
| * Base Class of OOP feature | |
| * | |
| // e.g 1 | |
| var Klass = klass.of({ | |
| constructor: function() { |
| (function(module) { | |
| "use strict"; | |
| // Scope stacks | |
| var LAZY_ID = 0, | |
| PARALLELS = []; | |
| // exports | |
| module.Lazy = Lazy; |
これは CSS Programming Advent Calendar 2012 の 7 日目の記事です。
CSS プログラミングの基本は、「ユーザの操作をなんとかして受け取ってスタイルをあてる」ということの繰り返しです。
クリックの検出に :checked や :active, mouseover なら :hover を使う……とやるわけですね。
ならば次は「ドラッグ」も検出したいところです。