javascript - Pop-up not showing (with magnific-popup) -


i'm trying implement magnific popup on website reason test image not opening in popup mode. issue? many thanks

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>document sans nom</title> <!-- scripts -->  <link rel="stylesheet" href="magnific-popup/magnific-popup.css">     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" /></script>     <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js" type="text/javascript"></script>     <script src="magnific-popup/jquery.magnific-popup.min.js"></script>       <script type="text/javascript">       $(document).ready(function() {          $('.image-popup-vertical-fit').magnificpopup({           type: 'image',           closeoncontentclick: true,           mainclass: 'mfp-img-mobile',           image: {             verticalfit: true           }       });     </script>  </head>  <body> <p>lorem ipsum dolor sit amet, <a class="image-popup-vertical-fit" href="http://farm9.staticflickr.com/8241/8589392310_7b6127e243_b.jpg" title="caption. can aligned side.">     <img src="http://farm9.staticflickr.com/8241/8589392310_7b6127e243_s.jpg" width="75" height="75"> </a>consectetur adipisicing elit, sed eiusmod tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> </body> </html> 

look @ javascript console. got error.

uncaught syntaxerror: unexpected token < testpopup.html:14 

click on error message , takes to

<script type="text/javascript"> <script type="text/javascript"> 

there problem, have 2 opening script tags.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -