mirror of
https://git.code.sf.net/p/quake/website
synced 2025-04-07 16:21:14 +00:00
Fix JavaScript-related BS and a braino with the page title.
This commit is contained in:
parent
6ed732b469
commit
8f644e6076
4 changed files with 4 additions and 16 deletions
|
@ -2,12 +2,6 @@
|
|||
var columnIDs;
|
||||
|
||||
function init () {
|
||||
// this may be called twice
|
||||
if (arguments.callee.done)
|
||||
return;
|
||||
|
||||
arguments.callee.done = true;
|
||||
|
||||
setHeight ('menu', columnIDs);
|
||||
}
|
||||
|
||||
|
@ -44,12 +38,12 @@ function setHeight (myTarget, columns) {
|
|||
// determine the maximum height out of all columns specified
|
||||
for (i = 0; i < divs.length; i++) {
|
||||
if (maxHeight < divs[i].offsetHeight) {
|
||||
maxHeight = divs[i].offsetHeight;
|
||||
maxHeight = divs[i].offsetHeight + 2;
|
||||
}
|
||||
}
|
||||
|
||||
// set the target column to that maximum height
|
||||
targetID.style.height = maxHeight + 2 + 'px';
|
||||
targetID.style.height = maxHeight + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,6 +35,6 @@
|
|||
}
|
||||
|
||||
?>
|
||||
<DIV id="topMain" <?=$contentClass?>>
|
||||
<DIV id="topMain">
|
||||
<H2 class="pageTitle"><?=$pageName?></H2>
|
||||
</DIV>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
function screenshot ($name, $caption)
|
||||
{
|
||||
echo '<P class="lined">'
|
||||
.' <CENTER><A class="screenshot" href="/img/screenshots/' . $name . '.png"><IMG src="/img/screenshots/' . $name . '.jpg" alt="View at full size"></A></CENTER><BR>'
|
||||
.' <CENTER><A class="screenshot" href="/img/screenshots/' . $name . '.png"><IMG src="/img/screenshots/' . $name . '.jpg" width="200" height="150" alt="View at full size"></A></CENTER><BR>'
|
||||
. $caption
|
||||
.'</P>';
|
||||
}
|
||||
|
|
|
@ -223,12 +223,6 @@ IMG.screenshot {
|
|||
padding: 2px;
|
||||
}
|
||||
|
||||
.narrow#topMain {
|
||||
margin-right: 142px; /* features width + 2px */
|
||||
|
||||
_margin-right: 2px;
|
||||
}
|
||||
|
||||
#topMain H2 {
|
||||
border-bottom: 2px solid white;
|
||||
|
||||
|
|
Loading…
Reference in a new issue