Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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.


                <!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Upcoming UK Bank Holidays</title>
  <h1>Upcoming Bank Holidays</h1>
  <ul id='holidays'>


                @import url(',500');

*,*::before,*::after {
  box-sizing: border-box;

h1, h2, h3, h4, h5, p, ul, li {
  margin: 0;
  padding: 0;

body {
  display: flex;
  flex-direction: column;
  // justify-content: center;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  color: rgba(#eee, 1);
  background: #7F00FF;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #E100FF, #7F00FF);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #E100FF, #7F00FF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


h1 {
  margin: 1rem 0;
  font-size: 4rem;

li {
  margin: 1.5rem 0rem;
  list-style-type: none;
  font-size: 3rem;

.yellow {
  color: rgba(#ffc600, 1);
  font-weight: 500;

ul {
  // text-align: right;



                        const endpoint = '';
        const ul = document.getElementById('holidays')

        let bankHolidays;
        let england;
          .then(blob => blob.json())
          .then(data => handleDates(data));

          function handleDates(data) {
            bankHolidays = data;
            england = bankHolidays["england-and-wales"].events;
            var now = new Date();
            var thisMonth = now.getUTCMonth() + 1; //months from 1-12
            var thisDay = now.getUTCDate();
            var thisYear = now.getUTCFullYear();
            var thisDate = thisYear + '-' +thisMonth + '-' +thisDay;
            const html =>{
              const [year, month, date] ="-");
              // console.log(thisDate,;              
              if(Date.parse(thisDate) <= Date.parse({
              return `
              <li>${items.title} <br/> <span class='yellow'>(${date} / ${month} / ${year})</span>  </li>
          ul.innerHTML = html;