From ef8903214b051c36ecef8bce84c0cb4411319f18 Mon Sep 17 00:00:00 2001 From: "risc ()" Date: Thu, 28 Apr 2022 16:17:04 +0200 Subject: [PATCH] adjusted main.js --- themes/c8ydocs/static/js/main.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/themes/c8ydocs/static/js/main.js b/themes/c8ydocs/static/js/main.js index fcf1ba583d..2b32f042d9 100644 --- a/themes/c8ydocs/static/js/main.js +++ b/themes/c8ydocs/static/js/main.js @@ -56,6 +56,22 @@ var main = (function ($) { if (vs.indexOf(v) < 0) { active = true; $('#current-dropdown-version-toggle').text('Release ' + v); + + $('.dropdown.version').hide(); + + offset = 45; + + $('
', { + id: 'deprecation-banner', + style: 'position: fixed; top: 0; left: 0; width: 100%; background-color: #ff9301; height: ' + offset + 'px; padding: 10px 5px 5px 5px; z-index: 50;' + }).prependTo('body'); + + backURL = prefix + suffix; + + $('

This documentation refers to a Cumulocity IoT release that is no longer maintained (version ' + v + '). Click here to switch to the latest version.

').appendTo('#deprecation-banner'); + + $('.main-top-bar').css('top', offset); + $('.main-nav.navbar').css('top', offset); } if (!active) {