Changeset 3661
- Timestamp:
- 06/18/07 01:31:55 (1 year ago)
- Files:
-
- trunk/Resources/roomTopicBanner.js (modified) (2 diffs)
- trunk/Resources/topicBackground.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Resources/roomTopicBanner.js
r3610 r3661 5 5 if( e && e.altKey ) { 6 6 topicSize++; 7 if( topicSize > 3) topicSize = 0;8 topicAreaSize = ( ! topicSize ? 17 : ( topicSize == 1 ? 32 : ( topicSize == 2 ? 47 : 62) ) );9 if( topicSize == 3) document.getElementById( 'toggleButton' ).className = "up";7 if( topicSize > 6 ) topicSize = 0; 8 topicAreaSize = ( ! topicSize ? 17 : ( topicSize == 1 ? 32 : ( topicSize == 2 ? 47 : ( topicSize == 3 ? 62 : ( topicSize == 4 ? 77 : ( topicSize == 5 ? 92 : 107 ) ) ) ) ) ); 9 if( topicSize == 6 ) document.getElementById( 'toggleButton' ).className = "up"; 10 10 else document.getElementById( 'toggleButton' ).className = ""; 11 11 } else { 12 if( ! topicToggled && topicSize < 3) {12 if( ! topicToggled && topicSize < 6 ) { 13 13 topicAreaSize = document.getElementById( 'topicMessage' ).clientHeight + 2; 14 if( topicAreaSize > 62 ) topicAreaSize = 62;14 if( topicAreaSize > 107 ) topicAreaSize = 107; 15 15 else if( topicAreaSize < 17 ) topicAreaSize = 17; 16 16 document.getElementById( 'toggleButton' ).className = "up"; 17 17 topicToggled = true; 18 18 } else { 19 if( topicSize == 3) topicSize = 0;20 topicAreaSize = ( ! topicSize ? 17 : ( topicSize == 1 ? 32 : ( topicSize == 2 ? 47 : 62) ) );19 if( topicSize == 6 ) topicSize = 0; 20 topicAreaSize = ( ! topicSize ? 17 : ( topicSize == 1 ? 32 : ( topicSize == 2 ? 47 : ( topicSize == 3 ? 62 : ( topicSize == 4 ? 77 : ( topicSize == 5 ? 92 : 107 ) ) ) ) ) ); 21 21 document.getElementById( 'toggleButton' ).className = ""; 22 22 topicToggled = false; … … 41 41 if( topicToggled ) { 42 42 topicAreaSize = topicMessage.clientHeight + 2; 43 if( topicAreaSize > 62 ) topicAreaSize = 62;43 if( topicAreaSize > 107 ) topicAreaSize = 107; 44 44 else if( topicAreaSize < 17 ) topicAreaSize = 17; 45 45 document.getElementById( 'topicArea' ).style.setProperty( 'height', topicAreaSize + 'px', null );
