Skip to content

Commit 48d583c

Browse files
committed
Added a common js to be used across all versions of docs
1 parent ae59cba commit 48d583c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

javascripts/common.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
document.addEventListener('DOMContentLoaded', function(){
2+
const node = document.querySelector('[data-md-component="announce"]');
3+
var banner='';
4+
banner+=' <aside class="md-banner">';
5+
banner+=' <div class="md-banner__inner md-grid md-typeset">'
6+
banner+=' <h1>';
7+
banner+=' A new user survey of KServe is available, <a href="https://kserve-survey.com/">Take Survey &gt;&gt;</a>';
8+
banner+=' </h1>';
9+
banner+=' </div>';
10+
banner+=' </aside>';
11+
node.innerHTML=banner;
12+
13+
});

0 commit comments

Comments
 (0)