JSFiddle - React, Tailwind, and code Playground

by brettenet

HTML

<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
<script src="//cdn.jsdelivr.net/fullcalendar/1.5.4/fullcalendar.js"></script>
<!--
A starting point for experimenting with 
Knockout.js and Twitter Bootstrap
-->
<div class="row-fluid">
    <div class="span12">
        <div id="calendar"></div>
    </div>
</div>

CSS

/* Twitter Bootstrap's Stylesheet has been added */
.fc {
  direction: ltr;
  text-align: left; }
  .fc table {
    border-collapse: collapse;
    border-spacing: 0; }
  .fc .btn {
    line-height: 1.2em; }
 
html .fc {
  font-size: 1em; }
 
.fc table {
  font-size: 1em; }
.fc td, .fc th {
  padding: 1px;
  vertical-align: top; }
 
.fc-header td {
  white-space: nowrap; }
 
.fc-header-left {
  width: 25%;
  text-align: left; }
 
.fc-header-center {
  text-align: center; }
 
.fc-header-right {
  width: 25%;
  text-align: right; }
 
.fc-header-title {
  display: inline-block;
  vertical-align: top; }
  .fc-header-title h2 {
    margin-top: 0;
    white-space: nowrap; }
 
.fc .fc-header-space {
  padding-left: 10px; }
 
.fc-header .fc-button {
  margin-bottom: 1em;
  vertical-align: top;
  margin-right: -1px; }
.fc-header .fc-corner-right {
  margin-right: 1px; }
.fc-header .ui-corner-right {
  margin-right: 0; }
.fc-header .fc-state-hover, .fc-header .ui-state-hover {
  z-index: 2; }
.fc-header .fc-state-down {
  z-index: 3; }
.fc-header .fc-state-active, .fc-header .ui-state-active, .fc-header .ui-state-down {
  z-index: 4;
  background-color: #e6e6e6;
  background-color: #d9d9d9;
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05); }
 
.fc-content {
  clear: both; }
 
.fc-view {
  width: 100%;
  overflow: hidden; }
 
.fc .ui-widget-header {
  border-color: #dddddd;
  padding: 4px 0; }
 
thead th.fc-first {
  border-top-left-radius: 5px;
  -moz-border-top-left-radius: 5px;
  -webkit-border-top-left-radius: 5px; }
 
thead th.fc-last {
  border-top-right-radius: 5px;
  -moz-border-top-right-radius: 5px;
  -webkit-border-top-right-radius: 5px; }
 
.fc-state-highlight {
  background: #ffffcc; }
 
.ui-state-highlight.fc-today...

JavaScript

// Knockout.js has been selected in the Choose Framework section.

// The following additional scripts have been 
// added via the Manage Resources section:
// - jQuery 1.9.0 
// - Twitter Bootstrap's JavaScript



	$(document).ready(function() {
	
		var date = new Date();
		var d = date.getDate();
		var m = date.getMonth();
		var y = date.getFullYear();
		
		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			editable: true,
			events: [
				{
					title: 'All Day Event',
					start: new Date(y, m, 1)
				},
				{
					title: 'Long Event',
					start: new Date(y, m, d-5),
					end: new Date(y, m, d-2)
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: new Date(y, m, d-3, 16, 0),
					allDay: false
				},
				{
					id: 999,
					title: 'Repeating Event',
					start: new Date(y, m, d+4, 16, 0),
					allDay: false
				},
				{
					title: 'Meeting',
					start: new Date(y, m, d, 10, 30),
					allDay: false
				},
				{
					title: 'Lunch',
					start: new Date(y, m, d, 12, 0),
					end: new Date(y, m, d, 14, 0),
					allDay: false
				},
				{
					title: 'Birthday Party',
					start: new Date(y, m, d+1, 19, 0),
					end: new Date(y, m, d+1, 22, 30),
					allDay: false
				},
				{
					title: 'Click for Google',
					start: new Date(y, m, 28),
					end: new Date(y, m, 29),
					url: 'http://google.com/'
				}
			]
		});
	});