diff --git a/data/treeio/treeio/static/js/12o_super_mini.js b/data/treeio/treeio/static/js/12o_super_mini.js new file mode 100644 index 0000000..999caa9 --- /dev/null +++ b/data/treeio/treeio/static/js/12o_super_mini.js @@ -0,0 +1,8305 @@ +(function(a, b, c) { + function d(a) { + a = a || location.href; + return "#" + a.replace(/^[^#]*#?(.*)$/, "$1") + } + var f = "hashchange", + h = document, + n, g = a.event.special, + p = h.documentMode, + j = "on" + f in b && (p === c || p > 7); + a.fn[f] = function(a) { + return a ? this.bind(f, a) : this.trigger(f) + }; + a.fn[f].delay = 50; + g[f] = a.extend(g[f], { + setup: function() { + if (j) return false; + a(n.start) + }, + teardown: function() { + if (j) return false; + a(n.stop) + } + }); + n = function() { + function g() { + var c = d(), + j = F(q); + if (c !== q) aa(q = c, j), + a(b).trigger(f); + else if (j !== q) location.href = location.href.replace(/#.*/, "") + j; + p = setTimeout(g, a.fn[f].delay) + } + var n = {}, + p, q = d(), + w = function(a) { + return a + }, + aa = w, + F = w; + n.start = function() { + p || g() + }; + n.stop = function() { + p && clearTimeout(p); + p = c + }; + a.browser.msie && ! j && function() { + var b, c; + n.start = function() { + if (!b) c = (c = a.fn[f].src) && c + d(), + b = a('').hide().one("load", function() { + c || aa(d()); + g() + }).attr("src", c || "javascript:0").insertAfter("body")[0].contentWindow, + h.onpropertychange = function() { + try { + if (event.propertyName === "title") b.document.title = h.title + } catch(a) {} + } + }; + n.stop = w; + F = function() { + return d(b.location.href) + }; + aa = function(c, g) { + var d = b.document, + j = a.fn[f].domain; + if (c !== g) d.title = h.title, + d.open(), + j && d.write(' + + + +
+Flash / Video (Iframe/Direct Link To YouTube)
+Flash / Video (Iframe/Direct Link To Vimeo)
+ + + +Example with alerts. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.
+ + +