benchmark legal, snippet margin bottom (#10886)
This commit is contained in:
parent
dd076264eb
commit
2940db0fb1
24
docs/_static/css/custom.css
vendored
24
docs/_static/css/custom.css
vendored
@ -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;
|
||||
}
|
||||
|
9
docs/_static/js/custom.js
vendored
9
docs/_static/js/custom.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user