Skip to content

Commit

Permalink
Merge pull request #17 from rtCamp/feature/removing-duplicated-footer…
Browse files Browse the repository at this point in the history
…-from-iframes

Removing duplicated footer from iframes
  • Loading branch information
fellyph committed Jan 22, 2024
2 parents 78b9176 + 89a5c9d commit 6011d98
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/common/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<footer class="mt-auto text-center p-2 text-xs bg-white rounded-lg m-4 container-lg">

<footer class="main-footer mt-auto text-center p-2 text-xs bg-white rounded-lg m-4 container-lg">
This project is part of the Privacy Sandbox Analysis Tool. To learn more, visit our <a href="https://github.com/GoogleChromeLabs/ps-analysis-tool/wiki" class="text-blue-600 hover:underline" target="_blank" rel="noopener">Wiki Page</a>.
</footer>
<script>
const mainFooter = document.querySelector('.main-footer');
const isIframe = window.self !== window.top;
if (mainFooter && isIframe) {
mainFooter.remove();
}
</script>
</body>
</html>

0 comments on commit 6011d98

Please sign in to comment.