Chad Criswell wrote:
> I have been creating a music composer database using Exhibit, and want 
> to customize the timeline a bit.  The problem is that I am not a 
> programmer, and although I think I understand how things work, I have 
> no clue where I am going wrong.  If any of you could give me some 
> helpful advice on how to adjust my timeline based on the code I will 
> paste below I would be very grateful.
Hi Chad,

For web development, I'd recommend using a browser that has decent 
debugging support. Firefox + the Firebug extension are my choice:

    http://getfirebug.com/

In any case, you would want to find the Javascript console in your 
browser. Error messages are often printed to that console.

> The current Exhibit is located at 
> http://www.musicedmagic.com/Exhibit/composers.html 
> <http://www.musicedmagic.com/Exhibit/composers.html>
First you want to find

    timelineConstructortimelineConstructor

in your code and replace it with

    timelineConstructor

> Basically what I want to accomplish are these things:
>
> -  I would like to create shaders behind the bottom slider to 
> represent the various eras of music history (similar to what is done 
> in the JFK demo Exhibit on the simile web site).
Those are called "decorators". You would want something like this

bandInfos[i].decorators = [
    new Timeline.SpanHighlightDecorator({
        startDate: Timeline.DateTime.parseIso8601DateTime("1963-11-22"),
        endDate: Timeline.DateTime.parseIso8601DateTime("1963-11-23"),
        color: "#FFC080",
        opacity: 50,
        startLabel: "shot",
        endLabel: "t.o.d.",
        theme: theme
    }),
    new Timeline.PointHighlightDecorator({
        date: Timeline.DateTime.parseIso8601DateTime("1963-11-25"),
        color: "#FFC080",
        opacity: 50,
        theme: theme
    })
];


> -  I would also like to fix the issue I am having with the names of 
> composers being printed beside their timeline bar when the name is too 
> long to fit inside it.

    theme.event.label.width = 400;

> -Lastly I would like to fix the timeline so that it does not include 
> dates after the present or before the first record in the database.  I 
> wouldn't mind if the timeline would initialize with the display in the 
> middle of the timeline instead of at present day as it does now.
That is not supported right now. However, pressing Home and End would go 
to the first and last events.

> - A bonus option would be to put the composers mini portrait in the 
> timeline bar as it is shown in the dinosaur example timeline.  This 
> might not work out well though due to size issues.
The dinosaur examples does not render durations of time, only specific 
points of time... This would be quite hard to adapt. Let's see if the 
tips above work for you first...

Cheers,

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to