diff --git a/src/lib/EasterEgg.svelte b/src/lib/EasterEgg.svelte new file mode 100644 index 0000000..140af1c --- /dev/null +++ b/src/lib/EasterEgg.svelte @@ -0,0 +1,83 @@ + + +
+

You found the easter egg!

+ + +
+ Auto rotate + {#each [`x`, `y`, `both`, `none`] as value} + {@const checked = value === `none`} + + {/each} +
+ +
+ + diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 23e3ae7..f7c9a6a 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -2,10 +2,14 @@ import Select from 'svelte-multiselect' import '../app.css' import { heatmap_labels } from '../labels' + import EasterEgg from '../lib/EasterEgg.svelte' import PeriodicTable from '../lib/PeriodicTable.svelte' import { heatmap } from '../stores' let windowWidth: number + let x_angle = 0 + let y_angle = 0 + let auto_rotate: 'x' | 'y' | 'both' | 'none' = `none` @@ -20,7 +24,14 @@ placeholder="Select a heat map" /> - 1000} /> +
+ 1000} /> +
+ +