Skip to content

Commit e62a941

Browse files
author
risc ()
committed
deprecation banner for 10.6.6
1 parent edb3f50 commit e62a941

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

themes/c8ydocs/static/js/main.js

+16
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)