Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
106 lines (84 sloc) 3.17 KB
<!--
@license
Copyright (c) 2017 Foundation For an Innovative Future (InnovativeFuture.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or any
later version.
Foundation For an Innovative Future reserves the right to release the
covered work, in part or in whole, under a different open source
license and/or with specific copyleft exclusions. Such a release
would not invalidate the license for this project, although the
project released with a modified license would not be considered
part of this covered work or subject to the copyleft portions of this
license even if the projects are identical.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Please email contact@innovativeFuture.org for inquiries related to
this license.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>Collaboration Tree</title>
<link rel="shortcut icon" sizes="32x32" href="./images/app-icon-32.png">
<meta name="theme-color" content="#5F9F00">
<link rel="manifest" href="/manifest.json">
<script>
var rootPath = '';// '/ctree-demo';
// setup Polymer options
window.Polymer = {lazyRegister: true, dom: 'shadow'};
// load webcomponents polyfills
(function() {
if ('registerElement' in document
&& 'import' in document.createElement('link')
&& 'content' in document.createElement('template')) {
// browser has web components
} else {
// polyfill web components
var e = document.createElement('script');
e.src = '/bower_components/webcomponentsjs/webcomponents-lite.min.js';
document.head.appendChild(e);
}
})();
// load pre-caching service worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js');
});
}
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'shortcut icon';
link.sizes = '32x32';
link.href = rootPath + '/images/app-icon-32.png';
head.appendChild(link);
link = document.createElement('link');
link.rel = 'import';
link.href = rootPath + '/src/ctree-app/ctree-app.html';
head.appendChild(link);
</script>
<style>
body {
margin: 0;
font-family: 'Roboto', 'Noto', sans-serif;
line-height: 1.5;
min-height: 100vh;
background-color: #eee;
}
</style>
</head>
<body>
<script>
var app = document.createElement('ctree-app');
app.rootPath = rootPath;
document.getElementsByTagName('body')[0].appendChild(app);
</script>
</body>
</html>