spook

A "game" for the 2023 Autumn Lisp Game Jam. Won first place! (from the bottom...)
git clone https://kaka.farm/~git/spook
Log | Files | Refs | LICENSE

drag.html (686B)


      1 <!-- drag.html - simple example for SPOCK -->
      2 
      3 <html>
      4   <head>
      5     <script src="spock-runtime-debug.js"></script>
      6     <script src="drag.js"></script>
      7     <style type="text/css">
      8       body {
      9         font-family: Arial, Helvetica;
     10         font-size: x-large;
     11       }
     12 
     13       #info {
     14         position: absolute;
     15         right-margin: auto;
     16         left: 0px;
     17         top-margin: auto;
     18         bottom: 0px;
     19       }
     20 
     21       #box {
     22         width: 200px;
     23         height: 200px;
     24         background-color: red;
     25         position: absolute;
     26         left: 50%;
     27         top: 50%;
     28       }
     29     </style>
     30   </head>
     31   <body>
     32     <div id="info">xxx</div>
     33     <div id="box">Drag me.</div>
     34   </body>
     35 </html>