123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <!DOCTYPE html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Built with Processing and Processing.js</title>
- <link rel="icon" type="image/x-icon" href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAQAAVzABAEAjBQAaDwYAWjUGAGE6CQBrQQ0ATS8PAFhAJwBUQC8AbFI6AHVXPACBZk4A4NrWAPb19QAAAAAAAMmZmZmZmgAJIwAAAAAAcMIjPjA+PjAKpxIuMDMzMAm0Ii4zMzMACaIiLt3dMAAJtyIuIzPQAAm0Un5yM+IzKLRkfncy4iIotRF+dyLkIiq0QX53F+EiGrQUTkd34iIatEVu7u5iIVrBVVRBRFRVbAtGZGZla2uwAMu7u7u8vADAAwAAgAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIABAADAAwAA" />
- <meta name="Generator" content="Processing" />
- <!-- - - - - - - - - - - - - - - - - - - - -
- +
- + Wondering how this works?
- +
- + Go to: http://processing.org/
- + and: http://processingjs.org/
- +
- + - - - - - - - - - - - - - - - - - - - - -->
- <style type="text/css">
- body {
- background-color: #333; color: #bbb; line-height: normal;
- font-family: Lucida Grande, Lucida Sans, Arial, Helvetica Neue, Verdana, Geneva, sans-serif;
- font-size: 11px; font-weight: normal; text-decoration: none;
- line-height: 1.5em;
- }
- a img {
- border: 0px solid transparent;
- }
- a, a:link, a:visited, a:active, a:hover {
- color: #cdcdcd; text-decoration: underline;
- }
- h1 {
- font-family: Arial, Helvetica Neue, Verdana, Geneva, sans-serif;
- width: 100%; letter-spacing: 0.1em;
- margin-bottom: 1em; font-size: 1.65em;
- }
- canvas {
- display: block;
- outline: 0px;
- margin-bottom: 1.5em;
- }
- #content {
- margin: 50px auto 0px auto; padding: 25px 25px 15px 25px;
- overflow: auto;
- border-left: 1px solid #444; border-top: 1px solid #444;
- border-right: 1px solid #333; border-bottom: 1px solid #333;
- background-color: #3d3d3d;
- text-align: center;
- }
- canvas {
- margin-left: auto;
- margin-right: auto;
- }
- #footer {
- text-align: center;
- }
- </style>
- <!--[if lt IE 9]>
- <script type="text/javascript">alert("Your browser does not support the canvas tag.");</script>
- <![endif]-->
- </head>
- <body>
- <div id="content">
- <h1 id="title"></h1>
- <div>
- <canvas>
- <p>Your browser does not support the canvas tag.</p>
- <!-- Note: you can put any alternative content here. -->
- </canvas>
- <noscript>
- <p>JavaScript is required to view the contents of this page.</p>
- </noscript>
- </div>
- <p id="description"></p>
- <p id="sources">Source code: <a href=""></a> </p>
- <p>
- Built with <a href="http://processing.org" title="Processing">Processing</a>
- and <a href="http://processingjs.org" title="Processing.js">Processing.js</a>
- </p>
- </div>
- <script>
- document.addEventListener("DOMContentLoaded", () => {
- let paramString = location.toString().split("?")[1];
- window.params = {};
- paramString.split("&").forEach(tokenString => {
- let parts = tokenString.split("=");
- window.params[parts[0]] = parts[1];
- });
- let contentElement = document.getElementById("content");
- contentElement.style.width = window.params['w'];
- contentElement.style.height = window.params['h'];
- let canvas = document.getElementsByTagName("canvas")[0];
- canvas.id = window.params['p'];
- canvas.setAttribute("data-processing-sources", "../files/" + window.params['p'] + ".pde");
- canvas.width = window.params['w'];
- canvas.height = window.params['h'];
- document.title = window.params['p'] + " : " + document.title;
- document.getElementById("title").innerHTML = window.params['p'];
- let sourceLinkElement = document.getElementById("sources")
- let linkElement = sourceLinkElement.getElementsByTagName("a")[0];
- linkElement.innerHTML = window.params['p'] + ".pde";
- linkElement.href = "../files/" + window.params['p'] + ".pde";
-
- });
- </script>
- <script src="../js/processing.js" type="text/javascript"></script>
- <script type="text/javascript">
- // convenience function to get the id attribute of generated sketch html element
- function getProcessingSketchId () { return window.params['p'];}
- </script>
- <div id="footer">
- <p>Contact: <a href="mailto:eyeofmidas@gmail.com">eyeofmidas@gmail.com</a></p>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', 'UA-50800317-1', 'eyeofmidas.com');
- ga('send', 'pageview');
- </script>
- </div>
- </body>
- </html>
|