js... use online CDN instead of jquery download...

I have a good solution at this link which seems using downloaded resources. I have copied the exact code and pasted on a local html file but it doesn't function as expected (in an overlay with a close button).

Question: How can I revise the attached code just to use online resource?

Code to be revised:
<!doctype html>
<html>
<head>
<title>Fancybox example</title>
<link href="css/bootstrap.css" rel="stylesheet" />
<link href="css/custom.css" rel="stylesheet" />
<link rel="stylesheet" href="plugins/fancybox/jquery.fancybox.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="plugins/fancybox/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
<style type="text/css">
</style>
</head>
<body>
<div class="wrapper">
  <header>
    <div class="container">
    <h1 class="col-lg-9">Fancybox example</h1>
    </div>
  </header>
  <div class="container">
    <h5>Author: Julian Hansen, October 2015</h5>
<div class="left-col">&nbsp;
      <a class="fancybox" href="http://datapassion.net/images/MMEImage.jpg"><img width="78" height="60" alt="Head shot." src="http://datapassion.net/images/MMEImageTumb.jpg"></a>
    </div>    
    <span class="contactBlue"> Location:</span><br/>
    Los Angeles, CA
    <a id="A2" class="fancybox" href="http://datapassion.net/images/location.png"><abbr title="see location map...">90024</abbr></a>
</div>
</div>
<footer>
  <div class="container">
    Copyright Julian Hansen &copy; 2015
  </div>
</footer>
 
<script src="http://code.jquery.com/jquery.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="js/bootstrap.js"></script>
<script src="plugins/fancybox/jquery.fancybox.js"></script>
<script type="text/javascript" src="plugins/fancybox/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="plugins/fancybox/helpers/jquery.fancybox-media.js?v=1.0.6"></script>
<script>
$(function() {
  $('.fancybox').fancybox();
});
</script>
</body>
</html>

Open in new window

LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
@Mike,

Fancybox does not have an official CDN so you need to download these resources and make them available on your server. The process is straightforward and outlined in one of your earlier questions.

Jquery has several CDN's which the posted code already uses.

The only dependencies you need are the fancybox libraries.

What issue are you having with downloading the resources?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
Thank you,

This worked. On a new question I will try to use google map for zip 90024 instead of location.png.
0
Julian HansenCommented:
You are welcome.
0
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.