Skip to content

Commit

Permalink
update cookies manager (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudyb authored Apr 4, 2024
1 parent f3e952e commit 072d8a9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docsite/_includes/page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ title: GraphRAG
}
addEventListener("DOMContentLoaded", initialize)
addEventListener("DOMContentLoaded", checkCookieManager)
function checkCookieManager(){
if(siteConsent.isConsentRequired){
document.getElementById("cookiesManager").style.display = 'block';
document.getElementById("divider").style.display = 'block';
}
else{
document.getElementById("cookiesManager").style.display = 'none';
document.getElementById("divider").style.display = 'none';
}
}
function manageConsent() {
if(siteConsent.isConsentRequired){
Expand Down Expand Up @@ -141,7 +153,7 @@ title: GraphRAG
<a href="https://go.microsoft.com/fwlink/?LinkId=2259814">Consumer Health Privacy</a>
|
<span id="cookiesManager" onClick="manageConsent();">Cookies</span>
|
<span id="divider">|</span>
<a href="https://go.microsoft.com/fwlink/?LinkID=206977">Terms of Use</a>
|
<a href="https://www.microsoft.com/trademarks">Trademarks</a>
Expand Down

0 comments on commit 072d8a9

Please sign in to comment.