$('.icon1').draggable({
drag: function () {
$('.cursor img').attr('src', '../img/cursor.cluster01.png');
},
});
$('.icon2').draggable({
drag: function () {
$('.cursor img').attr('src', '../img/cursor.cluster02.png');
},
});
$('.icon3').draggable({
drag: function () {
$('.cursor img').attr('src', '../img/cursor.cluster03.png');
},
});
$('.icon4').draggable({
drag: function () {
$('.cursor img').attr('src', '../img/cursor.cluster04.png');
},
});
$('.icon5').draggable({
drag: function () {
$('.cursor img').attr('src', '../img/cursor.cluster05.png');
},
});
$('.music__wrap').draggable();
$('.source__wrap').draggable();
function printTime() {
const clock = document.querySelector('.time');
const now = new Date();
const hours = ('0' + now.getHours()).slice(-2);
const minutes = ('0' + now.getMinutes()).slice(-2);
const seconds = ('0' + now.getSeconds()).slice(-2);
// console.log(seconds);
// getFullYear | ๋
๋๋ง ๊ฐ์ ธ์จ๋ค.
const nowTime = now.getFullYear() + '. ' + (now.getMonth() + 1) + '. ' + (now.getDate() + 1) + ' | clock ' + hours + ' : ' + minutes + ' : ' + seconds;
clock.innerText = nowTime;
setTimeout('printTime()', 1000);
}
// window.onload = function () {
// printTime();
// };
// if (currentSec < 10) currentSec = `0${currentSec}`;
function printAgent() {
const agent = document.querySelector('.agent');
const os = navigator.userAgent.toLocaleLowerCase();
agent.innerText = os;
if (os.indexOf('window') >= 0) {
agent.innerText = 'ํ์ฌ ์๋์ฐ๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์๋ฆฌ์๋ฆฌ๋ฝ ๐พ | ํ๋ฉด ํฌ๊ธฐ๋ ' + screen.width + ' * ' + screen.height + ' ์
๋๋ค.';
document.querySelector('body').classList.add('window');
} else if (os.indexOf('macintosh') >= 0) {
agent.innerText = 'ํ์ฌ ๋งฅ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์๋ฆฌ์๋ฆฌ๋ฝ ๐พ | ํ๋ฉด ํฌ๊ธฐ๋' + screen.width + ' * ' + screen.height + ' ์
๋๋ค.';
document.querySelector('body').classList.add('macintosh');
} else if (os.indexOf('iphone') >= 0) {
agent.innerText = 'ํ์ฌ ์์ดํฐ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์๋ฆฌ์๋ฆฌ๋ฝ ๐พ | ํ๋ฉด ํฌ๊ธฐ๋ ' + screen.width + ' * ' + screen.height + ' ์
๋๋ค.';
document.querySelector('body').classList.add('iphone');
} else if (os.indexOf('android') >= 0) {
agent.innerText = 'ํ์ฌ ์๋๋ก์ด๋๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์๋ฆฌ์๋ฆฌ๋ฝ ๐พ | ํ๋ฉด ํฌ๊ธฐ๋ ' + screen.width + ' * ' + screen.height + ' ์
๋๋ค.';
document.querySelector('body').classList.add('android');
}
}
window.onload = function () {
printTime();
printAgent();
};
// const cursor = document.querySelector('.mouse__cursor');
// // ๋ง์ฐ์ค ์ปค์ ์คํ์ผ : ๋ง์ฐ์ค๋ฅผ ๋ฐ๋ผ๋ค๋๊ฒ ์์น๊ฐ ์ง์
// window.addEventListener('mousemove', (e) => {
// // e = event
// cursor.style.left = e.clientX - 0 + 'px';
// cursor.style.top = e.clientY - 0 + 'px';
// });
const musicWrapClose = document.querySelector('.musicWrap__close');
const musicListShow = document.querySelector('.music__footer .music__list.show');
const musicListClose = document.querySelector('.music__list .close');
const musicIco = document.querySelector('.icon1');
console.log(musicWrapClose);
musicListBtn.addEventListener('click', () => {
musicList.classList.add('show');
});
musicListClose.addEventListener('click', () => {
musicList.classList.remove('show');
});
musicIco.addEventListener('click', () => {
musicWrap.classList.add('show');
});
musicWrapClose.addEventListener('click', () => {
musicWrap.classList.remove('show');
});
// music JS
const allMusic = [
{
name: 'Circle',
artist: 'Netrum & Halvorsen',
img: 'gameEffect_view01',
audio: 'music_audio01',
},
{
name: 'For You',
artist: 'CHENDA',
img: 'gameEffect_view02',
audio: 'music_audio02',
},
{
name: 'Unforgivable',
artist: 'Jim Yosef & Shiah Maisel',
img: 'gameEffect_view03',
audio: 'music_audio03',
},
{
name: 'Electric (feat. Robbie Rosen)',
artist: 'VAANCE & Deerock',
img: 'gameEffect_view04',
audio: 'music_audio04',
},
{
name: "Can't You Feel It",
artist: 'MIDNIGHT CVLT & Wiguez',
img: 'gameEffect_view05',
audio: 'music_audio05',
},
];
const musicWrap = document.querySelector('.music__wrap');
const musicView = musicWrap.querySelector('.music__view .img img');
const musicName = musicWrap.querySelector('.music__view .title h3');
const musicArtist = musicWrap.querySelector('.music__view .title p');
const musicAudio = musicWrap.querySelector('#main-audio'); // ์์
const musicPlay = musicWrap.querySelector('#control-play'); // ์ฌ์ ๋ฒํผ
const musicPrevBtn = musicWrap.querySelector('#control-prev'); // ์ด์ ๋ฒํผ
const musicNextBtn = musicWrap.querySelector('#control-next'); // ๋ค์ ๋ฒํผ
const musicProgress = musicWrap.querySelector('.progress'); // ๋ฎค์ง ํ๋ก๊ทธ๋์ค
const musicProgressBar = musicWrap.querySelector('.progress .bar'); // ์งํ ๋ฐ
const musicProgressCurrent = musicWrap.querySelector('.progress .timer .current');
const musicProgressDuration = musicWrap.querySelector('.progress .timer .duration');
const musicRepeat = musicWrap.querySelector('#control-repeat'); // ๋ฎค์ง ์ ์ฒด ๋ฐ๋ณต ์ฌ์
const musicListBtn = musicWrap.querySelector('#control-list'); // ๋ฎค์ง ๋ฆฌ์คํธ
const musicList = musicWrap.querySelector('.music__list'); // ๋ฎค์ง ๋ฆฌ์คํธ
const musicListUl = musicWrap.querySelector('.music__list ul'); // ๋ฎค์ง ๋ฆฌ์คํธ
const volumeBar = document.getElementById('volume_control');
volumeBar.addEventListener('change', function () {
musicAudio.volume = volumeBar.value / 100;
});
let musicIndex = 1; // ํ์ฌ ๋
ธ๋ ์ธ๋ฑ์ค ๊ฐ
// ์์
์ฌ์
function loadMusic(num) {
musicName.innerText = allMusic[num - 1].name; // ๋
ธ๋ ์ ๋ชฉ
musicArtist.innerText = allMusic[num - 1].artist; // ๋
ธ๋ ์ํฐ์คํธ
musicView.src = `../assets/img/${allMusic[num - 1].img}.png`; // ๋
ธ๋ ์ด๋ฏธ์ง
musicView.alt = allMusic[num - 1].name; // ๋
ธ๋ ์ด๋ฏธ์ง alt
musicAudio.src = `../assets/audio/${allMusic[num - 1].audio}.mp3`; // ๋
ธ๋
}
// ์ฌ์ ๋ฒํผ
function playMusic() {
musicWrap.classList.add('paused');
musicPlay.setAttribute('title', '์ ์ง');
musicPlay.setAttribute('class', 'stop');
musicAudio.play();
}
// ์ ์ง ๋ฒํผ
function pauseMusic() {
musicWrap.classList.remove('paused');
musicPlay.setAttribute('title', '์ฌ์');
musicPlay.setAttribute('class', 'play');
musicAudio.pause();
}
// ์ด์ ๊ณก ๋ฃ๊ธฐ ๋ฒํผ
function prevMusic() {
musicIndex == 1 ? (musicIndex = allMusic.length) : musicIndex--;
loadMusic(musicIndex);
playMusic();
playListMusic();
}
// ๋ค์ ๊ณก ๋ฃ๊ธฐ ๋ฒํผ
function nextMusic() {
musicIndex == allMusic.length ? (musicIndex = 1) : musicIndex++;
loadMusic(musicIndex);
playMusic();
playListMusic();
}
// ๋ณผ๋ฅจ ์กฐ์ ๋ฒํผ
// ๋ฎค์ง ์งํ๋ฐ
musicAudio.addEventListener('timeupdate', (e) => {
// console.log(e)
const currentTime = e.target.currentTime; //ํ์ฌ ์ฌ์๋๋ ์๊ฐ
const duration = e.target.duration; //์ค๋์ค์ ์ด ๊ธธ์ด
let progressWidth = (currentTime / duration) * 100; //์ ์ฒด ๊ธธ์์ด์ ํ์ฌ ์งํ๋๋ ์๊ฐ์ ๋ฐฑ๋ถ์๋ก ๋๋
musicProgressBar.style.width = `${progressWidth}%`;
// ์ ์ฒด์๊ฐ
musicAudio.addEventListener('loadeddata', () => {
let audioDuration = musicAudio.duration;
let totalMin = Math.floor(audioDuration / 60); //์ ์ฒด ์๊ฐ(์ด)์ ๋ถ๋จ์๋ก ์ชผ๊ฐฌ
let totalSec = Math.floor(audioDuration % 60); //๋จ์ ์ด๋ฅผ ์ ์ฅ
if (totalSec < 10) totalSec = `0${totalSec}`; //์ด๊ฐ ํ ์๋ฆฟ์ ์ผ๋ ์์ 0์ ๋ถ์
musicProgressDuration.innerText = `${totalMin}:${totalSec}`; //์์ฑ๋ ์๊ฐ ๋ฌธ์์ด์ ์ถ๋ ฅ
});
// ์งํ์๊ฐ
let currentMin = Math.floor(currentTime / 60);
let currentSec = Math.floor(currentTime % 60);
if (currentSec < 10) currentSec = `0${currentSec}`;
musicProgressCurrent.innerText = `${currentMin}:${currentSec}`;
});
// ์งํ๋ฒํผ ํด๋ฆญ
musicProgress.addEventListener('click', (e) => {
let progressWidth = musicProgress.clientWidth; // ์งํ๋ฐ ์ ์ฒด ๊ธธ์ด
let clickedOffsetX = e.offsetX; // ์งํ๋ฐ ๊ธฐ์ค์ผ๋ก ์ธก์ ๋๋ X๊ฐ ์ขํ
let songDuration = musicAudio.duration; // ์ค๋์ค ์ ์ฒด ๊ธธ์ด
musicAudio.currentTime = (clickedOffsetX / progressWidth) * songDuration; // ๋ฐฑ๋ถ์๋ก ๋๋ ์ซ์์ ๋ค์ ์ ์ฒด ๊ธธ์ด๋ฅผ ๊ณฑํ์ฌ ํ์ฌ ์ฌ์๊ฐ์ผ๋ก ๋ฐ๊พผ๋ค.
});
// ๋ฐ๋ณต ๋ฒํผ ํด๋ฆญ
musicRepeat.addEventListener('click', () => {
let getAttr = musicRepeat.getAttribute('class');
switch (getAttr) {
case 'repeat':
musicRepeat.setAttribute('class', 'repeat_one');
musicRepeat.setAttribute('title', 'ํ๊ณก ๋ฐ๋ณต');
break;
case 'repeat_one':
musicRepeat.setAttribute('class', 'shuffle');
musicRepeat.setAttribute('title', '๋๋ค ์ฌ์');
break;
case 'shuffle':
musicRepeat.setAttribute('class', 'repeat');
musicRepeat.setAttribute('title', '์ ์ฒด ๋ฐ๋ณต');
break;
}
});
// ์ค๋์ค๊ฐ ๋๋ ๋ ์ค์
musicAudio.addEventListener('ended', () => {
let getAttr = musicRepeat.getAttribute('class');
switch (getAttr) {
case 'repeat':
nextMusic();
break;
case 'repeat_one':
playMusic();
break;
case 'shuffle':
let randomIndex = Math.floor(Math.random() * allMusic.length + 1); // ๋๋ค ์ธ๋ฑ์ค ์์ฑ
do {
randomIndex = Math.floor(Math.random() * allMusic.length + 1);
} while (musicIndex == randomIndex);
musicIndex = randomIndex; // ํ์ฌ ์ธ๋ฑ์ค๋ฅผ ๋๋ค ์ธ๋ฐ์ค๋ก ๋ณ๊ฒฝ
loadMusic(musicIndex); // ๋๋ค ์ธ๋ฑ์ค๊ฐ ๋ฐ์๋ ํ์ฌ ์ธ๋ฑ์ค ๊ฐ์ผ๋ก ์์
์ ๋ค์ ๋ก๋
playMusic(); // ๋ก๋ํ ์์
์ ์ฌ์
break;
default:
break;
}
playListMusic();
});
// ๋ฎค์ง ๋ฆฌ์คํธ ๋ฒํผ
musicListBtn.addEventListener('click', () => {
musicList.classList.add('show');
});
// ํ๋ ์ด ๋ฒํผ ํด๋ฆญ
musicPlay.addEventListener('click', () => {
const isMusicPaused = musicWrap.classList.contains('paused'); //์์
์ด ์ฌ์์ค
isMusicPaused ? pauseMusic() : playMusic();
});
// ์ด์ ๊ณก ๋ฒํผ ํด๋ฆญ
musicPrevBtn.addEventListener('click', () => {
prevMusic();
});
// ๋ค์๊ณก ๋ฒํผ ํด๋ฆญ
musicNextBtn.addEventListener('click', () => {
nextMusic();
});
// ๋ฎค์ง ๋ฆฌ์คํธ ๊ตฌํ
for (let i = 0; i < allMusic.length; i++) {
let li = `
<li data-index="${i + 1}">
<strong>${allMusic[i].name} </strong>
<em>${allMusic[i].artist} </em>
<audio class="${allMusic[i].audio}" src="../assets/audio/${allMusic[i].audio}.mp3"> </audio>
<span class="audio-duration" id="${allMusic[i].audio}">์ฌ์์๊ฐ </span>
</li>
`;
// musicListUl.innerHTML += li; li๋ฅผ ํ๋ฒ์ ์ถ๊ฐ ์์ผ ๊ฐ์ ๊ฒ์ํ ์ ์์์. (ํ๋ฒ์ ๋ก๋ฉ์ด ๋์ด ์์ด๋์ ํด๋์ค ๊ฐ์ ํ๋๋ฐ์ ์ธ์ ๋ชปํจ)
musicListUl.insertAdjacentHTML('beforeend', li); // ul ์์์ผ๋ก (๋ง์ง๋ง ์๋ฆฌ์) ํ๋์ฉ ์ฐจ๊ณก์ฐจ๊ณก ์์์ค๋ค.
// ๋ฆฌ์คํธ ์์
์๊ฐ ๋ถ๋ฌ์ค๊ธฐ
let liAudioDuration = musicListUl.querySelector(`#${allMusic[i].audio}`); // ๋ฆฌ์คํธ์์ ์๊ฐ์ ํ์ํ ์ ํ์๋ฅผ ๊ฐ์ ธ์จ๋ค.
let liAudio = musicListUl.querySelector(`.${allMusic[i].audio}`);
liAudio.addEventListener('loadeddata', () => {
let audioDuration = liAudio.duration; // ์ค๋์ค ์ ์ฒด ๊ธธ์ด
let totalMin = Math.floor(audioDuration / 60); // ์ ์ฒด ๊ธธ์ด๋ฅผ ๋ถ ๋จ์๋ก ์ชผ๊ฐ ๋ค.
let totalSec = Math.floor(audioDuration % 60); // ์ด ๊ณ์ฐ
if (totalSec < 10) totalSec = `0${totalSec}`; // ์์๋ฆฌ์ 0 ์ถ๊ฐ
liAudioDuration.innerText = `${totalMin}:${totalSec}`; // ๋ฌธ์์ด ์ถ๋ ฅ
liAudioDuration.setAttribute('data-duration', `${totalMin}:${totalSec}`); // ์์ฑ์ ์ค๋์ค ๊ธธ์ด ๊ธฐ๋ก
});
}
// ๋ฎค์ง ๋ฆฌ์คํธ ํด๋ฆญ ์ ํด๋ฆญํ ๋
ธ๋ ์ฌ์
function playListMusic() {
const musicListAll = musicListUl.querySelectorAll('li'); //๋ฎค์ง ๋ฆฌ์คํธ ๋ชฉ๋ก
for (let i = 0; i < musicListAll.length; i++) {
let audioTag = musicListAll[i].querySelector('.audio-duration');
if (musicListAll[i].classList.contains('playing')) {
musicListAll[i].classList.remove('playing'); // playing ํด๋์ค๊ฐ ์กด์ฌํ ์ ์ญ์
let adDuration = audioTag.getAttribute('data-duration'); // ์ค๋์ค ๊ธธ์ด ๊ฐ์ ๊ฐ์ ธ์จ๋ค.
audioTag.innerText = adDuration; // ๊ฐ์ ธ์จ ์ค๋์ค ๊ธธ์ด ๊ฐ์ audioTag ์ ํ
์คํธ๋ก ๋ฃ์ด์ค๋ค.
}
// ํ์ฌ ๋ฎค์ง์ธ๋ฑ์ค์ ๋ฆฌ์คํธ ์ธ๋ฑ์ค ๊ฐ์ด ๊ฐ์ ๋
if (musicListAll[i].getAttribute('data-index') == musicIndex) {
musicListAll[i].classList.add('playing'); // ํด๋์ค playing ์ถ๊ฐ
audioTag.innerText = '์ฌ์์ค'; // ์ฌ์์ค์ผ ๊ฒฝ์ฐ ์ฌ์์ค ๋ฉํธ ์ถ๊ฐ
}
musicListAll[i].setAttribute('onclick', 'clicked(this)');
}
}
playListMusic();
// ๋ฎค์ง ๋ฆฌ์คํธ๋ฅผ ํด๋ฆญํ์ ๋ ๋ฐ์
function clicked(el) {
let getLiIndex = el.getAttribute('data-index'); //ํด๋ฆญํ ๋ฆฌ์คํธ์ ์ธ๋ฑ์ค๊ฐ์ ์ ์ฅ
musicIndex = getLiIndex; //ํด๋ฆญํ ์ธ๋ฑ์ค ๊ฐ์ ๋ฎค์ง ์ธ๋ฑ์ค ์ ์ฅ
loadMusic(musicIndex); //ํด๋น ์ธ๋ฑ์ค ๋ฎค์ง ๋ก๋
playMusic(); //์์
์ฌ์
playListMusic(); //์์
๋ฆฌ์คํธ ์
๋ฐ์ดํธ
}
window.addEventListener('load', () => {
loadMusic(musicIndex);
});
code {
font-family: 'HBIOS-SYS' !important;
}
.source__wrap {
position: relative;
top: 80px;
left: 150px;
width: 1600px;
height: 600px;
background-color: #c4c4c4;
border: 10px solid rgb(30, 20, 69);
overflow: auto;
/* display: none; */
}
.source__wrap::-webkit-scrollbar {
width: 5px;
background-color: rgb(30, 20, 69);
}
.source__wrap::-webkit-scrollbar-thumb {
height: 20%;
background-color: #fff;
}
.source__wrap::-webkit-scrollbar-button:horizontal:decrement {
width: 5px;
background-color: rgb(30, 20, 69);
height: 20%;
background-color: #fff;
}
.source__wrap.show {
display: block;
}
.source__wrap > .source__inner {
width: 100%;
}
.source__header {
position: sticky;
top: 0;
left: 0;
right: 0;
}
.source__header > h3 {
color: #fff;
background-color: rgb(30, 20, 69);
padding-bottom: 10px;
padding-left: 10px;
}
.source__header > nav {
}
.source__header > nav > ul {
background-color: #fff;
padding: 5px 10px;
display: flex;
justify-content: start;
}
.source__header > nav > ul > li {
padding: 0 5px;
margin-right: 20px;
cursor: pointer;
}
.source__header > nav > ul > li.active {
background-color: rgb(102, 70, 137);
color: #fff;
}
.source__code {
}
.source__JSCode.show {
display: block;
}
.source__HTMLCode {
display: none;
}
.source__HTMLCode.show {
display: block;
}
/* music CSS */
.music__wrap {
display: none;
}
.music__wrap.show {
display: block;
}
.musicWrap__close {
cursor: pointer;
}
.music__inner {
padding: 0 10px 10px 10px;
width: 500px;
background-color: rgb(30, 20, 69);
position: absolute;
left: 150px;
top: 80px;
}
.music__header {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
}
.music__header h2 {
font-size: 14px;
}
.music__contents {
background-color: #c4c4c4;
width: 100%;
}
.music__view {
display: flex;
padding: 20px;
}
.music__view .img {
margin-right: 30px;
width: 160px;
}
.music__view .img img {
width: 100%;
}
.music__view .title {
}
.music__view .title h3 {
font-size: 30px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.music__view .title p {
font-size: 16px;
color: rgb(102, 70, 137);
margin-bottom: 5px;
}
.music__footer .music__list {
display: none;
}
.music__footer .music__list.show {
display: block;
}
#volume_control {
display: inline-block;
margin-top: 5px;
width: 115px;
}
.music__control .progress {
width: 100%;
height: 10px;
border-radius: px;
background-color: rgb(30, 20, 69);
}
.music__control .progress .bar {
width: 0%;
height: 10px;
background-color: rgb(133, 92, 178);
}
.music__control .progress .timer {
display: flex;
justify-content: space-between;
}
.music__control .control {
display: flex;
flex-wrap: wrap;
margin-top: 20px;
align-items: center;
}
.music__control .control i {
cursor: pointer;
transform: scale(0.8);
margin-right: 10px;
margin-left: -5px;
}
.music__control .repeat {
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -125px;
}
.music__control .repeat_one {
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -175px;
}
.music__control .shuffle {
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -125px;
}
.music__control .prev {
display: inline-block;
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -50px;
}
.music__control .control {
}
.music__control .control .play {
display: block;
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: 2px;
}
.music__control .stop {
display: block;
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -150px;
}
.music__control .next {
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -72px;
}
.music__control .list {
width: 25px;
height: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -98px;
}
.music__control .volume {
width: 25px;
height: 25px;
display: block;
background-image: url('../img/sound.ico.svg');
}
.music__footer {
background-color: #c4c4c4;
}
.music__footer .music__list {
border-top: 2px solid;
padding: 20px;
}
.music__footer .music__list h3 {
display: flex;
font-size: 24px;
margin-bottom: 10px;
justify-content: space-between;
}
.music__list h3 .list {
display: inline-block;
width: 25px;
background: url('../img/music_icon.svg') no-repeat;
background-position: -98px;
vertical-align: -3.5px;
}
.music__list {
max-height: 260px;
overflow-y: scroll;
}
.music__list .close {
margin-left: 250px;
display: inline-block;
width: 7%;
background: url('../img/music_icon.svg') no-repeat;
background-position: -200px;
vertical-align: -3.5px;
}
.music__list .playing {
color: rgb(93, 48, 197);
}
.music__list ul {
margin-bottom: 10px;
}
.music__list li {
padding: 5px 10px;
cursor: pointer;
position: relative;
border-bottom: 1px solid #000;
list-style: none;
}
.music__list li:hover {
background-color: rgba(93, 48, 197, 0.141);
}
.music__list li strong {
font-size: 18px;
display: block;
margin-bottom: 5px;
}
.music__list li em {
font-size: 14px;
font-style: normal;
}
.music__list li span {
font-size: 14px;
position: absolute;
right: 10px;
top: 29px;
}
/* game CSS */
@font-face {
font-family: 'HBIOS-SYS';
src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2207-01@1.0/HBIOS-SYS.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}
.mouse__cursor {
position: absolute;
left: 0;
top: 0;
width: 10px;
height: 18px;
background: url('../img/cursor.cluster.png') no-repeat;
z-index: 555;
}
/* * {
cursor: url('../img/cursor.cluster.png'), auto;
} */
/* ์ฌ๋ฐฑ ์ด๊ธฐํ */
* {
/* cursor: none; */
margin: 0;
padding: 0;
font-family: 'HBIOS-SYS';
}
/* a ํ๊ทธ ๋งํฌ ์ด๊ธฐํ */
a {
text-decoration: none;
color: #444;
}
/* ๋ชฉ๋ก ์ด๊ธฐํ */
li {
list-style: none;
}
/* ์ ๋ชฉ ์ด๊ธฐํ */
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: normal;
}
body {
overflow: hidden;
}
#header {
box-sizing: border-box;
padding: 5px 10px;
position: fixed;
width: 100%;
height: 40px;
background-color: rgb(52, 31, 102);
display: flex;
align-items: center;
justify-content: space-between;
z-index: 20;
}
#header h1 {
font-size: 20px;
color: #fff;
}
#header .time {
color: #fff;
}
#footer {
box-sizing: border-box;
text-align: center;
position: fixed;
padding: 5px 10px;
color: #fff;
left: 0;
bottom: 0;
width: 100%;
height: 40px;
background-color: rgb(52, 31, 102);
display: flex;
align-items: center;
justify-content: space-between;
z-index: 10;
}
.icon {
cursor: pointer;
/* user-select: none; */
/* pointer-events: none; */
}
.icon1 {
position: absolute;
left: 100px;
top: 100px;
width: 50px;
}
.icon1 img {
width: 100%;
}
.icon1 span {
width: 100%;
display: block;
background-color: #000;
color: #fff;
font-size: 11px;
padding: 3px;
white-space: nowrap;
}
.icon1 {
position: absolute;
left: 50px;
top: 100px;
width: 50px;
}
/* //1๋ฒ ์์ด์ฝ */
.icon2 {
position: absolute;
left: 50px;
top: 200px;
width: 50px;
}
.icon2 img {
width: 100%;
}
.icon2 img {
width: 100%;
}
.icon2 span {
width: 100%;
display: block;
background-color: #000;
color: #fff;
font-size: 11px;
padding: 3px;
white-space: nowrap;
}
/* //2๋ฒ ์์ด์ฝ */
.icon3 {
position: absolute;
left: 50px;
top: 300px;
width: 50px;
}
.icon3 img {
width: 100%;
}
.icon3 img {
width: 100%;
}
.icon3 span {
width: 100%;
display: block;
background-color: #000;
color: #fff;
font-size: 11px;
padding: 3px;
white-space: nowrap;
}
/* //3๋ฒ ์์ด์ฝ */
.icon4 {
position: absolute;
left: 50px;
top: 400px;
width: 50px;
}
.icon4 img {
width: 100%;
}
.icon4 img {
width: 100%;
}
.icon4 span {
width: 100%;
display: block;
background-color: #000;
color: #fff;
font-size: 11px;
padding: 3px;
white-space: nowrap;
}
/* //3๋ฒ ์์ด์ฝ */
#footer {
}
#footer .agent {
}
/* ์๋์ฐ ํธํฐ */
.window #footer {
}
/* ๋งฅ ํธํฐ */
.macintosh #footer {
}