Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 940839e0cffa94c77f3fe4aef5df1c2c962cc1d7 Brenton Fletcher committed Feb 11, 2009
@@ -0,0 +1,22 @@
+Copyright (c) 2006-2009 Brenton Fletcher (http://i.bloople.net i@bloople.net)
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,3 @@
+.tooltip { width: 18em; background-color: #ffffcc; border: 1px solid #a0a0a0;
+padding: 5px; margin-top: 0.4em; margin-left: 0.6em; }
+.tooltip span.top { }
@@ -0,0 +1,6 @@
+<?
+$prefix = substr($_GET["url"], 0, 4);
+if($prefix != "http") die();
+echo file_get_contents($_GET["url"]);
+//header("Location: ".$_GET["url"]);
+?>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,87 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>JSON 2 HTML</title>
+<link rel="StyleSheet" type="text/css" href="style.css" />
+<script type="text/javascript" src="scripts/json-min.js"></script>
+<script type="text/javascript" src="scripts/BubbleTooltips.js"></script>
+<script type="text/javascript" src="scripts/parse.js"></script>
+<!--[if lt IE 7]>
+<script defer type="text/javascript" src="scripts/pngfix.js"></script>
+<![endif]-->
+
+<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
+</head>
+<body id="body" onmouseover="stopFocus();">
+<a name="_top" class="noa"></a>
+
+<div class="header">
+<div class="alpha"><a href="javascript:void(0);" onclick="doDonate();"><img src="images/donate.png" alt="Please Donate!" /></a></div>
+<div class="shoutboxcon"><a href="javascript:showShoutbox();" id="shoutboxlink">show shoutbox!</a>
+ <div id="shoutbox">
+ <!-- Begin Shoutbox - http://www.shoutmix.com -->
+ <iframe title="bloopletech" src="http://www.shoutmix.com/?bloopletech" width="160" height="400" frameborder="0" scrolling="auto">
+ <a href="http://www.shoutmix.com/?bloopletech">View shoutbox</a>
+ </iframe>
+ <!-- End Shoutbox -->
+ </div>
+</div>
+<img src="images/logo.png" alt="json 2 html" />
+</div>
+
+<div class="mainbody">
+ <div id="bodywrap" class="bodywrap"></div>
+ <div id="desc" class="desc">
+ <p><img class="jsonlogo" src="images/json.gif" alt="JSON logo" /><h3>json</h3>
+ <i>Quoting from the home page of <a href="http://www.json.org/">JSON</a></i><br />
+ JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.</p>
+ <p><h3>syntax highlighting:</h3>
+ <span class='string'>Colour for text and null values.</span><br />
+ <span class='number'>Colour for numbers.</span><br />
+ <span class='boolean'>Colour for true and false values.</span><br />
+ <span class='void'>Colour for void values.</span><br />
+ <img class="ex" src="images/object.png" /> Background for Objects.<br />
+ <img class="ex" src="images/array.png" /> Background for Arrays.<br />
+ <img class="ex" src="images/objectt.png" /> Background for Object name/value pair tables.<br />
+ <img class="ex" src="images/arrayt.png" /> Background for Array value tables.</p>
+ <p><h3>dependencies</h3>
+ This page uses the JSON JavaScript <a href="http://www.json.org/js.html">parsing library</a>.</p>
+ <p><h3>note</h3>
+ Words longer than 30 characters may be broken into two or more lines to save space.</p>
+ <p class="closep"><input type="button" onclick="hideHelp();" value="close" /></p>
+ </div>
+ <div id="donate" class="desc">
+ <p><h3>Donation</h3>
+ I create projects like this one for people like you.
+ It would be great if you donated, say, $5 so I can continue to create new projects and support the projects I've
+ already completed.</p>
+ <p><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+ <input type="hidden" name="cmd" value="_s-xclick">
+ If you want to donate, you can so in less than two minutes via PayPal. Just click
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">.
+ <img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHXwYJKoZIhvcNAQcEoIIHUDCCB0wCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBgE34rUxoVAImGPeFIxhEixrOJx3cgQamLw/I7M4UnIMQiN2JUDgNLewWoEBdmhBjSBOROvtVNz+Cng/PTeUL1M16c0U3vqfszwqjvIl+NLwUJQT04KTYkTgD86anGM8a7dxcb/kNm1d4eeYSNLD9TGJ6VNM4nDW/xCD5+DfzoKDELMAkGBSsOAwIaBQAwgdwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIuCTAkmt20YaAgbgAfAGiHtkOCPfi14BVPitZK9DKrnaT8/j7EW/FZ0NH2PUVZS6ON6fTKh5P5C1pP2T51MwIYg3T6ytGPfDM7Auy/tXQevYH6saQcebz9n6vvoqxBK2ytqKDosE0PIjLNKLZpCCFUkrCPtJNQIDee4Gtb8wj22TnTDIgMIwUJ6WqoNItP0MSPrH7uNotqFTshgSYZ4CvtBl7+b9hIrND/npfwf9/ViXsukTJriXM7hLpJ+itkfvz03T5oIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQY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qXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcwNTAyMTIxNTUwWjAjBgkqhkiG9w0BCQQxFgQUsbLa4NBHDEnkLl5Aw0i66R/g8oowDQYJKoZIhvcNAQEBBQAEgYA/io5edj4oc2YQavIKWpUFOxbCXIIJUKGxSOyDXVOLxewV4YWcbVfhkcfOvD9aIwAyUYroMVsAUd7ONjLlzwWaWeDMX7xI12pLg9fnW6WdtR9bJ7iOTn3GxNIqs37JZ42F1179nq0j9OkvUP/BqCR19EkvsgNoIssmG696KrJsNg==-----END PKCS7-----">
+ </form></p>
+ <p class="closep"><input type="button" onclick="hideDonate();" value="close" /></p>
+ </div>
+
+ <form onsubmit="doParse(); return false;">
+ <p class="mast">This page offers an easy way to visualize a string of JSON text.
+ Put some JSON into the text area, and this page will instantly display the text as a set of nested boxes,
+ corresponding to the objects, arrays and values in the JSON string.<br />
+ You can also paste a URL into the textarea, and the JSON string will be loaded from the URL.<br />
+ Check out my new project, <a href="http://rss.budgetwebdesign.org/">rss2html</a> - embed RSS feeds directly into HTML.
+ </p>
+ <div id="inputcontainer"><textarea id="text" rows="12"></textarea></div>
+ <div class="clear"></div>
+ <div class="lfloat"><input type="submit" id="submit" value="json 2 html" onclick="doParse(); return false;" /> <input type="button" id="reset" value="reset" onclick="clearPage();" /></div>
+ <div class="rfloat"><input type="button" id="help" value="help" onclick="doHelp();" /></div>
+ <div class="clear"></div>
+ <hr />
+ <a name="_output" class="noa"></a>
+ <div id="stats" class="stats"></div>
+ <div id="output" class="output"></div>
+ </form>
+ <div class="footer">Check out my portfolio at <a href="http://i.bloople.net">i.bloople.net</a>. &copy; Brenton Fletcher. Comments? e-mail me: <a href="mailto:impactbc@hotmail.com">impactbc@hotmail.com</a>.</div>
+</body>
+</html>
Binary file not shown.
@@ -0,0 +1,91 @@
+/*javascript for Bubble Tooltips by Alessandro Fulciniti
+- http://pro.html.it - http://web-graphics.com */
+//Modified by Brenton Fletcher
+
+function enableTooltips(id){
+var links,i,h;
+if(!document.getElementById || !document.getElementsByTagName) return;
+AddCss();
+h=document.createElement("span");
+h.id="btc";
+h.setAttribute("id","btc");
+h.style.position="absolute";
+document.getElementsByTagName("body")[0].appendChild(h);
+doTooltips(id);
+}
+
+function doTooltips(id)
+{
+ if(id==null) links=document.getElementsByTagName("span");
+ else links=document.getElementById(id).getElementsByTagName("span");
+ for(i=0;i<links.length;i++) Prepare(links[i]);
+}
+
+function Prepare(el){
+var tooltip,t,b,s,l;
+t=el.getAttribute("title");
+if(t==null || t.length==0) return;
+el.removeAttribute("title");
+tooltip=CreateEl("span","tooltip");
+s=CreateEl("span","top");
+s.appendChild(document.createTextNode(t));
+tooltip.appendChild(s);
+setOpacity(tooltip);
+el.tooltip=tooltip;
+el.onmouseover=showTooltip;
+el.onmouseout=hideTooltip;
+el.onmousemove=Locate;
+}
+
+function showTooltip(e){
+document.getElementById("btc").appendChild(this.tooltip);
+Locate(e);
+}
+
+function hideTooltip(e){
+var d=document.getElementById("btc");
+if(d.childNodes.length>0) d.removeChild(d.firstChild);
+}
+
+function setOpacity(el){
+el.style.filter="alpha(opacity:95)";
+el.style.KHTMLOpacity="0.95";
+el.style.MozOpacity="0.95";
+el.style.opacity="0.95";
+}
+
+function CreateEl(t,c){
+var x=document.createElement(t);
+x.className=c;
+x.style.display="block";
+return(x);
+}
+
+function AddCss(){
+var l=CreateEl("link");
+l.setAttribute("type","text/css");
+l.setAttribute("rel","stylesheet");
+l.setAttribute("href","bt.css");
+l.setAttribute("media","screen");
+document.getElementsByTagName("head")[0].appendChild(l);
+}
+
+function Locate(e){
+var posx=0,posy=0;
+if(e==null) e=window.event;
+if(e.pageX || e.pageY){
+ posx=e.pageX; posy=e.pageY;
+ }
+else if(e.clientX || e.clientY){
+ if(document.documentElement.scrollTop){
+ posx=e.clientX+document.documentElement.scrollLeft;
+ posy=e.clientY+document.documentElement.scrollTop;
+ }
+ else{
+ posx=e.clientX+document.body.scrollLeft;
+ posy=e.clientY+document.body.scrollTop;
+ }
+ }
+document.getElementById("btc").style.top=(posy+10)+"px";
+document.getElementById("btc").style.left=(posx-20)+"px";
+}
Oops, something went wrong.

0 comments on commit 940839e

Please sign in to comment.