Files
docs/doc/source/_static/js/hw.js
Ron Stone 9b2ae6fc20 Prep Sphinx for r7
Add Release 7 to Version switch drop-down.
September 7th the Stx 7.0 GA Release. Merging this review to enable the drop-down

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I707d87ed5714cc1992553ab85d83bb7387566b22
2022-09-07 15:40:11 +00:00

29 lines
1.3 KiB
JavaScript

var path = window. location. pathname;
var page = path. split("/"). pop();
console. log( page );
if (page === 'verified-commercial-hardware.html') {
// Menu
document.getElementById('block-headersolutions').style.display = 'none';
// Graphic
document.querySelector('.content hero').style.display = 'none';
// Hardware ready program block
document.querySelector('.content section padding-30 no-pdb').style.display = 'none';
// Footer
document.querySelector('.content footer').style.display = 'none';
// Cookie policy
document.getElementById('teconsent').style.display = 'none';
// Strings
document.body.innerHTML = document.body.innerHTML.replace(/Studio Cloud Version/g, 'StarlingX Version');
document.body.innerHTML = document.body.innerHTML.replace(/21.05/g, '5.0');
document.body.innerHTML = document.body.innerHTML.replace(/21.12/g, '6.0');
document.body.innerHTML = document.body.innerHTML.replace(/22.06/g, '7.0');
document.body.innerHTML = document.body.innerHTML.replace(/WRCP 22.06/g, 'StarlingX 7.0');
document.body.innerHTML = document.body.innerHTML.replace(/WRCP 21.12/g, 'StarlingX 6.0');
document.body.innerHTML = document.body.innerHTML.replace(/WRCP 21.05/g, 'StarlingX 5.0');
document.body.innerHTML = document.body.innerHTML.replace(/Patch \d+/g, '');
}