jl777
9 years ago
45 changed files with 2876 additions and 317 deletions
@ -0,0 +1 @@ |
|||
#About Us |
@ -0,0 +1,28 @@ |
|||
# Developers |
|||
* Getting Started |
|||
* Desktop App SDK |
|||
* Mobile App SDK |
|||
** Android |
|||
** iOS |
|||
** Windows |
|||
* Iguana/SuperNET API Reference: Any General SuperNET specific API reference |
|||
** Coins ( ablaze ) |
|||
** Peers ( eyedea ) |
|||
* SuperNET Apps specific API Reference: Organising Applications specific API reference and interlinking between other pages to refer if the same API is used in between these applications. |
|||
** InstantDEX API |
|||
** Pegged Asset Exchange (PAX) API |
|||
** Jumblr API |
|||
* Iguana/SuperNET Core Coin API Reference: Referecing to SuperNET's core coin's API reference which might be nessary to function or build Iguana/SuperNET Application, and where it's using some different API calls than official APIs |
|||
** BitcoinDark API |
|||
** Bitcoin API |
|||
|
|||
# For Users |
|||
* Iguana Chrome App User Manual |
|||
* Iguana Mobile App |
|||
** Android |
|||
** iOS |
|||
* InstantDEX User Manual |
|||
* Pegged Asset Exchange (PAX) User Manual |
|||
* Jumblr User Manual |
|||
|
|||
|
@ -0,0 +1,5 @@ |
|||
site_name: SuperNET Documentation |
|||
pages: |
|||
- Home: index.md |
|||
- About: about.md |
|||
theme: readthedocs |
@ -0,0 +1,147 @@ |
|||
<!DOCTYPE html> |
|||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
|||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
|
|||
<title>About - SuperNET Documentation</title> |
|||
|
|||
|
|||
<link rel="shortcut icon" href="../img/favicon.ico"> |
|||
|
|||
|
|||
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'> |
|||
|
|||
<link rel="stylesheet" href="../css/theme.css" type="text/css" /> |
|||
<link rel="stylesheet" href="../css/theme_extra.css" type="text/css" /> |
|||
<link rel="stylesheet" href="../css/highlight.css"> |
|||
|
|||
|
|||
<script> |
|||
// Current page data |
|||
var mkdocs_page_name = "About"; |
|||
</script> |
|||
|
|||
<script src="../js/jquery-2.1.1.min.js"></script> |
|||
<script src="../js/modernizr-2.8.3.min.js"></script> |
|||
<script type="text/javascript" src="../js/highlight.pack.js"></script> |
|||
<script src="../js/theme.js"></script> |
|||
|
|||
|
|||
</head> |
|||
|
|||
<body class="wy-body-for-nav" role="document"> |
|||
|
|||
<div class="wy-grid-for-nav"> |
|||
|
|||
|
|||
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav"> |
|||
<div class="wy-side-nav-search"> |
|||
<a href=".." class="icon icon-home"> SuperNET Documentation</a> |
|||
<div role="search"> |
|||
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get"> |
|||
<input type="text" name="q" placeholder="Search docs" /> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
|||
<ul class="current"> |
|||
|
|||
<li> |
|||
<li class="toctree-l1 "> |
|||
<a class="" href="..">Home</a> |
|||
|
|||
</li> |
|||
<li> |
|||
|
|||
<li> |
|||
<li class="toctree-l1 current"> |
|||
<a class="current" href="./">About</a> |
|||
|
|||
<ul> |
|||
|
|||
<li class="toctree-l3"><a href="#about-us">About Us</a></li> |
|||
|
|||
|
|||
</ul> |
|||
|
|||
</li> |
|||
<li> |
|||
|
|||
</ul> |
|||
</div> |
|||
|
|||
</nav> |
|||
|
|||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
|||
|
|||
|
|||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
|||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
|||
<a href="..">SuperNET Documentation</a> |
|||
</nav> |
|||
|
|||
|
|||
<div class="wy-nav-content"> |
|||
<div class="rst-content"> |
|||
<div role="navigation" aria-label="breadcrumbs navigation"> |
|||
<ul class="wy-breadcrumbs"> |
|||
<li><a href="..">Docs</a> »</li> |
|||
|
|||
|
|||
|
|||
<li>About</li> |
|||
<li class="wy-breadcrumbs-aside"> |
|||
|
|||
</li> |
|||
</ul> |
|||
<hr/> |
|||
</div> |
|||
<div role="main"> |
|||
<div class="section"> |
|||
|
|||
<h1 id="about-us">About Us</h1> |
|||
|
|||
</div> |
|||
</div> |
|||
<footer> |
|||
|
|||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
|||
|
|||
|
|||
<a href=".." class="btn btn-neutral" title="Home"><span class="icon icon-circle-arrow-left"></span> Previous</a> |
|||
|
|||
</div> |
|||
|
|||
|
|||
<hr/> |
|||
|
|||
<div role="contentinfo"> |
|||
<!-- Copyright etc --> |
|||
|
|||
</div> |
|||
|
|||
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. |
|||
</footer> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
</section> |
|||
|
|||
</div> |
|||
|
|||
<div class="rst-versions" role="note" style="cursor: pointer"> |
|||
<span class="rst-current-version" data-toggle="rst-current-version"> |
|||
|
|||
|
|||
<span><a href=".." style="color: #fcfcfc;">« Previous</a></span> |
|||
|
|||
|
|||
</span> |
|||
</div> |
|||
|
|||
</body> |
|||
</html> |
@ -0,0 +1,125 @@ |
|||
/* |
|||
This is the GitHub theme for highlight.js |
|||
|
|||
github.com style (c) Vasily Polovnyov <vast@whiteants.net> |
|||
|
|||
*/ |
|||
|
|||
.hljs { |
|||
display: block; |
|||
overflow-x: auto; |
|||
padding: 0.5em; |
|||
color: #333; |
|||
-webkit-text-size-adjust: none; |
|||
} |
|||
|
|||
.hljs-comment, |
|||
.diff .hljs-header, |
|||
.hljs-javadoc { |
|||
color: #998; |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-keyword, |
|||
.css .rule .hljs-keyword, |
|||
.hljs-winutils, |
|||
.nginx .hljs-title, |
|||
.hljs-subst, |
|||
.hljs-request, |
|||
.hljs-status { |
|||
color: #333; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-number, |
|||
.hljs-hexcolor, |
|||
.ruby .hljs-constant { |
|||
color: #008080; |
|||
} |
|||
|
|||
.hljs-string, |
|||
.hljs-tag .hljs-value, |
|||
.hljs-phpdoc, |
|||
.hljs-dartdoc, |
|||
.tex .hljs-formula { |
|||
color: #d14; |
|||
} |
|||
|
|||
.hljs-title, |
|||
.hljs-id, |
|||
.scss .hljs-preprocessor { |
|||
color: #900; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-list .hljs-keyword, |
|||
.hljs-subst { |
|||
font-weight: normal; |
|||
} |
|||
|
|||
.hljs-class .hljs-title, |
|||
.hljs-type, |
|||
.vhdl .hljs-literal, |
|||
.tex .hljs-command { |
|||
color: #458; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-tag, |
|||
.hljs-tag .hljs-title, |
|||
.hljs-rule .hljs-property, |
|||
.django .hljs-tag .hljs-keyword { |
|||
color: #000080; |
|||
font-weight: normal; |
|||
} |
|||
|
|||
.hljs-attribute, |
|||
.hljs-variable, |
|||
.lisp .hljs-body, |
|||
.hljs-name { |
|||
color: #008080; |
|||
} |
|||
|
|||
.hljs-regexp { |
|||
color: #009926; |
|||
} |
|||
|
|||
.hljs-symbol, |
|||
.ruby .hljs-symbol .hljs-string, |
|||
.lisp .hljs-keyword, |
|||
.clojure .hljs-keyword, |
|||
.scheme .hljs-keyword, |
|||
.tex .hljs-special, |
|||
.hljs-prompt { |
|||
color: #990073; |
|||
} |
|||
|
|||
.hljs-built_in { |
|||
color: #0086b3; |
|||
} |
|||
|
|||
.hljs-preprocessor, |
|||
.hljs-pragma, |
|||
.hljs-pi, |
|||
.hljs-doctype, |
|||
.hljs-shebang, |
|||
.hljs-cdata { |
|||
color: #999; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-deletion { |
|||
background: #fdd; |
|||
} |
|||
|
|||
.hljs-addition { |
|||
background: #dfd; |
|||
} |
|||
|
|||
.diff .hljs-change { |
|||
background: #0086b3; |
|||
} |
|||
|
|||
.hljs-chunk { |
|||
color: #aaa; |
|||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,126 @@ |
|||
/* |
|||
* Tweak the overal size to better match RTD. |
|||
*/ |
|||
body { |
|||
font-size: 90%; |
|||
} |
|||
|
|||
h3, h4, h5, h6 { |
|||
color: #2980b9; |
|||
font-weight: 300 |
|||
} |
|||
|
|||
/* |
|||
* Sphinx doesn't have support for section dividers like we do in |
|||
* MkDocs, this styles the section titles in the nav |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/issues/175 |
|||
*/ |
|||
.wy-menu-vertical span { |
|||
line-height: 18px; |
|||
padding: 0.4045em 1.618em; |
|||
display: block; |
|||
position: relative; |
|||
font-size: 90%; |
|||
color: #838383; |
|||
} |
|||
|
|||
.wy-menu-vertical .subnav a { |
|||
padding: 0.4045em 2.427em; |
|||
} |
|||
|
|||
/* |
|||
* Long navigations run off the bottom of the screen as the nav |
|||
* area doesn't scroll. |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/pull/202 |
|||
*/ |
|||
.wy-nav-side { |
|||
height: 100%; |
|||
overflow-y: auto; |
|||
} |
|||
|
|||
/* |
|||
* readthedocs theme hides nav items when the window height is |
|||
* too small to contain them. |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/issues/#348 |
|||
*/ |
|||
.wy-menu-vertical ul { |
|||
margin-bottom: 2em; |
|||
} |
|||
|
|||
/* |
|||
* Fix wrapping in the code highlighting |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/issues/233 |
|||
*/ |
|||
code { |
|||
white-space: pre; |
|||
} |
|||
|
|||
/* |
|||
* Wrap inline code samples otherwise they shoot of the side and |
|||
* can't be read at all. |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/issues/313 |
|||
*/ |
|||
p code { |
|||
word-wrap: break-word; |
|||
} |
|||
|
|||
/* |
|||
* The CSS classes from highlight.js seem to clash with the |
|||
* ReadTheDocs theme causing some code to be incorrectly made |
|||
* bold and italic. |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/issues/411 |
|||
*/ |
|||
code.cs, code.c { |
|||
font-weight: inherit; |
|||
font-style: inherit; |
|||
} |
|||
|
|||
/* |
|||
* Fix some issues with the theme and non-highlighted code |
|||
* samples. Without and highlighting styles attached the |
|||
* formatting is broken. |
|||
* |
|||
* https://github.com/mkdocs/mkdocs/issues/319 |
|||
*/ |
|||
.no-highlight { |
|||
display: block; |
|||
padding: 0.5em; |
|||
color: #333; |
|||
} |
|||
|
|||
|
|||
/* |
|||
* Additions specific to the search functionality provided by MkDocs |
|||
*/ |
|||
|
|||
#mkdocs-search-results article h3 |
|||
{ |
|||
margin-top: 23px; |
|||
border-top: 1px solid #E1E4E5; |
|||
padding-top: 24px; |
|||
} |
|||
|
|||
#mkdocs-search-results article:first-child h3 { |
|||
border-top: none; |
|||
} |
|||
|
|||
#mkdocs-search-query{ |
|||
width: 100%; |
|||
border-radius: 50px; |
|||
padding: 6px 12px; |
|||
border-color: #D1D4D5; |
|||
} |
|||
|
|||
.wy-menu-vertical li ul { |
|||
display: inherit; |
|||
} |
|||
|
|||
.wy-menu-vertical li ul.subnav ul.subnav{ |
|||
padding-left: 1em; |
|||
} |
Binary file not shown.
After Width: | Height: | Size: 193 KiB |
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,183 @@ |
|||
<!DOCTYPE html> |
|||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
|||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
|
|||
<title>SuperNET Documentation</title> |
|||
|
|||
|
|||
<link rel="shortcut icon" href="./img/favicon.ico"> |
|||
|
|||
|
|||
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'> |
|||
|
|||
<link rel="stylesheet" href="./css/theme.css" type="text/css" /> |
|||
<link rel="stylesheet" href="./css/theme_extra.css" type="text/css" /> |
|||
<link rel="stylesheet" href="./css/highlight.css"> |
|||
|
|||
|
|||
<script> |
|||
// Current page data |
|||
var mkdocs_page_name = "None"; |
|||
</script> |
|||
|
|||
<script src="./js/jquery-2.1.1.min.js"></script> |
|||
<script src="./js/modernizr-2.8.3.min.js"></script> |
|||
<script type="text/javascript" src="./js/highlight.pack.js"></script> |
|||
<script src="./js/theme.js"></script> |
|||
|
|||
|
|||
</head> |
|||
|
|||
<body class="wy-body-for-nav" role="document"> |
|||
|
|||
<div class="wy-grid-for-nav"> |
|||
|
|||
|
|||
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav"> |
|||
<div class="wy-side-nav-search"> |
|||
<a href="." class="icon icon-home"> SuperNET Documentation</a> |
|||
<div role="search"> |
|||
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get"> |
|||
<input type="text" name="q" placeholder="Search docs" /> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
|||
<ul class="current"> |
|||
|
|||
<li> |
|||
<li class="toctree-l1 current"> |
|||
<a class="current" href=".">Home</a> |
|||
|
|||
<ul> |
|||
|
|||
<li class="toctree-l3"><a href="#developers">Developers</a></li> |
|||
|
|||
|
|||
<li class="toctree-l3"><a href="#for-users">For Users</a></li> |
|||
|
|||
|
|||
</ul> |
|||
|
|||
</li> |
|||
<li> |
|||
|
|||
<li> |
|||
<li class="toctree-l1 "> |
|||
<a class="" href="about/">About</a> |
|||
|
|||
</li> |
|||
<li> |
|||
|
|||
</ul> |
|||
</div> |
|||
|
|||
</nav> |
|||
|
|||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
|||
|
|||
|
|||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
|||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
|||
<a href=".">SuperNET Documentation</a> |
|||
</nav> |
|||
|
|||
|
|||
<div class="wy-nav-content"> |
|||
<div class="rst-content"> |
|||
<div role="navigation" aria-label="breadcrumbs navigation"> |
|||
<ul class="wy-breadcrumbs"> |
|||
<li><a href=".">Docs</a> »</li> |
|||
|
|||
|
|||
|
|||
<li>Home</li> |
|||
<li class="wy-breadcrumbs-aside"> |
|||
|
|||
</li> |
|||
</ul> |
|||
<hr/> |
|||
</div> |
|||
<div role="main"> |
|||
<div class="section"> |
|||
|
|||
<h1 id="developers">Developers</h1> |
|||
<ul> |
|||
<li>Getting Started</li> |
|||
<li>Desktop App SDK</li> |
|||
<li>Mobile App SDK |
|||
<strong> Android |
|||
</strong> iOS |
|||
** Windows</li> |
|||
<li>Iguana/SuperNET API Reference: Any General SuperNET specific API reference |
|||
<strong> Coins ( ablaze ) |
|||
</strong> Peers ( eyedea )</li> |
|||
<li>SuperNET Apps specific API Reference: Organising Applications specific API reference and interlinking between other pages to refer if the same API is used in between these applications. |
|||
<strong> InstantDEX API |
|||
</strong> Pegged Asset Exchange (PAX) API |
|||
** Jumblr API</li> |
|||
<li>Iguana/SuperNET Core Coin API Reference: Referecing to SuperNET's core coin's API reference which might be nessary to function or build Iguana/SuperNET Application, and where it's using some different API calls than official APIs |
|||
<strong> BitcoinDark API |
|||
</strong> Bitcoin API</li> |
|||
</ul> |
|||
<h1 id="for-users">For Users</h1> |
|||
<ul> |
|||
<li>Iguana Chrome App User Manual</li> |
|||
<li>Iguana Mobile App |
|||
<strong> Android |
|||
</strong> iOS</li> |
|||
<li>InstantDEX User Manual</li> |
|||
<li>Pegged Asset Exchange (PAX) User Manual</li> |
|||
<li>Jumblr User Manual</li> |
|||
</ul> |
|||
|
|||
</div> |
|||
</div> |
|||
<footer> |
|||
|
|||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
|||
|
|||
<a href="about/" class="btn btn-neutral float-right" title="About"/>Next <span class="icon icon-circle-arrow-right"></span></a> |
|||
|
|||
|
|||
</div> |
|||
|
|||
|
|||
<hr/> |
|||
|
|||
<div role="contentinfo"> |
|||
<!-- Copyright etc --> |
|||
|
|||
</div> |
|||
|
|||
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. |
|||
</footer> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
</section> |
|||
|
|||
</div> |
|||
|
|||
<div class="rst-versions" role="note" style="cursor: pointer"> |
|||
<span class="rst-current-version" data-toggle="rst-current-version"> |
|||
|
|||
|
|||
|
|||
<span style="margin-left: 15px"><a href="about/" style="color: #fcfcfc">Next »</a></span> |
|||
|
|||
</span> |
|||
</div> |
|||
|
|||
</body> |
|||
</html> |
|||
|
|||
<!-- |
|||
MkDocs version : 0.14.0 |
|||
Build Date UTC : 2015-12-22 23:20:03.993414 |
|||
--> |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,55 @@ |
|||
$( document ).ready(function() { |
|||
|
|||
// Shift nav in mobile when clicking the menu.
|
|||
$(document).on('click', "[data-toggle='wy-nav-top']", function() { |
|||
$("[data-toggle='wy-nav-shift']").toggleClass("shift"); |
|||
$("[data-toggle='rst-versions']").toggleClass("shift"); |
|||
}); |
|||
|
|||
// Close menu when you click a link.
|
|||
$(document).on('click', ".wy-menu-vertical .current ul li a", function() { |
|||
$("[data-toggle='wy-nav-shift']").removeClass("shift"); |
|||
$("[data-toggle='rst-versions']").toggleClass("shift"); |
|||
}); |
|||
|
|||
$(document).on('click', "[data-toggle='rst-current-version']", function() { |
|||
$("[data-toggle='rst-versions']").toggleClass("shift-up"); |
|||
}); |
|||
|
|||
// Make tables responsive
|
|||
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>"); |
|||
|
|||
hljs.initHighlightingOnLoad(); |
|||
|
|||
$('table').addClass('docutils'); |
|||
}); |
|||
|
|||
window.SphinxRtdTheme = (function (jquery) { |
|||
var stickyNav = (function () { |
|||
var navBar, |
|||
win, |
|||
stickyNavCssClass = 'stickynav', |
|||
applyStickNav = function () { |
|||
if (navBar.height() <= win.height()) { |
|||
navBar.addClass(stickyNavCssClass); |
|||
} else { |
|||
navBar.removeClass(stickyNavCssClass); |
|||
} |
|||
}, |
|||
enable = function () { |
|||
applyStickNav(); |
|||
win.on('resize', applyStickNav); |
|||
}, |
|||
init = function () { |
|||
navBar = jquery('nav.wy-nav-side:first'); |
|||
win = jquery(window); |
|||
}; |
|||
jquery(init); |
|||
return { |
|||
enable : enable |
|||
}; |
|||
}()); |
|||
return { |
|||
StickyNav : stickyNav |
|||
}; |
|||
}($)); |
@ -0,0 +1,24 @@ |
|||
Copyright (c) 2006, Ivan Sagalaev |
|||
All rights reserved. |
|||
Redistribution and use in source and binary forms, with or without |
|||
modification, are permitted provided that the following conditions are met: |
|||
|
|||
* Redistributions of source code must retain the above copyright |
|||
notice, this list of conditions and the following disclaimer. |
|||
* Redistributions in binary form must reproduce the above copyright |
|||
notice, this list of conditions and the following disclaimer in the |
|||
documentation and/or other materials provided with the distribution. |
|||
* Neither the name of highlight.js nor the names of its contributors |
|||
may be used to endorse or promote products derived from this software |
|||
without specific prior written permission. |
|||
|
|||
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY |
|||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
|||
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY |
|||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
|||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
|||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,36 @@ |
|||
/* |
|||
RequireJS 2.1.16 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved. |
|||
Available via the MIT or new BSD license. |
|||
see: http://github.com/jrburke/requirejs for details
|
|||
*/ |
|||
var requirejs,require,define; |
|||
(function(ba){function G(b){return"[object Function]"===K.call(b)}function H(b){return"[object Array]"===K.call(b)}function v(b,c){if(b){var d;for(d=0;d<b.length&&(!b[d]||!c(b[d],d,b));d+=1);}}function T(b,c){if(b){var d;for(d=b.length-1;-1<d&&(!b[d]||!c(b[d],d,b));d-=1);}}function t(b,c){return fa.call(b,c)}function m(b,c){return t(b,c)&&b[c]}function B(b,c){for(var d in b)if(t(b,d)&&c(b[d],d))break}function U(b,c,d,e){c&&B(c,function(c,g){if(d||!t(b,g))e&&"object"===typeof c&&c&&!H(c)&&!G(c)&&!(c instanceof |
|||
RegExp)?(b[g]||(b[g]={}),U(b[g],c,d,e)):b[g]=c});return b}function u(b,c){return function(){return c.apply(b,arguments)}}function ca(b){throw b;}function da(b){if(!b)return b;var c=ba;v(b.split("."),function(b){c=c[b]});return c}function C(b,c,d,e){c=Error(c+"\nhttp://requirejs.org/docs/errors.html#"+b);c.requireType=b;c.requireModules=e;d&&(c.originalError=d);return c}function ga(b){function c(a,k,b){var f,l,c,d,e,g,i,p,k=k&&k.split("/"),h=j.map,n=h&&h["*"];if(a){a=a.split("/");l=a.length-1;j.nodeIdCompat&& |
|||
Q.test(a[l])&&(a[l]=a[l].replace(Q,""));"."===a[0].charAt(0)&&k&&(l=k.slice(0,k.length-1),a=l.concat(a));l=a;for(c=0;c<l.length;c++)if(d=l[c],"."===d)l.splice(c,1),c-=1;else if(".."===d&&!(0===c||1==c&&".."===l[2]||".."===l[c-1])&&0<c)l.splice(c-1,2),c-=2;a=a.join("/")}if(b&&h&&(k||n)){l=a.split("/");c=l.length;a:for(;0<c;c-=1){e=l.slice(0,c).join("/");if(k)for(d=k.length;0<d;d-=1)if(b=m(h,k.slice(0,d).join("/")))if(b=m(b,e)){f=b;g=c;break a}!i&&(n&&m(n,e))&&(i=m(n,e),p=c)}!f&&i&&(f=i,g=p);f&&(l.splice(0, |
|||
g,f),a=l.join("/"))}return(f=m(j.pkgs,a))?f:a}function d(a){z&&v(document.getElementsByTagName("script"),function(k){if(k.getAttribute("data-requiremodule")===a&&k.getAttribute("data-requirecontext")===i.contextName)return k.parentNode.removeChild(k),!0})}function e(a){var k=m(j.paths,a);if(k&&H(k)&&1<k.length)return k.shift(),i.require.undef(a),i.makeRequire(null,{skipMap:!0})([a]),!0}function n(a){var k,c=a?a.indexOf("!"):-1;-1<c&&(k=a.substring(0,c),a=a.substring(c+1,a.length));return[k,a]}function p(a, |
|||
k,b,f){var l,d,e=null,g=k?k.name:null,j=a,p=!0,h="";a||(p=!1,a="_@r"+(K+=1));a=n(a);e=a[0];a=a[1];e&&(e=c(e,g,f),d=m(r,e));a&&(e?h=d&&d.normalize?d.normalize(a,function(a){return c(a,g,f)}):-1===a.indexOf("!")?c(a,g,f):a:(h=c(a,g,f),a=n(h),e=a[0],h=a[1],b=!0,l=i.nameToUrl(h)));b=e&&!d&&!b?"_unnormalized"+(O+=1):"";return{prefix:e,name:h,parentMap:k,unnormalized:!!b,url:l,originalName:j,isDefine:p,id:(e?e+"!"+h:h)+b}}function s(a){var k=a.id,b=m(h,k);b||(b=h[k]=new i.Module(a));return b}function q(a, |
|||
k,b){var f=a.id,c=m(h,f);if(t(r,f)&&(!c||c.defineEmitComplete))"defined"===k&&b(r[f]);else if(c=s(a),c.error&&"error"===k)b(c.error);else c.on(k,b)}function w(a,b){var c=a.requireModules,f=!1;if(b)b(a);else if(v(c,function(b){if(b=m(h,b))b.error=a,b.events.error&&(f=!0,b.emit("error",a))}),!f)g.onError(a)}function x(){R.length&&(ha.apply(A,[A.length,0].concat(R)),R=[])}function y(a){delete h[a];delete V[a]}function F(a,b,c){var f=a.map.id;a.error?a.emit("error",a.error):(b[f]=!0,v(a.depMaps,function(f, |
|||
d){var e=f.id,g=m(h,e);g&&(!a.depMatched[d]&&!c[e])&&(m(b,e)?(a.defineDep(d,r[e]),a.check()):F(g,b,c))}),c[f]=!0)}function D(){var a,b,c=(a=1E3*j.waitSeconds)&&i.startTime+a<(new Date).getTime(),f=[],l=[],g=!1,h=!0;if(!W){W=!0;B(V,function(a){var i=a.map,j=i.id;if(a.enabled&&(i.isDefine||l.push(a),!a.error))if(!a.inited&&c)e(j)?g=b=!0:(f.push(j),d(j));else if(!a.inited&&(a.fetched&&i.isDefine)&&(g=!0,!i.prefix))return h=!1});if(c&&f.length)return a=C("timeout","Load timeout for modules: "+f,null, |
|||
f),a.contextName=i.contextName,w(a);h&&v(l,function(a){F(a,{},{})});if((!c||b)&&g)if((z||ea)&&!X)X=setTimeout(function(){X=0;D()},50);W=!1}}function E(a){t(r,a[0])||s(p(a[0],null,!0)).init(a[1],a[2])}function I(a){var a=a.currentTarget||a.srcElement,b=i.onScriptLoad;a.detachEvent&&!Y?a.detachEvent("onreadystatechange",b):a.removeEventListener("load",b,!1);b=i.onScriptError;(!a.detachEvent||Y)&&a.removeEventListener("error",b,!1);return{node:a,id:a&&a.getAttribute("data-requiremodule")}}function J(){var a; |
|||
for(x();A.length;){a=A.shift();if(null===a[0])return w(C("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));E(a)}}var W,Z,i,L,X,j={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},h={},V={},$={},A=[],r={},S={},aa={},K=1,O=1;L={require:function(a){return a.require?a.require:a.require=i.makeRequire(a.map)},exports:function(a){a.usingExports=!0;if(a.map.isDefine)return a.exports?r[a.map.id]=a.exports:a.exports=r[a.map.id]={}},module:function(a){return a.module? |
|||
a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return m(j.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}};Z=function(a){this.events=m($,a.id)||{};this.map=a;this.shim=m(j.shim,a.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0};Z.prototype={init:function(a,b,c,f){f=f||{};if(!this.inited){this.factory=b;if(c)this.on("error",c);else this.events.error&&(c=u(this,function(a){this.emit("error",a)}));this.depMaps=a&&a.slice(0);this.errback= |
|||
c;this.inited=!0;this.ignore=f.ignore;f.enabled||this.enabled?this.enable():this.check()}},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0;i.startTime=(new Date).getTime();var a=this.map;if(this.shim)i.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return a.prefix?this.callPlugin():this.load()}));else return a.prefix?this.callPlugin():this.load()}},load:function(){var a= |
|||
this.map.url;S[a]||(S[a]=!0,i.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id;b=this.depExports;var f=this.exports,l=this.factory;if(this.inited)if(this.error)this.emit("error",this.error);else{if(!this.defining){this.defining=!0;if(1>this.depCount&&!this.defined){if(G(l)){if(this.events.error&&this.map.isDefine||g.onError!==ca)try{f=i.execCb(c,l,b,f)}catch(d){a=d}else f=i.execCb(c,l,b,f);this.map.isDefine&&void 0===f&&((b=this.module)?f=b.exports:this.usingExports&& |
|||
(f=this.exports));if(a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}else f=l;this.exports=f;if(this.map.isDefine&&!this.ignore&&(r[c]=f,g.onResourceLoad))g.onResourceLoad(i,this.map,this.depMaps);y(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a= |
|||
this.map,b=a.id,d=p(a.prefix);this.depMaps.push(d);q(d,"defined",u(this,function(f){var l,d;d=m(aa,this.map.id);var e=this.map.name,P=this.map.parentMap?this.map.parentMap.name:null,n=i.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(f.normalize&&(e=f.normalize(e,function(a){return c(a,P,!0)})||""),f=p(a.prefix+"!"+e,this.map.parentMap),q(f,"defined",u(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=m(h,f.id)){this.depMaps.push(f); |
|||
if(this.events.error)d.on("error",u(this,function(a){this.emit("error",a)}));d.enable()}}else d?(this.map.url=i.nameToUrl(d),this.load()):(l=u(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),l.error=u(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];B(h,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),l.fromText=u(this,function(f,c){var d=a.name,e=p(d),P=M;c&&(f=c);P&&(M=!1);s(e);t(j.config,b)&&(j.config[d]=j.config[b]);try{g.exec(f)}catch(h){return w(C("fromtexteval", |
|||
"fromText eval for "+b+" failed: "+h,h,[b]))}P&&(M=!0);this.depMaps.push(e);i.completeLoad(d);n([d],l)}),f.load(a.name,n,l,j))}));i.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){V[this.map.id]=this;this.enabling=this.enabled=!0;v(this.depMaps,u(this,function(a,b){var c,f;if("string"===typeof a){a=p(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=m(L,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;q(a,"defined",u(this,function(a){this.defineDep(b, |
|||
a);this.check()}));this.errback?q(a,"error",u(this,this.errback)):this.events.error&&q(a,"error",u(this,function(a){this.emit("error",a)}))}c=a.id;f=h[c];!t(L,c)&&(f&&!f.enabled)&&i.enable(a,this)}));B(this.pluginMaps,u(this,function(a){var b=m(h,a.id);b&&!b.enabled&&i.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){v(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};i={config:j,contextName:b, |
|||
registry:h,defined:r,urlFetched:S,defQueue:A,Module:Z,makeModuleMap:p,nextTick:g.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="/");var b=j.shim,c={paths:!0,bundles:!0,config:!0,map:!0};B(a,function(a,b){c[b]?(j[b]||(j[b]={}),U(j[b],a,!0,!0)):j[b]=a});a.bundles&&B(a.bundles,function(a,b){v(a,function(a){a!==b&&(aa[a]=b)})});a.shim&&(B(a.shim,function(a,c){H(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn)a.exportsFn=i.makeShimExports(a); |
|||
b[c]=a}),j.shim=b);a.packages&&v(a.packages,function(a){var b,a="string"===typeof a?{name:a}:a;b=a.name;a.location&&(j.paths[b]=a.location);j.pkgs[b]=a.name+"/"+(a.main||"main").replace(ia,"").replace(Q,"")});B(h,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=p(b))});if(a.deps||a.callback)i.require(a.deps||[],a.callback)},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ba,arguments));return b||a.exports&&da(a.exports)}},makeRequire:function(a,e){function j(c,d,m){var n, |
|||
q;e.enableBuildCallback&&(d&&G(d))&&(d.__requireJsBuild=!0);if("string"===typeof c){if(G(d))return w(C("requireargs","Invalid require call"),m);if(a&&t(L,c))return L[c](h[a.id]);if(g.get)return g.get(i,c,a,j);n=p(c,a,!1,!0);n=n.id;return!t(r,n)?w(C("notloaded",'Module name "'+n+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[n]}J();i.nextTick(function(){J();q=s(p(null,a));q.skipMap=e.skipMap;q.init(c,d,m,{enabled:!0});D()});return j}e=e||{};U(j,{isBrowser:z,toUrl:function(b){var d, |
|||
e=b.lastIndexOf("."),k=b.split("/")[0];if(-1!==e&&(!("."===k||".."===k)||1<e))d=b.substring(e,b.length),b=b.substring(0,e);return i.nameToUrl(c(b,a&&a.id,!0),d,!0)},defined:function(b){return t(r,p(b,a,!1,!0).id)},specified:function(b){b=p(b,a,!1,!0).id;return t(r,b)||t(h,b)}});a||(j.undef=function(b){x();var c=p(b,a,!0),e=m(h,b);d(b);delete r[b];delete S[c.url];delete $[b];T(A,function(a,c){a[0]===b&&A.splice(c,1)});e&&(e.events.defined&&($[b]=e.events),y(b))});return j},enable:function(a){m(h,a.id)&& |
|||
s(a).enable()},completeLoad:function(a){var b,c,d=m(j.shim,a)||{},g=d.exports;for(x();A.length;){c=A.shift();if(null===c[0]){c[0]=a;if(b)break;b=!0}else c[0]===a&&(b=!0);E(c)}c=m(h,a);if(!b&&!t(r,a)&&c&&!c.inited){if(j.enforceDefine&&(!g||!da(g)))return e(a)?void 0:w(C("nodefine","No define call for "+a,null,[a]));E([a,d.deps||[],d.exportsFn])}D()},nameToUrl:function(a,b,c){var d,e,h;(d=m(j.pkgs,a))&&(a=d);if(d=m(aa,a))return i.nameToUrl(d,b,c);if(g.jsExtRegExp.test(a))d=a+(b||"");else{d=j.paths; |
|||
a=a.split("/");for(e=a.length;0<e;e-=1)if(h=a.slice(0,e).join("/"),h=m(d,h)){H(h)&&(h=h[0]);a.splice(0,e,h);break}d=a.join("/");d+=b||(/^data\:|\?/.test(d)||c?"":".js");d=("/"===d.charAt(0)||d.match(/^[\w\+\.\-]+:/)?"":j.baseUrl)+d}return j.urlArgs?d+((-1===d.indexOf("?")?"?":"&")+j.urlArgs):d},load:function(a,b){g.load(i,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if("load"===a.type||ja.test((a.currentTarget||a.srcElement).readyState))N=null,a=I(a),i.completeLoad(a.id)}, |
|||
onScriptError:function(a){var b=I(a);if(!e(b.id))return w(C("scripterror","Script error for: "+b.id,a,[b.id]))}};i.require=i.makeRequire();return i}var g,x,y,D,I,E,N,J,s,O,ka=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,la=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,Q=/\.js$/,ia=/^\.\//;x=Object.prototype;var K=x.toString,fa=x.hasOwnProperty,ha=Array.prototype.splice,z=!!("undefined"!==typeof window&&"undefined"!==typeof navigator&&window.document),ea=!z&&"undefined"!==typeof importScripts,ja= |
|||
z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,Y="undefined"!==typeof opera&&"[object Opera]"===opera.toString(),F={},q={},R=[],M=!1;if("undefined"===typeof define){if("undefined"!==typeof requirejs){if(G(requirejs))return;q=requirejs;requirejs=void 0}"undefined"!==typeof require&&!G(require)&&(q=require,require=void 0);g=requirejs=function(b,c,d,e){var n,p="_";!H(b)&&"string"!==typeof b&&(n=b,H(c)?(b=c,c=d,d=e):b=[]);n&&n.context&&(p=n.context);(e=m(F,p))||(e=F[p]=g.s.newContext(p)); |
|||
n&&e.configure(n);return e.require(b,c,d)};g.config=function(b){return g(b)};g.nextTick="undefined"!==typeof setTimeout?function(b){setTimeout(b,4)}:function(b){b()};require||(require=g);g.version="2.1.16";g.jsExtRegExp=/^\/|:|\?|\.js$/;g.isBrowser=z;x=g.s={contexts:F,newContext:ga};g({});v(["toUrl","undef","defined","specified"],function(b){g[b]=function(){var c=F._;return c.require[b].apply(c,arguments)}});if(z&&(y=x.head=document.getElementsByTagName("head")[0],D=document.getElementsByTagName("base")[0]))y= |
|||
x.head=D.parentNode;g.onError=ca;g.createNode=function(b){var c=b.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");c.type=b.scriptType||"text/javascript";c.charset="utf-8";c.async=!0;return c};g.load=function(b,c,d){var e=b&&b.config||{};if(z)return e=g.createNode(e,c,d),e.setAttribute("data-requirecontext",b.contextName),e.setAttribute("data-requiremodule",c),e.attachEvent&&!(e.attachEvent.toString&&0>e.attachEvent.toString().indexOf("[native code"))&& |
|||
!Y?(M=!0,e.attachEvent("onreadystatechange",b.onScriptLoad)):(e.addEventListener("load",b.onScriptLoad,!1),e.addEventListener("error",b.onScriptError,!1)),e.src=d,J=e,D?y.insertBefore(e,D):y.appendChild(e),J=null,e;if(ea)try{importScripts(d),b.completeLoad(c)}catch(m){b.onError(C("importscripts","importScripts failed for "+c+" at "+d,m,[c]))}};z&&!q.skipDataMain&&T(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(I=b.getAttribute("data-main"))return s=I,q.baseUrl||(E=s.split("/"), |
|||
s=E.pop(),O=E.length?E.join("/")+"/":"./",q.baseUrl=O),s=s.replace(Q,""),g.jsExtRegExp.test(s)&&(s=I),q.deps=q.deps?q.deps.concat(s):[s],!0});define=function(b,c,d){var e,g;"string"!==typeof b&&(d=c,c=b,b=null);H(c)||(d=c,c=null);!c&&G(d)&&(c=[],d.length&&(d.toString().replace(ka,"").replace(la,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(M){if(!(e=J))N&&"interactive"===N.readyState||T(document.getElementsByTagName("script"),function(b){if("interactive"=== |
|||
b.readyState)return N=b}),e=N;e&&(b||(b=e.getAttribute("data-requiremodule")),g=F[e.getAttribute("data-requirecontext")])}(g?g.defQueue:R).push([b,c,d])};define.amd={jQuery:!0};g.exec=function(b){return eval(b)};g(q)}})(this); |
@ -0,0 +1,4 @@ |
|||
<article> |
|||
<h3><a href="{{location}}">{{title}}</a></h3> |
|||
<p>{{summary}}</p> |
|||
</article> |
@ -0,0 +1,88 @@ |
|||
require([ |
|||
base_url + '/mkdocs/js/mustache.min.js', |
|||
base_url + '/mkdocs/js/lunr-0.5.7.min.js', |
|||
'text!search-results-template.mustache', |
|||
'text!../search_index.json', |
|||
], function (Mustache, lunr, results_template, data) { |
|||
"use strict"; |
|||
|
|||
function getSearchTerm() |
|||
{ |
|||
var sPageURL = window.location.search.substring(1); |
|||
var sURLVariables = sPageURL.split('&'); |
|||
for (var i = 0; i < sURLVariables.length; i++) |
|||
{ |
|||
var sParameterName = sURLVariables[i].split('='); |
|||
if (sParameterName[0] == 'q') |
|||
{ |
|||
return decodeURIComponent(sParameterName[1].replace(/\+/g, '%20')); |
|||
} |
|||
} |
|||
} |
|||
|
|||
var index = lunr(function () { |
|||
this.field('title', {boost: 10}); |
|||
this.field('text'); |
|||
this.ref('location'); |
|||
}); |
|||
|
|||
data = JSON.parse(data); |
|||
var documents = {}; |
|||
|
|||
for (var i=0; i < data.docs.length; i++){ |
|||
var doc = data.docs[i]; |
|||
doc.location = base_url + doc.location; |
|||
index.add(doc); |
|||
documents[doc.location] = doc; |
|||
} |
|||
|
|||
var search = function(){ |
|||
|
|||
var query = document.getElementById('mkdocs-search-query').value; |
|||
var search_results = document.getElementById("mkdocs-search-results"); |
|||
while (search_results.firstChild) { |
|||
search_results.removeChild(search_results.firstChild); |
|||
} |
|||
|
|||
if(query === ''){ |
|||
return; |
|||
} |
|||
|
|||
var results = index.search(query); |
|||
|
|||
if (results.length > 0){ |
|||
for (var i=0; i < results.length; i++){ |
|||
var result = results[i]; |
|||
doc = documents[result.ref]; |
|||
doc.base_url = base_url; |
|||
doc.summary = doc.text.substring(0, 200); |
|||
var html = Mustache.to_html(results_template, doc); |
|||
search_results.insertAdjacentHTML('beforeend', html); |
|||
} |
|||
} else { |
|||
search_results.insertAdjacentHTML('beforeend', "<p>No results found</p>"); |
|||
} |
|||
|
|||
if(jQuery){ |
|||
/* |
|||
* We currently only automatically hide bootstrap models. This |
|||
* requires jQuery to work. |
|||
*/ |
|||
jQuery('#mkdocs_search_modal a').click(function(){ |
|||
jQuery('#mkdocs_search_modal').modal('hide'); |
|||
}) |
|||
} |
|||
|
|||
}; |
|||
|
|||
var search_input = document.getElementById('mkdocs-search-query'); |
|||
|
|||
var term = getSearchTerm(); |
|||
if (term){ |
|||
search_input.value = term; |
|||
search(); |
|||
} |
|||
|
|||
search_input.addEventListener("keyup", search); |
|||
|
|||
}); |
@ -0,0 +1,390 @@ |
|||
/** |
|||
* @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved. |
|||
* Available via the MIT or new BSD license. |
|||
* see: http://github.com/requirejs/text for details
|
|||
*/ |
|||
/*jslint regexp: true */ |
|||
/*global require, XMLHttpRequest, ActiveXObject, |
|||
define, window, process, Packages, |
|||
java, location, Components, FileUtils */ |
|||
|
|||
define(['module'], function (module) { |
|||
'use strict'; |
|||
|
|||
var text, fs, Cc, Ci, xpcIsWindows, |
|||
progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'], |
|||
xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im, |
|||
bodyRegExp = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im, |
|||
hasLocation = typeof location !== 'undefined' && location.href, |
|||
defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''), |
|||
defaultHostName = hasLocation && location.hostname, |
|||
defaultPort = hasLocation && (location.port || undefined), |
|||
buildMap = {}, |
|||
masterConfig = (module.config && module.config()) || {}; |
|||
|
|||
text = { |
|||
version: '2.0.12', |
|||
|
|||
strip: function (content) { |
|||
//Strips <?xml ...?> declarations so that external SVG and XML
|
|||
//documents can be added to a document without worry. Also, if the string
|
|||
//is an HTML document, only the part inside the body tag is returned.
|
|||
if (content) { |
|||
content = content.replace(xmlRegExp, ""); |
|||
var matches = content.match(bodyRegExp); |
|||
if (matches) { |
|||
content = matches[1]; |
|||
} |
|||
} else { |
|||
content = ""; |
|||
} |
|||
return content; |
|||
}, |
|||
|
|||
jsEscape: function (content) { |
|||
return content.replace(/(['\\])/g, '\\$1') |
|||
.replace(/[\f]/g, "\\f") |
|||
.replace(/[\b]/g, "\\b") |
|||
.replace(/[\n]/g, "\\n") |
|||
.replace(/[\t]/g, "\\t") |
|||
.replace(/[\r]/g, "\\r") |
|||
.replace(/[\u2028]/g, "\\u2028") |
|||
.replace(/[\u2029]/g, "\\u2029"); |
|||
}, |
|||
|
|||
createXhr: masterConfig.createXhr || function () { |
|||
//Would love to dump the ActiveX crap in here. Need IE 6 to die first.
|
|||
var xhr, i, progId; |
|||
if (typeof XMLHttpRequest !== "undefined") { |
|||
return new XMLHttpRequest(); |
|||
} else if (typeof ActiveXObject !== "undefined") { |
|||
for (i = 0; i < 3; i += 1) { |
|||
progId = progIds[i]; |
|||
try { |
|||
xhr = new ActiveXObject(progId); |
|||
} catch (e) {} |
|||
|
|||
if (xhr) { |
|||
progIds = [progId]; // so faster next time
|
|||
break; |
|||
} |
|||
} |
|||
} |
|||
|
|||
return xhr; |
|||
}, |
|||
|
|||
/** |
|||
* Parses a resource name into its component parts. Resource names |
|||
* look like: module/name.ext!strip, where the !strip part is |
|||
* optional. |
|||
* @param {String} name the resource name |
|||
* @returns {Object} with properties "moduleName", "ext" and "strip" |
|||
* where strip is a boolean. |
|||
*/ |
|||
parseName: function (name) { |
|||
var modName, ext, temp, |
|||
strip = false, |
|||
index = name.indexOf("."), |
|||
isRelative = name.indexOf('./') === 0 || |
|||
name.indexOf('../') === 0; |
|||
|
|||
if (index !== -1 && (!isRelative || index > 1)) { |
|||
modName = name.substring(0, index); |
|||
ext = name.substring(index + 1, name.length); |
|||
} else { |
|||
modName = name; |
|||
} |
|||
|
|||
temp = ext || modName; |
|||
index = temp.indexOf("!"); |
|||
if (index !== -1) { |
|||
//Pull off the strip arg.
|
|||
strip = temp.substring(index + 1) === "strip"; |
|||
temp = temp.substring(0, index); |
|||
if (ext) { |
|||
ext = temp; |
|||
} else { |
|||
modName = temp; |
|||
} |
|||
} |
|||
|
|||
return { |
|||
moduleName: modName, |
|||
ext: ext, |
|||
strip: strip |
|||
}; |
|||
}, |
|||
|
|||
xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/, |
|||
|
|||
/** |
|||
* Is an URL on another domain. Only works for browser use, returns |
|||
* false in non-browser environments. Only used to know if an |
|||
* optimized .js version of a text resource should be loaded |
|||
* instead. |
|||
* @param {String} url |
|||
* @returns Boolean |
|||
*/ |
|||
useXhr: function (url, protocol, hostname, port) { |
|||
var uProtocol, uHostName, uPort, |
|||
match = text.xdRegExp.exec(url); |
|||
if (!match) { |
|||
return true; |
|||
} |
|||
uProtocol = match[2]; |
|||
uHostName = match[3]; |
|||
|
|||
uHostName = uHostName.split(':'); |
|||
uPort = uHostName[1]; |
|||
uHostName = uHostName[0]; |
|||
|
|||
return (!uProtocol || uProtocol === protocol) && |
|||
(!uHostName || uHostName.toLowerCase() === hostname.toLowerCase()) && |
|||
((!uPort && !uHostName) || uPort === port); |
|||
}, |
|||
|
|||
finishLoad: function (name, strip, content, onLoad) { |
|||
content = strip ? text.strip(content) : content; |
|||
if (masterConfig.isBuild) { |
|||
buildMap[name] = content; |
|||
} |
|||
onLoad(content); |
|||
}, |
|||
|
|||
load: function (name, req, onLoad, config) { |
|||
//Name has format: some.module.filext!strip
|
|||
//The strip part is optional.
|
|||
//if strip is present, then that means only get the string contents
|
|||
//inside a body tag in an HTML string. For XML/SVG content it means
|
|||
//removing the <?xml ...?> declarations so the content can be inserted
|
|||
//into the current doc without problems.
|
|||
|
|||
// Do not bother with the work if a build and text will
|
|||
// not be inlined.
|
|||
if (config && config.isBuild && !config.inlineText) { |
|||
onLoad(); |
|||
return; |
|||
} |
|||
|
|||
masterConfig.isBuild = config && config.isBuild; |
|||
|
|||
var parsed = text.parseName(name), |
|||
nonStripName = parsed.moduleName + |
|||
(parsed.ext ? '.' + parsed.ext : ''), |
|||
url = req.toUrl(nonStripName), |
|||
useXhr = (masterConfig.useXhr) || |
|||
text.useXhr; |
|||
|
|||
// Do not load if it is an empty: url
|
|||
if (url.indexOf('empty:') === 0) { |
|||
onLoad(); |
|||
return; |
|||
} |
|||
|
|||
//Load the text. Use XHR if possible and in a browser.
|
|||
if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) { |
|||
text.get(url, function (content) { |
|||
text.finishLoad(name, parsed.strip, content, onLoad); |
|||
}, function (err) { |
|||
if (onLoad.error) { |
|||
onLoad.error(err); |
|||
} |
|||
}); |
|||
} else { |
|||
//Need to fetch the resource across domains. Assume
|
|||
//the resource has been optimized into a JS module. Fetch
|
|||
//by the module name + extension, but do not include the
|
|||
//!strip part to avoid file system issues.
|
|||
req([nonStripName], function (content) { |
|||
text.finishLoad(parsed.moduleName + '.' + parsed.ext, |
|||
parsed.strip, content, onLoad); |
|||
}); |
|||
} |
|||
}, |
|||
|
|||
write: function (pluginName, moduleName, write, config) { |
|||
if (buildMap.hasOwnProperty(moduleName)) { |
|||
var content = text.jsEscape(buildMap[moduleName]); |
|||
write.asModule(pluginName + "!" + moduleName, |
|||
"define(function () { return '" + |
|||
content + |
|||
"';});\n"); |
|||
} |
|||
}, |
|||
|
|||
writeFile: function (pluginName, moduleName, req, write, config) { |
|||
var parsed = text.parseName(moduleName), |
|||
extPart = parsed.ext ? '.' + parsed.ext : '', |
|||
nonStripName = parsed.moduleName + extPart, |
|||
//Use a '.js' file name so that it indicates it is a
|
|||
//script that can be loaded across domains.
|
|||
fileName = req.toUrl(parsed.moduleName + extPart) + '.js'; |
|||
|
|||
//Leverage own load() method to load plugin value, but only
|
|||
//write out values that do not have the strip argument,
|
|||
//to avoid any potential issues with ! in file names.
|
|||
text.load(nonStripName, req, function (value) { |
|||
//Use own write() method to construct full module value.
|
|||
//But need to create shell that translates writeFile's
|
|||
//write() to the right interface.
|
|||
var textWrite = function (contents) { |
|||
return write(fileName, contents); |
|||
}; |
|||
textWrite.asModule = function (moduleName, contents) { |
|||
return write.asModule(moduleName, fileName, contents); |
|||
}; |
|||
|
|||
text.write(pluginName, nonStripName, textWrite, config); |
|||
}, config); |
|||
} |
|||
}; |
|||
|
|||
if (masterConfig.env === 'node' || (!masterConfig.env && |
|||
typeof process !== "undefined" && |
|||
process.versions && |
|||
!!process.versions.node && |
|||
!process.versions['node-webkit'])) { |
|||
//Using special require.nodeRequire, something added by r.js.
|
|||
fs = require.nodeRequire('fs'); |
|||
|
|||
text.get = function (url, callback, errback) { |
|||
try { |
|||
var file = fs.readFileSync(url, 'utf8'); |
|||
//Remove BOM (Byte Mark Order) from utf8 files if it is there.
|
|||
if (file.indexOf('\uFEFF') === 0) { |
|||
file = file.substring(1); |
|||
} |
|||
callback(file); |
|||
} catch (e) { |
|||
if (errback) { |
|||
errback(e); |
|||
} |
|||
} |
|||
}; |
|||
} else if (masterConfig.env === 'xhr' || (!masterConfig.env && |
|||
text.createXhr())) { |
|||
text.get = function (url, callback, errback, headers) { |
|||
var xhr = text.createXhr(), header; |
|||
xhr.open('GET', url, true); |
|||
|
|||
//Allow plugins direct access to xhr headers
|
|||
if (headers) { |
|||
for (header in headers) { |
|||
if (headers.hasOwnProperty(header)) { |
|||
xhr.setRequestHeader(header.toLowerCase(), headers[header]); |
|||
} |
|||
} |
|||
} |
|||
|
|||
//Allow overrides specified in config
|
|||
if (masterConfig.onXhr) { |
|||
masterConfig.onXhr(xhr, url); |
|||
} |
|||
|
|||
xhr.onreadystatechange = function (evt) { |
|||
var status, err; |
|||
//Do not explicitly handle errors, those should be
|
|||
//visible via console output in the browser.
|
|||
if (xhr.readyState === 4) { |
|||
status = xhr.status || 0; |
|||
if (status > 399 && status < 600) { |
|||
//An http 4xx or 5xx error. Signal an error.
|
|||
err = new Error(url + ' HTTP status: ' + status); |
|||
err.xhr = xhr; |
|||
if (errback) { |
|||
errback(err); |
|||
} |
|||
} else { |
|||
callback(xhr.responseText); |
|||
} |
|||
|
|||
if (masterConfig.onXhrComplete) { |
|||
masterConfig.onXhrComplete(xhr, url); |
|||
} |
|||
} |
|||
}; |
|||
xhr.send(null); |
|||
}; |
|||
} else if (masterConfig.env === 'rhino' || (!masterConfig.env && |
|||
typeof Packages !== 'undefined' && typeof java !== 'undefined')) { |
|||
//Why Java, why is this so awkward?
|
|||
text.get = function (url, callback) { |
|||
var stringBuffer, line, |
|||
encoding = "utf-8", |
|||
file = new java.io.File(url), |
|||
lineSeparator = java.lang.System.getProperty("line.separator"), |
|||
input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)), |
|||
content = ''; |
|||
try { |
|||
stringBuffer = new java.lang.StringBuffer(); |
|||
line = input.readLine(); |
|||
|
|||
// Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
|
|||
// http://www.unicode.org/faq/utf_bom.html
|
|||
|
|||
// Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
|
|||
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
|
|||
if (line && line.length() && line.charAt(0) === 0xfeff) { |
|||
// Eat the BOM, since we've already found the encoding on this file,
|
|||
// and we plan to concatenating this buffer with others; the BOM should
|
|||
// only appear at the top of a file.
|
|||
line = line.substring(1); |
|||
} |
|||
|
|||
if (line !== null) { |
|||
stringBuffer.append(line); |
|||
} |
|||
|
|||
while ((line = input.readLine()) !== null) { |
|||
stringBuffer.append(lineSeparator); |
|||
stringBuffer.append(line); |
|||
} |
|||
//Make sure we return a JavaScript string and not a Java string.
|
|||
content = String(stringBuffer.toString()); //String
|
|||
} finally { |
|||
input.close(); |
|||
} |
|||
callback(content); |
|||
}; |
|||
} else if (masterConfig.env === 'xpconnect' || (!masterConfig.env && |
|||
typeof Components !== 'undefined' && Components.classes && |
|||
Components.interfaces)) { |
|||
//Avert your gaze!
|
|||
Cc = Components.classes; |
|||
Ci = Components.interfaces; |
|||
Components.utils['import']('resource://gre/modules/FileUtils.jsm'); |
|||
xpcIsWindows = ('@mozilla.org/windows-registry-key;1' in Cc); |
|||
|
|||
text.get = function (url, callback) { |
|||
var inStream, convertStream, fileObj, |
|||
readData = {}; |
|||
|
|||
if (xpcIsWindows) { |
|||
url = url.replace(/\//g, '\\'); |
|||
} |
|||
|
|||
fileObj = new FileUtils.File(url); |
|||
|
|||
//XPCOM, you so crazy
|
|||
try { |
|||
inStream = Cc['@mozilla.org/network/file-input-stream;1'] |
|||
.createInstance(Ci.nsIFileInputStream); |
|||
inStream.init(fileObj, 1, 0, false); |
|||
|
|||
convertStream = Cc['@mozilla.org/intl/converter-input-stream;1'] |
|||
.createInstance(Ci.nsIConverterInputStream); |
|||
convertStream.init(inStream, "utf-8", inStream.available(), |
|||
Ci.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER); |
|||
|
|||
convertStream.readString(inStream.available(), readData); |
|||
convertStream.close(); |
|||
inStream.close(); |
|||
callback(readData.value); |
|||
} catch (e) { |
|||
throw new Error((fileObj && fileObj.path || '') + ': ' + e); |
|||
} |
|||
}; |
|||
} |
|||
return text; |
|||
}); |
@ -0,0 +1,29 @@ |
|||
{ |
|||
"docs": [ |
|||
{ |
|||
"location": "/", |
|||
"text": "Developers\n\n\n\n\nGetting Started\n\n\nDesktop App SDK\n\n\nMobile App SDK\n\n Android\n\n iOS\n** Windows\n\n\nIguana/SuperNET API Reference: Any General SuperNET specific API reference\n\n Coins ( ablaze )\n\n Peers ( eyedea )\n\n\nSuperNET Apps specific API Reference: Organising Applications specific API reference and interlinking between other pages to refer if the same API is used in between these applications.\n\n InstantDEX API\n\n Pegged Asset Exchange (PAX) API\n** Jumblr API\n\n\nIguana/SuperNET Core Coin API Reference: Referecing to SuperNET's core coin's API reference which might be nessary to function or build Iguana/SuperNET Application, and where it's using some different API calls than official APIs\n\n BitcoinDark API\n\n Bitcoin API\n\n\n\n\nFor Users\n\n\n\n\nIguana Chrome App User Manual\n\n\nIguana Mobile App\n\n Android\n\n iOS\n\n\nInstantDEX User Manual\n\n\nPegged Asset Exchange (PAX) User Manual\n\n\nJumblr User Manual", |
|||
"title": "Home" |
|||
}, |
|||
{ |
|||
"location": "/#developers", |
|||
"text": "Getting Started Desktop App SDK Mobile App SDK Android iOS\n** Windows Iguana/SuperNET API Reference: Any General SuperNET specific API reference Coins ( ablaze ) Peers ( eyedea ) SuperNET Apps specific API Reference: Organising Applications specific API reference and interlinking between other pages to refer if the same API is used in between these applications. InstantDEX API Pegged Asset Exchange (PAX) API\n** Jumblr API Iguana/SuperNET Core Coin API Reference: Referecing to SuperNET's core coin's API reference which might be nessary to function or build Iguana/SuperNET Application, and where it's using some different API calls than official APIs BitcoinDark API Bitcoin API", |
|||
"title": "Developers" |
|||
}, |
|||
{ |
|||
"location": "/#for-users", |
|||
"text": "Iguana Chrome App User Manual Iguana Mobile App Android iOS InstantDEX User Manual Pegged Asset Exchange (PAX) User Manual Jumblr User Manual", |
|||
"title": "For Users" |
|||
}, |
|||
{ |
|||
"location": "/about/", |
|||
"text": "About Us", |
|||
"title": "About" |
|||
}, |
|||
{ |
|||
"location": "/about/#about-us", |
|||
"text": "", |
|||
"title": "About Us" |
|||
} |
|||
] |
|||
} |
@ -0,0 +1,138 @@ |
|||
<!DOCTYPE html> |
|||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
|||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
|
|||
<title>SuperNET Documentation</title> |
|||
|
|||
|
|||
<link rel="shortcut icon" href="./img/favicon.ico"> |
|||
|
|||
|
|||
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'> |
|||
|
|||
<link rel="stylesheet" href="./css/theme.css" type="text/css" /> |
|||
<link rel="stylesheet" href="./css/theme_extra.css" type="text/css" /> |
|||
<link rel="stylesheet" href="./css/highlight.css"> |
|||
|
|||
|
|||
<script src="./js/jquery-2.1.1.min.js"></script> |
|||
<script src="./js/modernizr-2.8.3.min.js"></script> |
|||
<script type="text/javascript" src="./js/highlight.pack.js"></script> |
|||
<script src="./js/theme.js"></script> |
|||
<script>var base_url = '.';</script> |
|||
<script data-main="./mkdocs/js/search.js" src="./mkdocs/js/require.js"></script> |
|||
|
|||
|
|||
|
|||
</head> |
|||
|
|||
<body class="wy-body-for-nav" role="document"> |
|||
|
|||
<div class="wy-grid-for-nav"> |
|||
|
|||
|
|||
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav"> |
|||
<div class="wy-side-nav-search"> |
|||
<a href="." class="icon icon-home"> SuperNET Documentation</a> |
|||
<div role="search"> |
|||
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get"> |
|||
<input type="text" name="q" placeholder="Search docs" /> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
|||
<ul class="current"> |
|||
|
|||
<li> |
|||
<li class="toctree-l1 "> |
|||
<a class="" href=".">Home</a> |
|||
|
|||
</li> |
|||
<li> |
|||
|
|||
<li> |
|||
<li class="toctree-l1 "> |
|||
<a class="" href="about/">About</a> |
|||
|
|||
</li> |
|||
<li> |
|||
|
|||
</ul> |
|||
</div> |
|||
|
|||
</nav> |
|||
|
|||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
|||
|
|||
|
|||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
|||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
|||
<a href=".">SuperNET Documentation</a> |
|||
</nav> |
|||
|
|||
|
|||
<div class="wy-nav-content"> |
|||
<div class="rst-content"> |
|||
<div role="navigation" aria-label="breadcrumbs navigation"> |
|||
<ul class="wy-breadcrumbs"> |
|||
<li><a href=".">Docs</a> »</li> |
|||
|
|||
|
|||
<li class="wy-breadcrumbs-aside"> |
|||
|
|||
</li> |
|||
</ul> |
|||
<hr/> |
|||
</div> |
|||
<div role="main"> |
|||
<div class="section"> |
|||
|
|||
|
|||
<h1 id="search">Search Results</h1> |
|||
|
|||
<form id="content_search" action="search.html"> |
|||
<span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span> |
|||
<input name="q" id="mkdocs-search-query" type="text" class="search_input search-query ui-autocomplete-input" placeholder="Search the Docs" autocomplete="off" autofocus> |
|||
</form> |
|||
|
|||
<div id="mkdocs-search-results"> |
|||
Sorry, page not found. |
|||
</div> |
|||
|
|||
|
|||
</div> |
|||
</div> |
|||
<footer> |
|||
|
|||
|
|||
<hr/> |
|||
|
|||
<div role="contentinfo"> |
|||
<!-- Copyright etc --> |
|||
|
|||
</div> |
|||
|
|||
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. |
|||
</footer> |
|||
|
|||
</div> |
|||
</div> |
|||
|
|||
</section> |
|||
|
|||
</div> |
|||
|
|||
<div class="rst-versions" role="note" style="cursor: pointer"> |
|||
<span class="rst-current-version" data-toggle="rst-current-version"> |
|||
|
|||
|
|||
|
|||
</span> |
|||
</div> |
|||
|
|||
</body> |
|||
</html> |
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
|||
|
|||
|
|||
<url> |
|||
<loc>None/</loc> |
|||
<lastmod>2015-12-22</lastmod> |
|||
<changefreq>daily</changefreq> |
|||
</url> |
|||
|
|||
|
|||
|
|||
<url> |
|||
<loc>None/about/</loc> |
|||
<lastmod>2015-12-22</lastmod> |
|||
<changefreq>daily</changefreq> |
|||
</url> |
|||
|
|||
|
|||
</urlset> |
@ -0,0 +1,208 @@ |
|||
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
|||
// found in the LICENSE file.
|
|||
|
|||
function moduleDidLoad() { |
|||
common.hideModule(); |
|||
} |
|||
|
|||
function $(id) { |
|||
return document.getElementById(id); |
|||
} |
|||
|
|||
/* |
|||
* file system functions |
|||
* |
|||
*/ |
|||
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; |
|||
|
|||
function errorHandler(e) { |
|||
var msg = ''; |
|||
|
|||
switch (e.code) { |
|||
case FileError.QUOTA_EXCEEDED_ERR: |
|||
msg = 'QUOTA_EXCEEDED_ERR'; |
|||
break; |
|||
case FileError.NOT_FOUND_ERR: |
|||
msg = 'NOT_FOUND_ERR'; |
|||
break; |
|||
case FileError.SECURITY_ERR: |
|||
msg = 'SECURITY_ERR'; |
|||
break; |
|||
case FileError.INVALID_MODIFICATION_ERR: |
|||
msg = 'INVALID_MODIFICATION_ERR'; |
|||
break; |
|||
case FileError.INVALID_STATE_ERR: |
|||
msg = 'INVALID_STATE_ERR'; |
|||
break; |
|||
default: |
|||
msg = 'Unknown Error'; |
|||
break; |
|||
}; |
|||
|
|||
console.log('Error: ' + msg); |
|||
} |
|||
|
|||
var fileSystem; |
|||
|
|||
function onInitFs(fs) { |
|||
console.log('Opened file system: ' + fs.name); |
|||
fileSystem = fs; |
|||
} |
|||
|
|||
// Called by the common.js module.
|
|||
function domContentLoaded(name, tc, config, width, height) { |
|||
/* navigator.webkitPersistentStorage.requestQuota(10000000000, |
|||
function(bytes) { |
|||
common.updateStatus( |
|||
'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load'); |
|||
common.attachDefaultListeners(); |
|||
common.createNaClModule(name, tc, config, width, height); |
|||
}, |
|||
function(e) { alert('Failed to allocate space') }); |
|||
|
|||
*/ |
|||
navigator.webkitPersistentStorage.requestQuota(10000000000, |
|||
function(bytes){ |
|||
window.requestFileSystem(PERSISTENT, bytes, onInitFs, errorHandler); |
|||
common.updateStatus( |
|||
'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load'); |
|||
common.attachDefaultListeners(); |
|||
common.createNaClModule(name, tc, config, width, height); |
|||
}, function(e){ |
|||
console.log('Error', e); |
|||
}); |
|||
|
|||
} |
|||
|
|||
// Called by the common.js module.
|
|||
function attachListeners() { |
|||
var radioEls = document.querySelectorAll('input[type="radio"]'); |
|||
for (var i = 0; i < radioEls.length; ++i) { |
|||
radioEls[i].addEventListener('click', onRadioClicked); |
|||
} |
|||
|
|||
// Wire up the 'click' event for each function's button.
|
|||
var functionEls = document.querySelectorAll('.function'); |
|||
for (var i = 0; i < functionEls.length; ++i) { |
|||
var functionEl = functionEls[i]; |
|||
var id = functionEl.getAttribute('id'); |
|||
var buttonEl = functionEl.querySelector('button'); |
|||
|
|||
// The function name matches the element id.
|
|||
var func = window[id]; |
|||
buttonEl.addEventListener('click', func); |
|||
} |
|||
//$('pipe_input_box').addEventListener('keypress', onPipeInput)
|
|||
//$('pipe_output').disabled = true;
|
|||
//$('pipe_name').addEventListener('change', function() { $('pipe_output').value = ''; })
|
|||
} |
|||
|
|||
// Called with keypress events on the pipe input box
|
|||
function onPipeInput(e) { |
|||
// Create an arraybuffer containing the 16-bit char code
|
|||
// from the keypress event.
|
|||
var buffer = new ArrayBuffer(1*2); |
|||
var bufferView = new Uint16Array(buffer); |
|||
bufferView[0] = e.charCode; |
|||
|
|||
// Pass the buffer in a dictionary over the NaCl module
|
|||
var pipeSelect = $('pipe_name'); |
|||
var pipeName = pipeSelect[pipeSelect.selectedIndex].value; |
|||
var message = { |
|||
pipe: pipeName, |
|||
operation: 'write', |
|||
payload: buffer, |
|||
}; |
|||
nacl_module.postMessage(message); |
|||
e.preventDefault(); |
|||
return false; |
|||
} |
|||
|
|||
function onRadioClicked(e) { |
|||
var divId = this.id.slice(5); // skip "radio"
|
|||
var functionEls = document.querySelectorAll('.function'); |
|||
for (var i = 0; i < functionEls.length; ++i) { |
|||
var visible = functionEls[i].id === divId; |
|||
if (functionEls[i].id === divId) |
|||
functionEls[i].removeAttribute('hidden'); |
|||
else |
|||
functionEls[i].setAttribute('hidden', ''); |
|||
} |
|||
} |
|||
|
|||
function addNameToSelectElements(cssClass, handle, name) { |
|||
var text = '[' + handle + '] ' + name; |
|||
var selectEls = document.querySelectorAll(cssClass); |
|||
for (var i = 0; i < selectEls.length; ++i) { |
|||
var optionEl = document.createElement('option'); |
|||
optionEl.setAttribute('value', handle); |
|||
optionEl.appendChild(document.createTextNode(text)); |
|||
selectEls[i].appendChild(optionEl); |
|||
} |
|||
} |
|||
|
|||
function removeNameFromSelectElements(cssClass, handle) { |
|||
var optionEls = document.querySelectorAll(cssClass + ' > option'); |
|||
for (var i = 0; i < optionEls.length; ++i) { |
|||
var optionEl = optionEls[i]; |
|||
if (optionEl.value == handle) { |
|||
var selectEl = optionEl.parentNode; |
|||
selectEl.removeChild(optionEl); |
|||
} |
|||
} |
|||
} |
|||
|
|||
var funcToCallback = {}; |
|||
|
|||
function postCall(func) { |
|||
var callback = arguments[arguments.length - 1]; |
|||
funcToCallback[func] = callback; |
|||
|
|||
nacl_module.postMessage({ |
|||
cmd: func, |
|||
args: Array.prototype.slice.call(arguments, 1, -1) |
|||
}); |
|||
} |
|||
|
|||
function ArrayBufferToString(buf) { return String.fromCharCode.apply(null, new Uint16Array(buf)); } |
|||
|
|||
// Called by the common.js module.
|
|||
function handleMessage(message_event) { |
|||
var data = message_event.data; |
|||
if ((typeof(data) === 'string' || data instanceof String)) { |
|||
common.logMessage(data); |
|||
} |
|||
else if (data instanceof Object) |
|||
{ |
|||
var pipeName = data['pipe'] |
|||
if ( pipeName !== undefined ) |
|||
{ |
|||
// Message for JavaScript I/O pipe
|
|||
var operation = data['operation']; |
|||
if (operation == 'write') { |
|||
$('pipe_output').value += ArrayBufferToString(data['payload']); |
|||
} else if (operation == 'ack') { |
|||
common.logMessage(pipeName + ": ack:" + data['payload']); |
|||
} else { |
|||
common.logMessage('Got unexpected pipe operation: ' + operation); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
// Result from a function call.
|
|||
var params = data.args; |
|||
var funcName = data.cmd; |
|||
var callback = funcToCallback[funcName]; |
|||
if (!callback) |
|||
{ |
|||
common.logMessage('Error: Bad message ' + funcName + ' received from NaCl module.'); |
|||
return; |
|||
} |
|||
delete funcToCallback[funcName]; |
|||
callback.apply(null, params); |
|||
} |
|||
} else { |
|||
common.logMessage('Error: Unknow message `' + data + '` received from NaCl module.'); |
|||
} |
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,13 @@ |
|||
<!DOCTYPE HTML> |
|||
<html style="overflow-y:scroll;-webkit-user-select: text"> |
|||
<head> |
|||
<meta http-equiv="Pragma" content="no-cache"> |
|||
<meta http-equiv="Expires" content="-1"> |
|||
<title>iguana form widget</title> |
|||
<link rel="stylesheet" href="css/bootstrap.css" type="text/css"> |
|||
</head> |
|||
<body> |
|||
<div class="container"> |
|||
</div> |
|||
</body> |
|||
</html> |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 7.9 KiB |
@ -1,285 +1,415 @@ |
|||
<!DOCTYPE HTML> |
|||
<html style="overflow-y:scroll;-webkit-user-select: text"> |
|||
<head> |
|||
<meta http-equiv="Pragma" content="no-cache"> |
|||
<meta http-equiv="Expires" content="-1"> |
|||
<title>iguana</title> |
|||
<script src="js/jquery-2.1.4.min.js" type="text/javascript"></script> |
|||
<link rel="stylesheet" href="css/bootstrap.css" type="text/css"> |
|||
</head> |
|||
<body data-custom-load="true" data-name="iguana" data-tools="pnacl newlib glibc clang-newlib mac" data-configs="Debug Release" data-path="{tc}/{config}"> |
|||
<div class="iguana"> |
|||
<nav class="navbar navbar-default"> |
|||
<div class="container-fluid"> |
|||
<!-- Brand and toggle get grouped for better mobile display --> |
|||
<div class="navbar-header"> |
|||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> |
|||
<span class="sr-only">Toggle navigation</span> |
|||
<span class="icon-bar"></span> |
|||
<span class="icon-bar"></span> |
|||
<span class="icon-bar"></span> |
|||
</button> |
|||
<a class="navbar-brand" href="#"> |
|||
<!-- <img alt="Brand" style="z-index:-1;" src="logo.png" width="25" height="25"> --> |
|||
</a> |
|||
</div> |
|||
<!-- Collect the nav links, forms, and other content for toggling --> |
|||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
|||
<ul class="nav navbar-nav"> |
|||
<li class="navigation active" id="welcome" data-page="welcome"><a href="#">Welcome <span class="sr-only">(current)</span></a></li> |
|||
<li class="dropdown"> |
|||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">More <span class="caret"></span></a> |
|||
<ul class="dropdown-menu"> |
|||
<li><a href="#">Wiki</a></li> |
|||
<li><a href="#">Wallet</a></li> |
|||
<li><a href="#">Community</a></li> |
|||
<li role="separator" class="divider"></li> |
|||
<li><a href="#">Contact</a></li> |
|||
<li role="separator" class="divider"></li> |
|||
<li><a>Upload Conf<input type="file" id="files" name="file" /></a></li> |
|||
<div id="byte_range"></div> |
|||
<div id="byte_content"></div> |
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div><!-- /.navbar-collapse --> |
|||
</div><!-- /.container-fluid --> |
|||
</nav> |
|||
<div class="container"> |
|||
<div id="welcome_page" class="page" style="text-align: center;"> |
|||
<div class="panel panel-default"> |
|||
<!-- Default panel contents --> |
|||
<div class="panel-heading">Welcome</div> |
|||
<div class="panel-body"> |
|||
<h2>iguana</h2> |
|||
<p> |
|||
iguana is fast. |
|||
</p> |
|||
<p> |
|||
iguana does all bitcoin compatibles. |
|||
</p> |
|||
<p> |
|||
iguana is fast. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="Wallet_page" class="page"> |
|||
<div class="row" style="margin-bottom:15px;"> |
|||
<div class="col-xs-4 col-sm-3 col-md-2"> |
|||
<div class="api-navpills"> |
|||
</div> |
|||
</div> |
|||
<div class="col-xs-8 col-sm-9 col-md-10"> |
|||
<div class="panel-group"> |
|||
<div class="panel panel-default api-call-All"> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title api-panel-title"> |
|||
Panel Title |
|||
</h4> |
|||
</div> <!-- panel-heading --> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-xs-9 col-sm-10 col-md-11"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<code class="result json_submit_url" style="word-wrap: break-word">JSONExample</code> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button class="btn btn-primary submit_api_request">Submit</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<hr> |
|||
<small>Required input fields are marked green</small> |
|||
<div class="row"> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<form class="api_formfill"> |
|||
</form> |
|||
</div> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div class="col-xs-12 col-lg-6" style="min-width: 50%;"> |
|||
<h5 style="margin-top:0px;"> |
|||
<span style="float:right;" class="uri-link"></span> |
|||
Response</h5> |
|||
<pre class="hljs json"><code class="result hljs">JSON response</code></pre> |
|||
<button class="clear-response btn btn-default">Clear Response</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> <!-- panel-body --> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="iguana_page" class="page"> |
|||
<div class="row" style="margin-bottom:15px;"> |
|||
<div class="col-xs-8 col-sm-9 col-md-10"> |
|||
<div class="panel-group"> |
|||
<div class="panel panel-default api-call-All"> |
|||
<div class="panel-heading"> |
|||
<h4> |
|||
JSON API test page |
|||
</h4> |
|||
</div> <!-- panel-heading --> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-xs-9 col-sm-10 col-md-11"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<textarea rows="5" cols = "100" id="json_submit_url"></textarea><br><br> |
|||
<button class="btn btn-primary submit_api_request">Submit</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<hr> |
|||
<div class="row"> |
|||
<div class="col-xs-9 col-sm-10 col-md-11"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<pre class="hljs json"><code class="result hljs">JSON response</code></pre> |
|||
<button class="clear-response btn btn-default">Clear Response</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> <!-- panel-body --> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- eyedea page is for creating front-end markup --> |
|||
<div id="eyedea_page" class="page"> |
|||
<div class="row" style="margin-bottom:15px;"> |
|||
<div class="col-xs-4 col-sm-3 col-md-2"> |
|||
<div class="api-navpills"> |
|||
|
|||
</div> |
|||
</div> |
|||
<html> |
|||
|
|||
<head> |
|||
|
|||
<title>iguana</title> |
|||
|
|||
<!-- Bootstrap --> |
|||
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/jquery.dropdown.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/ripples.css"> |
|||
|
|||
<div class="col-xs-8 col-sm-9 col-md-10"> |
|||
|
|||
<div class="panel-group"> |
|||
<div class="panel panel-default api-call-All"> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title api-panel-title"> |
|||
Json posting form |
|||
</h4> |
|||
</div> <!-- panel-heading --> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-xs-9 col-sm-10 col-md-8"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<textarea name="json_to_submit" id="json_src" cols="30" rows="5" class="result form-control" placeholder='Paste json here'></textarea> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button class="btn btn-primary submit_api_request" id='submit_primary'>Submit</button> |
|||
</div> |
|||
<!-- Gogole Theme --> |
|||
<link rel="stylesheet" type="text/css" href="css/googleFonts.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/googleIcons.css"> |
|||
<link rel="stylesheet" type="text/css" href="css/googleTheme.css"> |
|||
|
|||
</head> |
|||
|
|||
<body data-custom-load="true" data-name="iguana" data-tools="pnacl newlib glibc clang-newlib mac" data-configs="Debug Release" |
|||
data-path="{tc}/{config}"> |
|||
|
|||
<!-- <div class="jumbotron" style="height:100px;"> |
|||
<h> Status: <code id="statusField">NO-STATUS</code></h> |
|||
<p> |
|||
<select id="pipe_name" hidden> |
|||
<option>urand</option> |
|||
<option>Pangea</option> |
|||
<option>MGW</option> |
|||
</select> |
|||
<input type="text" id="pipe_input_box" hidden> |
|||
</p> |
|||
<p><textarea id="pipe_output" hidden></textarea></p> |
|||
</div> --> |
|||
<div class="iguana"> |
|||
<nav class="navbar navbar-default"> |
|||
<div class="container-fluid"> |
|||
<!-- Brand and toggle get grouped for better mobile display --> |
|||
<div class="navbar-header"> |
|||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse"> |
|||
<!--Hamburger--> |
|||
<span class="icon-bar"></span> |
|||
<span class="icon-bar"></span> |
|||
<span class="icon-bar"></span> |
|||
</button> |
|||
<!--<a class="navbar-brand" href="#"> |
|||
<img alt="Brand" style="z-index:-1;" src="logo.png" width="25" height="25"> |
|||
</a>--> |
|||
<a href="javascript:void(0)" class="navbar-brand">Iguana</a> |
|||
</div> |
|||
<!-- Collect the nav links, forms, and other content for toggling --> |
|||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse"> |
|||
<ul class="nav navbar-nav"> |
|||
<li id="welcome"><a href="#">Welcome <span class="sr-only">(current)</a></li> |
|||
|
|||
<li class="dropdown"> |
|||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">More <span class="caret"></span></a> |
|||
<ul class="dropdown-menu"> |
|||
<li><a href="#">Wiki</a></li> |
|||
<li><a href="#">Wallet</a></li> |
|||
<li><a href="#">Community</a></li> |
|||
<li role="separator" class="divider"></li> |
|||
<li><a href="#">Contact</a></li> |
|||
<li role="separator" class="divider"></li> |
|||
<li><a>Upload Conf<input type="file" id="files" name="file" /></a></li> |
|||
<div id="byte_range"></div> |
|||
<div id="byte_content"></div> |
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<!-- /.navbar-collapse --> |
|||
</div> |
|||
<!-- /.container-fluid --> |
|||
</nav> |
|||
<div class="container"> |
|||
<div id="welcome_page" class="page" style="text-align: center;"> |
|||
<div class="panel panel-default"> |
|||
<!-- Default panel contents --> |
|||
<div class="panel-heading">Welcome</div> |
|||
<div class="panel-body"> |
|||
<h2>iguana</h2> |
|||
<p> |
|||
iguana is fast. |
|||
</p> |
|||
<p> |
|||
iguana does all bitcoin compatibles. |
|||
</p> |
|||
<p> |
|||
iguana is fast. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- eyedea page is for creating front-end markup --> |
|||
<div id="eyedea_page" class="page"> |
|||
<div class="row" style="margin-bottom:15px;"> |
|||
<div class="col-xs-4 col-sm-3 col-md-2"> |
|||
<div class="api-navpills"> |
|||
</div> |
|||
</div> |
|||
<div class="col-xs-8 col-sm-9 col-md-10"> |
|||
<div class="panel-group"> |
|||
<div class="panel panel-default api-call-All"> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title api-panel-title">Json posting form</h4> |
|||
</div> |
|||
<!-- panel-heading --> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-xs-9 col-sm-10 col-md-8"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<textarea name="json_to_submit" id="json_src" cols="30" rows="5" class="result form-control" placeholder='Paste json here'></textarea> |
|||
</div> |
|||
<div class="form-group"> |
|||
<button class="btn btn-primary submit_api_request" id='submit_primary'>Submit</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-xs-6 col-md-4 col-lg-4"> |
|||
<div class="panel-body"> |
|||
<h5 class='uri-link'>Response</h5> |
|||
<pre class="hljs json result"> |
|||
JSON response |
|||
</pre> |
|||
<button class="btn btn-default clear-response">Clear response</button> |
|||
</div> |
|||
</div> |
|||
<div class="col-xs-6 col-md-4 col-lg-4"> |
|||
<div class="panel-body"> |
|||
<h5 class='uri-link'>Response</h5> |
|||
<pre class="hljs json result">JSON response</pre> |
|||
<button class="btn btn-default clear-response">Clear response</button> |
|||
</div> |
|||
</div> |
|||
<hr> |
|||
|
|||
<h3>Submitted JSON history |
|||
<button id="clearHistory" style='float: right' class='btn btn-default'> |
|||
Clear history |
|||
</button> |
|||
</div> |
|||
<hr> |
|||
<h3> |
|||
<span>Submitted JSON history</span> |
|||
<button id="clearHistory" style='float: right' class='btn btn-default'>Clear history</button> |
|||
</h3> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<table class="table" id='submit_history'> |
|||
<tbody> |
|||
|
|||
</tbody> |
|||
</table> |
|||
|
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<table class="table" id='submit_history'> |
|||
<tbody> |
|||
|
|||
</tbody> |
|||
</table> |
|||
|
|||
</div> |
|||
|
|||
</div> <!-- panel-body --> |
|||
</div> |
|||
</div> |
|||
<!-- panel-body --> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div id="Settings_page" class="page"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"> |
|||
<h3 class="panel-title">Settings</h3> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div id="agent_settings"></div> |
|||
</div> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div id="config_settings"></div> |
|||
<div class="function" id="fread" hidden> |
|||
<span> |
|||
<select class="file-handle" id="freadHandle"></select> |
|||
Count: |
|||
<input type="text" id="freadBytes"> |
|||
<button>fread</button> |
|||
</span> |
|||
</div> |
|||
<div class="function" id="fwrite" hidden> |
|||
<span> |
|||
<select class="file-handle" id="fwriteHandle"></select> |
|||
Data: |
|||
<input type="text" id="fwriteData"> |
|||
<button>fwrite</button> |
|||
</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div class="form-group"> |
|||
<button class="btn btn-primary" id="save_settings">Save</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="Debug_page" class="page"> |
|||
<div class="jumbotron"> |
|||
<div class="debuglog" hidden> <pre id="log" style="font-weight: bold"></pre></div> |
|||
</div> |
|||
</div> |
|||
<div id="listener"></div> |
|||
</div> |
|||
</div> |
|||
|
|||
<script type="text/javascript" src="js/util.js"></script> <script type="text/javascript" src="js/common.js"></script> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<!--Coin Management Starts--> |
|||
<div id="Coins_page" class="page"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"> |
|||
<h3>Coin Management</h3> |
|||
</div> |
|||
<div class="panel-body"> |
|||
|
|||
<div class="pull-right"> |
|||
<button id="Coins_reset" class="btn btn-raised" title="Reset">Reset</button> |
|||
<button id="Coins_refresh" class="btn btn-raised" title="Refresh">Refresh</button> |
|||
<button id="Coins_add" class="btn btn-raised btn-primary" type="button" data-toggle="modal" data-target="#CoinEditModal" title="Add">Add</button> |
|||
</div> |
|||
|
|||
<table id="Coins_table" class="table table-hover table-condensed table-bordered "> |
|||
<thead> |
|||
<tr> |
|||
<th>Symbol</th> |
|||
<th>Description</th> |
|||
<th>Status</th> |
|||
<th>Action</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
</tbody> |
|||
</table> |
|||
<!--Modal starts--> |
|||
<div class="modal fade" id="CoinEditModal" tabindex="-1" role="dialog" aria-labelledby="editCoinHeader"> |
|||
<div class="modal-dialog" role="document"> |
|||
<div class="modal-content"> |
|||
<div class="modal-header"> |
|||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
|||
<h4 class="modal-title" id="editCoinHeader">Edit Coin</h4> |
|||
</div> |
|||
<div class="modal-body"> |
|||
<div id="coinEditFormContainer"> |
|||
<form class="form-horizontal" id="frmCoinEdit" name="frmCoinEdit"> |
|||
<div id="txtSymbolGroup" class="form-group"> |
|||
<label for="txtSymbol" class="control-label col-xs-2 col-md-2">Symbol</label> |
|||
<div class="col-xs-10 col-md-10"> |
|||
<input type="text" id="txtSymbol" name="txtSymbol" class="form-control input-sm" /> |
|||
</div> |
|||
</div> |
|||
<div id="txtDescriptionGroup" class="form-group"> |
|||
<label for="txtDescription" class="control-label col-xs-2 col-md-2">Description</label> |
|||
<div class="col-xs-10 col-md-10"> |
|||
<input type="text" id="txtDescription" name="txtDescription" class="form-control input-sm" /> |
|||
</div> |
|||
</div> |
|||
<div id="ddCoinStatus" class="form-group"> |
|||
<label for="ddStatus" class="control-label col-xs-2 col-md-2">Status</label> |
|||
<div class="col-xs-10 col-md-10"> |
|||
<select type="text" id="ddStatus" name="ddStatus" class="form-control input-sm"></select> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
<div class="modal-footer"> |
|||
<button id="btnClearCoinForm" type="button" class="btn btn-raised btn-default" data-dismiss="modal">Nevermind</button> |
|||
<button id="btnSaveCoinForm" type="button" class="btn btn-raised btn-primary" data-dismiss="modal">Save</button> |
|||
<!-- <button id="btnSaveCoinForm" type="button" class="btn btn-primary">Save</button> --> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--Modal Ends--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--Coin Management Ends--> |
|||
|
|||
|
|||
<!-- peers tab --> |
|||
<div id="Peers_page" class="page"> |
|||
<div class="row"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"> |
|||
<h3> |
|||
<span>Peer Management</span> |
|||
</h3> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="pull-right"> |
|||
<span class="checkbox"><label><input id="cbShowFavoritePeers" type="checkbox"/> Favorites</label></span> |
|||
</div> |
|||
<table id="peersTable" class="table table-hover table-bordered"> |
|||
<thead> |
|||
<tr> |
|||
<th>IP Address</th> |
|||
<th>Coin Type</th> |
|||
<th>Height</th> |
|||
<th>Rank</th> |
|||
<th>Favourite </th> |
|||
<th>Actions</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody id="peersTableBody"></tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<div id="Settings_page" class="page"> |
|||
<div class="panel panel-default"> |
|||
<div class="panel-heading"> |
|||
<h3 class="panel-title">Settings</h3> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="row"> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div id="agent_settings"></div> |
|||
</div> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div id="config_settings"></div> |
|||
<div class="function" id="fread" hidden> |
|||
<span> |
|||
<select class="file-handle" id="freadHandle"></select> |
|||
Count: |
|||
<input type="text" id="freadBytes"> |
|||
<button>fread</button> |
|||
</span> |
|||
</div> |
|||
<div class="function" id="fwrite" hidden> |
|||
<span> |
|||
<select class="file-handle" id="fwriteHandle"></select> |
|||
Data: |
|||
<input type="text" id="fwriteData"> |
|||
<button>fwrite</button> |
|||
</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-xs-6 col-md-6 col-lg-6"> |
|||
<div class="form-group"> |
|||
<button class="btn btn-primary" id="save_settings">Save</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<div id="Debug_page" class="page"> |
|||
<div class="jumbotron"> |
|||
<table> |
|||
<tr > |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="1" id="dest-imagAPI-1" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="2" id="dest-imagAPI-2"/></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="3" id="dest-imagAPI-3" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="4" id="dest-imagAPI-4" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="5" id="dest-imagAPI-5" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="6" id="dest-imagAPI-6" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="7" id="dest-imagAPI-7" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="8" id="dest-imagAPI-8" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="9" id="dest-imagAPI-9" /></td> |
|||
<td><img src="" height="90" width="90" class="imagAPI" data-id="10" id="dest-imagAPI-10" /></td> |
|||
</tr> |
|||
|
|||
<tr> |
|||
<td align="center" ><input id="name-imagAPI-1" type="text" value="abc1.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-2" type="text" value="abc2.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-3" type="text" value="abc3.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-4" type="text" value="abc4.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-5" type="text" value="abc5.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-6" type="text" value="abc6.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-7" type="text" value="abc7.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-8" type="text" value="abc8.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-9" type="text" value="abc9.jpg" size="7"/></td> |
|||
<td align="center" ><input id="name-imagAPI-10" type="text" value="abc10.jpg" size="7"/></td> |
|||
|
|||
|
|||
</tr> |
|||
<tr style="display: none;"> |
|||
<td><img src="images/img1.png" height="90" width="90" id="src-imagAPI-1" /></td> |
|||
<td><img src="images/img2.jpg" height="90" width="90" id="src-imagAPI-2" /></td> |
|||
<td><img src="images/img3.png" height="90" width="90" id="src-imagAPI-3" /></td> |
|||
<td><img src="images/img4.png" height="90" width="90" id="src-imagAPI-4" /></td> |
|||
<td><img src="images/img1.png" height="90" width="90" id="src-imagAPI-5" /></td> |
|||
<td><img src="images/img2.jpg" height="90" width="90" id="src-imagAPI-6" /></td> |
|||
<td><img src="images/img3.png" height="90" width="90" id="src-imagAPI-7" /></td> |
|||
<td><img src="images/img4.png" height="90" width="90" id="src-imagAPI-8" /></td> |
|||
<td><img src="images/img1.png" height="90" width="90" id="src-imagAPI-9" /></td> |
|||
<td><img src="images/img2.jpg" height="90" width="90" id="src-imagAPI-10" /></td> |
|||
</tr> |
|||
<tr><td colspan="10"> |
|||
<span id="mousexy"></span> |
|||
</td> |
|||
</tr> |
|||
|
|||
</table> |
|||
|
|||
<div class="debuglog" hidden> <pre id="log" style="font-weight: bold"></pre></div> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<div id="Blockexplorer_page" class="page"> |
|||
<div class="panel panel-default"> |
|||
<!-- Default panel contents --> |
|||
<div class="panel-heading"> |
|||
<h3>Block Explorer tab</h3> |
|||
</div> |
|||
<div class="panel-body center"> |
|||
<h3>Block Explorer</h3> |
|||
<p> |
|||
Page dedicated to searching blockchain. |
|||
</p> |
|||
<p> |
|||
** Awaiting specific requirements ** |
|||
</p> |
|||
</div> |
|||
</div> |
|||
<style type="text/css"> |
|||
#Blockexplorer_page .center { |
|||
text-align: center; |
|||
} |
|||
</style> |
|||
</div> |
|||
|
|||
|
|||
<div id="listener"></div> |
|||
</div> |
|||
</div> |
|||
<!--if android style ripple effect is not working, try temporarily deleting the following line--> |
|||
<script type="text/javascript " src="example.js "></script> |
|||
|
|||
<!--jQuery--> |
|||
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script> |
|||
|
|||
<!--Bootstrap--> |
|||
<script type="text/javascript" src="js/bootstrap.js"></script> |
|||
|
|||
|
|||
<!--Google Theme--> |
|||
<script type="text/javascript" src='js/googleTheme.min.js'></script> |
|||
<script type="text/javascript" src='js/ripples.min.js'></script> |
|||
<script type="text/javascript" src='js/jquery.dropdown.js'></script> |
|||
|
|||
<!--Iguana genric code--> |
|||
<script type="text/javascript" src="js/api.js" " charset="utf-8 "></script> |
|||
<script type="text/javascript " src="js/util.js "></script> |
|||
<script type="text/javascript " src="js/sites.js " charset="utf-8 "></script> |
|||
<script type="text/javascript " src="app/common.js "></script> |
|||
<script type="text/javascript " src="app/startup.js " ></script> |
|||
|
|||
<!--Iguana tabs--> |
|||
<script src='js/form.js'></script> |
|||
<script type="text/javascript" src="js/example.js"></script> |
|||
<script src="js/bootstrap.js" type="text/javascript"></script> <script src="js/api.js" type="text/javascript" charset="utf-8"></script> |
|||
<script src="js/methods.js" type="text/javascript" charset="utf-8"></script> <script src="js/sites.js" type="text/javascript" charset="utf-8"></script> |
|||
<script src="js/settings.js" type="text/javascript" charset="utf-8"></script> |
|||
</body> |
|||
<script src="app/coin_mgmt.js "></script> |
|||
<script type="text/javascript " src='js/peerlist.js'></script> |
|||
<script type="text/javascript " src="js/methods.js " charset="utf-8 "></script> |
|||
<script type="text/javascript " src="js/settings.js " charset="utf-8 "></script> |
|||
<script type="text/javascript " src="js/imgAPI.js " ></script> |
|||
</body> |
|||
|
|||
</html> |
|||
|
@ -0,0 +1,132 @@ |
|||
/* |
|||
* To change this license header, choose License Headers in Project Properties. |
|||
* To change this template file, choose Tools | Templates |
|||
* and open the template in the editor. |
|||
*/ |
|||
|
|||
var prevXY={"X":0,"Y":0}; |
|||
var prevID=0; |
|||
|
|||
$(document).ready(function() { |
|||
loadImages(); |
|||
|
|||
|
|||
$('.imagAPI').click(function(e){ |
|||
e = window.event ? event.srcElement : e.target; |
|||
var id=e.getAttribute('data-id'); |
|||
var imagename=document.getElementById('name-imagAPI-'+id).value; |
|||
console.log("Clicked on image"+id); |
|||
|
|||
$.ajax({ |
|||
type: "GET", |
|||
url: "http://127.0.0.1:7778/api/mouse/click/name/"+imagename+"/x/"+Math.round(prevXY.X)+"/y/"+Math.round(prevXY.Y), |
|||
success: function( response ) { |
|||
console.log('AJAX Response is ' + response); |
|||
//if(typeof callback === 'function'){
|
|||
//callback(request, response);
|
|||
//}
|
|||
} |
|||
}); |
|||
}); |
|||
}); |
|||
|
|||
|
|||
var loadImages=function(){ |
|||
for(var i=1;i<=10;i++){ |
|||
|
|||
var img = document.getElementById("src-imagAPI-"+i); |
|||
var canvas = document.createElement('canvas'); |
|||
canvas.width = img.naturalWidth; |
|||
canvas.height = img.naturalHeight; |
|||
var context = canvas.getContext('2d'); |
|||
|
|||
//alert(img.src);
|
|||
context.drawImage(img, 0, 0 ); |
|||
var dataURL = {data:canvas.toDataURL('image/jpg'),height:img.height,width:img.width,type:'JPG'}; |
|||
var name='imagedata-'+i; |
|||
if(typeof localStorage !== 'undefined'){ |
|||
localStorage[name]=JSON.stringify(dataURL); |
|||
}else{ |
|||
chrome.storage.local.set({name: JSON.stringify(dataURL)}); |
|||
} |
|||
$("#dest-imagAPI-"+i).attr('src', dataURL.data); |
|||
|
|||
} |
|||
|
|||
}; |
|||
|
|||
$('.imagAPI').mousemove(function(e){ |
|||
//e = window.event ? event.srcElement : e.target;
|
|||
|
|||
|
|||
var id=event.srcElement.getAttribute('data-id'); |
|||
|
|||
var imagename=document.getElementById('name-imagAPI-'+id).value; |
|||
|
|||
var parentOffset = $("#dest-imagAPI-"+id).offset(); |
|||
var relX=e.pageX-parentOffset.left; |
|||
var relY=e.pageY-parentOffset.top; |
|||
prevXY.X=relX; |
|||
prevXY.Y=relY; |
|||
|
|||
if(prevID!==id){ |
|||
prevID=id; |
|||
|
|||
$.ajax({ |
|||
type: "GET", |
|||
url: "http://127.0.0.1:7778/api/mouse/image/name/"+imagename+"/x/"+Math.round(relX)+"/y/"+Math.round(relY), |
|||
success: function( response ) { |
|||
console.log('AJAX Response is ' + response); |
|||
//if(typeof callback === 'function'){
|
|||
//callback(request, response);
|
|||
//}
|
|||
} |
|||
}); |
|||
} |
|||
document.getElementById('mousexy').innerHTML="parent offset x:"+relX+" y:"+relY; |
|||
|
|||
console.log("Moved mouse on image "+id+" imagename "+imagename); |
|||
|
|||
console.log("calling API"); |
|||
// {"agent":"mouse","method":"image","name":"bitmap.jpg","x":<width>,"y":<height>}
|
|||
$.ajax({ |
|||
type: "GET", |
|||
url: "http://127.0.0.1:7778/api/mouse/change/name/"+imagename+"/x/"+Math.round(relX)+"/y/"+Math.round(relY), |
|||
success: function( response ) { |
|||
console.log('AJAX Response is ' + response); |
|||
//if(typeof callback === 'function'){
|
|||
//callback(request, response);
|
|||
//}
|
|||
} |
|||
}); |
|||
|
|||
|
|||
}); |
|||
|
|||
/* |
|||
* Function to test filesystem Access |
|||
*/ |
|||
|
|||
function filesystem_save(){ |
|||
|
|||
fileSystem.root.getFile('confs/iguana.4206523045167609019', {}, function(fileEntry) { |
|||
|
|||
// Get a File object representing the file,
|
|||
// then use FileReader to read its contents.
|
|||
fileEntry.file(function(file) { |
|||
var reader = new FileReader(); |
|||
|
|||
reader.onloadend = function(e) { |
|||
//var txtArea = document.createElement('textarea');
|
|||
console.log("Configuration file text: "+this.result.toString()); |
|||
console.log("Full path is:"+fileEntry.fullPath); |
|||
//document.body.appendChild(txtArea);
|
|||
document.getElementById('mousexy').innerHTML=this.result; |
|||
}; |
|||
|
|||
reader.readAsText(file); |
|||
}, errorHandler); |
|||
|
|||
}, errorHandler); |
|||
|
|||
} |
@ -1,17 +1,41 @@ |
|||
{ |
|||
"name": "iguana", |
|||
"uri": "iguana.pexe", |
|||
"short_name": "iguana", |
|||
"version": "44.1.2", |
|||
"manifest_version": 2, |
|||
"description": "iguana", |
|||
"offline_enabled": true, |
|||
"icons": { "128": "icon128.png" }, |
|||
"app": |
|||
{ |
|||
"name": "iguana", |
|||
"background": { "scripts": ["background.js"] }, |
|||
"sockets": { "tcp": { "connect": "" }, "tcpServer": { "listen": "127.0.0.1:*" } }, |
|||
"permissions": [ "unlimitedStorage", "storage.local" ] |
|||
"name": "SuperNET Iguana", |
|||
// "url": "iguana.pexe", |
|||
"short_name": "iguana", |
|||
"version": "0.0.1", |
|||
"manifest_version": 2, |
|||
"description": "SuperNET Iguana", |
|||
"offline_enabled": true, |
|||
"icons": { |
|||
"128": "icon128.png" |
|||
}, |
|||
"app": { |
|||
"background": { |
|||
"scripts": [ |
|||
"background.js" |
|||
] |
|||
} |
|||
}, |
|||
"sockets": { |
|||
"tcp": { |
|||
"connect": "" |
|||
}, |
|||
"tcpServer": { |
|||
"listen": "127.0.0.1:*" |
|||
} |
|||
}, |
|||
"permissions": [ |
|||
"unlimitedStorage", |
|||
"nativeMessaging", |
|||
// "networking.config", |
|||
"dns", |
|||
"browser", |
|||
// "filesystem", |
|||
"storage", |
|||
"system.storage", |
|||
"system.display", |
|||
"system.network", |
|||
"system.cpu", |
|||
"http://127.0.0.1:7778/" |
|||
] |
|||
} |
|||
|
Loading…
Reference in new issue