114 lines
3.1 KiB
HTML
114 lines
3.1 KiB
HTML
<html>
|
|
<head>
|
|
|
|
<title>Blue Letter Bible: Day By Day By Grace -- Bob Hoekstra</title>
|
|
<script src="../../js/basepath.js" type="text/javascript"></script>
|
|
<script src="./js/nav.js" type="text/javascript"></script>
|
|
<script src="./js/MainHeader.js" type="text/javascript"></script>
|
|
<script>
|
|
Dates = new Array();
|
|
Dates[1] = 31;
|
|
Dates[2] = 29;
|
|
Dates[3] = 31;
|
|
Dates[4] = 30;
|
|
Dates[5] = 31;
|
|
Dates[6] = 30;
|
|
Dates[7] = 31;
|
|
Dates[8] = 31;
|
|
Dates[9] = 30;
|
|
Dates[10] = 31;
|
|
Dates[11] = 30;
|
|
Dates[12] = 31;
|
|
|
|
function pad(padWhat,howMuch) {
|
|
padWhat = padWhat.toString();
|
|
padLength = padWhat.length;
|
|
for(i=padLength;i<howMuch;i++) {
|
|
padWhat = "0"+padWhat;
|
|
}
|
|
return padWhat;
|
|
}
|
|
|
|
function goToday() {
|
|
var today = new Date();
|
|
Month=today.getMonth()+1;
|
|
Day=today.getDate();
|
|
Month=pad(Month,2);
|
|
Day=pad(Day,2);
|
|
window.location.href=basePath+'/devotions/daybyday/'+Month+"/"+Month+Day+".html";
|
|
return false;
|
|
}
|
|
|
|
function goNow() {
|
|
var When = new String(document.OC_When.date.value);
|
|
if (When.length < 1) {
|
|
alert("Please provide a specific date.");
|
|
return false;
|
|
}
|
|
else {
|
|
Month = parseInt(When.split("/")[0], 10);
|
|
Day = parseInt(When.split("/")[1], 10);
|
|
if (!Month || !Day || Month=="" || Day=="") {
|
|
alert("This is not a valid date");
|
|
return false;
|
|
}
|
|
else if(1 > Month || Month > 12 || 1 > Day || Day > Dates[Month]) {
|
|
alert("This is not a valid date");
|
|
return false;
|
|
}
|
|
else {
|
|
Month=pad(Month,2);
|
|
Day=pad(Day,2);
|
|
window.location.href=basePath+'/devotions/daybyday/'+Month+"/"+Month+Day+".html";
|
|
return false;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
</script>
|
|
<DIV CLASS="head">
|
|
Day By Day By Grace
|
|
</DIV>
|
|
<DIV CLASS="subhead">
|
|
by Bob Hoekstra
|
|
</DIV>
|
|
<DIV CLASS="desc-just">
|
|
<DIV CLASS="pad2020">
|
|
<i>Day-By-Day By Grace</i>, by Pastor Bob Hoekstra, founder of <a
|
|
href="http://www.calvarychapel.org/livinginchrist">Living In Christ
|
|
Ministries</a>, seeks to illuminate the grace of God through daily
|
|
devotions set to inspire the child of Christ toward the heart of
|
|
his Creator and Benefactor.
|
|
</DIV>
|
|
</DIV>
|
|
<DIV CLASS="main-center">
|
|
<DIV STYLE="padding:5px">
|
|
<FORM name="OC_Today" action="" method="get" onSubmit="return goToday();">
|
|
<INPUT TYPE="button" VALUE=" Today's Reading " onClick="goToday();">
|
|
<BR>
|
|
<script>
|
|
var today = new Date();
|
|
document.write(today);
|
|
</script>
|
|
</FORM>
|
|
</DIV>
|
|
</DIV>
|
|
<DIV CLASS="main-center">
|
|
<DIV STYLE="padding:5px">
|
|
<form name="OC_When" action="" method="get" onSubmit="return goNow();">Date (mm/dd):
|
|
<input type="text" name="date" size="6" class="blue"><BR>
|
|
<input type="button" value=" Submit Specific Date " onClick="goNow();"></form>
|
|
</DIV>
|
|
</DIV>
|
|
<DIV CLASS="desc-center">
|
|
<DIV CLASS="pad2020">
|
|
<a href="./devotions/daybyday/date.html"><B>Date Index</B></a>
|
|
<BR><BR>
|
|
<a href="./devotions/daybyday/verse.html"><B>Scripture Index</B></a>
|
|
</DIV>
|
|
</DIV>
|
|
<div class="return">
|
|
<a href="./d.html">Return to Devotionals Index</a>
|
|
</div>
|
|
<script src="./js/MainFooter.js" type="text/javascript"></script>
|