Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!--User Story: I can see the weather in my current location.

User Story: I can see a different icon or background image (e.g. snowy mountain, hot desert) depending on the weather.

User Story: I can push a button to toggle between Fahrenheit and Celsius.-->

<!-- -->

<!-- example doc header, not needed in Codepen...

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>


<!-- Codepen settings...


<!-- -->

<!-- Font Awesome icons for social media links-->
<link rel="stylesheet" href="//" />

  <div class="row">
    <div class="col-xs-12 text-center" id=title>
      <h1>Local Weather</h1>
    <div class="text-center test-div" id="data">
      test text

  <div class="footer pull-left">
      <script type="text/javascript">
        var d = new Date()
      </script> Marc Vesper Johnson



body {
  background-color: silver;
  color: black;

.btn {
    border-color: black;
    border-radius: 6px;
    border-width: 2px;
    color: black;
    background-color: silver;
    font-family: Scylla, 'Scylla', sans-serif;
    font-size: 140%;
.btn:hover {
    color: silver;
    background-color: black;
    border-color: silver ;

.footer {

  padding-bottom: 5px;
  font-size: 60%;
  padding-left: 15px;



                $(document).ready(function() {
  // Need globals to save data to share around the app
  var lat, long;
  // You need functions to split functionality and make your app organized
  var init = function() {
  var getLocation = function() {
    $.getJSON("", function(ipapiData) {
      lat =;
      long = ipapiData.lon;
      // You need to use callbacks after the data is saved, otherwise it won't be there

  var getOpenWeather = function() {
    $.getJSON('' + lat + '&lon=' + long + '&APPID=569d4447c12b579f010eb8825b198fbc', function(json) {
  init(); // start the app

}); //docready

/* $("#data").text(output); */