-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseries.html
54 lines (45 loc) · 869 Bytes
/
series.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
51
52
53
54
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>hoge</title>
<style>
body {
background-color: rgba(0, 0, 0, 0);
margin: 10px;
padding: 20px;
overflow: hidden;
font-family:"Meiryo";
color:#2196F3;
font-size: 128px;
color: #fff;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
function loadXml()
{
var series = "";
var getxml = $.ajax({
url: "series.xml",
type: 'GET',
dataType: 'xml',
cache: false
});
getxml.done(function(xml){
series = $(xml).find('series').text();
$('#series span').text(series);
});
getxml.fail(function(error){
//alert("読み込み失敗");
});
}
window.addEventListener('DOMContentLoaded', function() {
var roopTimer = setInterval(loadXml, 2000);
});
</script>
</head>
<body>
<div id="series"><span></span></div>
</body>
</html>