Giter VIP home page Giter VIP logo

blox.js's Introduction

Blox.JS

Simple website design in blocks. Basically blocs3, but in JS form and open source!

When my friends ask me to make a website for them, I'm too lazy too program a whole new website when I can just use Blox. The Idea is simple, a website consists of cubes(blocks) and they are easy to work with.

Examples

Site examples are: Blox test site where Blox.js is showcased

Same site as the Blox.js test site, but recreated without Blox.js

How to install?

Link the raw Blox.js and Blox.css to your page. The Blox.js must be put in as an element after the rest of the page. This ensures that the whole page is loaded before Blox.js takes action.

Usage

With Blox.js, you can surround a divider element with your own stuff. The divider needs its own unique id and a class describing with block type it needs to transform into.

Block type class name
Single block blockSingle
Double block (page wide) blockDouble

If you want your block to have a background, simply put in an img element with the id "background" and ofcourse a source.

Here's an exmaple of how it should look like:

Before:

<ul>
  <li>Item one</li>
  <li>Iten two</li>
</ul>
    
After:

<div class="blockDouble" id="uniqueID">
    <ul>
      <li>Item one</li>
      <li>Iten two</li>
    </ul>
    <img id="background" src="myImage.png">
</div>

For questions, please contact me. If you have issues with Blox.JS functionality, please submit a new issue.

blox.js's People

Contributors

simplypancake avatar

Watchers

James Cloos avatar

blox.js's Issues

For loop doesn't loop.

It is at the current moment impossible to have two background configured images at the same time. Code should work normally.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.