From 0bb04689b5a5ea2116bd0d6185050c9149b5d762 Mon Sep 17 00:00:00 2001 From: kjj6198 Date: Wed, 18 Nov 2020 02:09:24 +0900 Subject: [PATCH] adjust styling and data --- README.md | 30 +------------------------ src/App.svelte | 6 ----- src/MapTooltip.svelte | 47 ++++++++++++++++++++++++++++++---------- src/RankingTable.svelte | 1 + src/SexualCaseMap.svelte | 40 ++++++++++++++++++++++++++++++---- src/YearSwitch.svelte | 7 +++--- src/api/fetch.js | 0 7 files changed, 78 insertions(+), 53 deletions(-) create mode 100644 src/api/fetch.js diff --git a/README.md b/README.md index a30e213..38cc64e 100644 --- a/README.md +++ b/README.md @@ -1,29 +1 @@ -# New Project - -> ✨ Bootstrapped with Create Snowpack App (CSA). - -## Available Scripts - -### npm start - -Runs the app in the development mode. -Open http://localhost:8080 to view it in the browser. - -The page will reload if you make edits. -You will also see any lint errors in the console. - -### npm test - -Launches the test runner in the interactive watch mode. -See the section about running tests for more information. - -### npm run build - -Builds a static copy of your site to the `build/` folder. -Your app is ready to be deployed! - -**For the best production performance:** Add a build bundler plugin like [@snowpack/plugin-webpack](https://github.com/snowpackjs/snowpack/tree/master/plugins/plugin-webpack) or [snowpack-plugin-rollup-bundle](https://github.com/ParamagicDev/snowpack-plugin-rollup-bundle) to your `snowpack.config.json` config file. - -### Q: What about Eject? - -No eject needed! Snowpack guarantees zero lock-in, and CSA strives for the same. +## 台灣性侵害資料統計 diff --git a/src/App.svelte b/src/App.svelte index f3a2608..00daae5 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -7,12 +7,6 @@
@@ -57,6 +82,13 @@ {/each}
+
+ {#each scaleLabel as label, idx (label[0])} + + {#if idx % 3 === 0} {label[0]} {/if} + + {/each} +
{#key currentYear} -
+
-
+ diff --git a/src/api/fetch.js b/src/api/fetch.js new file mode 100644 index 0000000..e69de29