From efb6fe7616123ed35aa2daf9359cafa5b4e575fb Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Fri, 9 Dec 2022 20:18:51 +0200 Subject: Add survey banner (#2768) --- docs/src/doc/docs/survey_banner.js | 8 ++++++++ docs/src/doc/mkdocs.yml | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 docs/src/doc/docs/survey_banner.js (limited to 'docs/src') diff --git a/docs/src/doc/docs/survey_banner.js b/docs/src/doc/docs/survey_banner.js new file mode 100644 index 00000000..536ea34e --- /dev/null +++ b/docs/src/doc/docs/survey_banner.js @@ -0,0 +1,8 @@ +window.addEventListener('load', () => { + const appended = document.createElement("a") + appended.style = "display: block;text-decoration: none !important;color: #E8F0FE !important;font-family: Inter, Arial, sans-serif !important;font-size: 18px;font-weight: 500;line-height: 24px;padding: 6px 0;position: relative;text-align: center;background-color: #7F52FF;z-index: 5000000;" + appended.href = "https://surveys.jetbrains.com/s3/dokka-survey" + appended.innerText = "Take part in Dokka devX survey. It helps us a lot, and gives you a chance to win a prize! -->" + document.body.prepend(appended) + window.scrollTo(0, 0); +}) \ No newline at end of file diff --git a/docs/src/doc/mkdocs.yml b/docs/src/doc/mkdocs.yml index d8aba618..9e101c00 100644 --- a/docs/src/doc/mkdocs.yml +++ b/docs/src/doc/mkdocs.yml @@ -95,3 +95,5 @@ nav: extra_css: - dokka_colors.css +extra_javascript: + - survey_banner.js \ No newline at end of file -- cgit