Skip to content

Commit

Permalink
footer implementation for docsite
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudyb committed Apr 3, 2024
1 parent bf407a8 commit 81ba73b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
5 changes: 5 additions & 0 deletions javascript/docsite/_includes/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ footer{
border-top: 1px solid #c4c5c6;
}

#cookiesManager{
cursor: pointer;
color: #485fc7;
}

.page-content {
display: flex;
flex-direction: row;
Expand Down
27 changes: 24 additions & 3 deletions javascript/docsite/_includes/page.njk
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ title: GraphRAG
console.log("onConsentChanged", categoryPreferences);
}
var siteConsent
function initialize(){
var siteConsent
var currentYear = new Date().getFullYear()
document.getElementById("copyright").innerHTML = `©️ ${currentYear} Microsoft`;
window.WcpConsent && WcpConsent.init("en-US", "cookie-banner", function (err, _siteConsent) {
if (!err) {
siteConsent = _siteConsent; //siteConsent is used to get the current consent
Expand All @@ -39,6 +42,12 @@ title: GraphRAG
}
addEventListener("DOMContentLoaded", initialize)
function manageConsent() {
if(siteConsent.isConsentRequired){
siteConsent.manageConsent();
}
}
</script>
{% endblock %}
</head>
Expand Down Expand Up @@ -125,7 +134,19 @@ title: GraphRAG
</main>
</div>
<footer>
Test
</footer>
<a href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy</a>
|
<a href="https://go.microsoft.com/fwlink/?LinkId=2259814">Consumer Health Privacy</a>
|
<span id="cookiesManager" onclick="manageConsent();">Cookies</span>
|
<a href="https://go.microsoft.com/fwlink/?LinkID=206977">Terms of Use</a>
|
<a href="https://www.microsoft.com/trademarks">Trademarks</a>
|
<a href="https://www.microsoft.com" id="copyright"></a>
|
<a href="https://github.com/microsoft/graphrag">GitHub</a>
</footer>
</body>
</html>

0 comments on commit 81ba73b

Please sign in to comment.