Home Forum Software Fiddle API example not working Reply To: Fiddle API example not working

#4456
uRADMonitor
Keymaster

The code runs with errors:
[Error] TypeError: $ is not a function. (In ‘$(“#status”)’, ‘$’ is undefined)
downloadUnits (radiation-monitoring:325)
Global Code (radiation-monitoring:424)

You will need to add JQuery too, it is also in JSFiddle, top-left of the screen. But easier, here is what you need to add to the blog’s headers:

  	<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
  	<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/dygraph/1.1.1/dygraph-combined.js"></script>