X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=main.coffee;h=d571e1307c2b4441dd5aa93bb4864471f8f25aa1;hp=459f152b95f323cedece996784d8744c1ea9fe1d;hb=996f6a6b925dc2e2f1495ecb81d2b5bf5e86033e;hpb=b20403c1264f721d3e85779df74200def0bea565 diff --git a/main.coffee b/main.coffee index 459f152..d571e13 100644 --- a/main.coffee +++ b/main.coffee @@ -636,26 +636,26 @@ show_definition = (word, type, definition, language) -> $definition_body.html html connector_width = 11 -connector_radius = 5 +connector_radius = 4 connector_slant = 12 add_connector = (tile, horiz, vert) -> style = {} switch horiz when 'left' - style.right = '100%' + style.left = -9 when 'mid' style.left = 21 - connector_radius when 'right' - style.left = '100%' + style.right = -9 switch vert when 'top' - style.bottom = '100%' + style.top = -9 when 'up' style.top = 21 - connector_radius - connector_slant when 'down' style.top = 21 - connector_radius + connector_slant when 'bot' - style.top = '100%' + style.bottom = -9 tile.connector = $("
").css style tile.dom.append tile.connector