From 60519910deab61830aa75b00843f236d29a6ffee Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 31 May 2023 17:54:54 +0200 Subject: [PATCH] cursors --- Website/interaction.js | 10 ++++++++++ Website/style.css | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/Website/interaction.js b/Website/interaction.js index 25d4c96..a5b9a35 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -79,6 +79,11 @@ function NewSearch(){ selectRecurrence.disabled = true; connectorSelect.disabled = true; searchPublicationQuery.disabled = true; + //Waitcursor + document.body.style.cursor = "wait"; + selectRecurrence.style.cursor = "wait"; + connectorSelect.style.cursor = "wait"; + searchPublicationQuery.style.cursor = "wait"; //Empty previous results selectPublication.replaceChildren(); @@ -97,6 +102,11 @@ function NewSearch(){ selectRecurrence.disabled = false; connectorSelect.disabled = false; searchPublicationQuery.disabled = false; + //Cursor + document.body.style.cursor = "initial"; + selectRecurrence.style.cursor = "initial"; + connectorSelect.style.cursor = "initial"; + searchPublicationQuery.style.cursor = "initial"; }); } diff --git a/Website/style.css b/Website/style.css index 51216a1..4a4c25d 100644 --- a/Website/style.css +++ b/Website/style.css @@ -53,6 +53,7 @@ titlebox { } titlebox span{ + cursor: default; font-size: 24pt; font-weight: bold; background: linear-gradient(150deg, var(--primary-color), var(--accent-color)); @@ -64,6 +65,7 @@ titlebox span{ titlebox img { height: 100%; margin-right: 10px; + cursor: grab; } spacer{ @@ -119,6 +121,7 @@ footer > div { flex-direction: row; flex-wrap: nowrap; align-items: center; + cursor: pointer; } footer > div > *{ @@ -130,6 +133,7 @@ footer > div > *{ flex-grow: 1; text-align: right; margin-right: 20px; + cursor: url("media/blahaj.png"), grab; } content { @@ -459,6 +463,7 @@ publication-viewer publication-information publication-interactions { publication-viewer publication-information publication-interactions > * { margin: 0 10px; font-size: 16pt; + cursor: pointer; } publication-viewer publication-information publication-interactions publication-starttask {