Skip to content

Commit 8f229ba

Browse files
authored
Merge pull request #378 from SoftwareAG/add-deprecation-banner-to-10.7.0
deprecation banner for 10.7.0
2 parents 73b726d + ef89032 commit 8f229ba

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

themes/c8ydocs/static/js/main.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,22 @@ var main = (function ($) {
5656
if (vs.indexOf(v) < 0) {
5757
active = true;
5858
$('#current-dropdown-version-toggle').text('Release ' + v);
59+
60+
$('.dropdown.version').hide();
61+
62+
offset = 45;
63+
64+
$('<div/>', {
65+
id: 'deprecation-banner',
66+
style: 'position: fixed; top: 0; left: 0; width: 100%; background-color: #ff9301; height: ' + offset + 'px; padding: 10px 5px 5px 5px; z-index: 50;'
67+
}).prependTo('body');
68+
69+
backURL = prefix + suffix;
70+
71+
$('<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');
72+
73+
$('.main-top-bar').css('top', offset);
74+
$('.main-nav.navbar').css('top', offset);
5975
}
6076

6177
if (!active) {

0 commit comments

Comments
 (0)