Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Carousel.prototype.go_to = function( index, currentIndex )
- {
- if (currentIndex != index) {
- index = index%this.count;
- if (index < 0)
- index = index + this.count;
- this.$.faicha[currentIndex].classList.remove('ativo');
- this.$.faicha[index].classList.add('ativo');
- this.$.musica[0].setAttribute('src', 'som/' + index + '.mp3');
- /*Aqui abaixo minha tentativa*/
- this.$.nomedamusica[0].clone().appendTo(".nomedamusicaaqui");
- this.changeMusic();
- this.index = index;
- }
Add Comment
Please, Sign In to add comment