Created
April 14, 2010 17:16
-
-
Save enigma/366071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>CalMask</title> | |
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> | |
</script> | |
<style type="text/css"> | |
#feedback { font-size: 1.4em; } | |
#calmask .ui-selecting { background: #FECA40; } | |
#calmask .ui-selected { background: #F39814; color: white; } | |
#calmask { list-style-type: none; margin: 0; padding: 0; } | |
#calmask li { margin: 3px; padding: 1px; float: left; width: 100px; height: 80px; font-size: 1.3em; text-align: center; } | |
</style> | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function(){ | |
var id = "#calmask"; | |
var days = ["Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", | |
"Sabato"]; | |
var hour = 0; | |
$(id).append('<li class="calmask_box_sys">Ora</li>'); | |
for (var i=0; i < days.length; i++) { | |
$(id).append('<li class="calmask_box_sys">'+ days[i]+'</li>'); | |
} | |
for (var j=8; j < 20; j++) { | |
$(id).append('<li class="calmask_box">'+j+'-'+(j+1)+'</li>'); | |
for (var k=0; k < 6; k++) { | |
$(id).append('<li class="calmask_box">'+(hour++)+'</li>'); | |
}; | |
}; | |
}); | |
</script> | |
</head> | |
<body> | |
<h1>CalMask</h1> | |
<hr /> | |
<noscript>Questo sito non funziona senza JavaScript.</noscript> | |
<div id="calmask"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment