This is a mini presentation framework for the meetup talk SF Big Analytics - Open Source Project: The Chiasm Data Visualization Platform. For best viewing, open in a new window.
Here's the YouTube Video of this presentation: Story of Chiasm.
See also github.com/chiasm-project/chiasm.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Chiasm By Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<style>
html, body {
margin: 0px;
padding: 0px;
font-family: 'Open Sans', sans-serif;
}
img{
width: 230px;
}
/* Split the page vertically into two parts. */
/* See https://stackoverflow.com/questions/13530741/css-fill-horizonal-space */
#split {
position: fixed;
left: 0px;
right: 0px;
top: 0px;
bottom: 0px;
}
#left {
float: left;
height: 100%;
width: 250px;
padding: 5px;
overflow: auto;
margin: 0;
padding: 0;
}
#right {
height: 100%;
width: auto;
overflow: auto;
}
#content {
height: 100%;
width: 100%;
border: none;
}
video{
position: fixed;
bottom: 10px;
right: 10px;
border-radius:150px;
}
</style>
</head>
<body>
<div id="split">
<div id="left">
</div>
<div id="right">
<iframe src="intro.html" id="content" name="content"></iframe>
</div>
</div>
<!-- This box shows my face live from the camera. -->
<video width="300" autoplay></video>
<script>
d3.select("#right");
d3.xhr("outline.md", function (xhr){
var html = marked(xhr.response);
d3.select("#left").node().innerHTML = html;
// Make links open in the iFrame.
d3.selectAll("a").attr("target", "content");
});
// Display video from the camera on the video element.
// Example code from https://www.html5rocks.com/en/tutorials/getusermedia/intro/
navigator.getUserMedia = navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia;
navigator.getUserMedia({ video: true }, function (localMediaStream) {
var video = document.querySelector('video');
video.src = window.URL.createObjectURL(localMediaStream);
}, function (e) {
console.log("Error " + e);
});
</script>
</body>
</html>
https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js