Skip to content

Releases: anuvgupta/block.js

block.js responsive

28 Mar 06:25
Compare
Choose a tag to compare
  • improved event management
  • blockfile hybrid syntax - JS/block
text text1
    val Hello World
    {
        alert('hi')
    }
break br0
    block
  • hybrid syntax event callbacks
text testText
        css
            display block
input textbox1
        placeholder input
        type text
        :keyup,keydown
            {
                block.sibling('testText').html(block.node().value);
            }
  • responsiveness - window size events (similar to media queries)
div test1
     @query window width <= 700
          {
               block.css('background-color', 'red');
          }
     @query window width > 700
          {
               block.css('background-color', 'blue');
          }

and tons of other features! docs will be released once a stable version with a complete feature set is released, but this version works well for current purposes

block.js stable

01 Nov 08:14
Compare
Choose a tag to compare
  • Blockfile philosophy implemented
  • More functions
  • Works with slop.ml and pocketjs pages

block.js concept

01 Nov 08:13
Compare
Choose a tag to compare
  • Basic DOM element wrapper
  • Similar to View.js
  • Limited features/functionality
  • Data loaded in JS