Skip to content

block.js responsive

Latest
Compare
Choose a tag to compare
@anuvgupta anuvgupta released this 28 Mar 06:25
· 17 commits to v3 since this release
  • 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