Coder Social home page Coder Social logo

knafeh's People

Contributors

tyeung2017 avatar wyrd00 avatar

Watchers

 avatar  avatar  avatar  avatar

knafeh's Issues

background is too plain.

Background of the app seems quite boring to me. Maybe add a nice image? possibly using another api call?

change class name for flag image

flag is no longer a background image so change class name to something more appropriate ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡ญ๐Ÿ‡ฐ ๐Ÿ‡ฎ๐Ÿ‡ฑ

Code Commenting

Perhaps some lines / functions could have been commented for instance:

storySummary.innerText = result.fields.bodyText.split('. ').slice(0, 4).join('. ');

refactor api.js

lots of code in api.js not very readable
split into separate functions/files

style

start styling the app
mobile first design/responsive

Old News

Your API's should bring the last updated News, not old ones, there are many old News and as a visitor to Israel I want to be able to read the latest Israeli news

Dom manipulation functions

There's two files with dom manipulation in them - updateContent and createTemplate. I can see the reason for splitting them across files, but seeing as they are all dom manipulation, I would think about having them in the same file, or giving them both similar names - createDomElements, updateDomElements

Could maybe have used a parallel function...

Only using two calls so maybe not 100% necessary but you could have done a function like we did in the workshop. Both calls would pass their results to an array which would then be used in one final callback, which would render both the stories and the flags at the same time.

specify image dimensions

A width and height should be specified for all images in order to speed up page display. check Audits.

What are the results ordered by?

I thought newest but then UK election result is top for UK - so I guess relevance or something? Was this a conscious decision or the default?

Positioning in menu

The flag looks pretty cool but it is not positioned inline with the option menu.

On my screen the option bar slightly bigger and pushed further up than the flag.

create new div

create new div so flag doesn't append to the dropdown menu

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.