From 9f85695081c526f722526954a55e52e01e885466 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 22 Jun 2017 18:45:05 +0200 Subject: [PATCH] wip #1488 @0:30 --- js/libs/fluidbook/fluidbook.utils.js | 8 +++++++- style/fluidbook.less | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/js/libs/fluidbook/fluidbook.utils.js b/js/libs/fluidbook/fluidbook.utils.js index f02f3bf5..6607d2cd 100644 --- a/js/libs/fluidbook/fluidbook.utils.js +++ b/js/libs/fluidbook/fluidbook.utils.js @@ -74,4 +74,10 @@ function blur() { tmp.focus(); document.body.removeChild(tmp); } -} \ No newline at end of file +} + +Array.prototype.diff = function (a) { + return this.filter(function (i) { + return a.indexOf(i) < 0; + }); +}; \ No newline at end of file diff --git a/style/fluidbook.less b/style/fluidbook.less index c45f311b..00eef700 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -534,6 +534,9 @@ header { #nav > a { vertical-align: top; display: inline-block; + &.hidden { + display: none; + } } #nav a { -- 2.39.5