carsonthemonkey / sundial Goto Github PK
View Code? Open in Web Editor NEWChrome extension to convert between timezones on a webpage automatically
Chrome extension to convert between timezones on a webpage automatically
Need to store each time, and tie it to the element somehow. Probably should be stored in a hidden html element.
if the original time is HH the converted one should be HH, or if original time is HH:MM the converted one should also be HH:MM etc.
Add user setting that allows times to be inserted without the blue border or mouseover effect. These would need to be formatted with the time zone so that it still reads unambiguously
Add keyboard shortcuts for toggling extension as well as other functions
Should probably have a map that ties valid words to timezone acronyms
will need to add a css query
Youtube for example doesn't seem to want to load with the extension on
EDT, PDT, etc.
Currently, scrolling on google search for example will not show potentially new times that are not considered.
Allow user to select a timezone manually if desired.
Seems to remove all text before a tag, if text afterwards has a time that it replaces
I don't know if this is really a big deal, or what the expected behavior should be. Maybe an independent toggle on each window?
For example, when date is march 3 at 1:00 am eastern, the website will display "march 3 at 10 pm" which should instead be "march 2 10:00". A short term fix would be to just not replace date when day rolls over
Should display original time, and possibly other additional info.
Need to make Regex more robust
This could possibly be fixed by having the info box as a single element on the document and then dynamically moving it around and changing it's text depending on the currently hovered time-replace element
Info box does not fade out right now, and snaps between multiple times if they are right next to eachother.
When more settings are added, There needs to be a menu to configure the extension
"4-8 am EST" currently is translated to "1-5 am PST" when it should translate it to "1-5 am PST". It also has to be able to roll over noons, for example: "1-4 pm EST" should translate probably translate to "10am - 1pm PST"
Requires a function to reset the page. Best way is probably just to store the original text in a hidden span and then just hide or unhide it depending on the toggle.
This doesn't seem to affect the actual code itself, so it does not seem to be a big deal at the moment
For example, 12:00pm Pacific Standard Time becomes [12:00 PM] Standard Time. It should delete "Standard Time" so it reads as just [12:00 PM]
I don't understand why this works it way, or whos fault it is, but 10 am PDT is converted to 9 am PDT even though I am in PDT, so it should not change at all. I can successfully get the user's timezone, so I think the solution is to use a lookup table to convert the page's timezone to the UTC offset and then convert that back to the user's time zone. Any DST logic can happen by just manipulating the UTC offset before re-converting it to the user's timezone
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.