Commit fa4e344d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Use Relative Urls everywhere possible

parent a1ab9293
......@@ -9,10 +9,10 @@
<meta name="viewport" content="width=device-width">
<title>Service worker demo</title>
<script src="lib/sha256.js"></script>
<script src="lib/sha256.amd.js"></script>
<script src="lib/rsvp.js"></script>
<script src="lib/jio-latest.js"></script>
<script src="./lib/sha256.js"></script>
<script src="./lib/sha256.amd.js"></script>
<script src="./lib/rsvp.js"></script>
<script src="./lib/jio-latest.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
......
......@@ -63,7 +63,8 @@ function initHeaderOptions(gadget) {
});
}
/*
/*
function updateHeader(gadget) {
return gadget.getDeclaredGadget("header")
.push(function (header_gadget) {
......@@ -299,6 +300,12 @@ function initHeaderOptions(gadget) {
return router_gadget.start();
});
})
.ready(function (g) {
return g.getDeclaredGadget('header')
.push(function (header_gadget) {
return header_gadget.render();
});
})
//////////////////////////////////////////
// Allow Acquisition
......
......@@ -4,34 +4,34 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="/crib-editor3/cribjs.css">
<link rel="stylesheet" href="../lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="../crib-editor3/cribjs.css">
<title>CribJS</title>
<script src="/lib/rsvp.js"></script>
<script src="/lib/jio-latest.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="/gadget/gadget_global.js"></script>
<script src="cribjs_launcher.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/jio-latest.js"></script>
<script src="../lib/renderjs.js"></script>
<script src="./gadget_global.js"></script>
<script src="./cribjs_launcher.js"></script>
</head>
<body>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="setting_gadget"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/gadget_cribjs_router.html"
<div data-gadget-url="./gadget_cribjs_router.html"
data-gadget-scope="router"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/gadget_cribjs_header.html"
<div data-gadget-url="./gadget_cribjs_header.html"
data-gadget-scope="header"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/crib-sw-gadget.html"
<div data-gadget-url="./crib-sw-gadget.html"
data-gadget-scope="crib_sw_gadget"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="jio_gadget"
data-gadget-sandbox="public"></div>
......
......@@ -6,12 +6,12 @@
<title>Crib SW interface Gadget</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/jio-latest.js" type="text/javascript"></script>
<script src="./lib/rsvp.js" type="text/javascript"></script>
<script src="./lib/renderjs.js" type="text/javascript"></script>
<script src="./lib/jio-latest.js" type="text/javascript"></script>
<!-- custom script -->
<script src="crib-enable.js" type="text/javascript"></script>
<script src="./crib-enable.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -4,19 +4,19 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="cribjs-conqueror.css">
<link rel="stylesheet" href="../lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="./cribjs-conqueror.css">
<title>CribJS</title>
<script src="lib/sha256.js"></script>
<script src="lib/sha256.amd.js"></script>
<script src="lib/rsvp.js"></script>
<script src="lib/jio-latest.js"></script>
<script src="lib/renderjs.js"></script>
<script src="cribjs-conqueror.js"></script>
<script src="./lib/sha256.js"></script>
<script src="./lib/sha256.amd.js"></script>
<script src="./lib/rsvp.js"></script>
<script src="./lib/jio-latest.js"></script>
<script src="./lib/renderjs.js"></script>
<script src="./cribjs-conqueror.js"></script>
</head>
<body>
<div data-gadget-url="gadget/crib-sw-gadget.html"
<div data-gadget-url="./gadget/crib-sw-gadget.html"
data-gadget-scope="crib_sw_gadget"
data-gadget-sandbox="public"></div>
<div data-gadget-url="https://www.cribjs.com/gadget/cribjs-ide-gadget.html"
......
......@@ -6,12 +6,12 @@
<title>Crib SW interface Gadget</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/jio-latest.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/jio-latest.js" type="text/javascript"></script>
<!-- custom script -->
<script src="crib-sw-gadget.js" type="text/javascript"></script>
<script src="./crib-sw-gadget.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -4,14 +4,14 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="../lib/bootstrap/bootstrap.min.css">
<title>CribJS</title>
<script src="/lib/sha256.js"></script>
<script src="/lib/sha256.amd.js"></script>
<script src="/lib/rsvp.js"></script>
<script src="/lib/jio-latest.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="cribjs-ide-gadget.js"></script>
<script src="../lib/sha256.js"></script>
<script src="../lib/sha256.amd.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/jio-latest.js"></script>
<script src="../lib/renderjs.js"></script>
<script src="./cribjs-ide-gadget.js"></script>
<!--The following CSS shows a lack of developing style -->
<style>
html body nav.navbar-default {
......@@ -113,7 +113,7 @@
</div>
</div>
<div class="container-fluid">
<div data-gadget-url="/gadget/gadget_codemirror.html"
<div data-gadget-url="./gadget_codemirror.html"
data-gadget-scope="codeeditor"
data-gadget-sandbox="public"></div>
</div>
......@@ -186,7 +186,7 @@
<div><span class="crib-mass-remove-status"></span></div>
</form>
</div>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="jio_gadget"
data-gadget-sandbox="public"></div>
</body>
......
......@@ -5,24 +5,24 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Codemirror Gadget</title>
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<link rel="stylesheet" href="/lib/codemirror.css">
<link rel="stylesheet" href="/lib/codemirror/addon/dialog/dialog.css">
<link rel="stylesheet" href="/lib/codemirror/addon/search/matchesonscrollbar.css">
<link rel="stylesheet" href="../lib/codemirror.css">
<link rel="stylesheet" href="../lib/codemirror/addon/dialog/dialog.css">
<link rel="stylesheet" href="../lib/codemirror/addon/search/matchesonscrollbar.css">
<script src="/lib/codemirror.js"></script>
<script src="/lib/codemirror/mode/css.js"></script>
<script src="/lib/codemirror/mode/xml.js"></script>
<script src="/lib/codemirror/mode/javascript.js"></script>
<script src="/lib/codemirror/mode/htmlmixed.js"></script>
<script src="/lib/codemirror/addon/dialog/dialog.js"></script>
<script src="/lib/codemirror/addon/search/searchcursor.js"></script>
<script src="/lib/codemirror/addon/search/search.js"></script>
<script src="/lib/codemirror/addon/scroll/annotatescrollbar.js"></script>
<script src="/lib/codemirror/addon/search/matchesonscrollbar.js"></script>
<script src="gadget_codemirror.js" type="text/javascript"></script>
<script src="../lib/codemirror.js"></script>
<script src="../lib/codemirror/mode/css.js"></script>
<script src="../lib/codemirror/mode/xml.js"></script>
<script src="../lib/codemirror/mode/javascript.js"></script>
<script src="../lib/codemirror/mode/htmlmixed.js"></script>
<script src="../lib/codemirror/addon/dialog/dialog.js"></script>
<script src="../lib/codemirror/addon/search/searchcursor.js"></script>
<script src="../lib/codemirror/addon/search/search.js"></script>
<script src="../lib/codemirror/addon/scroll/annotatescrollbar.js"></script>
<script src="../lib/codemirror/addon/search/matchesonscrollbar.js"></script>
<script src="./gadget_codemirror.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -2,20 +2,18 @@
<!DOCTYPE html>
<html>
<head>
<base href="https://texteditor.app.officejs.com/gadget_officejs_header.html/" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<title>OfficeJS Header</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/handlebars.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/handlebars.js" type="text/javascript"></script>
<script src="./gadget_global.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_cribjs_header.js" type="text/javascript"></script>
<script src="./gadget_cribjs_header.js" type="text/javascript"></script>
<script id="header-title-link-template" type="text/x-handlebars-template"><a data-i18n="{{title}}" class="ui-btn ui-btn-icon-left ui-icon-arrow-down" href="{{url}}">{{title}}</a></script>
<script id="header-title-template" type="text/x-handlebars-template"><span data-i18n="{{title}}">{{title}}</span></script>
......@@ -54,11 +52,11 @@
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="#page=select_site">Select Site to Edit</a></li>
<li><a href="#page=url_list">URL List</a></li>
<li><a href="#page=editor">Editor</a></li>
<li><a href="#page=save_load">Export/Import</a></li>
<li><a href="#page=mass_remove">Remove</a></li>
<li><a class="select_site" href="#page=select_site">Select Site to Edit</a></li>
<li><a class="url_list" href="#page=url_list">URL List</a></li>
<li><a class="editor" href="#page=editor">Editor</a></li>
<li><a class="save_load" href="#page=save_load">Export/Import</a></li>
<li><a class="mass_remove" href="#page=mass_remove">Remove</a></li>
</ul>
</div>
</div>
......
......@@ -121,150 +121,22 @@
*/
.declareMethod('render', function (options) {
var gadget = this,
possible_left_link_list = [
// ['menu_url', 'Menu', 'bars'],
['selection_url', 'Back', 'arrow-left'],
['view_url', 'View', 'check'],
['cancel_url', 'Cancel', 'times'],
['back_url', 'Back', 'arrow-left']
],
possible_left_button_list = [
['panel_action', 'Menu', 'bars', 'panel']
],
possible_right_link_list = [
['edit_url', 'Edit', 'pencil'],
['add_url', 'Add', 'plus'],
['new_url', 'New', 'plus']
],
possible_right_button_list = [
['save_action', 'Save', 'check', 'submit'],
['submit_action', 'Proceed', 'check', 'submit']
],
i,
klass,
//left_link = {
// title: "Menu",
// icon: "bars",
// url: "#leftpanel",
// class: "ui-disabled"
// },
left_link,
left_button,
right_link,
right_button,
default_right_text,
default_right_icon = "",
title_link = {},
page_list = ["select_site", "url_list", "editor", "save_load", "mass_remove"],
promise_list = [];
gadget.stats.options = options;
page_list.forEach(function (page) {
promise_list.push(gadget.getUrlFor({page: page}))
})
// Handle main title
if (options.hasOwnProperty("title")) {
title_link.title = options.title;
// Updating globally the page title. Does not follow RenderJS philosophy, but, it is enough for now
document.title = title_link.title;
}
if (options.hasOwnProperty("breadcrumb_url")) {
title_link.url = options.breadcrumb_url;
promise_list.push(gadget.translateHtml(header_title_link_template(title_link)));
} else {
promise_list.push(gadget.translateHtml(header_title_template(title_link)));
}
// Handle left link
for (i = 0; i < possible_left_link_list.length; i += 1) {
if (options.hasOwnProperty(possible_left_link_list[i][0])) {
klass = "";
if (!options[possible_left_link_list[i][0]]) {
klass = "ui-disabled";
}
left_link = {
title: possible_left_link_list[i][1],
icon: possible_left_link_list[i][2],
url: options[possible_left_link_list[i][0]],
class: klass
};
}
}
for (i = 0; i < possible_left_button_list.length; i += 1) {
if (options.hasOwnProperty(possible_left_button_list[i][0])
&& options[possible_left_button_list[i][0]]) {
left_button = {
title: possible_left_button_list[i][1],
icon: possible_left_button_list[i][2],
name: possible_left_button_list[i][3]
};
}
}
if (left_button !== undefined) {
promise_list.push(gadget.translateHtml(header_button_template(left_button)));
} else if (left_link === undefined) {
promise_list.push(gadget.translateHtml(""));
} else {
promise_list.push(gadget.translateHtml(header_link_template(left_link)));
}
// Handle right link
if (gadget.stats.error) {
default_right_icon = "exclamation";
} else if (!gadget.stats.loaded) {
default_right_icon = "spinner";
// Show default loading information
right_link = {
title: "Loading",
icon: default_right_icon,
url: "",
class: "ui-disabled ui-icon-spin"
};
} else if (!gadget.stats.submitted) {
default_right_icon = "spinner";
} else if (gadget.stats.modified) {
default_right_text = "Save";
default_right_icon = "warning";
}
for (i = 0; i < possible_right_link_list.length; i += 1) {
if (options.hasOwnProperty(possible_right_link_list[i][0])) {
klass = "";
if (!options[possible_right_link_list[i][0]]) {
klass = "ui-disabled";
}
right_link = {
title: possible_right_link_list[i][1],
icon: default_right_icon || possible_right_link_list[i][2],
url: options[possible_right_link_list[i][0]],
class: klass
};
}
}
for (i = 0; i < possible_right_button_list.length; i += 1) {
if (options.hasOwnProperty(possible_right_button_list[i][0])
&& options[possible_right_button_list[i][0]]) {
right_button = {
title: default_right_text || possible_right_button_list[i][1],
icon: default_right_icon || possible_right_button_list[i][2],
name: possible_right_button_list[i][3]
};
if (gadget.stats.error) {
right_button.class = "ui-disabled";
}
}
}
if (right_button !== undefined) {
promise_list.push(gadget.translateHtml(header_button_template(right_button)));
} else if (right_link !== undefined) {
promise_list.push(gadget.translateHtml(header_link_template(right_link)));
} else {
promise_list.push(gadget.translateHtml(""));
}
return new RSVP.Queue()
.push(function () {
return RSVP.all(promise_list);
})
.push(function (my_translated_html_list) {
gadget.props.title_element.innerHTML = my_translated_html_list[0];
gadget.props.left_link.innerHTML = my_translated_html_list[1];
gadget.props.right_link.innerHTML = my_translated_html_list[2];
.push(function (link_list) {
for (var i = 0; i < link_list.length; i++) {
gadget.props.element.querySelector("." + page_list[i]).href = link_list[i]
}
});
})
......
......@@ -6,16 +6,16 @@
<meta name="viewport" content="width=device-width">
<title>CribJS Loader</title>
<script src="/lib/rsvp.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="gadget_cribjs_loader.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/renderjs.js"></script>
<script src="./gadget_cribjs_loader.js"></script>
</head>
<body>
<h1>CribJS Loader</h1>
<div data-gadget-url="/gadget/gadget_jio_cribjs.html"
<div data-gadget-url="./gadget_jio_cribjs.html"
data-gadget-scope="jio_cribjs"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/gadget_jio_configurator.html"
<div data-gadget-url="./gadget_jio_configurator.html"
data-gadget-scope="jio_configurator"
data-gadget-sandbox="public"></div>
<form>
......
......@@ -23,7 +23,7 @@
<li>3. <a href="#view=save_load">Export and Import</a> your copy of the web locally and remotly</li>
<li>4. <a href="#view=mass_remove">Remove</a> uncessary URLs</li>
</ul>
<p>Have fun building the web :), here is your <a href="/crib-editor/todo.txt">TODO list</a>.</p>
<p>Have fun building the web :), here is your <a href="../crib-editor/todo.txt">TODO list</a>.</p>
</div>
</body>
</html>
\ No newline at end of file
......@@ -6,13 +6,13 @@
<title>CribJS Header</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/jio-latest.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/jio-latest.js" type="text/javascript"></script>
<script src="./gadget_global.js" type="text/javascript"></script>
<!-- Custom -->
<script src="gadget_cribjs_page_editor.js" type="text/javascript"></script>
<script src="./gadget_cribjs_page_editor.js" type="text/javascript"></script>
</head>
<body>
......@@ -49,7 +49,7 @@
</div>
</div>
<div class="container-fluid">
<div data-gadget-url="/gadget/gadget_codemirror.html"
<div data-gadget-url="./gadget_codemirror.html"
data-gadget-scope="codeeditor"
data-gadget-sandbox="public"></div>
</div>
......
......@@ -6,12 +6,12 @@
<title>CribJS Header</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="./gadget_global.js" type="text/javascript"></script>
<!-- Custom -->
<script src="gadget_cribjs_page_mass_remove.js" type="text/javascript"></script>
<script src="./gadget_cribjs_page_mass_remove.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -6,14 +6,14 @@
<title>CribJS Header</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/jszip.js" type="text/javascript"></script>
<script src="/lib/FileSaver.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/jszip.js" type="text/javascript"></script>
<script src="../lib/FileSaver.js" type="text/javascript"></script>
<script src="./gadget_global.js" type="text/javascript"></script>
<!-- Custom -->
<script src="gadget_cribjs_page_save_load.js" type="text/javascript"></script>
<script src="./gadget_cribjs_page_save_load.js" type="text/javascript"></script>
</head>
<body>
......@@ -47,7 +47,7 @@
</form>
<div><span class="crib-load-from-zip-status"></span></div>
</div>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="jio_gadget"
data-gadget-sandbox="public"></div>
</body>
......
......@@ -6,14 +6,14 @@
<title>CribJS Header</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/jszip.js" type="text/javascript"></script>
<script src="/lib/FileSaver.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/jszip.js" type="text/javascript"></script>
<script src="../lib/FileSaver.js" type="text/javascript"></script>
<script src="./gadget_global.js" type="text/javascript"></script>
<!-- Custom -->
<script src="gadget_cribjs_page_select_site.js" type="text/javascript"></script>
<script src="./gadget_cribjs_page_select_site.js" type="text/javascript"></script>
</head>
<body>
......@@ -44,7 +44,7 @@
</form>
</div>
</div>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="jio_gadget"
data-gadget-sandbox="public"></div>
</body>
......
......@@ -6,12 +6,12 @@
<title>CribJS Header</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="./gadget_global.js" type="text/javascript"></script>
<!-- Custom -->
<script src="gadget_cribjs_page_url_list.js" type="text/javascript"></script>
<script src="./gadget_cribjs_page_url_list.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -7,11 +7,11 @@
<title>CribSJ Router Gadget</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_cribjs_router.js" type="text/javascript"></script>
<script src="./gadget_cribjs_router.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -8,13 +8,13 @@
<title>Jio Gadget</title>
<!-- renderjs -->
<script src="/lib/rsvp.js" type="text/javascript"></script>
<script src="/lib/renderjs.js" type="text/javascript"></script>
<script src="../lib/rsvp.js" type="text/javascript"></script>
<script src="../lib/renderjs.js" type="text/javascript"></script>
<script src="/lib/jio-latest.js" type="text/javascript"></script>
<script src="../lib/jio-latest.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_jio.js" type="text/javascript"></script>
<script src="./gadget_jio.js" type="text/javascript"></script>
</head>
<body>
......
......@@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width">
<title>CribJS Loader</title>
<script src="/lib/rsvp.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="gadget_jio_configurator.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/renderjs.js"></script>
<script src="./gadget_jio_configurator.js"></script>
</head>
<body>
<form>
......
......@@ -6,16 +6,16 @@
<meta name="viewport" content="width=device-width">
<title>CribJS Loader</title>
<script src="/lib/rsvp.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="/lib/jszip.js" type="text/javascript"></script>
<script src="gadget_jio_cribjs.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/renderjs.js"></script>
<script src="../lib/jszip.js" type="text/javascript"></script>
<script src="./gadget_jio_cribjs.js"></script>
</head>
<body>
<div data-gadget-url="/gadget/crib-sw-gadget.html"
<div data-gadget-url="./crib-sw-gadget.html"
data-gadget-scope="crib_sw_gadget"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="jio_gadget"
data-gadget-sandbox="public"></div>
</body>
......
......@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width">
<title>CribJS Loader</title>
<script src="/lib/rsvp.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/renderjs.js"></script>
<!--script src="gadget_jio_simple_configurator.js"></script-->
</head>
<body>
......
......@@ -6,16 +6,16 @@
<meta name="viewport" content="width=device-width">
<title>CribJS Loader</title>
<script src="/lib/rsvp.js"></script>
<script src="/lib/renderjs.js"></script>
<script src="/lib/jszip.js" type="text/javascript"></script>
<script src="gadget_landing_cribjs.js"></script>
<script src="../lib/rsvp.js"></script>
<script src="../lib/renderjs.js"></script>
<script src="../lib/jszip.js" type="text/javascript"></script>
<script src="./gadget_landing_cribjs.js"></script>
</head>
<body>
<div data-gadget-url="/gadget/crib-sw-gadget.html"
<div data-gadget-url="./crib-sw-gadget.html"
data-gadget-scope="crib_sw_gadget"
data-gadget-sandbox="public"></div>
<div data-gadget-url="/gadget/gadget_jio.html"
<div data-gadget-url="./gadget_jio.html"
data-gadget-scope="jio_gadget"
data-gadget-sandbox="public"></div>
</body>
......
......@@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width">
<title>CribJS Loader</title>
<link rel="stylesheet" href="/lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="/landing.css">
<link rel="stylesheet" href="./lib/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="./landing.css">
<script src="./lib/rsvp.js"></script>
<script src="./lib/renderjs.js"></script>
<script src="./gadget/gadget_global.js"></script>
<script src="landing.js"></script>
<script src="./landing.js"></script>
</head>
<body>
<div data-gadget-url="./gadget/gadget_landing_cribjs.html"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment