diff --git a/static/css/style.css b/static/css/style.css index b85dee8..e974be2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -68,12 +68,13 @@ p { margin: 0 0 20px; } +.nav-header { + font-size: 10px; +} .form-options li{ - -float: left; -list-style-type: none; - + float: left; + list-style-type: none; } form textarea { @@ -106,13 +107,13 @@ form { } .btn-primary { -position:relative; -top:-4px; + position:relative; + top:-4px; } .linenums{ -padding:1em 50px; + padding:1em 50px; } ol.linenums li { @@ -122,7 +123,6 @@ ol.linenums li { ol.linenums span:first-child { border-left: solid 1px #999; padding-left:1em; - } li.L0, li.L1, li.L2, li.L3, li.L4, diff --git a/static/js/behavior.js b/static/js/behavior.js index ad43da4..048edba 100644 --- a/static/js/behavior.js +++ b/static/js/behavior.js @@ -26,6 +26,31 @@ zerobin = { if(this.width + this.height != 2){no()} else {yes()} } data.src = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="; + }, + support_localstorage: function(){ + if (localStorage){ + return true; + }else{ + return false; + } + }, + store_paste: function(url){ + if (zerobin.support_localstorage){ + localStorage.setItem(localStorage.length, url); + } + }, + get_pastes: function(){ + if (zerobin.support_localstorage){ + var val = ''; + for (i=0; i<=localStorage.length-1; i++) + { + key = localStorage.key(i); + val = val + '