<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script> function loadXMLDoc(filename) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else{// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("content").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET",filename,true); xmlhttp.send(); } function showMenu() { document.getElementById("wrapper").style.display="block"; document.getElementById("blurb").style.display="block"; } function prepareSite() { var doc_to_load=self.location.search doc_to_load=doc_to_load.replace("?","") if(doc_to_load!="") { document.getElementById("wrapper").style.display="none"; document.getElementById("blurb").style.display="none"; loadXMLDoc(doc_to_load+".txt") } } </script> <style type="text/css"> body {font-family: Georgia; text-align: center; margin-top: 50px; margin-bottom: 50px;} div.rainbow1 {position: absolute; top: 0px; left:0px; background-color: #669900; width: 100%; z-index: 10;} div.rainbow2 {position: absolute; top: 8px; left:0px; background-color: #99CC33; width: 100%; z-index: 10;} div.rainbow3 {position: absolute; top: 20px; left:0px; background-color: #CCCC99; width: 100%; z-index: 10;} p {font-size: 1em; line-height: 1.7em; margin-bottom: 20px;} h1 {font-size: 1.75em; font-weight: normal; color: #99CC33; margin-bottom: 18px;} h2 {font-size: 1.25em; font-weight: normal; color: #99CC33; margin-bottom: 18px;} h3 {font-size: 1em; font-weight: bold; color: #99CC33; margin-bottom: 14px;} h4 {font-size: 1em; font-weight: normal; color: #99CC33; margin-bottom: 6px;} em {font-style: normal; font-weight: bold; color: #000000;} li {font-size: 0.8em;} table {margin: 4px; border-style: solid; border-width: 1px 0px 1px 0px; border-color: black; border-spacing: 6px; font-size: 0.7em; text-align: right;} #table {font-size: 1em; font-weight: bold; counter-increment: figcount; margin-bottom: 30px;} #table:before {content: "Table: ";} #table-head {font-weight: bold; border-style: solid; border-width: 0px 0px 0px 0px; border-color: black;} a, a:link {color: #99CC33; text-decoration: underline;} a:active {color: #000000;} a:visited {color: #000000;} a:hover {color: #000000; text-decoration: none;} a.no-line {text-decoration: none} .left {float: left;} .right {float: right;} #site-container {width: 60%; text-align: left; margin: 0 auto;} #header {width: 100%; padding: 0px; } #header .logo a {font-size: 2.5em; color: #669900; text-decoration: none; font-weight: bold; } div.report-title {color: #99CC33; font-size: 2em; font-weight: bold; margin-bottom: 25px; padding-top: 75px;} #blurb {width: 90%; text-align: justify; margin-left: 25px; border-style: solid; border-color: #99CC33; border-width: 0px 0px 0px 3px; padding-left: 5px;} #main #content {width: 100%; text-align: justify;} #footer {font-size: 0.7em;} #toc {padding-top: 15px; padding-bottom: 15px; font-size: 1em;} .fm-heading {font-size: 1em; font-weight: bold; color: #CCCC99; margin-bottom: 18px;} /* numbering headings */ body {counter-reset: H1;} h1:before {content: counter(H1) ". "; counter-increment: H1;} #figure {font-size: 1em; font-weight: bold; counter-increment: figcount; margin-bottom: 30px;} #figure:before {content: "Figure: ";} #chart {font-size: 1em; font-weight: bold; counter-increment: chartcount; margin-bottom: 30px;} #chart:before {content: "Chart: ";} #source {font-weight: normal; font-size: 0.6em;} #source:before {content: "Source: "} dl {font-size: 1.1em; float: left; width: 520px; margin: 1em 0; padding: 0; border-bottom: 1px solid #999;} dt {font-size: 1.1em; clear: left; float: left; width: 200px; margin: 0; padding: 5px; border-top: 1px solid #999; font-weight: bold;} dd {font-size: 1.1em; float: left; width: 300px; margin: 0; padding: 5px; border-top: 1px solid #999;} #wrapper {clear:left; float:left; width:100%; background:#fff; padding-bottom:20px;} #wrapper h2 {color: black;} #wrapper a {color: black;} .box3wrap {float:left; width:270px; margin-top:20px;} .box3 {float:right; width:250px; height:400px; background:#CCCC99; padding-bottom:5px;} .box3pad {position:relative; right:5px; float:right; width:240px; overflow:hidden;} </style> <title>The Cricket Abstract</title> </head> <body onload="prepareSite()"> <a name="top"></a> <div class="rainbow1">&nbsp;</div> <div class="rainbow2">&nbsp;</div> <div class="rainbow3">&nbsp;</div> <br/> <br/> <br/> <div id="site-container"> <div id="header"> <div class="logo"><A href="#top" onClick="showMenu()">The Cricket Abstract</a></div> <a name="start-of-report"></a> </div> <div id="blurb"> <p>The Cricket Abstract is a place for me to store my thoughts and work on sports statistics, mostly cricket.</p> <p>It's also a place for you to read, learn, and get data.</p> </div> <div id="wrapper"> <div class="box3wrap"> <div class="box3"> <div class="box3pad"> <h2>Cricket</h2> <ul> <li><a href="?dwl">The Duckworth Lewis Method</a></li> <li><a href="?evening">Batting in the evening</a></li> <li><a href="?margin">Measuring the margin of victory</a></li> <li><a href="?probability">Probability of a win chasing a given score</a></li> <li>The coin toss</li> <li>How to get cricket data</li> </ul> </div> </div> </div> <div class="box3wrap"> <div class="box3"> <div class="box3pad"> <h2>Other Sports</h2> <ul> <li>AFL</li> <li>Rugby League</li> </ul> </div> </div> </div> <div class="box3wrap"> <div class="box3"> <div class="box3pad"> <h2>Data and tools</h2> <ul> <li><a href="data\overdata.csv">ODI Data</a></li> <li><a href="tools\DWL-calculator.xls">Duckworth Lewis calculator</a></li> <li><a href="tools\FitDWL.R">R - Duckworth Lewis parameters</a></li> <li><a href="batting\code.R">R - batting during the evening</a></li> <li>AFL</li> <li>Rugby League</li> </ul> </div> </div> </div> <div class="box3wrap"> <div class="box3"> <div class="box3pad"> <h2>Links</h2> <ul> <li><a href="http://cricsheet.org/">Cric Sheet</a></li> <li><a href="http://pappubahry.livejournal.com/">Pappus' Plane</a></li> <li><a href="http://sabermetriccricket.blogspot.com.au/">Sabermetric Cricket</a></li> </ul> </div> </div> </div> </div> <div id="main"> <div id="content"> &nbsp; </div> </div> <div id="footer"> <p><a href="#top" onclick="showMenu()">Back To Navigation</a><br/> Written by <a href="http://www.eamonmcginn.com">Eamon McGinn</a></p> </div> </div> </body> </html>