Post doesn't exist
Archived Comments (locked)
|
|
Excellent script. This is called the "Marcus Bains Line" in other calendars:
|
|
|
Very nice script. I wonder now though, do you use Google Reader, too? Some of the feed items I receive run for several pages of mostly plain text, and it's not always immediately obvious where the line is now that I was at the end of before I hit page-down (or page-up)--it tends to vary a little from feed to feed (?). If you wanted to fool around with the concept, having some "thin red line" show up where the page bottom (or top) used to be before hitting page-down (or page-up) would be very useful (why, it might even save me several minutes every day! :D). Thanks. (If you have any hints on a how-to as opposed to writing something yourself, they'd be appreciated.) |
|
|
Hello, Deodrus. I think that it only has to change updataTimeLine function into this code for that. Here is the code:
function updataTimeLine() {
if (currentDayBox) {
var now = new Date;
var h = now.getHours();
var m = now.getMinutes();
var s = now.getSeconds();
var jh = h + 13;
if (jh > 23) {
jh -= 24;
}
var dstyle = currentDayBox.style;
var cstyle = currentTimeLine.style;
var jstyle = japanTimeLine.style;
cstyle.top = (h * 6 + m / 10 + s / 600) + "ex";
cstyle.left = dstyle.left;
cstyle.width = dstyle.width;
jstyle.top = (jh * 6 + m / 10 + s / 600) + "ex";
jstyle.width = dstyle.width;
if (h + 13 < 24) {
jstyle.left = dstyle.left;
} else {
var left = dstyle.left.match(/([\d.]+)/)[1] - 0;
var width = dstyle.width.match(/([\d.]+)/)[1] - 0;
jstyle.left = (left + width) + "%";
}
}
}
|
|
|
Hi Margin! This works wonders for me! I modified it a bit to fit my situation! You see, my girlfriend lives in Japan, and we keep updated with GoogleCalendar.
=> I believe the decowner attribute handles that??
Here is the code: (I'm terribly sorry about the long comment!!!)
GM_addStyle(<> /* You can freely change line style. */
#japanTimeLine {
window.addEventListener("load", function() {
function entryTimeLine() {
function updataTimeLine() {
}
var refresh = unsafeWindow._RefreshCalendar;
entryTimeLine();
|
|
|
Oops! I mistook style in below comment. Please forget that style :P Correct style is this: #currentTimeLine {
|
|
|
samdana: Sorry I respond late. Please look at Joe.Lotz's comment. Joe.Lotz: Thanks! It's nice style. New version can easily edit CSS style. If you want to set the line's center on the current time, try style below. #currentTimeLine {
|
|
|
samdana: You need to have greasemonkey installed
margin: Very useful script, thanks! I've been some slight CSS changes for my personal preference. Anyone else can do the same to fit their tastes. timeLine.style.cssText =
|
|
|
how do i install the script? |
|
|
Thanks Emma. New version is now available. |
|
|
Your script is very useful thanks.
Emme |