initial import of 1.0 beta 4

This commit is contained in:
2009-11-21 16:25:37 +02:00
parent 2830a7a5ec
commit c925489308
1218 changed files with 12218 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/* This file provides the smooth scrolling effect via Javascript. If you don't like it, just delete it! */
//Auto-scroll to bottom. Use nearBottom to determine if a scrollToBottom is desired.
function nearBottom()
{
return ( document.body.scrollTop >= ( document.body.offsetHeight - ( window.innerHeight * 1.2 ) ) );
}
var intervall_scroll;
function scrollToBottom()
{
//document.body.scrollTop = (document.body.scrollHeight-window.innerHeight);
//return;
if ( intervall_scroll ) clearInterval( intervall_scroll );
intervall_scroll = setInterval( function() {
var target_scroll = (document.body.scrollHeight-window.innerHeight);
var scrolldiff = target_scroll - document.body.scrollTop;
if ( document.body.scrollTop != target_scroll ) {
var saved_scroll = document.body.scrollTop;
document.body.scrollTop += scrolldiff / 5 + ( scrolldiff >= 0 ? (scrolldiff != 0 ) : -1 );
} else {
saved_scroll = -1;
clearInterval( intervall_scroll );
}
} , 10 );
return;
}