Coder Social home page Coder Social logo

kristjanmik / kjosturett-web Goto Github PK

View Code? Open in Web Editor NEW
22.0 12.0 18.0 447.01 MB

One stop for Parliament elections in Iceland - http://kjosturett.is

Home Page: http://kjosturett.is

License: Other

JavaScript 83.56% CSS 0.39% Shell 0.17% Python 0.26% Dockerfile 0.11% SCSS 15.51%

kjosturett-web's Issues

Parties' replies displayed above each question

Ég veit að það er nú ekki langt í kosningar en ég var að taka kosningaprófið og langaði svo mikið til að sjá svör flokkanna við hverja spurningu í kosningaprófinu. Hvað finnst ykkur? Þá gætu svör flokkana verið falin þar til notandinn hefur svarað spurningunni. Þetta getur verið praktískt ef manni finnst einhver ákveðin málefni mikilvæg og maður vill bera sitt svar við svar allra flokkana.

Ein hugmynd að útfærslu:
Lista lógó flokkanna fyrir ofan svarmöguleikana, og mögulega hægt að hovera yfir lógó til að fá fullt nafn flokksins:
Artboard

Ef þið eruð til í þetta þá gæti ég útfært þetta fljótlega

Voting test work

We are officially working on a voting test. The plan has been laid out and we will have to crunch really hard to make this work in time. The plan is to launch this Monday, and by then we need all the replies from the parties as well as do all the coding work.

Me, @rthor and @thorsteinsson have started doing work on this, any more takers?

Why is computing scores uing 0.8 and -0.8 and not 0.5 and -0.5

In this code which computes a match % based on your answers, partial support and partial objection answers are mapped to 0.8 and -0.8, instead to what I would find more intuitive 0.5 and -0.5:

https://github.com/kristjanmik/kjosturett-web/blob/master/src/process-replies.js

Why is this? The original code this is based on (https://gist.github.com/borgar/5b59dc2d70d1a93bdce5e4fb15ec7d71#file-matchranking-js) has 0.5 and -0.5. The commit which made this change is not very descriptive: 3c9731b

cc @sraka1 @rthor

Process candidate images

We've got a few hundred images of candidates that we need to crop into 500x500px face images. Does anyone want to take this task? I'm guessing there's an easy solution that won't require manually cropping each image.

The original images should not be changed, we should rather output a new version into /data/candidates-processed/*.

Task includes:

  • Crop image, center around face.
  • Resize to 500x500px.
  • Optimize file size.

Kosningar 2021

Nú fer að styttast í kosningarnar og ekki seinna vænna en að keyra verkefnið í gang aftur. Það eru spennandi sex vikur framundan og ekki hika við að taka þátt í uppbyggingunni!

Error when building the project

when I run: npm run build-data I get this error:

(async () => {
^

SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)

Display map & opening hours for absentees voting abroad

Display location map of (kjörstaðir) embassies and consulates all over the world and the opening hours of each one of them. Useful for voters that are traveling.

Also add this feature to the "Hvar á ég að kjósa" feature, so depending on where you have permanent residence (lögheimili) you will have a map of those polling stations (kjörstaðir) close to you and the opening hours of them - in order to choose where to go if you live in the middle between two of them.

The only problem is that we need an easy access to this data. I'm waiting for a response from Home Office (Innanríkisráðuneytið).

Kosningaspá based on most important topics

We could have a test where you select 3 of your most important topics. We could then show the parties that support that topic based on the questions we asked them.
This idea is based on a conversation I had with a friend:

eina hugmyndin sem ég var með var að snúa þessum "match making" gaur á haus
og hætta að spyrja um skoðanir og skoða frekar aðstöðu
ég á við: að gera yngra fólki mögulegt að raða upp það sem skiptir máli fyrir þau, short term, til að fá að sjá hverjir standa vörð um þá hagsmuni
svona: "ef þú átt ekki bíl þá má þér barra standa á sama um bílamál"
og ef þú ert í skóla þá þarf að standa vör um hann
hljómar súper einfalt en þá eru hugsnónir og dýpri skoðanir teknar í burtu

Autoscroll þegar málefni/flokkur er valinn

Þegar ég reyni að vafra um síðuna og skoða flokka og málefni þá lendi ég í rosalega óþægilegu scrolli (kippist efst á síðuna og smooth scrollar niður til baka á réttan stað) alltaf þegar ég opna nýtt „accordion“ eða section eða hvað sem við viljum kalla það.

Screen Capture on 2021-08-23 at 21-31-51

  • Google Chrome Version 92.0.4515.159 (Official Build) (arm64)
  • macOS 11.4 – macbook pro 13" M1

Fonts are very thin on Safari on Mac OS if Roboto Thin is installed

Steps to reproduce:

  1. Use MacOS
  2. Install the Roboto Thin font: https://fonts.google.com/specimen/Roboto?selection.family=Roboto:100
  3. Open a page with <p> elements (for example https://kjosturett.is/flokkur/vinstri-graen) in the default browser, Safari

What happens:
Body text renders very thin, making it hard to read (see screenshot)

What should happen:
Body text should have the same legibility on all platforms, whether the font is already installed or not

screen shot 2017-10-18 at 19 40 48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.