From 7ec394ca7a84760f618ec012bc5c21b9ca6b6c68 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 11 Apr 2022 10:37:00 -0700 Subject: [PATCH] Link right clicking our logo to brand design guide lines (#22347) --- source/_includes/javascripts/scripts.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_includes/javascripts/scripts.html b/source/_includes/javascripts/scripts.html index 11175b4acd0..b99383fe56d 100644 --- a/source/_includes/javascripts/scripts.html +++ b/source/_includes/javascripts/scripts.html @@ -17,6 +17,10 @@ docsearch({ debug: false // Set debug to true if you want to inspect the dropdown }); +document.querySelector('.site-title').addEventListener('contextmenu', function(ev) { + ev.preventDefault(); + document.location.assign("https://design.home-assistant.io/#brand/logo") +}); document.querySelector('.search .close').addEventListener('click', function(ev) { ev.preventDefault(); document.querySelector('.search-container').style.display = 'none';