Skip to content

Commit

Permalink
new page
Browse files Browse the repository at this point in the history
  • Loading branch information
CLowbrow committed Jan 20, 2015
1 parent 7248faf commit 84dd637
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<html>
<head>
<title> Make some boring art</title>
<style>
body {
font-family: helvetica, arial, sans-serif;
}
.container {
margin: 100px;
}
</style>
</head>
<body>
<h1> drag this link to your bookmarks bar, friend </h1>
<a id="bookmarklet" href="javascript:!function(){function e(){var e=document.createElement(&quot;div&quot;);return e.style.color=&quot;white&quot;,e.classList.add(&quot;point&quot;),e.innerHTML=p[0],e}function n(){var e=document.createElement(&quot;div&quot;);return e.style.clear=&quot;both&quot;,e.style.height=0,e}function t(e){var n=p.indexOf(e.innerHTML);&quot;white&quot;==e.style.color?e.style.color=&quot;black&quot;:n&lt;p.length-1&amp;&amp;(e.innerHTML=p[n+1])}function a(e){e.style.color=&quot;white&quot;,e.innerHTML=&quot;.&quot;}function r(e){for(var n=&quot;+--MY ART&quot;+new Array(i-7).join(&quot;-&quot;)+&quot;+\n&quot;,t=0;t&lt;e.length;t+=i)n+=&quot;|&quot;+e.slice(t,t+i).join(&quot;&quot;)+&quot;|\n&quot;;n+=&quot;+&quot;+new Array(i+1).join(&quot;-&quot;)+&quot;+\n&quot;,d.value=d.value+n}var s=document.createElement(&quot;style&quot;),l=document.createTextNode(&quot;#bbsdraw{padding:20px;margin:20px;float:left;border:1px solid #5bdeff}#bbsdraw .canvas{border:1px solid #000;font-family:monospace;float:left;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;overflow:hidden}#bbsdraw .point{float:left;padding:0;margin:0;line-height:100%}#bbsdraw .clearfix{clear:both}#bbsdraw .clear,#bbsdraw .draw,#bbsdraw .erase,#bbsdraw .export{cursor:pointer;font-weight:700;float:left;padding:20px;border:1px solid #000}&quot;);s.appendChild(l),document.head.appendChild(s);var o=document.getElementsByClassName(&quot;wrapper&quot;)[0],c=document.createElement(&quot;div&quot;);c.id=&quot;bbsdraw&quot;,o.appendChild(c),c.innerHTML=&#39;&lt;div class=&quot;canvas&quot;&gt;&lt;/div&gt;&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;&lt;p class=&quot;draw&quot;&gt;draw&lt;/p&gt;&lt;p class=&quot;erase&quot;&gt;erase&lt;/p&gt;&lt;p class=&quot;clear&quot;&gt;clear&lt;/p&gt;&lt;p class=&quot;export&quot;&gt;export&lt;/p&gt;&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;&#39;;for(var i=45,d=document.getElementsByName(&quot;content&quot;)[0],u=!1,m=document.getElementsByClassName(&quot;canvas&quot;)[0],p=[&quot;.&quot;,&quot;:&quot;,&quot;+&quot;,&quot;I&quot;,&quot;?&quot;,&quot;Z&quot;,&quot;$&quot;,&quot;M&quot;],f=0;30&gt;f;f++){for(var v=0;i&gt;v;v++)m.appendChild(e());m.appendChild(n())}var b=document.getElementsByClassName(&quot;point&quot;),h=t;m.addEventListener(&quot;mousedown&quot;,function(){u=!0}),document.getElementsByClassName(&quot;erase&quot;)[0].addEventListener(&quot;click&quot;,function(){h=a}),document.getElementsByClassName(&quot;draw&quot;)[0].addEventListener(&quot;click&quot;,function(){h=t}),document.getElementsByClassName(&quot;export&quot;)[0].addEventListener(&quot;click&quot;,function(){var e=[],n=[].slice.call(b);n.forEach(function(n){e.push(&quot;white&quot;===n.style.color?&quot; &quot;:n.innerHTML)}),r(e)}),document.getElementsByClassName(&quot;clear&quot;)[0].addEventListener(&quot;click&quot;,function(){var e=[].slice.call(b);e.forEach(a)}),m.addEventListener(&quot;click&quot;,function(){h=a}),m.addEventListener(&quot;click&quot;,function(){h=t}),m.addEventListener(&quot;mouseup&quot;,function(){u=!1}),m.addEventListener(&quot;mouseover&quot;,function(e){var n=e.target;&quot;point&quot;===n.className&amp;&amp;u&amp;&amp;h(n)})}();"> BBSASCIIART </a>
<section class="container">
<h1>Drag this link to your bookmarks bar, friend </h1>
<p> Then click it when you are writing a post </p>
<a id="bookmarklet" href="javascript:!function(){function e(){var e=document.createElement(&quot;div&quot;);return e.style.color=&quot;white&quot;,e.classList.add(&quot;point&quot;),e.innerHTML=p[0],e}function n(){var e=document.createElement(&quot;div&quot;);return e.style.clear=&quot;both&quot;,e.style.height=0,e}function t(e){var n=p.indexOf(e.innerHTML);&quot;white&quot;==e.style.color?e.style.color=&quot;black&quot;:n&lt;p.length-1&amp;&amp;(e.innerHTML=p[n+1])}function a(e){e.style.color=&quot;white&quot;,e.innerHTML=&quot;.&quot;}function r(e){for(var n=&quot;+--MY ART&quot;+new Array(i-7).join(&quot;-&quot;)+&quot;+\n&quot;,t=0;t&lt;e.length;t+=i)n+=&quot;|&quot;+e.slice(t,t+i).join(&quot;&quot;)+&quot;|\n&quot;;n+=&quot;+&quot;+new Array(i+1).join(&quot;-&quot;)+&quot;+\n&quot;,d.value=d.value+n}var s=document.createElement(&quot;style&quot;),l=document.createTextNode(&quot;#bbsdraw{padding:20px;margin:20px;float:left;border:1px solid #5bdeff}#bbsdraw .canvas{border:1px solid #000;font-family:monospace;float:left;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;overflow:hidden}#bbsdraw .point{float:left;padding:0;margin:0;line-height:100%}#bbsdraw .clearfix{clear:both}#bbsdraw .clear,#bbsdraw .draw,#bbsdraw .erase,#bbsdraw .export{cursor:pointer;font-weight:700;float:left;padding:20px;border:1px solid #000}&quot;);s.appendChild(l),document.head.appendChild(s);var o=document.getElementsByClassName(&quot;wrapper&quot;)[0],c=document.createElement(&quot;div&quot;);c.id=&quot;bbsdraw&quot;,o.appendChild(c),c.innerHTML=&#39;&lt;div class=&quot;canvas&quot;&gt;&lt;/div&gt;&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;&lt;p class=&quot;draw&quot;&gt;draw&lt;/p&gt;&lt;p class=&quot;erase&quot;&gt;erase&lt;/p&gt;&lt;p class=&quot;clear&quot;&gt;clear&lt;/p&gt;&lt;p class=&quot;export&quot;&gt;export&lt;/p&gt;&lt;div class=&quot;clearfix&quot;&gt;&lt;/div&gt;&#39;;for(var i=45,d=document.getElementsByName(&quot;content&quot;)[0],u=!1,m=document.getElementsByClassName(&quot;canvas&quot;)[0],p=[&quot;.&quot;,&quot;:&quot;,&quot;+&quot;,&quot;I&quot;,&quot;?&quot;,&quot;Z&quot;,&quot;$&quot;,&quot;M&quot;],f=0;30&gt;f;f++){for(var v=0;i&gt;v;v++)m.appendChild(e());m.appendChild(n())}var b=document.getElementsByClassName(&quot;point&quot;),h=t;m.addEventListener(&quot;mousedown&quot;,function(){u=!0}),document.getElementsByClassName(&quot;erase&quot;)[0].addEventListener(&quot;click&quot;,function(){h=a}),document.getElementsByClassName(&quot;draw&quot;)[0].addEventListener(&quot;click&quot;,function(){h=t}),document.getElementsByClassName(&quot;export&quot;)[0].addEventListener(&quot;click&quot;,function(){var e=[],n=[].slice.call(b);n.forEach(function(n){e.push(&quot;white&quot;===n.style.color?&quot; &quot;:n.innerHTML)}),r(e)}),document.getElementsByClassName(&quot;clear&quot;)[0].addEventListener(&quot;click&quot;,function(){var e=[].slice.call(b);e.forEach(a)}),m.addEventListener(&quot;click&quot;,function(){h=a}),m.addEventListener(&quot;click&quot;,function(){h=t}),m.addEventListener(&quot;mouseup&quot;,function(){u=!1}),m.addEventListener(&quot;mouseover&quot;,function(e){var n=e.target;&quot;point&quot;===n.className&amp;&amp;u&amp;&amp;h(n)})}();"> BBSASCIIART </a>
</section>
</body>

</html>

0 comments on commit 84dd637

Please sign in to comment.