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

×
') } b.data('on', a) } function magic(a) { a = a.replace(/%%pagelist%%/g, "
    " + $.map(pagelist, function (x) { return "
  • [[" + x.substr(1) + "]]
  • " }).join('\n') + "
"); return a.replace(/\*\*([^*]+?)\*\*/g, '$1').replace(/\b_([^_]+?)_\b/g, '$1').replace(/\[\[([^"]+?)\]\]/g, '$1').replace(/`([^`]+?)`/g, '$1').replace(/"([^"]+?)":(https?:\/\/[^\s"<]+)/g, '$1').replace(/(.+?)<\/a>/g, '$3$2').replace(/"([^"]+?)":(.+?)<\/a>/g, '$1') } function unmagic(a) { a = a.closest('.x'); a.html(a.data("unmagic")) } function supermagic(a) { a.data("unmagic", a.html()); a.html(magic(a.html())); $('a', a).each(function (i, x) { x = $(x); if (x.attr('href').match(/^#/)) $.inArray(x.attr('href'), pagelist) === -1 ? x.addClass('broken') : x.removeClass('broken') }) } function settings(c) { var a = '#kiwi-settings', b = {}; a = (ls.getItem(a) ? ls.getItem(a) : js(pages[a])); $.each(jp(a), function (i, x) { $.each(x, function (c, d) { b[c] = d }) }); return c ? b[c] : b } function dosave(a) { var b = [], c = "#"; a = a.closest('.x'); c = c + a.attr('id'); a.children('section').each(function (i, c) { b.push("{" + js($(c).children('header').text()) + ":" + js($(c).children('section').html()) + "}") }); b = "[" + b.join(',') + "]"; ls.setItem(c, b); if (settings('Save Url').match(/https?:\/\/(.+?)/)) $.post(settings('Save Url'), { 'title': c, 'content': b }, function () {}, 'json'); if ($.inArray(c, pagelist) === -1) { pagelist.push(c); ls.setItem('pagelist', js(pagelist)) } supermagic(a) } function doload(a) { var b = jp(ls.getItem('pagelist')); pagelist = b ? b : pagelist; myload('#kiwi-header', 'header.x'); myload(a, 'article.x'); myload('#kiwi-footer', 'footer.x') } function realload(a, b) { var c = ls.getItem(a), d = ""; b = $(b); if (!c) { c = pages[a] ? pages[a] : jp("[{\"" + a.substr(1) + "\":\"

This is a new page

\"}]") } else c = jp(c); b.empty(); $.each(c, function (i, x) { $.each(x, function (j, y) { d += ('

' + j + '

' + y + '
') }) }); b.html(d); supermagic(b); b.attr('id', a.substr(1)) } function myload(a, b) { if (settings('Load Url').match(/https?:\/\/(.+?)/)) $.get(settings('Load Url'), { 'title': a, 'b': b }, function (d) { if (!d.error) { ls.setItem(d.title, d.content) } realload(d.title, d.b) }, 'json'); else realload(a, b) } function edit_on() { $('body').addClass('go'); unmagic($('article')); $('article .q').attr('contenteditable', true); $('article .red,article .blue').remove(); $('article header.q').before('') } function edit_off(a) { $('article .blue').each(function (i, x) { raw($(x), true); }); $('body').removeClass('go'); $('article .q').attr('contenteditable', false); $('article .red, article .blue').remove(); if (a) dosave($('article')); else doload(location.hash); } function remove_s() { $(this).closest('section').remove(); $('article.x').data("unmagic", $('article.x').html()) } function new_s() { $('article.x').append('

New

New content

'); $('article.x').data("unmagic", $('article.x').html()) }
Pop out

Help About×

×