mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 13:04:23 +00:00
lots more progress on apple music integration
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="info">Designed and developed by Janis Hutz <a href="https://janishutz.com" target="_blank" style="text-decoration: none; color: white;">https://janishutz.com</a></div>
|
||||
<div class="content loading" id="loading">
|
||||
<h1>Loading...</h1>
|
||||
<p>Please wait</p>
|
||||
</div>
|
||||
<div class="content" id="app">
|
||||
<div v-if="hasLoaded" style="width: 100%">
|
||||
<div class="current-song-wrapper">
|
||||
|
||||
@@ -21,12 +21,21 @@ body {
|
||||
|
||||
.content {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
display: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.loaded {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.loading {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.playing-symbols {
|
||||
position: absolute;
|
||||
left: 10vw;
|
||||
|
||||
@@ -98,6 +98,16 @@ createApp( {
|
||||
|
||||
source.onopen = () => {
|
||||
this.hasLoaded = true;
|
||||
if ( document.fonts.status === 'loaded' ) {
|
||||
document.getElementById( 'loading' ).classList.remove( 'loading' );
|
||||
document.getElementById( 'app' ).classList.add( 'loaded' );
|
||||
} else {
|
||||
document.fonts.onloadingdone = () => {
|
||||
document.getElementById( 'loading' ).classList.remove( 'loading' );
|
||||
document.getElementById( 'app' ).classList.add( 'loaded' );
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
let self = this;
|
||||
|
||||
Reference in New Issue
Block a user