Last active
August 29, 2015 14:11
-
-
Save akameco/5817ce054a8613592ffc to your computer and use it in GitHub Desktop.
半画面にリサイズで自動でツリー型タブを閉じる
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
" ツリー型タブの自動開閉 {{{ | |
js <<EOM | |
var timer=false; | |
window.addEventListener('resize',function () { | |
if(timer !== false) { | |
clearTimeout(timer); | |
} | |
timer = setTimeout(function() { | |
if(window.outerWidth < 700) { | |
if(TreeStyleTabService.isAutoHide == 0) | |
TreeStyleTabService.toggleAutoHide(); | |
} | |
},30); | |
},false); | |
EOM | |
" }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment