Skip to content

shbwb/bwb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic webpage builder

A basic webpage builder

Usage

<link href="https://cdn.jsdelivr.net/gh/shbwb/[email protected]/css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/gh/shbwb/[email protected]/js/plugins.js"></script>

You need to add these 2 urls to use bwb

Navs

Navbar

You can change the links in the code below.(tip: you can change the command "dark" to "light".)

<div class="navbar-theme-dark">
  <a href="http://github.com">GitHub</a>
</div>

Features

Type box

The css box(you can change "on" to "off")

<input focus="on" placeholder="xxx">

Back Button

<button  onclick="goback()">Back</button>

Try to change the key word "goback" to "gofoward"

Snackbar

Before you use,add this to your html file(body tag) <body onload="snackbar()">

<div id="snackbar">Welcome<strong> to </strong>use!</div>

Timer

<script src="https://cdn.jsdelivr.net/gh/crqblog/[email protected]/js/timer.js"></script>

Mask

The mask

<span class="mask">xxx</span>

Design

Sticky

You can add this code to everywhere.

<div class="sticky">xxx</div>

Small

<small>xxx</small>

Page

header

<div class="header text-center">
  ...
</div>

you should add "text-center".

row

<div class="row">
  ...
</div>

container

<div class="container">
  ...
</div>

inbox

<div class="inbox">
  ...
</div>

readbox highlight box

<div class="readbox">
  ...
</div>

e.g.

<div class="container">
      <h2>About us:</h2>
    <p>Author:</p></br>
<p>The project was build by Chen Ruiqi(crq)<p>
      <script src="https://cdn.jsdelivr.net/gh/crqblog/[email protected]/js/timer.js"></script>
   <div class="inbox">
      <h2>Friends</h2>
      <h5>ZJY:</h5>
      <div class="fakeimg" style="height:200px;">no photo</div>
    </div>
  </div>

Bar

<div class="bar bar-warning">
...
</div>

You can change the "warning" command to "done" or "information"


License

MIT