mirror of https://git.code.sf.net/p/quake/website
Fix JavaScript-related BS and a braino with the page title.
This commit is contained in:
parent
6ed732b469
commit
8f644e6076
|
@ -2,12 +2,6 @@
|
||||||
var columnIDs;
|
var columnIDs;
|
||||||
|
|
||||||
function init () {
|
function init () {
|
||||||
// this may be called twice
|
|
||||||
if (arguments.callee.done)
|
|
||||||
return;
|
|
||||||
|
|
||||||
arguments.callee.done = true;
|
|
||||||
|
|
||||||
setHeight ('menu', columnIDs);
|
setHeight ('menu', columnIDs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,12 +38,12 @@ function setHeight (myTarget, columns) {
|
||||||
// determine the maximum height out of all columns specified
|
// determine the maximum height out of all columns specified
|
||||||
for (i = 0; i < divs.length; i++) {
|
for (i = 0; i < divs.length; i++) {
|
||||||
if (maxHeight < divs[i].offsetHeight) {
|
if (maxHeight < divs[i].offsetHeight) {
|
||||||
maxHeight = divs[i].offsetHeight;
|
maxHeight = divs[i].offsetHeight + 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the target column to that maximum height
|
// 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>
|
<H2 class="pageTitle"><?=$pageName?></H2>
|
||||||
</DIV>
|
</DIV>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
function screenshot ($name, $caption)
|
function screenshot ($name, $caption)
|
||||||
{
|
{
|
||||||
echo '<P class="lined">'
|
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
|
. $caption
|
||||||
.'</P>';
|
.'</P>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -223,12 +223,6 @@ IMG.screenshot {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.narrow#topMain {
|
|
||||||
margin-right: 142px; /* features width + 2px */
|
|
||||||
|
|
||||||
_margin-right: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#topMain H2 {
|
#topMain H2 {
|
||||||
border-bottom: 2px solid white;
|
border-bottom: 2px solid white;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue