-
Iroha_addBeforeUnload(listener, aThisObject) → {jQuery}
-
temporary wrapper for adding event listener of "window.onBeforeUnload".
Parameters:
| Name |
Type |
Argument |
Description |
listener |
Function
|
|
an event listener function |
aThisObject |
Object
|
<optional>
|
the object that will be a global object ('this') in the listener func. |
- Source:
Returns:
jQuery current context object
-
Type
-
jQuery
-
Iroha_assistSelectEvent(wait) → {jQuery}
-
"change" event handler helper for "select" elements;
fire "change" event when "keyup" or "mousewheel" event comes.
Parameters:
| Name |
Type |
Argument |
Default |
Description |
wait |
number
|
<optional>
|
100
|
wait for preventing multiple fire (nonnegative integer in ms) |
- Source:
Returns:
jQuery current context object
-
Type
-
jQuery
-
Iroha_getComputedStyle(prop, pseudo) → {string}
-
get computed style value.
Parameters:
| Name |
Type |
Argument |
Default |
Description |
prop |
string
|
|
|
style property name to get value |
pseudo |
string
|
<optional>
|
""
|
pseudo element/class name (effective in standard browsers only) |
- Source:
Returns:
computed style value string
-
Type
-
string
-
Iroha_getInnerText(includeAlt) → {string}
-
get whole inner texts in the node.
Parameters:
| Name |
Type |
Description |
includeAlt |
boolean
|
if true, alt texts of <img> elements are included. |
- Source:
Returns:
whole inner texts.
-
Type
-
string
-
Iroha_getLinkTarget(target) → {jQuery}
-
get an element which is linked from given anchor element in same page.
Parameters:
| Name |
Type |
Argument |
Default |
Description |
target |
string
|
<optional>
|
"_self"
|
target name to assume that given anchor is inner-page link. |
- Source:
- See:
-
Returns:
jQuery indicating an element which is linked from given anchor element.
-
Type
-
jQuery
-
Iroha_normalizeTextNode(deep) → {jQuery}
-
remove text nodes that have only white spaces, and normalize space of each text nodes.
Parameters:
| Name |
Type |
Argument |
Description |
deep |
boolean
|
<optional>
|
process recursive node tree? |
- Source:
Returns:
jQuery current context object
-
Type
-
jQuery
-
Iroha_shuffleContent() → {jQuery}
-
コンテキスト要素の直接子ノード群をシャッフル(ランダム並び替え)
- Source:
Returns:
jQuery current context object
-
Type
-
jQuery
-
Iroha_trapWheelEvent() → {jQuery}
-
マウスホイールイベントをコンテキスト要素ノードの領域内にがんばって閉じ込める。これにより領域内のホイール操作ではページスクロールが(ほぼ)発生しなくなる。
その瞬間存在しない要素に対して適用したい場合は
Iroha.trapWheelEvent を用いる。その第1引数に対象要素を見つけるためのセレクタ文字列を与える。
- Source:
- See:
-
Returns:
jQuery current context object
-
Type
-
jQuery
-
Iroha_untrapWheelEvent() → {jQuery}
-
- Source:
- See:
-
Returns:
jQuery current context object
-
Type
-
jQuery
-
Iroha_urlToAnchor(tmpl) → {jQuery}
-
内包しているすべてのテキスト中の URL らしき文字列をリンクにする。
Parameters:
| Name |
Type |
Argument |
Description |
tmpl |
string
|
<optional>
|
URL をリンクにするとき雛形とする a 要素の HTML 文字列 |
- Source:
- See:
-
Returns:
jQuery current context object
-
Type
-
jQuery