pjoulot / firefox-os-countdown-addon Goto Github PK
View Code? Open in Web Editor NEWAn addon for Firefox OS devices (using Gaia) which add a countdown on the homescreen.
An addon for Firefox OS devices (using Gaia) which add a countdown on the homescreen.
Use the library used into BootToGecko is a better way to translate than the actual custom code.
In particular for the settings app part.
Use a listener on the language settings instead of get the navigator.language value at each loop.
The settings page doesn't change the translated strings if the language setting is modified.
Remove special case on background and use it in the config object
Find a cool logo for the addon
There are still some bugs on the new homescreen.
Translate the addon in more languages:
Put all the code for the settings page into a separate file to a better visibility.
Configure the right size for the countdown background. The actual size is the size of the device.
The setting app is using a bad test to make the difference between the old way and the new way.
Missing listeners when changing language and go into the countdown addon settings page. In particular, the back button don't work and you are stuck into the countdown addon page.
Don't really know why this bug happened.
This should be resolved doing the Issue #13
This bug is not really important because if you close and relaunch the settings app, it's ok again and we change rarely or never the language of the device.
When the countdown is finished, french words are displayed. Correct that!
Make the addon working on the new homescreen. For now, it's working only with the old.
Initialize settings when installing and remove all elements and listeners when desinstalling or disabling
When we change language in settings, the addon alternate the new language and the older every second.
Maybe test if the language has changed in the SetInterval function to set the good vocabulary. With other parameters, the same bug will certainly happen. Do a function for configuration changes. A listener on the language settings is maybe possible and a better way to correct this...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.