Commit 132335a1 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Improve Text in Home page of editor

parent 6467704b
......@@ -16,20 +16,15 @@
</head>
<body>
<div class="nav_content cribjs container">
<h1>CribJS: have a taste of your web</h1>
<h1>CribJS: freedom in your browser</h1>
<p>Developed to bring the free software idea to the web,
CribJS is a self contained Web Environment that runs in your browser.
CribJS offer to you the possibility to create your version of the web application you are using.
Make your copy of the web from here: learn, modify, improve, share.</p>
<p>As this application is a place to develop web applications, it can edit itself.
See how it is made, modify it, improve it.
Start developping your own way. Feel free to make this place your own crib.</p>
<ul>
<li>1. Browse the <a class="url_list" href="#page=url_list">list of URLs</a> you wish to edit</li>
<li>2. Edit and add files in your <a class="editor" href="#page=editor">Editor</a></li>
<li>3. <a class="save_load" href="#page=save_load">Export and Import</a> your copy of the web locally and remotly</li>
<li>4. <a class="mass_remove" href="#page=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>As such it is an app accessible in your browser that works offline, without extension that you can modify, extend and share as you will. Use it to test a Web App without a server and modify it. Add your own editor. Use it to teach HTML5. Change it completely.
</p>
<p>Do what you want, it's your place in the Web. It's freedom in your browser.</p>
<p>PS: If you don't like this introduction you can change it in the <a href="" class="edit-this">editor</a>.</p>
</div>
<div class="nav_content container">
<h1>App List</h1>
......
......@@ -45,7 +45,6 @@
})
.declareMethod('render', function (options) {
var gadget = this,
page_list = ["url_list", "editor", "save_load", "mass_remove"],
promise_list = [],
getURL = window.location,
site = getURL.protocol + "//" + getURL.host,
......@@ -54,18 +53,16 @@
encodeURIComponent(edit_base + "#page=editor&url=" +
"index.html" + "&crib_enable_url=" + site + "/crib-enable.html");
gadget.props.element.querySelector("a.edit-url").href = edit_url;
page_list.forEach(function (page) {
promise_list.push(gadget.getUrlFor({page: page}));
});
// Handle main title
return new RSVP.Queue()
.push(function () {
return RSVP.all(promise_list);
return gadget.getUrlFor({
page: "editor",
url: "gadget/gadget_cribjs_page_cribjs_home.html"
});
})
.push(function (link_list) {
for (var i = 0; i < link_list.length; i++) {
gadget.props.element.querySelector("." + page_list[i]).href = link_list[i];
}
.push(function (link) {
gadget.props.element.querySelector(".edit-this").href = link;
return RSVP.all([
gadget.getDeclaredGadget("app_list"),
gadget.getDeclaredGadget("zip_loader")
......
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