This is section 1
Section 2
Section 3 Example of flight list
This section now describes how the staff-page with foldable text is made.
1 = normal text object

The page can be seen here : http://www.calendarforum.dk/restaurant/about-the-staff.html
Layout of the text is this
1 = normal text object2,3,4 and 8,9,10 is normal images.
5=htmlobject.
With this content

<div>OWNER
<br>
<span class="more">
Boris Putinov is owner of the restaurant. He demands much from his staff. Although he says that "all men are equal" he does not mean this.From the start his intention was, that all his employees should earn the same amount. As his basis was the pay for a dish washer, this rule is not actual anymore.At start, the restaurant had only one menu It was the owners idea, as when this menu had enough kalories for one person, why should there be needed other menus. This idea is not actual anymore - now the restaurant has a lot of menus.
</span>
</div>
7,11,12 and 13 is made the same way
14 is only an "empty" object that makes the lower rows "go down" together with the expanding text.
6 is special. It contains the "normal" code like the other html-objects but also the styling and the code that makes it all happen. The styling and the code could have been put in a separate html-object.
Here is the content of the 6 :
<div>MANAGER
<br>
<span class="more">
Jackie Nightingale is manager of the restaurant. He is not always quite sober. Most of the time he treats the guests well, but sometimes he steals from their pockets. Especially when they have something made of gold. If You have some juvelry that are very valuable, You have to pay attention - especially when You have some black pearls. If he sees a black pearl, he become weird.
</span>
</div>
<script type="text/javascript">
$(document).ready(function() {
// Configure/customize these variables.
var showChar = 25; // How many characters are shown by default
var ellipsestext = "...";
var moretext = "Show more >";
var lesstext = "Show less <";
$('.more').each(function() {
var content = $(this).html();
if(content.length > showChar) {
var c = content.substr(0, showChar);
var h = content.substr(showChar, content.length - showChar);
var html = c + '<span class="moreellipses">' + ellipsestext+ ' </span><span class="morecontent"><span>' + h + '</span> <a href="" class="morelink">' + moretext + '</a></span>';
$(this).html(html);
}
});
$(".morelink").click(function(){
if($(this).hasClass("less")) {
$(this).removeClass("less");
$(this).html(moretext);
} else {
$(this).addClass("less");
$(this).html(lesstext);
}
$(this).parent().prev().toggle();
$(this).prev().toggle();
return false;
});
});
</script>
<style>
.morecontent span {
display: none;
}
.morelink {
display: block;
}
</style>
That should be all that is made for the staff-page.
Another interesting page on the example site is the table booking page : http://www.calendarforum.dk/restaurant/book-table.html
By clicking a table you will see when the table is booked/free. Table 4 or 5 is the best for day-view.
The color in the calendar follows the color from the table-plan.
The bookings is ( default ) shown for a day. The calendar has been "fixed in time" as it is only a demo, so no new bookings is made - in real it will be the actual day.
If you in "View" click on ""week" then you will see the bookings for the actual table for a week.
If you in tableplan click on 1,2 or 3, then you will see the tables be arranged according to the chosen plan.
This has been made by using the amazing web-calendar LuxCal. http://www.luxsoft.eu/ http://calendarforum.dk/
It is an old example site, so a lot have been made for the calendar since then. If you ever should need a calendar for your website, then you should know that LuxCal is the absolute best free web calendar. It has more functionality than most calendars you have to pay huge amounts for.
- and by using the WebAnimator plus. There is some special code made in the WebAnimator. It is not possible for me to show the code here.