diff --git a/src/routes/scorecard/Scorecard.svelte b/src/routes/scorecard/Scorecard.svelte index f4ccc774..ba770d1e 100644 --- a/src/routes/scorecard/Scorecard.svelte +++ b/src/routes/scorecard/Scorecard.svelte @@ -1,4 +1,5 @@ - + diff --git a/src/routes/scorecard/TableCell.svelte b/src/routes/scorecard/TableCell.svelte index fe0878cb..284d7581 100644 --- a/src/routes/scorecard/TableCell.svelte +++ b/src/routes/scorecard/TableCell.svelte @@ -20,14 +20,24 @@ } } } + + function maybeShowTooltip() { + if (!showExplanation) { + showTooltip = true + } + } + + function handleClick() { + !showExplanation && (showExplanation = !showExplanation) + }
(showTooltip = true)} + on:mouseover={maybeShowTooltip} on:mouseout={() => (showTooltip = false)} - on:focus={() => (showTooltip = true)} + on:focus={maybeShowTooltip} on:blur={() => (showTooltip = false)} - on:click={() => (showExplanation = !showExplanation)} + on:click={handleClick} class={showExplanation ? '' : 'enable-tooltips'} > {#if title !== undefined} diff --git a/src/routes/scorecard/companies.ts b/src/routes/scorecard/companies.ts index 26057f33..f5a2de87 100644 --- a/src/routes/scorecard/companies.ts +++ b/src/routes/scorecard/companies.ts @@ -62,7 +62,7 @@ const companiesSource: Company[] = [ explanation: // https://corporateeurope.org/en/2023/11/byte-byte 'Microsoft has lobbied to shift the burden of responsibility onto users of AI instead of the ones building the AI.', - score: 3 + score: 2 }, deployment: { explanation: @@ -111,7 +111,7 @@ const companiesSource: Company[] = [ // https://pitchbook.com/news/articles/generative-AI-Capitol-Hill-VC explanation: "Anthropic has spent (a little) money lobbying, but it's unclear what they are pushing for.", - score: 7 + score: 5 }, deployment: { explanation: @@ -135,7 +135,7 @@ const companiesSource: Company[] = [ }, lobby: { explanation: 'No lobbying as far as we know of yet.', - score: 7 + score: 5 }, deployment: { explanation: 'Not sure tbd',