Click here to Skip to main content
15,867,785 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow to use decimals (0.01) in Javascript function Pin
Member 150641013-Feb-21 18:17
Member 150641013-Feb-21 18:17 
AnswerRe: How to use decimals (0.01) in Javascript function Pin
Richard MacCutchan3-Feb-21 22:54
mveRichard MacCutchan3-Feb-21 22:54 
GeneralRe: How to use decimals (0.01) in Javascript function Pin
mikehunterr5-Feb-21 1:08
professionalmikehunterr5-Feb-21 1:08 
GeneralRe: How to use decimals (0.01) in Javascript function Pin
Richard MacCutchan5-Feb-21 1:09
mveRichard MacCutchan5-Feb-21 1:09 
GeneralRe: How to use decimals (0.01) in Javascript function Pin
mikehunterr5-Feb-21 1:19
professionalmikehunterr5-Feb-21 1:19 
QuestionAssignment Help Pin
Member 150639523-Feb-21 13:12
Member 150639523-Feb-21 13:12 
AnswerRe: Urgent Java Assignment Help Pin
Richard Deeming3-Feb-21 21:45
mveRichard Deeming3-Feb-21 21:45 
Questionhow can i unmute a video using js for chrome Pin
Member 148717432-Feb-21 23:28
Member 148717432-Feb-21 23:28 
Chrome wont autoplay a video embedded with javascript, unless its muted. But i cant figure out how to use code to unmute it.


problem is that i am repurposing code [listed below, and in link]. it embeds video in an iframe. there is no variable to access the mute of that i can see. thus the vid variable below doesn work.

The whole code is at https://codepen.io/richardengle/pen/poNjvpY

Line 33 of the area of JS code is where i would change. you can see the vid muted/unmuted part, but it wont unmute the video. Any advice is welcomed
----- part of code----
$('button#play20s').click( function() {
$('body').removeClass().addClass('on playing20s');
$("#knob").trigger('play');
$("#tune").trigger('play');
$('.video-embed').remove();
$('body').append('<iframe id="decade-20" class="video-embed" width="560" height="315" src="https://www.youtube.com/embed/gTevoUhDeoM?&theme=dark&autoplay=1&keyboard=1&autohide=2&start=10&mute=1" frameborder="0" allowfullscreen ></iframe>');
var vid = document.getElementById("decade-20");
vid.muted =false;
//https://www.youtube.com/embed/gTevoUhDe
AnswerRe: how can i unmute a video using js for chrome Pin
Richard Deeming3-Feb-21 0:41
mveRichard Deeming3-Feb-21 0:41 
QuestionTrying to limit a input type=text only decimal values with 2 digits after decimal Pin
simpledeveloper1-Feb-21 21:14
simpledeveloper1-Feb-21 21:14 
AnswerRe: Trying to limit a input type=text only decimal values with 2 digits after decimal Pin
Richard Deeming1-Feb-21 21:47
mveRichard Deeming1-Feb-21 21:47 
GeneralRe: Trying to limit a input type=text only decimal values with 2 digits after decimal Pin
simpledeveloper2-Feb-21 6:43
simpledeveloper2-Feb-21 6:43 
QuestionIs there a delicate way to pass calendar events variables in Javascript Pin
Member 1505943129-Jan-21 0:04
Member 1505943129-Jan-21 0:04 
AnswerRe: Is there a delicate way to pass calendar events variables in Javascript Pin
Richard Deeming29-Jan-21 0:16
mveRichard Deeming29-Jan-21 0:16 
GeneralRe: Is there a delicate way to pass calendar events variables in Javascript Pin
Member 1505943129-Jan-21 1:58
Member 1505943129-Jan-21 1:58 
GeneralBuild an entire React application in one command Pin
DonJon28-Jan-21 19:22
DonJon28-Jan-21 19:22 
GeneralRe: Build an entire React application in one command Pin
Richard Deeming28-Jan-21 22:14
mveRichard Deeming28-Jan-21 22:14 
QuestionBest way to trace JavaScript Conflict Pin
ReverseAds10-Jan-21 20:35
ReverseAds10-Jan-21 20:35 
QuestionRe: Best way to trace JavaScript Conflict Pin
Sandeep Mewara10-Jan-21 21:13
mveSandeep Mewara10-Jan-21 21:13 
AnswerRe: Best way to trace JavaScript Conflict Pin
20212a15-Jan-21 8:16
20212a15-Jan-21 8:16 
AnswerRe: Best way to trace JavaScript Conflict Pin
F-ES Sitecore28-Jan-21 21:24
professionalF-ES Sitecore28-Jan-21 21:24 
Questionhow to convert a function in to arrow function Pin
Member 139980429-Jan-21 0:56
Member 139980429-Jan-21 0:56 
AnswerRe: how to convert a function in to arrow function Pin
Afzaal Ahmad Zeeshan9-Jan-21 4:35
professionalAfzaal Ahmad Zeeshan9-Jan-21 4:35 
SuggestionRe: how to convert a function in to arrow function Pin
Richard Deeming11-Jan-21 22:41
mveRichard Deeming11-Jan-21 22:41 
QuestionQuiz Issue Pin
Shobhit Rathour30-Dec-20 3:35
Shobhit Rathour30-Dec-20 3:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.