This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Instructions: | |
* Paste one of the following snippets in your browsers Javascript console | |
*/ | |
// Remove all others than yourself | |
var n = "Mathias Hansen"; $("li .todo").each(function () { if ($.trim($(this).find("span .pill").find("span").html()) != n) { $(this).remove(); } }); | |
// Mark your name with a color | |
var n = "Mathias Hansen"; $("li .todo").each(function () { var o = $(this).find("span .pill").find("span"); if ($.trim(o.html()) == n) { o.css('color', '#000'); o.parent().css('background-color', 'yellow'); } }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This query returns the id's of stores which are open right now. | |
The date field for an opening hour can be either an explicit date or a weekday, an explicit date has higher priority than a weekday, and thus overrides a weekday. | |
A store is considered closed the whole day if there is an explicit date set (not a weekday) and closed=1 - or - no opening_hour is registered for the store on the day | |
Example data: | |
store_id date open_time close_time closed dayandnight closes_after_midnight | |
---------- -------- ---------- ---------- ------- ------------ ---------------------- |
NewerOlder