robrodp
asked on
Error embedding video in my php pahe
I embed a video inmy php page
I have this code
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>
<style>
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-106993862-1"></script>
The video is embedded like this:
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/DScD4c2WH9E?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>
When load the page it looks ok
https://bitcoin.seminario.com.mx/video.php
But inspecting the page I get this console error
unreachable code after return statement
js:69:1092
Anf google adwords disapprives ny ad becaus the pgp pag has ann error
Any ideas?
I have this code
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>
<style>
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-106993862-1"></script>
The video is embedded like this:
<div class="videoWrapper">
<!-- Copy & Pasted from YouTube -->
<iframe width="560" height="349" src="http://www.youtube.com/embed/DScD4c2WH9E?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>
When load the page it looks ok
https://bitcoin.seminario.com.mx/video.php
But inspecting the page I get this console error
unreachable code after return statement
js:69:1092
Anf google adwords disapprives ny ad becaus the pgp pag has ann error
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER