From: Vincent Vanwaelscappel Date: Thu, 22 Jun 2017 16:45:05 +0000 (+0200) Subject: wip #1488 @0:30 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9f85695081c526f722526954a55e52e01e885466;p=fluidbook-html5.git wip #1488 @0:30 --- 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 {