-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
163 lines (155 loc) · 5.21 KB
/
index.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<html>
<head>
<meta name="robots" content="noindex"><meta name="viewport" content="width=device-width,initial-scale=1"><script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><meta property="og:type" content="music.song"><meta property="og:description" content=""><meta property="og:title" content=""><meta property="og:url" content=""><meta property="og:image" content=""><meta property="og:site_name" content=""><meta property="og:locale" content=""><link rel="shortcut icon" href=" " id="fav"><link rel="stylesheet" href="lib1.css"><script src="//accaii.com/gakkologin/script.js" async></script><noscript><img src="//accaii.com/gakkologin/script?guid=on"></noscript>
</head>
<body>
<div id="lod"></div>
<div class="topbox">
<img src="https://ul.h3z.jp/X6NJcwrK.png" class="logo" id="logo">
<!--<p class="cb1"></p>-->
<div class="searchArea" id="makeImg">
<input type="text" id="inText" class="searchText" placeholder="haruharumusicを検索">
<div class="searchButton">
<img src=" https://ul.h3z.jp/4nvH8eqy.png" class="searchImg">
</div>
</div>
</div>
<div class="mc">
<div class="clm1">
<img src="" class="ac" id="acover">
<div class="sityou">
<div class="player">
<p id="mname" class="pmn"></p><div id="playbutton1"><img src="https://ul.h3z.jp/yGgFafKX.png" class="ppbn"></div>
</div>
</div>
</div>
<div class="clm2">
<h2 id="mtitle"></h2>
<p id="author2"></p>
<small>AAC/WAV/MP3版※1</small><button style="cursor:pointer;background: coral; border-radius: 5px; border: none; color: white; padding: 10px 15px;margin: 10px;">ダウンロード➡</button>
<div id="infobox1"></div>
<p id="cpg"></p>
※1 ダウンロード形式は作曲者及び配信者によって異なり、一部の形式では提供されていない可能性があります。
</div>
</div>
</body>
<script>
window.addEventListener('load', function(){
window.addEventListener("blur", blur, false);
window.addEventListener("focus", focu, false);
});
var ms = screen.width;
var mms = window.innerWidth;
function blur(){
mlve();
}
function focu(){
if(ms==screen.width){
ment();
}else{
debugger;
}
}
window.onresize = window_load;
function window_load() {
if(mms == window.innerWidth){
ment();
}else{
mlve();
}
}
function mlve(){
var belement = document.createElement("blank");
belement.id="bm";
document.body.appendChild(belement);
}
function ment(){
document.getElementById("bm").remove();
}
window.document.onkeydown = function(event){
if(event.key == "F12"){
return false;
};
if(event.ctrlKey && event.key === "r"){
return false;
};
if(event.key == "F5"){
return false;
};
if(event.key == "K"){
return false;
};
if(event.key == "u"){
return false;
};
if(event.key == "s"){
mlve();
return false;
};
};
document.body.oncontextmenu = function(){
return false;
}
var title1 = document.querySelector("#mtitle");
var lod = document.querySelector("#lod");
var img1 = document.querySelector("#acover");
var cpg = document.querySelector("#cpg");
var at2 = document.querySelector("#author2");
var logo = document.querySelector("#logo");
var ida = location.hash.substr(1);
if (ida == "") {
} else {
}
var d = new Date();
var eei = d.getMinutes()*8383;
$.ajax({
type: "GET",
url: "https://script.google.com/macros/s/AKfycbwsc1r_Cth6EtETAT3Ck4Zyc62pxEGgHV_H8evSklXpvEy7oIr_KKB0S4e4khDmP6N4dA/exec",
data: { p1: ida , env: eei},
async : false
})
.done(function (data) {
var dd = JSON.parse(data);
console.log(dd);
if (dd[0] == "URLID") {
location.href = "404";
} else {
lod.style.display="none";
var er = dd[5].substr(10,5);
var author1 = dd[6].substr(1);
var type1 = dd[6].substr(0,1);
console.log(er);
if(type1 == "c"){
cpg.innerHTML="©"+er+" "+author1;
}else if(type1 == "p"){
cpg.innerHTML="℗"+er+" "+author1;
}else{
cpg.style.display="none";
}
at2.innerHTML = dd[3];
img1.src = dd[7];
title1.innerHTML = dd[1];
var title = dd[1];
var url = location.href;
var image = dd[7];
document.title = title+" - haruharumusic.f5.si はるはるミュージック";
var fav = document.getElementById("fav");
fav.href = dd[7];
var headData = document.head.children;
var ifb1 = document.getElementById("infobox1");
ifb1.innerHTML="<b>info</b><br>公開開始日:"+dd[5].substr(0,16)+"(日本標準GMT+0900)~<br>distributor:"+author1;
var pmn = document.getElementById("mname");
pmn.innerHTML=dd[1]+"("+dd[2]+")";
}
});
var ceffect = document.getElementById("inText");
ceffect.addEventListener('focus', (event) => {
if(screen.width<800){
logo.style.display = 'none';
}
});
ceffect.addEventListener('blur', (event) => {
logo.style.display = 'block';
});
</script>
</html>