From d69ffa2cd3bba2c66746ae001d04d17d570c83e1 Mon Sep 17 00:00:00 2001 From: Stephanie Hays Date: Thu, 9 Jun 2022 20:57:05 -0500 Subject: [PATCH 1/2] (#195) Set Cookie on Mobile for Cookie Banner Recently a handful of JavaScript functions were rewritten to remove jQuery. In the process, the script that controlled setting of the cookie when a user clicks the "I accept" button in the cookie banner broke. It has been adjusted slightly to take into account multiple buttons, which allows the cookie to be set on both desktop and mobile. --- js/chocolatey-alerts.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/js/chocolatey-alerts.js b/js/chocolatey-alerts.js index 061c0181..097cb6b4 100644 --- a/js/chocolatey-alerts.js +++ b/js/chocolatey-alerts.js @@ -27,12 +27,14 @@ cookieNoticeAlert.classList.remove('d-none'); } - cookieNoticeAlert.querySelector('button').addEventListener('click', function() { - if (~location.hostname.indexOf('chocolatey.org')) { - document.cookie = cookieNoticeName + '=true; ' + setCookieExpirationNever() + 'path=/; domain=chocolatey.org;'; - } else { - document.cookie = cookieNoticeName + '=true;' + setCookieExpirationNever() + 'path=/;'; - } - }, false); + cookieNoticeAlert.querySelectorAll('button').forEach(function (el) { + el.addEventListener('click', function() { + if (~location.hostname.indexOf('chocolatey.org')) { + document.cookie = cookieNoticeName + '=true; ' + setCookieExpirationNever() + 'path=/; domain=chocolatey.org;'; + } else { + document.cookie = cookieNoticeName + '=true;' + setCookieExpirationNever() + 'path=/;'; + } + }, false); + }); } })(); \ No newline at end of file From 1acfe172cbd90edff44ecdb5ca6d10a2ec690904 Mon Sep 17 00:00:00 2001 From: Stephanie Hays Date: Thu, 9 Jun 2022 20:57:38 -0500 Subject: [PATCH 2/2] (events) Update Right Side Flyout This updates the right side flyout to remove the Add to Calendar buttons from events that are over. --- partials/CollapsingRightSidebarContent.txt | 61 +++++----------------- 1 file changed, 14 insertions(+), 47 deletions(-) diff --git a/partials/CollapsingRightSidebarContent.txt b/partials/CollapsingRightSidebarContent.txt index 03f59dc2..174cf30a 100644 --- a/partials/CollapsingRightSidebarContent.txt +++ b/partials/CollapsingRightSidebarContent.txt @@ -36,41 +36,6 @@
-
- - Chocolatey For Business. In Azure. In One Click. - -

-

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

-
-
- -
- Follow on Twitch -
-
-
-
- - Webinar: Chocolatey Deployments - Easily Orchestrate Amazing Things! - -

Webinar Replay from
Tuesday, 23 June 2020

-

Chocolatey Central Management now includes the premiere feature of managing endpoints through a Chocolatey-centered solution aka Deployments. We are excited to share what Deployments is all about!

- Learn More - Watch On-Demand + Watch On-Demand
@@ -179,7 +134,19 @@

Twitch Stream from
Thursday, 5 May 2022

The Chocolatey Community is close to the hearts of many of the Chocolatey Team. Join Gary, Kim, and Paul if you want to find out more about it, what we do, and how you can get involved.

+
+
+
+ + Chocolatey For Business. In Azure. In One Click. + +

Twitch Stream from
Thursday, 9 June 2022

+

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

+