Error embedding video in my php pahe

robrodp
robrodp used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
Commented:
If you look at the source in the Firefox 'View Source' you will see that you have some formatting errors.  The 'meta' should go after the <head> tag and the comments at the bottom are both formatted wrong and should go before the </body> tag.
robrodpProgrammer

Author

Commented:
Anf firefox handles some stuff differently. But yes I had a coding issue

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial