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.


                <div id="calendar"></div>


  font-size: 20px;


                document.addEventListener("DOMContentLoaded", function() {
  var calendarEl = document.getElementById("calendar");
  var calendar = new FullCalendar.Calendar(calendarEl, {
    /*plugins and theming*/
    locale: "en-gb",
    plugins: ["dayGrid", "timeGrid"],
    defaultView: "timeGridWeek",
    eventTextColor: "#fff",
    eventBorderColor: "#000",

    header: {
      left: "prevYear,prev,next,nextYear today",
      center: " ",
      right: "timeGridWeek,timeGridDay"
    buttonText: {
      today: "Today",
      week: "Week",
      day: "Day"

    /*custom properties of GridView*/
    nowIndicator: "true", //indicator of current time
    minTime: "08:00:00", //start time
    maxTime: "19:00:00", //end time
    slotLabelFormat: {
      hour: "numeric",
      minute: "2-digit",
      omitZeroMinute: false,
      meridiem: ""
    }, //side time labels
    contentHeight: "auto", //resizes table to fit any screen
    navLinks: "true", //links any date to day view
    weekends: false,
    eventLimit: true,
    slotEventOverlap: true,
    views: {
      timeGrid: {
        eventLimit: 5

    /*events go here*/
    events: [
        id: "1",
        title: "Test Event",
        start: "2020-03-10T10:30:00",
        end: "2020-03-10T11:30:00"
        id: "1",
        title: "Test Event",
        start: "2020-03-11T10:30:00",
        end: "2020-03-11T11:30:00"

  function myDatepicker() {
    $(".fc-center").append('<input type="text" id="datepicker"></input>');
    $(function() {
        showOn: "both",
        showOptions: {
          direction: "down"
        autoSize: true,
        buttonText: "Select date...",
        changeMonth: true,
        changeYear: true,
        dateFormat: "DD, d MM yy",
        firstDay: 1,
        showOtherMonths: true,
        selectOtherMonths: true,

        onSelect: function(formated, dates) {
          var newDate = $.datepicker.formatDate("yy-mm-dd", formated);
          console.log("running function select");
      $("#datepicker").datepicker("setDate", "+0d");