Nope. Nothing really else to do with it
Type: Posts; User: Deadweight; Keyword(s):
Nope. Nothing really else to do with it
Umm for my hasClass function i do something like this
return instance.classList.contains(name);
instance = element
name = what class you are looking for.
I was a little bored and decided to make something just for fun. Enjoy: https://jsfiddle.net/s6nq12yj/
This should be how you want it.
https://jsfiddle.net/a6cjsqbL/
(I have it on hover but i can change it to current page - lack of info to know what you want)
I wouldn't suggest a JS counter to do this because it is easily manipulated
You should be able to combine them to one line.
table.praises-be td:nth-child(2), table.praises-be td:nth-child(1) {text-align: center;}
I havent really heard of that happening before but I am...
table.praises-be td {
border-style: solid;
border-width: 1px;
border-color: #848482;
margin: auto;
}
table.praises-be td:nth-child(2) {text-align: center;}
I am not sure why you are...
What are you trying to do? Are you trying to convert the seconds to minutes and seconds? If so then you shouldnt need my help with that. That is math calculation related. You just need to take
...
$('#timeline').html('width', music.currentTime / music.duration * 100 + '%');
Should be
$('#timeline').css('width', music.currentTime / music.duration * 100 + '%');
$('$tracktime').html('width', music.currentTime / music.duration * 100 + '%');
Shouldnt that be (also note that you are using a $ and not #
$('#timeline').html('width', music.currentTime /...
ID's need to be unique...
Please check my code again. Second thing selector is wrong.
... $('#timeline-timedisplay')
Did you combine that one to this one?
music.ontimeupdate = function() {$('#timeline-timedisplay').html(Math.ceil(music.currentTime) + ' / ' + Math.ceil(music.duration));};
EG
...
Please take a look at:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
Shouldn't be too hard to understand and is good for learning. What's that...
I am not sure where you want it so here is an example. If you did say also I am tired. It is 3:30am for me but here is the HTML and JS combined.
HTML:
<div id="audioplayer">
<div...
You will need something like this:
View console for the output.
music.ontimeupdate = function() {console.log(music.currentTime, music.duration);};
I am not going to code the CSS and the HTML...
And let me get this straight you want it to play another random song once the previous song ends?
Do you have a live example of the code? Like on an actual URL? I can take a look at it if so.
I changed a lot of the javascript in my code and a decent amount of other things. Also I changed the grid layout for now to flex thus allowing more support for older browsers. Ofc, I am not finished...
You would have to use the media tag. Please read: https://www.w3schools.com/css/css_rwd_mediaqueries.asp
I suggest playing with this until your liking: http://css3buttongenerator.com/
Please read their documentation:
Changing base currency
Provided changing base currency is supported on your subscription plan, you can change the currency to which your output currency rates are...
So I am not entirely sure if any of you will find this interesting or cool; however, I am working on my own Foundation/JQuery.
So far nothing too extreme but you can currently check out the...
Nevermind - Sticky fixed my problem... no pun intended xD
Hello, I am playing with the grid layout CSS and I am wondering it there is a way to fix position an element inside a grid.
https://project-galax.000webhostapp.com/subgroups/xgrid.php
If you...