Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Cut the script tags from the bottom of the locations page and paste them in before the end of the body tag and after the "map" div

I hope I am not messing up a simple C&P but can anyone spot a mistake in my markup?

<!DOCTYPE html>
<html>
<head>
<title>Map</title>
    <style type="text/css">
        html,body,#map{
      padding:0;
      margin:0;
      width:100%;
      height:100%;
    }
    </style>
</head>
<body>
<div id="map">
  </div>
  <script type="text/javascript" src="jquery.js"></script>
  <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAn8fk75K8kCdW6pQ4B7yoBHJNrUbleieY&sensor=false"></script>
  <script type="text/javascript" src="app.js"></script>
</body>
</html>

1 Answer

Hi Callum,

Is this a code challenge? Could you give us a link from where you are please? For now I don't see any mistake, but I can't verify what you did without the code challenge.

Thanks for your reply.

Ok, I think I got it. You didn't cut the scripts in your location.html, you only copied/pasted it, didn't you? ctrl+x for cutting, ctrl+c pour copy.

That would explain it. Thanks. I really should read the objectives carefully. Thanks. I can finally get this track finished.