Last commit for v1/js/examples/simple.htm: 1c500fff7f21d1993f205d3e36dc17ee56efdf24

JavaScript ver 2.0 uploaded

Hamid [2010-10-29 05:14:09]
JavaScript ver 2.0 uploaded
<html>
<head>
<title> Daily Prayer Timetable </title>
<style>
	body, td, th {font-family: verdana; font-size: 12px; color: #404040;}
	#timetable {border-width: 1px; border-style: outset; border-collapse: collapse; border-color: gray;}
	#timetable td, #timetable th {border-width: 1px; border-spacing: 1px; padding: 2px; border-style: inset; border-color: #CCCCCC;}
	#timetable th {color:black; text-align: center; font-weight: bold; background-color: #F8F7F4;}
</style>
</head>

<body>

<br>
<p align="center">Waterloo, ON, Canada<p>
<div align="center" id="table"></div>

<script type="text/javascript" src="../PrayTime.js"></script>

<script type="text/javascript">

	var date = new Date(); // today
	var times = prayTime.getPrayerTimes(date, 43, -80, -5);

	var str = '<table id="timetable">';
	str += '<tr><th colspan="2">'+ date.toLocaleDateString()+ '</th></tr>';
	for(var i = 0; i < times.length; i++)
	{
		str += '<tr><td>'+ prayTime.timeNames[i]+ '</td>';
		str += '<td>'+ times[i]+ '</td></tr>';
	}
	str += '</table>';
	document.getElementById('table').innerHTML = str;

</script>

</body>
</html>
ViewGit