Player made in Vanilla JS
zjaaal / js-player Goto Github PK
View Code? Open in Web Editor NEWPlayer made in Vanilla JS
Home Page: https://js-player.netlify.app/
License: MIT License
Player made in Vanilla JS
Home Page: https://js-player.netlify.app/
License: MIT License
The loader is centering on the top of the page. We need it at the middle of it.
Create functions that works as templates like:
trackTemplate(track){
return //... your html here
}
so you can consume it in a reduce as:
tracks.reduce((acc, track) => acc + trackTemplate(track),"");
or as an unique template like:
artistHeader.innerHTML = headerTemplate(artist);
Note: Take that as an example an not as a representation of the final result.
Take an example of:
<ul class="list">
<li class="list-item" data-artistId="1">
<div class="flex grow">
<div class="list-item-image">
<img src="path/to/dua" alt="Profile Dua Lipa" />
</div>
<div class="flex grow column">
<p class="title">Dua Lipa</p>
<p class="subtitle">"5k followers</p>
</div>
<div class="flex center">
<i class="fa fa-more"></i>
</div>
</div>
</li>
</ul>
I'ts not returning the properly value for some tracks.
That function just calculates the minutes but not the seconds.
duration / 60 = the integer of this expression is the minutes. Now multiply the decimals by 60 and you get the seconds.
Just leave a back button for going back to the home
We should revoke that api key and create a secrets.json to store the new API Key.
secrets.json must not be tracked, so we need to include it on .gitignore
if the queue list its over, stop all actions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.