diff --git a/app/static/js/app.js b/app/static/js/app.js index 10eb513..0a59cea 100755 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -63,13 +63,34 @@ function generateTitle(elem) { } $(function() { - $("#tabs").tabs().addClass("ui-tabs-vertical ui-helper-clearfix"); + var index = 'ui-tabs-active'; +// Define friendly data store name +var dataStore = window.sessionStorage; +var oldIndex = 0; +// Start magic! +try { + // getter: Fetch previous value + oldIndex = dataStore.getItem(index); +} catch(e) {} + + $("#tabs").tabs({ + active: oldIndex, + activate: function(event, ui) { + // Get future value + var newIndex = ui.newTab.parent().children().index(ui.newTab); + // Set future value + try { + dataStore.setItem( index, newIndex ); + } catch(e) {} + } + }); + + $("#tabs").addClass("ui-tabs-vertical ui-helper-clearfix"); $("#tabs li").removeClass("ui-corner-top").addClass("ui-corner-left"); }); - $(".no_cover").each(function() { var string = $(this).attr('id') var randomColor = colorHash(string).rgb @@ -201,7 +222,7 @@ var btn = document.getElementById("myBtn"); // Get the element that closes the modal var span = document.getElementsByClassName("close")[0]; -// When the user clicks on the button, open the modal +// When the user clicks on the button, open the modal btn.onclick = function() { modal.style.display = "block"; } diff --git a/app/templates/about.html b/app/templates/about.html index 67aae18..67ab4db 100755 --- a/app/templates/about.html +++ b/app/templates/about.html @@ -6,13 +6,14 @@ XPPL is a project aimed at people who are studying the field of media culture, or as we like to call them: knowledge comrades.

-This digital library gathers all the books and articles floating around on the shelves of the Piet Zwart Institute, and our hard drives and memory sticks, so that they can be shared, annotated and grouped together into stacks... +This digital library gathers all the books and articles floating around on the shelves of the Piet Zwart Institute, and our hard drives and memory sticks, so that they can be shared, annotated and grouped together into stacks... Its web interface hosts a curated catalogue of books and articles, and its distributed architecture provides instances for uploading and downloading.

- Its web interface hosts a curated catalogue of books and articles, and its distributed architecture provides instances for uploading and downloading. + It starts at XPUB, but can go anywhere we want it to.

- It starts at XPUB, but can go anywhere we want it to.

+Are you interested in how this library works? Have a look at the source code in our git. +

What's the deal with the stacks?

diff --git a/app/templates/add_book.html b/app/templates/add_book.html index 9a97139..c49bd2c 100755 --- a/app/templates/add_book.html +++ b/app/templates/add_book.html @@ -36,7 +36,7 @@ function outputUpdate3(gender) {
Title:*
{{ form.title (size=50, class="form-control") }}

- Author(s):* + Author(s):* diff --git a/app/templates/add_stack.html b/app/templates/add_stack.html index c960eb3..5f9a8f0 100644 --- a/app/templates/add_stack.html +++ b/app/templates/add_stack.html @@ -22,12 +22,26 @@ {{form.hidden_tag()}}
{{ render_field(form.stack_name)}} -{{ render_field(form.stack_description)}} +
+Add a nice description: {{ form.stack_description(size=90, class="form-control") }} +
{{ render_field(form.stack_author)}} +
+ +
+
+
+

Stacks currently in the library

+ diff --git a/app/templates/home.html b/app/templates/home.html index 089c2ba..e36b2ed 100755 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -3,10 +3,10 @@ {% block main %}

XPPL

-

This is the awesome library of Experimental Publishing.
+

Welcome to our digital library.
On instance: {{server}} / From: {{client}}
-This might only be one interface to this library: +Feel free to browse our catalogue, interfaced in many different ways.

Scape diff --git a/app/templates/show_books.html b/app/templates/show_books.html index 2c2e6fb..94dba3b 100755 --- a/app/templates/show_books.html +++ b/app/templates/show_books.html @@ -66,9 +66,9 @@ {% else %}
  • - |----------|
    - |----------|
    - |----------|
    + XXXXXXXXXX
    + XXXXXXXXXX
    + XXXXXXXXXX
    {% endfor %}