Changeset 3454
- Timestamp:
- 12/13/06 02:34:48 (2 years ago)
- Files:
-
- trunk/Resources/base.html (modified) (1 diff)
- trunk/Resources/roomTopicBanner.html (modified) (3 diffs)
- trunk/Resources/roomTopicBanner.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Resources/base.html
r3435 r3454 4 4 <head> 5 5 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 6 <script type="text/ecmascript" defer="defer" encoding="utf-8" src="roomTopicBanner.js" />6 <script type="text/ecmascript" defer="defer" encoding="utf-8" src="roomTopicBanner.js"></script> 7 7 <style type="text/css"> 8 8 html { trunk/Resources/roomTopicBanner.html
r3247 r3454 11 11 background-repeat: repeat-x; 12 12 background-position: top; 13 border-bottom: 1px solid rgb( 154, 154, 154 ); 14 overflow: hidden; 15 min-height: 17px; 13 16 height: 17px; 17 } 18 19 #topicMessage { 20 position: absolute; 21 top: 0; 22 left: 0; 23 right: 0; 24 min-height: 15px; 25 padding: 0 20px 0 8px; 14 26 font-size: 11px; 15 27 font-family: Lucida Grande, sans-serif; 16 28 line-height: 15px; 17 29 text-align: center; 18 padding: 0 20px 0 8px;30 color: black !important; 19 31 word-wrap: break-word; 20 32 -khtml-line-break: after-white-space; 21 33 -khtml-nbsp-mode: space; 22 overflow: hidden;23 color: black !important;24 border-bottom: 1px solid rgb( 154, 154, 154 );25 34 } 26 35 … … 36 45 width: 17px; 37 46 height: 16px; 47 z-index: 10; 48 cursor: default; 38 49 } 39 50 … … 47 58 </style> 48 59 <div id="toggleButton" onclick="toggleTopic( event )" style="display: none"></div> 49 < span id="topicMessage"></span>60 <div id="topicMessage"></div> 50 61 </div> 51 62 </div> trunk/Resources/roomTopicBanner.js
r3152 r3454 11 11 } else { 12 12 if( ! topicToggled && topicSize < 3 ) { 13 topicAreaSize = document.getElementById( 'topicMessage' ).clientHeight + 4;13 topicAreaSize = document.getElementById( 'topicMessage' ).clientHeight + 2; 14 14 if( topicAreaSize > 62 ) topicAreaSize = 62; 15 15 else if( topicAreaSize < 17 ) topicAreaSize = 17; … … 31 31 topicMessage.innerHTML = topic; 32 32 topicMessage.title = topicMessage.innerText + ' set by ' + author; 33 if( topicMessage.clientHeight > 13 ) 33 refreshTopicSize(); 34 } 35 36 function refreshTopicSize() { 37 topicMessage = document.getElementById( 'topicMessage' ); 38 if( topicMessage.clientHeight > 17 ) 34 39 document.getElementById( 'toggleButton' ).style.setProperty( 'display', 'block', null ); 35 else if( ! topicSize )document.getElementById( 'toggleButton' ).style.setProperty( 'display', 'none', null );40 else document.getElementById( 'toggleButton' ).style.setProperty( 'display', 'none', null ); 36 41 if( topicToggled ) { 37 topicAreaSize = topicMessage.clientHeight + 4;42 topicAreaSize = topicMessage.clientHeight + 2; 38 43 if( topicAreaSize > 62 ) topicAreaSize = 62; 39 44 else if( topicAreaSize < 17 ) topicAreaSize = 17; … … 41 46 } 42 47 } 48 49 window.addEventListener( 'resize', refreshTopicSize );
