-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzmanim.html
50 lines (38 loc) · 1.6 KB
/
zmanim.html
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
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Yahalom Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
</head>
<body>
<div id="Zmanim">
<!--<embed src="https://www.chabad.org/tools/rss/zmanim.xml?locationid=347&locationtype=1"></embed>-->
</div>
<script>
//$.getJSON('https://api.allorigins.win/get?url=' + encodeURIComponent('https://www.chabad.org/tools/rss/zmanim.xml?locationid=347&locationtype=1'), function(data) {
// var jsonData = JSON.parse(data.contents);
// console.log(jsonData);
//});
$.ajax({
type: "POST",
url: "https://api.allorigins.win/get?url=https://www.chabad.org/tools/rss/zmanim.xml?locationid=347&locationtype=1",
datatype: "xml",
success: function(data) {
console.log("Success");
console.log(data);
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(data, "application/xml");
console.log("Type: " + xmlDoc.datatype);
console.log("xmlDoc: " + xmlDoc);
var xData = xmlDoc.getElementsByTagName("rss");
console.log("xData: " + xData);
console.log("Length: " + xData.length);
}
})
</script>
</body>
</html>
<!--https://api.allorigins.win/get?url=https://www.chabad.org/tools/rss/zmanim.xml?locationid=347&locationtype=1 -->