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>Website Designer Experiment</title> <meta charset="UTF-8" /> <meta name="viewport" content="initial-scale=1.0"> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> </head> <body> <!-- HTML Here --> <table id="main" border="1"> <tr> <td id="canvas" valign="top"></td> <td valign="top"> <div id="control_box"> <form id='tools'> <input name="tool" id="tool-1" checked="checked" type="radio"> <label for="tool-1">DIV</label> <input name="tool" id="tool-2" type="radio"> <label for="tool-2">Remove</label> </form><br> Border Width <select id="divborder"> <option value="1px">1px</option> <option value="2px">2px</option> <option value="3px" selected="selected">3px</option> <option value="5px">5px</option> <option value="7px">7px</option> <option value="8px">8px</option> <option value="9px">9px</option> <option value="10px">10px</option> </select><br> Border Style <select id="divborderstyle"> <option value="dotted">dotted</option> <option value="dashed">dashed</option> <option value="solid" selected="selected">solid</option> <option value="double">double</option> <option value="groove">groove</option> <option value="ridge">ridge</option> <option value="inset">inset</option> <option value="outset">outset</option> </select><br> Border Color <input id="bcolor" type="text" name="bcolor" value="#f00" /></div><br> BG Color <input id="bgcolor" type="text" name="bgcolor" value="#000" onchange="window.set_fill_color(this.value); var col = this.value ; $('#colorSelectorFill').ColorPickerSetColor(col);" /></div> <input type="button" id="nobg" value="none"> </div><br><br> <textarea id='code' placeholder="The #canvas acts as page body"></textarea> </td> </tr> </table> </body> </html>
table#main { position:absolute; top:0; left:0; width:100%; height:100%; } table#main td { width:50%; overflow:auto; } table#main textarea { width:100%; min-height:10em; margin:0; padding:0; border:0; outline:0; color:#ccc; background:#333; resize:vertical; }
$(window).load(function() { var code = $('#code'), preview = $("#canvas"); // Live Keyup canvas code.val(preview.html()); $('#main #sitename').text($('#main #inputsitename').val()); code.keyup(function(e) {preview.html(code.val());}); // Using the <TAB> code.keydown(function(e) { if(e.keyCode == 9) { var start = $(this).get(0).selectionStart; $(this).val($(this).val().substring(0, start) + ' ' + $(this).val().substring($(this).get(0).selectionEnd)); $(this).get(0).selectionStart = $(this).get(0).selectionEnd = start + 1; return false; } }); // Remove Tool $('#tool-2').change(function() { if ($(this).is(':checked')) { alert('Remove Tool Chosen! You can now remove divs within the canvas.'); $('#canvas div').on('click', function() { $(this).remove(); code.val(preview.html()); }); } else { alert('Houston we have a problem!'); } }); // Edit To No Background $('#nobg').click(function() { $('input[name=bgcolor]').val('none'); }); });