Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Referees 2018/table styling #36

Open
wants to merge 11 commits into
base: gh-pages
Choose a base branch
from
Open

Referees 2018/table styling #36

wants to merge 11 commits into from

Conversation

itamargreen
Copy link

new styling for table.

@@ -40,19 +44,52 @@ displaySystem.registerModule({
function addSprite(config) {
let sprite = document.createElement('div');
sprite.className = 'sprite';
sprite.innerHTML = config.html || '';
var imageServer = "http://".concat(window.location.hostname).concat(":1395/");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is far too specific (hardcoded ports). Just use a full url in the config

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, don't use concat, use string templates or the "+" combinator

var imgSrc = imageServer.concat(config.alias);


var img = document.createElement('img');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea of sprites is that they can take generic html. This is far too specific around images

}
function setText(configText) {
texts.forEach(removeSprite);
addTextsToArray(configText);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function does not exist

@rikkertkoppes
Copy link
Member

I really like the effort put into proper formatting, however, as they are interspersed with actual functional commits, it makes them very hard to review.

Instead, please supply formatting updates as a separate pull request. Make it explicit in the commits and the pr that there are no functional changes and the update is just about formatting

config.js Outdated
],
timer: 10000,
lines: 8
},
'css': {
href: [
'themes/rednblue-plus/rednblue-plus.css',
'themes/fll/flltable.css',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

config.js Outdated
textAlign: 'center',
color: 'rgba(255,255,255,0.5)',
html: 'FIRST LEGO League'
side: 'top',
Copy link
Member

@rikkertkoppes rikkertkoppes Aug 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are too specific for one tournament, I'd like to keep the default configuration lightweight and ready-to-go

@@ -0,0 +1,489 @@
@import url('fonts/benchnine/benchnine.css');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not work as the font is not there. Also, this styling is visually quite simalar to rednblue-plus, why not add table styling there?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original idea was to have an FLL theme and a more general default theme, with rednblue-plus being the latter. flltable.css is simply a copy-paste of rednblue-plus, with some FLL related things added in (for dealing with the specific sizes of the FLL related sprite images). That line is not needed in flltable.css, but was just copied over along with the rest of rednblue-plus.css ...

config.js Outdated
],
timer: 5000,
lines: 8
lines: 12
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12 lines don't fit with the lower third visible

@itamargreen
Copy link
Author

This last commit was by mistake.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants