GithubHelp home page GithubHelp logo

egx-titling's People

Contributors

craigymunro avatar fayebutler avatar georginamc avatar samjhayes avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mrmonkington

egx-titling's Issues

Throw exception if `setDay()` parameter is not recognised

At the moment, passing in an invalid day to setDay() does not throw an exception. It will, however, error when you try to call a function like upNext() and it can't find a start time for the day:

setDay('mahergenflergen');
undefined
upNext();
slides.html:808 Uncaught TypeError: Cannot read property 'timestart' of undefined
    at getCountdown (slides.html:808)
    at updateCountdown (slides.html:796)
    at startCountdown (slides.html:789)
    at upNext (slides.html:347)
    at <anonymous>:1:1

This should error as soon as possible so the user knows exactly what they have done wrong and how to rectify it

Review names of `lowerLeft()` and `lowerRight()`

I'm not sure about the names of these functions as, unlike all the other functions, these don't do much to explain what will appear on the screen.

It would be nice to have semantic names for these (like the others) rather than ones that refer to the placement, as lowerLeft() actually shows a description of what's showing so maybe nowShowing() would be better? lowerRight() shows what's up next so maybe upNextSmall() or something like that?

Not saying we should settle on those names but I think it makes sense to have that kind of consistency across the function names.

Reverse double negatives in function parameters

Some of the functions have negative parameters, like no_countdown, which makes calling the functions confusing - if I want a countdown, should I pass it true as in 'yes that's true i want no countdown', or false as in 'false, no i don't want want a countdown'. I think it makes way more sense for the parameter to be called show_countdown and pass it true if you want it, and false if you don't

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.