-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoption.html
62 lines (52 loc) · 1.1 KB
/
option.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
55
56
57
58
59
60
61
62
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>hoge</title>
<style>
body {
background-color: rgba(0, 0, 50, 0.8);
margin: 10px;
padding: 20px;
overflow: hidden;
font-family:"Meiryo";
color:#2196F3;
font-size: 64px;
color: #fff;
text-shadow: 6px 6px 0 #000,
-2px 2px 0 #000,
2px -2px 0 #000,
-2px -2px 0 #000;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
function loadXml()
{
var option = "";
var getxml = $.ajax({
url: "option.xml",
type: 'GET',
dataType: 'xml',
cache: false
});
getxml.done(function(xml){
option = $(xml).find('option').text(); // 常時表示
opt_dyn = $(xml).find('opt_dyn').text(); // 曲中のみ表示
$('#option span').text(option);
$('opt_dyn').text(opt_dyn);
});
getxml.fail(function(error){
//alert("読み込み失敗");
});
}
window.addEventListener('DOMContentLoaded', function() {
var roopTimer = setInterval(loadXml, 50);
});
</script>
</head>
<body>
<div id="option">opt: <span></span></div>
<opt_dyn></opt_dyn>
</body>
</html>