Changeset 3370
- Timestamp:
- 11/09/06 22:27:21 (2 years ago)
- Files:
-
- trunk/Plug-Ins/F-Script Support/F-Script Support.xcodeproj/project.pbxproj (modified) (2 diffs)
- trunk/Resources/Styles/Fiat.colloquyStyle/Contents/Resources/genericTemplate.html (modified) (1 diff)
- trunk/Resources/Styles/Fiat.colloquyStyle/Contents/Resources/main.css (modified) (1 diff)
- trunk/Resources/Styles/Fiat.colloquyStyle/Contents/Resources/main.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plug-Ins/F-Script Support/F-Script Support.xcodeproj/project.pbxproj
r3233 r3370 157 157 isa = PBXProject; 158 158 buildConfigurationList = 1C7F306F0855489300D41FB0 /* Build configuration list for PBXProject "F-Script Support" */; 159 compatibilityVersion = "Xcode 2.4"; 159 160 hasScannedForEncodings = 1; 160 161 knownRegions = ( … … 167 168 mainGroup = 089C166AFE841209C02AAC07 /* FScript Plugin */; 168 169 projectDirPath = ""; 170 shouldCheckCompatibility = 1; 169 171 targets = ( 170 172 8D5B49AC048680CD000E48DA /* F-Script Support Plugin */, trunk/Resources/Styles/Fiat.colloquyStyle/Contents/Resources/genericTemplate.html
r3369 r3370 1 1 <script type="text/javascript"> 2 function resizeImagesIfNeeded() { 3 for( i = 0; i < document.images.length; i++ ) { 4 if( document.images[i].realWidth > ( window.innerWidth - 65 ) ) 5 document.images[i].width = ( window.innerWidth - 65 ); 6 else document.images[i].width = document.images[i].realWidth; 7 } 8 } 9 10 window.onresize = resizeImagesIfNeeded; 11 12 function resizeIfNeeded( image ) { 13 image.realWidth = image.width; 14 if( image.width > ( window.innerWidth - 65 ) ) 15 image.width = ( window.innerWidth - 65 ); 16 // scrollToBottomIfNeeded(); 2 function scrollToBottom() { 3 document.body.scrollTop = document.body.offsetHeight; 17 4 } 18 5 </script> trunk/Resources/Styles/Fiat.colloquyStyle/Contents/Resources/main.css
r3247 r3370 18 18 padding-bottom: 5px; 19 19 margin: auto; 20 max-width: 100%; 20 21 } 21 22 trunk/Resources/Styles/Fiat.colloquyStyle/Contents/Resources/main.xsl
r3247 r3370 187 187 <xsl:choose> 188 188 <xsl:when test="$extension = '.jpg' or $extension = '.JPG' or $extensionLong = '.jpeg' or $extensionLong = '.JPEG'"> 189 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload=" resizeIfNeeded( this)" /></a>189 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload="scrollToBottom()" /></a> 190 190 </xsl:when> 191 191 <xsl:when test="$extension = '.gif' or $extension = '.GIF'"> 192 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload=" resizeIfNeeded( this)" /></a>192 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload="scrollToBottom()" /></a> 193 193 </xsl:when> 194 194 <xsl:when test="$extension = '.png' or $extension = '.PNG'"> 195 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload=" resizeIfNeeded( this)" /></a>195 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload="scrollToBottom()" /></a> 196 196 </xsl:when> 197 197 <xsl:when test="$extension = '.tif' or $extension = '.TIF' or $extensionLong = '.tiff' or $extensionLong = '.TIFF'"> 198 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload=" resizeIfNeeded( this)" /></a>198 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload="scrollToBottom()" /></a> 199 199 </xsl:when> 200 200 <xsl:when test="$extension = '.pdf' or $extension = '.PDF'"> 201 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload=" resizeIfNeeded( this)" /></a>201 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload="scrollToBottom()" /></a> 202 202 </xsl:when> 203 203 <xsl:when test="$extension = '.bmp' or $extension = '.BMP'"> 204 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload=" resizeIfNeeded( this)" /></a>204 <a href="{@href}" title="{@href}"><img src="{@href}" alt="Loading Image..." onload="scrollToBottom()" /></a> 205 205 </xsl:when> 206 206 <xsl:otherwise>
