[Linpha-cvs] SF.net SVN: linpha: [4583] trunk/linpha2
Status: Inactive
Brought to you by:
bzrudi
From: <fan...@us...> - 2006-10-10 20:30:35
|
Revision: 4583 http://svn.sourceforge.net/linpha/?rev=4583&view=rev Author: fangehrn Date: 2006-10-10 13:30:19 -0700 (Tue, 10 Oct 2006) Log Message: ----------- 2006-10-10 flo * disable scrollbars on fullscreen * added accesskey: 'f' for fullscreen start/stop * better position of username/password fields Modified Paths: -------------- trunk/linpha2/ChangeLog trunk/linpha2/lib/js/LinImage.js trunk/linpha2/templates/default/global.html.php Modified: trunk/linpha2/ChangeLog =================================================================== --- trunk/linpha2/ChangeLog 2006-10-10 19:46:47 UTC (rev 4582) +++ trunk/linpha2/ChangeLog 2006-10-10 20:30:19 UTC (rev 4583) @@ -1,4 +1,9 @@ -2006-10-08 flo +2006-10-10 flo + * disable scrollbars on fullscreen + * added accesskey: 'f' for fullscreen start/stop + * better position of username/password fields + +2006-10-09 flo * implemented keyboard navigation ('n' for next, 'p' for prev, other suggestions?) * implemented full screen view with navigation please have a look!! :-) Modified: trunk/linpha2/lib/js/LinImage.js =================================================================== --- trunk/linpha2/lib/js/LinImage.js 2006-10-10 19:46:47 UTC (rev 4582) +++ trunk/linpha2/lib/js/LinImage.js 2006-10-10 20:30:19 UTC (rev 4583) @@ -338,6 +338,12 @@ if( slideshowActive && ( (key == 'x') || (key == 'o') || (key == 'c') ) ) { // close slideshow myLinImage.fullscreenStop(); + } else if(key == 'f'){ // display previous image + if( slideshowActive ) { + myLinImage.fullscreenStop(); + } else { + myLinImage.fullscreenStart(); + } } else if(key == 'p'){ // display previous image myLinImage.disableKeyboardNav(); myLinImage.movePrev(); @@ -429,6 +435,11 @@ onWindowResize(); /** + * disable scrollbars + */ + document.getElementsByTagName("body")[0].style.overflow='hidden'; + + /** * start slideshow with some superduper effects */ Effect.Appear('divSlideshowOverlay', { queue: 'end', duration: 1.0, from: 0.0, to: 0.9 }); @@ -459,6 +470,11 @@ maxImageHeight = slideshowOldMaxHeight; /** + * re-enable scrollbars + */ + document.getElementsByTagName("body")[0].style.overflow='auto'; + + /** * end slideshow with some superduper effects */ Effect.Fold('divSlideshowControls', { queue: 'end'} ); Modified: trunk/linpha2/templates/default/global.html.php =================================================================== --- trunk/linpha2/templates/default/global.html.php 2006-10-10 19:46:47 UTC (rev 4582) +++ trunk/linpha2/templates/default/global.html.php 2006-10-10 20:30:19 UTC (rev 4583) @@ -14,7 +14,7 @@ -<body> +<body id="linBody"> <!-- syslog --> <div id="divSyslog"<?php if( ! isset($GLOBALS['linpha']->template->output['sys_log']) ) { echo ' style="display: none;"'; } ?>> @@ -67,9 +67,9 @@ <input type="submit" name="submit" value="<?php echo i18n("Logout"); ?>" /> <?php } else { ?> <!-- login infos --> - <?php echo i18n("Username"); ?>: <input type="text" name="username" value="" /><br /> - <?php echo i18n("Password"); ?>: <input type="password" name="password" value="" /><br /> - <?php if($GLOBALS['linpha']->sql->config->value['sys_user_autologin']) { ?><input type="checkbox" name="rememberme" value="true" id="checkbox_remember" /><label for="checkbox_remember"><?php echo i18n("Remember Me"); ?></label><?php } ?> + <label for="formUsername" style="display: block; float: left; width: 80px;"><?php echo i18n("Username"); ?>: </label><input style="width: 105px;" type="text" name="username" value="" id="formUsername" /><br /> + <label for="formPassword" style="display: block; float: left; width: 80px;"><?php echo i18n("Password"); ?>: </label><input style="width: 105px;" type="password" name="password" value="" id="formPassword" /><br /> + <?php if($GLOBALS['linpha']->sql->config->value['sys_user_autologin']) { ?><input type="checkbox" name="rememberme" value="true" id="formCheckboxRemember" /><label for="formCheckboxRemember"><?php echo i18n("Remember Me"); ?></label><?php } ?> <input type="hidden" name="cmd" value="login" /> <input type="submit" name="submit" value="<?php echo i18n("Login"); ?>" /> <?php } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |