diff --git a/base/pub/octo/fab/hymn.hook b/base/pub/octo/fab/hymn.hook new file mode 100644 index 0000000000..bf7ba4d94c --- /dev/null +++ b/base/pub/octo/fab/hymn.hook @@ -0,0 +1,19 @@ +:: +:: +:::: /hook/hymn/fab/octo/pub/ + :: +^- manx +;html + ;head + ;meta(charset "utf-8"); + ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js"); + ;script(type "text/javascript", src "/~~/~/at/base/lib/urb.js"); + ;link(type "text/css", rel "stylesheet", href "/home/pub/octo/src/main.css"); + ;title: urbit cit cat eot + == + ;body + ;div#bord; + ;div#whom; + ;script(type "text/javascript", src "/home/pub/octo/src/main.js"); + == +== diff --git a/base/pub/octo/src/main.css b/base/pub/octo/src/main.css new file mode 100644 index 0000000000..839f686b79 --- /dev/null +++ b/base/pub/octo/src/main.css @@ -0,0 +1,54 @@ +#bord, +#whom { + width: 600px; + text-align: center; + position: absolute; + left: 50%; + margin-left: -300px; +} + +#bord { + width: 600px; + height: 600px; + position: absolute; + top: 18px; +} + +#whom, +.spac { + font-size: 100px; + line-height: 200px; +} + +.spac { + width: 198px; + height: 198px; + border: 1px solid #000; + text-align: center; + float: left; + cursor: pointer; +} + +.spac[data-index="0-0"], +.spac[data-index="1-0"], +.spac[data-index="2-0"] { + border-top: 0; +} + +.spac[data-index="0-0"], +.spac[data-index="0-1"], +.spac[data-index="0-2"] { + border-left: 0; +} + +.spac[data-index="2-0"], +.spac[data-index="2-1"], +.spac[data-index="2-2"] { + border-right: 0; +} + +.spac[data-index="0-2"], +.spac[data-index="1-2"], +.spac[data-index="2-2"] { + border-bottom: 0; +} \ No newline at end of file diff --git a/base/pub/octo/src/main.js b/base/pub/octo/src/main.js new file mode 100644 index 0000000000..b96a5a1392 --- /dev/null +++ b/base/pub/octo/src/main.js @@ -0,0 +1,44 @@ +$(function() { + $bord = $('#bord') + $whom = $('#whom') + + symb = [" ","✕","◯"] + draw = function(state) { + space = function(_state,x,y) { + return "