You can jump to the latest bin by adding /latest to your URL

×

'); this.e = $(".n-b", this.a); this.j = $("button.ok", this.a); this.b = this.a.find("textarea"); this.data = a; this.a.find("p.bd").html(a.text); this.b.val(a.text); this.a.addClass("re").hide(); f.push(this) } function p(a) { return parseInt(a.replace("px", "")) } function l(a, d) { a.a.find("p.bd").html(d); a.b.val(d) } r.prototype.left = function() { return p(this.a.css("left")) }; r.prototype.top = function() { return p(this.a.css("top")) }; function s(a) { a.a.removeClass("re").show(); k(); t(a); a.b.select(); $(".bo", a.a).bind("click", { self: a }, a.h); $(".dn", a.a).bind("click", { self: a }, a.g); a.b.bind("keypress", function(d) { if (d.which === 13) { h(d); l(a, a.b.val()); n(a) } }); a.j.bind("click", function() { l(a, a.b.val()); n(a) }) } r.prototype.h = function(a) { a.data.self.b.select(); k(a.data.self.a[0]); t(a.data.self) }; r.prototype.g = function(a) { h(a); a.data.self.remove() }; function t(a) { j(a.a.removeClass("editable"), "ed"); a.b.select() } function n(a) { if (a.a.hasClass("ed")) { j(a.a.removeClass("ed"), "editable"); a.b.val() === "" && a.remove() } } r.prototype.remove = function() { this.a.remove(); f.splice($.inArray(this, f), 1) }; function v(a) { a.e.css("top", a.a.height() + 10 + "px") } $.c = function(a) { a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); a = RegExp("[\\?&]" + a + "=([^&#]*)").exec(window.location.href); return a == null ? "" : decodeURIComponent(a[1].replace(/\+/g, " ")) }; $.fn.d = function(a) { var d = $(this), e = false, c; d.bind("mousedown", function(b) { if (b.target == $("img#s")[0]) { h(b); e = true; c = new r({ text: "", k: "" }); c.a.appendTo(d); c.a.i(b) } }); d.bind("mouseup", function() { if (e) { e = false; if (c.a.width() < 20 && c.a.height() < 20) if ($("div.nt.ed").size() > 0) { k(); c.remove(); c = null } else { var b = c; b.a.show(); b.a.css({ width: "100px", height: "100px", left: b.left() - 50 + "px", top: b.top() - 50 + "px" }); v(c); s(c) } else s(c) } }); d.bind("mousemove", function(b) { if (e) { h(b); c.a.width() < 20 && c.a.height() < 20 || c.a.show(); c.a.css("width", b.pageX - d.offset().left - c.left() + "px"); c.a.css("height", b.pageY - d.offset().top - c.top() + "px"); c.e.css("top", c.a.height() + 10 + "px") } }); d.f(a, function(b) { b.text = decodeURI(b.text); b = new r(b); j(b.a.show().removeClass("re"), "ro"); return b.a }); $.each(f, function() { v(this) }) }; $.fn.f = function(a, d) { var e = this; $(e).height(); var c = []; $.each(a || [], function() { var b = d(this); b.css({ position: "absolute" }); $(e).append(b); var g = this.x, i = this.y; b.css({ width: this.width + "px", height: this.height + "px" }); b.css({ left: g + "px", top: i + "px" }); c.push(b) }); return $(c) }; $.fn.i = function(a) { var d = $(this).parent("div"); $(this).css("left", a.pageX - d.offset().left + "px"); $(this).css("top", a.pageY - d.offset().top - 10 + "px") }; $(document).ready(function() { function a(b, g) { b.toggle(); $("#in").slideToggle(function() { g.toggle() }) } function d() { $("#loader").hide(); e.show(); e.css("width", c.width()) } var e = $("div#sc"), c = $("div#sc").children("img"); $.browser.msie && $("h2").css({ position: "relative", left: "-20px" }); e.hide(); $("#i").bind("click", function(b) { h(b); a($("#i"), $("#x")) }); $("#x").bind("click", function(b) { h(b); a($("#x"), $("#i")) }); if ($.c("src")) { src = $.c("src"); $("#strt").hide(); $("#w").show(); c.bind("load", function() { d(); e.d($.parseJSON($.c("data"))) }); c.attr("src", src) } else $("#strt form").bind("submit", function(b) { function g(u) { var q = { api_key: "IuT2g|wy:nh^PQ-U@2|D&id*D]rVH@.y2T,#+zx:|pS;YrI#B9~*; |wq-lUW6 $" }; if (u) q.transaction_id = u; else q.url = url; $.ajax({ url: "http://xbrow.se/api_v0.2/", data: q, dataType: "jsonp", success: function(m) { if (m.status === "waiting") g(m.l); else if (m.status === "completed") { clearInterval(w); $("#ld").hide(); $("#w").show(); c.bind("load", function() { d(); e.d() }); c.attr("src", m.media_url) } else { $("#ld").hide(); $("#strt").show(); $("#strt input").val("Bad URL") } } }) } h(b); var i = 0, w = setInterval(function() { j($("#ld li").removeClass("a").eq(i % 4), "a"); i++ }, 500); $("#strt").hide(); $("#ld").show(); url = $("#strt input").val(); g() }); $("#sb").bind("click", function(b) { h(b); $("#sb").toggle(); $("#su").fadeIn(); var g = "http://" + window.location.host.replace(":80", "/") + window.location.pathname + "?" + $.param({ data: o(), src: c.attr("src") }); $.ajax({ url: "http://api.bit.ly/v3/shorten", data: { longUrl: g, apiKey: "R_0598f16b68c6da7374bd181177f3df7e", login: "zurb" }, dataType: "jsonp", success: function(i) { $("#su").val(i.status_code === 200 ? i.data.url : g).select() } }) }); $("#su").bind("click focus", function() { $(this).select() }) });

Pop out

Help About×

×