cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <h1>BasakEsin Weather App</h1>
<div class="wheather-icon"></div>
<img id = "wheather-icon">
<div id = "location"></div> 
<div id ="Temperature"><p><b>Temperature</b></p></div>
<button id="convertButton" class="btn btn-info" style="font-size:3em"> <div id="btn_text"></div></button>
  To convert Fahrenheit/Celcius please push the button</p>
<div id="footer">by <a href="http://gunluk.basakesin.net"><b>basakesin</b></a></div>
  background-color: #fcf7f7;
  text-align: center;
  font-size: 5em;
  text-color: blue;
  font-size: 3em;
  padding: 3em 5em 4em 6em;
  heigth: 100px;
  width: 200px;
  font-size: 3em;
  font-size: 1.5em;
  var flag = 0;
  var btnText = '°C';

  $.getJSON("//freegeoip.net/json/?callback=?", function(json) {
var qurl= "https://fcc-weather-api.glitch.me/api/current?lat=" + json.latitude + "&lon=" + json.longitude;
    var loc = json.region_name;
    var country = json.country_code;
      $("#location").html(loc+', '+country);
    $.getJSON(qurl, function(data){
      var weather_main = data.weather.main;
      var temp = data.main.temp;
      $("#wheather-icon").attr("src", data.weather[0].icon);
      var temp_f = temp*1.8+32;
      $("#convertButton").on("click", function() {
          flag = 1;
          btnText = '°F';
            flag = 0;
            btnText = '°C';

Loading ..................