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> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <title>Plan lekcji</title> </head> <body> <!-- Start your code here --> <h1 id="title">Plan klasy:</h1> <br /> <div class="buttons"> <div class="back">Wróć</div> <div class="hide">Niemiecki</div><div>Rosyjski</div><br /> <div>Inf grI</div><div>Inf gr II</div><br /> <div>wf chłop</div><div>wf dziew</div> </div> <div class="szkielet"> <div id="nr"><p>nr.</p></div> <div id="godz"><p>Godz</p></div> <div class="plan"> <div id=0><p>Poniedziałek</p></div> <div id=1><p>Wtorek</p></div> <div id=2><p>Środa</p></div> <div id=3><p>Czwartek</p></div> <div id=4><p>Piątek</p></div> </div> </div> <!-- End your code here --> </body> </html>
.back { float: right; margin: -15 0 0 0; } .buttons{ margin: -40 0 0 0; } .buttons > div{ display: inline-table; border: 1px solid #000000; width: 10%; text-align: center; font-style: italic; font-size: 12px; margin: 5 0 0 0px; position: relative; cursor: pointer; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background-color: #FFEBCD } .buttons > div:hover { background-color: #FFD700; } p { display: inline-block; border: 1px solid black; float: left; margin: 3; text-align: center; font-family: Verdana, Geneva, sans-serif; font-style: italic;; } .plan p{ width: 15%; } #nr p{ width: 5%; } #godz p{ width: 8%; } .buttons .hide { display: none; }
//Próba nr 3 -,- var Plan = { wybor: function(){ $('.buttons div').click(function(){ if ($('buttons:first-child') == this){ $('.buttons').children().removeClass('hide'); } }); } }; document.write($('.buttons').children().text()); //Wróć jest pierwszym dzieckiem "buttons" document.write('<br />'); document.write($('.buttons:first-child').hasClass("back")); //Czemu?