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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                <div class="container">
  <div class="row">
    <div class="col-lg-12 text-center">
      <h3 id="api-title"></h3>
  <!-- notifications area -->
  <div class="row margin-top-20">
    <div class="col-lg-12 text-right">
      <div class="alert alert-dark" role="alert">
        <div id="lastUpdated"></div>
  <!-- data area -->
  <div class="row margin-top-30">
    <div class="col-lg-12">
      <div class="table-responsive">
        <table class="table" id="air-quality-table">
              <th>Pollutant MIN</th>
              <th>Pollutant MAX</th>
              <th>Pollutant AVG</th>



                .row {
  margin-top: 20px;
.margin-top-30 {
  margin-top: 30px;
.margin-top-20 {
  margin-top: 20px;



                $(document).ready(function() {
  /* API: */
  $.get( "[state]=Telangana", function( data ) {
    if(data.status==="ok") {
      $("#lastUpdated").append('Last Updated On ' + data.updated_date);
      /* looping through the values and appending them to the table */
      $.each(data.records, function(i, item) {
        $('#air-quality-table > tbody:last-child').append('<tr><td>'+ data.records[i].id+'</td><td>'+ data.records[i].city+'</td><td>'+ data.records[i].station+'</td><td>'+ data.records[i].pollutant_id+'</td><td>'+ data.records[i].pollutant_min+'</td><td>'+ data.records[i].pollutant_max+'</td><td>'+ data.records[i].pollutant_avg+'</td></tr>');
    /*Initializing Datatables*/
  }, "json" );
/* Hiding No data text on data tables since data is append in jquery on DOM */
$("#air-quality-table").on("draw.dt", function () {