Last commit for v2/js/examples/simple.htm: c36f21f22ab69bdc840751846a2f0aa9a2195cb4

v2.2: Auto TimeZone and DST detection added

Hamid [2011-03-17 05:50:02]
v2.2: Auto TimeZone and DST detection added
<title> Daily Prayer Timetable </title>
	body, td, th {font-family: verdana; font-size: 12px; color: #404040;}
	#timetable {border-width: 1px; border-style: outset; border-collapse: collapse; border-color: gray; width: 9em;}
	#timetable td, #timetable th {border-width: 1px; border-spacing: 1px; padding: 2px 4px; border-style: inset; border-color: #CCCCCC;}
	#timetable th {color:black; text-align: center; font-weight: bold; background-color: #F8F7F4;}


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

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

<script type="text/javascript">

	var date = new Date(); // today
	var times = prayTimes.getTimes(date, [43, -80], -5);
	var list = ['Fajr', 'Sunrise', 'Dhuhr', 'Asr', 'Maghrib', 'Isha', 'Midnight'];

	var html = '<table id="timetable">';
	html += '<tr><th colspan="2">'+ date.toLocaleDateString()+ '</th></tr>';
	for(var i in list)	{
		html += '<tr><td>'+ list[i]+ '</td>';
		html += '<td>'+ times[list[i].toLowerCase()]+ '</td></tr>';
	html += '</table>';
	document.getElementById('table').innerHTML = html;