parent
4afd8667cf
commit
100fff83bf
8
docs/_static/js/custom.js
vendored
8
docs/_static/js/custom.js
vendored
@ -27,6 +27,7 @@ var wapSection = 'openvinotoolkit';
|
||||
|
||||
$(document).ready(function () {
|
||||
createVersions();
|
||||
updateTitleTag();
|
||||
init_col_sections();
|
||||
init_switchers();
|
||||
handleSwitcherParam();
|
||||
@ -44,6 +45,13 @@ function getPageUrlWithVersion(version) {
|
||||
return encodeURI(newURL);
|
||||
}
|
||||
|
||||
function updateTitleTag() {
|
||||
var title = $('title');
|
||||
var currentVersion = getCurrentVersion();
|
||||
var newTitle = (title.text() + ' — Version(' + currentVersion + ')').replace(/\s+/g, ' ').trim();
|
||||
title.text(newTitle);
|
||||
}
|
||||
|
||||
function getCurrentVersion() {
|
||||
var protocol = window.location.protocol + "//";
|
||||
var index = window.location.href.indexOf(protocol);
|
||||
|
Loading…
Reference in New Issue
Block a user