benchmark legal, snippet margin bottom (#10886)

This commit is contained in:
Nikolay Tyukaev 2022-03-11 11:10:11 +03:00 committed by GitHub
parent dd076264eb
commit 2940db0fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -49,7 +49,31 @@ main img {
background-image: url('media/union-up.svg');
}
div.highlight {
margin-bottom: 1.15rem;
}
.highlight .err {
border:none;
color:inherit;
}
.opt-notice-wrapper {
position: fixed;
bottom:0;
background: black;
width:100%;
text-align: center;
padding: 1rem;
z-index: 1000;
}
.opt-notice {
margin-bottom: 0;
position: absolute;
top: 50%;
transform: translateY(-50%);
text-align: center;
width:100%;
color: #fff;
}

View File

@ -25,6 +25,14 @@ var wapSection = 'openvinotoolkit';
s.appendChild(po);
})();
// legal notice for benchmarks
function addLegalNotice() {
if (window.location.href.indexOf('openvino_docs_performance_') !== -1) {
var legalNotice = $('<div class="opt-notice-wrapper"><p class="opt-notice">Results may vary. For workloads and configurations visit: <a href="https://www.intel.com/PerformanceIndex">www.intel.com/PerformanceIndex</a> and <a class="el" href="openvino_docs_Legal_Information.html">Legal Information</a>. </p></div>');
$('body').append(legalNotice);
}
}
$(document).ready(function () {
createVersions();
updateTitleTag();
@ -36,6 +44,7 @@ $(document).ready(function () {
if (TABLE_SORT) {
addTableSort();
}
addLegalNotice();
});
// Determine where we'd go if clicking on a version selector option