Skip to content

Commit

Permalink
Merge pull request #378 from SoftwareAG/add-deprecation-banner-to-10.7.0
Browse files Browse the repository at this point in the history
deprecation banner for 10.7.0
  • Loading branch information
rssag authored May 4, 2022
2 parents 73b726d + ef89032 commit 8f229ba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions themes/c8ydocs/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

$('<div/>', {
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;

$('<p style="text-align: center; vertical-align: center;">This documentation refers to a Cumulocity IoT release that is no longer maintained (version ' + v + '). Click <a href="' + backURL + '">here</a> to switch to the latest version.</p>').appendTo('#deprecation-banner');

$('.main-top-bar').css('top', offset);
$('.main-nav.navbar').css('top', offset);
}

if (!active) {
Expand Down

0 comments on commit 8f229ba

Please sign in to comment.