-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget.html~
More file actions
42 lines (42 loc) · 2.14 KB
/
Copy pathwidget.html~
File metadata and controls
42 lines (42 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<script>
function getText() {
if (window.XMLHttpRequest){
var req=new XMLHttpRequest();}
else {
var req=new ActiveXObject("Microsoft.XMLHTTP");}
req.open("GET","http://prayer.forwardmovement.org/bare/bare_forward_day_by_day.php",true);
req.send();
req.onreadystatechange=function(){
if(req.readyState==4 && req.status==200){
if (window.DOMParser){
parser=new DOMParser();
htmlDoc=parser.parseFromString(req.responseText,"text/html");}
else{
htmlDoc=new ActiveXObject("Microsoft.XMLDOM");
htmlDoc.async=true;
htmlDoc.loadXML(req.responseText);}
quote = htmlDoc.getElementsByClassName("quote");
document.getElementById("verse").innerHTML=quote[0].innerText;}}}
window.onload=function() {
var d = new Date();
var daynum = d.getDay();
var day = "";
if (daynum == 0) {day = "Sunday";}
if (daynum == 1) {day = "Monday";}
if (daynum == 2) {day = "Tuesday";}
if (daynum == 3) {day = "Wednesday";}
if (daynum == 4) {day = "Thursday";}
if (daynum == 5) {day = "Friday";}
if (daynum == 6) {day = "Saturday";}
var toDisp=day+", "+d.toLocaleDateString();
document.getElementById("date").innerHTML=toDisp;
getText();}
</script>
<link href='http://fonts.googleapis.com/css?family=Belleza' rel='stylesheet' type='text/css'>
<div style="width:400px;height:10px;">
<div style="max-width:300px;min-width:150px;width:80%;height:auto;max-height:400px;min-height:200px;background-color:#EBEBF3;text-align:center;border-radius:5px;border:solid black 2px;font-family:'Belleza',sans-serif;">
<div style="width:100%;height:auto;background-color:#022B4B;"><h4 style="color:#FFFFFF;display:inline;text-shadow:2px 2px black;">Forward Movement<br>Day by Day</h4><br></div>
<h4 style="color:#09488B;display:inline;"><br><b>Daily Prayer for:</b></h4><br>
<span id="date"></span><br><br><p id="verse" style="display:inline;"></p>
<p id="readMore"> To read more, click <a href="http://prayer.forwardmovement.org/forward_day_by_day.php" target="Daily_Prayer">here</a>.</p></div></div></html>