Free jqGrid demo

The demo "The grid, which uses predefined formatters and templates" used on http://free-jqgrid.github.io/getting-started/index.html#the_first_grid

HTML

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/themes/redmond/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.3/css/ui.jqgrid.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/free-jqgrid/4.15.3/jquery.jqgrid.min.js"></script>
<table id="grid1"></table>
<table id="grid2"></table>

CSS

tr.jqg-second-row-header {
	height: 21px;
}

JavaScript

$(function () {
    "use strict";
	var input = [
			{code:"A", name:"Project A", year: 2017, month: 1, value: 1},
			{code:"A", name:"Project A", year: 2017, month: 2, value: 2},
			{code:"A", name:"Project A", year: 2017, month: 2, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 3, value: 1},
			{code:"A", name:"Project A", year: 2017, month: 4, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 5, value: 1},
			{code:"A", name:"Project A", year: 2017, month: 6, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 7, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 8, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 9, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 10, value: 1},
			{code:"A", name:"Project A", year: 2017, month: 11, value: 0},
			{code:"A", name:"Project A", year: 2017, month: 12, value: 1},
			{code:"A", name:"Project A", year: 2018, month: 1, value: 1},
			{code:"A", name:"Project A", year: 2018, month: 2, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 3, value: 1},
			{code:"A", name:"Project A", year: 2018, month: 4, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 5, value: 1},
			{code:"A", name:"Project A", year: 2018, month: 6, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 7, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 8, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 9, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 10, value: 1},
			{code:"A", name:"Project A", year: 2018, month: 11, value: 0},
			{code:"A", name:"Project A", year: 2018, month: 12, value: 1},
		],
		monthNames = [
			"Jan", "Feb", "Mar", "Apr", "May", "Jun", 
			"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
		],
		data = [
			{code:"A", name:"Project A",
				jan2017:1, feb2017:0, mar2017:0, apr2017:0,
				may2017:0, jun2017:0, jul2017:0, aug2017:0,
				sep2017:0, oct2017:0, nov2017:0,...