Initializing
Liveweave
Web
expand_more
home
Home
data_object
CSS Explorer
arrow_outward
Palette
Color Explorer
arrow_outward
Polyline
Graphics Editor
arrow_outward
outbox_alt
Generative AI
arrow_outward
frame_source
Python Playground
New
arrow_outward
build
Tools
expand_more
restart_alt
Load "Hello Weaver!"
post_add
Generate Lorem ipsum...
code
Format HTML
code_blocks
Format CSS
data_object
Format JavaScript
library_add
Library
expand_more
A
Algolia JS
Animate CSS
Apex Charts JS
B
Bulma CSS
Bootstrap
C
Chart JS
Chartist
Create JS
D
D3
Dojo
F
Foundation
Fullpage JS
G
Granim JS
Google Charts
H
Halfmoon
J
jQuery
M
Materialize
Moment JS
Masonry JS
Milligram CSS
P
Pure CSS
Primer CSS
Popper JS
Pattern CSS
Picnic CSS
R
React JS
Raphael JS
Raisin CSS
S
Semantic UI
Skeleton CSS
Spectre CSS
Tachyons CSS
T
Tailwind
Three JS
U
UI Kit
Vis JS
W
Water CSS
download
Download
expand_more
developer_mode
Download as HTML
folder_zip
Download as .ZIP
cloud_upload
Save
account_circle
Login
settings
Settings
expand_more
14
px
Live mode
Night mode
Line number
Mini map
Word wrap
sync_alt
Reset Settings
smart_display
Run
<!DOCTYPE html> <html> <head> <title>Web Builder Experiment</title> <meta charset='utf-8'> <meta content='width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0' name='viewport'> <script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'></script> <script type="text/javascript" src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"> <link rel='stylesheet' href='http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css'> <script src='http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js' type='text/javascript'></script> </head> <body> <div data-role='page'> <div class='header' data-role='header'> <div id='tools' align='center'> <a id='select' data-role='button' data-inline='true' data-mini='true'>Select</a> <a id='div' data-role='button' data-inline='true' data-mini='true'>DIV</a> <a id='text' data-role='button' data-inline='true' data-mini='true'>Text</a> </div> <h1 style='visibility:hidden; width:0; height:0; margin:0;'>NULL</h1> </div> <div class='content' data-role='content'> <div id='editor'></div> </div> </div> </body> </html>
/* Main Menu */ #tools { display: inline-block; width: 100%; overflow-x: hidden; overflow-y: hidden; white-space: nowrap; } #tools a { display: inline-block; margin: .75em .25em .1em; } /* Designer/Code */ #editor { width: 100%; height: 100%; background: #fff; }
$(window).load(function() { var code = $('#code'), preview = $('#editor'); $('#tools a').click(function() { $('#tools a').animate({ "opacity": "0.6" }); $(this).animate({ "opacity": "1" }); }); $('#select').click(function() { $('#editor').html('Select'); }); $('#div').click(function() { $('#editor').html('<div>DIV</div>'); }); $('#text').click(function() { $('#editor').html('<span>Text</span>'); }); var fixgeometry = function() { // Some orientation changes leave the scroll position at something that isn't 0,0. This is annoying for user experience. scroll(0, 0); // Calculate the geometry that our content area should take var header = $('.header:visible'); var footer = $('.footer:visible'); var content = $('.content:visible'); var viewport_height = $(window).height(); var content_height = viewport_height - header.outerHeight() - footer.outerHeight(); // Trim margin/border/padding height content_height -= (content.outerHeight() - content.height()); content.height(content_height); }; // fixgeometry $(document).ready(function() { $(window).bind('orientationchange resize pageshow', fixgeometry); }); });