DOCS Update banner config for 2024 (#22920)
Port from https://github.com/openvinotoolkit/openvino/pull/22916
This commit is contained in:
parent
7b2bfbfb80
commit
73a8c2e8ba
|
|
@ -1,6 +1,6 @@
|
|||
var cookieVersion = 0;
|
||||
window.onload = (e) => {
|
||||
fetch('/build/docs/_build/_static/html/banner_data.json').then((data) => {
|
||||
fetch('_static/html/banner_data.json').then((data) => {
|
||||
data.json().then((item) => {
|
||||
if(item != null && item.p != "" && item.version != "" && item.style != "" ) {
|
||||
cookieVersion = item.version;
|
||||
|
|
|
|||
|
|
@ -4,13 +4,7 @@
|
|||
{%- block content %}
|
||||
{% block docs_navbar %}
|
||||
{{ super() }}
|
||||
<div id="info-banner" class="transition-banner">
|
||||
<p>OpenVINO 2022.1 has introduced OpenVINO API 2.0. For more information on transition steps from the previous API, see the <a href="https://docs.openvino.ai/latest/openvino_2_0_transition_guide.html">transition guide</a></p>
|
||||
<button type="button" class="close-banner" onclick="closeTransitionBanner()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<script src="{{ pathto('_static/js/hide_banner.js', 1) }}"></script>
|
||||
{% include 'baner.html' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue