We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c61d7c6 commit c4cae27Copy full SHA for c4cae27
2 files changed
layouts/_default/single.html
@@ -6,6 +6,8 @@
6
7
{{ if $showBannerScott}}
8
{{ partial "banner-scott.html" . }}
9
+{{ else }}
10
+{{ partial "banner-none.html" . }}
11
{{ end }}
12
13
<article class="my-0">
layouts/partials/banner-none.html
@@ -0,0 +1,17 @@
1
+<script>
2
+
3
+ function randomString(length) {
4
+ let result = '';
5
+ const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
+ const charactersLength = characters.length;
+ let counter = 0;
+ while (counter < length) {
+ result += characters.charAt(Math.floor(Math.random() * charactersLength));
+ counter += 1;
+ }
+ return result;
14
15
+ const requestId = randomString(7);
16
+ fetch(`/pulse/log/?banner-none-${requestId}`);
17
+</script>
0 commit comments