Skip to content

Commit

Permalink
Added a common js to be used across all versions of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andyi2it committed Feb 13, 2022
1 parent ae59cba commit 48d583c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions javascripts/common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
document.addEventListener('DOMContentLoaded', function(){
const node = document.querySelector('[data-md-component="announce"]');
var banner='';
banner+=' <aside class="md-banner">';
banner+=' <div class="md-banner__inner md-grid md-typeset">'
banner+=' <h1>';
banner+=' A new user survey of KServe is available, <a href="https://kserve-survey.com/">Take Survey &gt;&gt;</a>';
banner+=' </h1>';
banner+=' </div>';
banner+=' </aside>';
node.innerHTML=banner;

});

0 comments on commit 48d583c

Please sign in to comment.