diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2022-12-09 20:18:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 20:18:51 +0200 |
commit | efb6fe7616123ed35aa2daf9359cafa5b4e575fb (patch) | |
tree | 729b1fbe505305a9657b4dd0e4e5b0c9c9194f06 /docs/src | |
parent | f7691fe539375e2344babcc6d285de6256006fe0 (diff) | |
download | dokka-efb6fe7616123ed35aa2daf9359cafa5b4e575fb.tar.gz dokka-efb6fe7616123ed35aa2daf9359cafa5b4e575fb.tar.bz2 dokka-efb6fe7616123ed35aa2daf9359cafa5b4e575fb.zip |
Add survey banner (#2768)
Diffstat (limited to 'docs/src')
-rw-r--r-- | docs/src/doc/docs/survey_banner.js | 8 | ||||
-rw-r--r-- | docs/src/doc/mkdocs.yml | 2 |
2 files changed, 10 insertions, 0 deletions
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 |