NetLogo Global Climate model and JavaScript grapher
This example displays a NetLogo model sending data to a JavaScript grapher
Java Applets need to be enabled in browser for this to run.
xxxxxxxxxx
<html>
<head>
<title>NetLogo Applet</title>
<link href="styles.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/d3@2.8.1/d3.v2.min.js"></script>
<script src="classlist-shim-for-ie.js" type="text/javascript"></script>
<script src="dgapi.js" type="text/javascript"></script>
</head>
<body>
<h1>Simple Global Climate Change NetLogo Applet</h1>
<ul class="hlist">
<li>
<div id="appletwrapper">
<ul class="hlist">
<li><button id="run-button" class="nlogo">Run</button></li>
<li><button id="reset-button" class="nlogo">Reset</button></li>
<li><button id="watch-sunray-button" class="nlogo">Watch Sunray</button></li>
</ul>
<applet id="applet" code="org.nlogo.lite.Applet" archive="https://stepheneb.github.com/netlogo-gcc/NetLogoLite.jar" width="590" height="430">
<param name="DefaultModel" value="https://stepheneb.github.com/netlogo-gcc/GCCModel.v3.nlogo">
</applet>
</div>
</li>
<li>
<div id="chart" class="chart"></div>
</li>
</ul>
<script src="netlogo.js" type="text/javascript"></script>
</body>
</html>
Modified http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js to a secure url
Modified http://mbostock.github.com/d3/d3.v2.js?2.8.1 to a secure url
https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
https://mbostock.github.com/d3/d3.v2.js?2.8.1