Skip to content

Instantly share code, notes, and snippets.

View sfentress's full-sized avatar

Sam Fentress sfentress

  • Concord Consortium
View GitHub Profile
@sfentress
sfentress / index.html
Created April 22, 2013 15:53
Example of a script-authored SPARKS activity
<html>
<head>
<script type="text/javascript">
window.onload = function() {
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"title": "Sample JSON activity",
"show_oscilloscope": "true",
@sfentress
sfentress / index.html
Created April 22, 2013 15:52
Example of a script-authored SPARKS circuit
<html>
<body>
<h1>Example script-authored SPARKS circuit</h1>
<iframe id="iframe" src="http://sparks.portal.concord.org/sparks-content/embeddable.html#postMessage" width="800px" height="500px"></iframe>
<p>Check out this cool circuit from <a href="http://sparks.concord.org">http://sparks.concord.org</a>!</p>
<script type="text/javascript">
window.onload = function() {
iframe = document.getElementById('iframe');
@sfentress
sfentress / index.html
Last active December 16, 2015 12:39
Example script-authored SPARKS circuit
<html>
<body>
<h1>Example script-authored SPARKS circuit</h1>
<iframe id="iframe" src="http://sparks.portal.concord.org/sparks-content/embeddable.html#postMessage" width="800px" height="500px"></iframe>
<p>Check out this cool circuit from <a href="http://sparks.concord.org">http://sparks.concord.org</a>!</p>
<script type="text/javascript">
window.onload = function() {
iframe = document.getElementById('iframe');
@sfentress
sfentress / index.html
Created April 22, 2013 15:47
Example of a script-authored SPARKS circuit
<html>
<head>
<script type="text/javascript">
document.onload = function() {
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"title": "Sample JSON activity",
"show_oscilloscope": "true",
@sfentress
sfentress / index.html
Created April 22, 2013 15:45
Example of a script-authored SPARKS circuit
<html>
<head>
<script type="text/javascript">
document.onload = function() {
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"title": "Sample JSON activity",
"show_oscilloscope": "true",
<html>
<head>
<script type="text/javascript">
document.onload = function() {
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"title": "Sample JSON activity",
"show_oscilloscope": "true",
@sfentress
sfentress / index.html
Created April 22, 2013 15:42
Example of a script-authored SPARKS circuit
<html>
<head>
<script type="text/javascript">
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"title": "Sample JSON activity",
"show_oscilloscope": "true",
"showComponentDrawer": "true",
<html>
<head>
<script type="text/javascript">
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"title": "Sample JSON activity",
"show_oscilloscope": "true",
"showComponentDrawer": "true",
@sfentress
sfentress / index.html
Created April 22, 2013 15:40
Example of a script-authored SPARKS circuit
<html>
<head>
document.onload = function() {
iframe = document.getElementById('iframe');
activity = {
"_id": "activity",
"show_oscilloscope": "true",
"showComponentDrawer": "true",
"circuit": [
@sfentress
sfentress / index.html
Created April 22, 2013 15:33
Example of embedding an authored circuit into an iframe.
<html>
<body>
<h1>Example embedded SPARKS circuit</h1>
<iframe src="http://sparks.portal.concord.org/sparks-content/embeddable.html#rlc-draggable" width="800px" height="500px"></iframe>
<p>Check out this cool circuit from <a href="http://sparks.concord.org">http://sparks.concord.org</a>!</p>
</body>
</html>