-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2cb67f4
Showing
552 changed files
with
986,332 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<HTML> | ||
<HEAD> | ||
<TITLE> | ||
D&D 3.5 Index Search | ||
</TITLE> | ||
<LINK rel="stylesheet" type="text/css" href="style.css"> | ||
<TABLE cellspacing=20 cellpadding=0 border=0 width=100% height=100%> | ||
<TR> | ||
<TD valign=top> | ||
<SCRIPT LANGUAGE="JavaScript" src="anchorSearch.js"> | ||
</SCRIPT> | ||
<SCRIPT LANGUAGE="JavaScript" src="anchorList.js"> | ||
</SCRIPT> | ||
<script language="JavaScript"> | ||
<!-- | ||
function runSearch() { | ||
var query = location.search; | ||
if(query.length > 1){ | ||
query = query.substring (1, query.length); | ||
i = 1; | ||
for(i=1; i < 30; i++){ | ||
if(query.indexOf('%20') > -1){ | ||
query = query.replace('%20',' '); | ||
} | ||
else { | ||
i = 30; | ||
} | ||
} | ||
document.form1.name.value = query; | ||
if(query !=' '){ | ||
searchAnchor(document.form1, anchorlist); | ||
return false; | ||
} | ||
} | ||
} | ||
--> | ||
</script> | ||
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> | ||
</script> | ||
<script type="text/javascript"> | ||
_uacct = "UA-239947-2"; | ||
urchinTracker(); | ||
</script> | ||
</HEAD> | ||
<BODY onLoad="runSearch()"> | ||
|
||
<H2> | ||
Index Search | ||
</H2> | ||
<FORM name="form1" onSubmit="searchAnchor(document.form1, anchorlist); return false"> | ||
<TABLE border="0" cellspacing="0"> | ||
<TR class="odd-row"> | ||
<TD valign="center"> | ||
<B> | ||
Search text in Name | ||
</B> | ||
</TD> | ||
<TD valign="center"> | ||
<INPUT maxLength=60 size=30 value="" name="name"> | ||
| ||
</TD> | ||
<TD valign="center"> | ||
<SELECT name="stop"> | ||
<OPTION value="0"> | ||
Don't stop search | ||
<OPTION value="30"> | ||
Stop search at 30 results | ||
<OPTION value="50" selected> | ||
Stop search at 50 results | ||
<OPTION value="100"> | ||
Stop search at 100 results | ||
<OPTION value="200"> | ||
Stop search at 200 results | ||
</SELECT> | ||
</TD> | ||
<TD> | ||
</TD> | ||
</TR> | ||
|
||
</TABLE> | ||
<INPUT type="submit" name="search" value="Search"> | ||
<INPUT type="reset" name="clear" value="Clear form" /> | ||
</FORM> | ||
<BR> | ||
<BR> | ||
<TABLE border=0 cellspacing=0> | ||
<TBODY> | ||
</TABLE> | ||
</TD> | ||
</TR> | ||
</TABLE> | ||
</BODY> | ||
</HTML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
|
||
var tableempty=true; | ||
var oddrow=true; | ||
function searchAnchor(frm, spl) | ||
{ | ||
var idx; | ||
count=0; | ||
pr=true; | ||
tb=getTBody(); | ||
clearTable(tb); | ||
for (idx=0;idx <spl.length;idx++) | ||
{ | ||
var pageTitle = spl[idx][0]; | ||
var pageFilename = spl[idx][1]; | ||
var pageAnchors = spl[idx][2]; | ||
for (var anchor_idx=0;anchor_idx < pageAnchors.length; anchor_idx++) | ||
{ | ||
if (pr && checkAnchor(frm, pageAnchors[anchor_idx])) | ||
{ | ||
count++; | ||
if (count==frm.stop.value) | ||
{ | ||
pr=confirm('More than '+frm.stop.value+' results found. List all?\n(It might take a while...)'); | ||
} | ||
insertRow(tb, pageTitle, pageFilename, pageAnchors[anchor_idx]); | ||
} | ||
} | ||
} | ||
if (tableempty) insertNoresults(tb); | ||
return count; | ||
} | ||
function checkAnchor(frm, anchor) | ||
{ | ||
var reply=true; | ||
if (reply && frm.name.value !='') | ||
{ | ||
reply=false; | ||
txt=frm.name.value.toLowerCase(); | ||
if (anchor[1].toLowerCase().indexOf(txt)>=0) | ||
{ | ||
reply=true; | ||
} | ||
} | ||
return reply; | ||
} | ||
function insertRow(tb, pageTitle, pageFilename, anchor) | ||
{if (tableempty) | ||
{insertHeader(tb); | ||
tableempty=false; | ||
} | ||
tdn=document.createElement("TD"); | ||
tdn.innerHTML='<A href="JavaScript:openLink('+"'"+pageFilename+"#"+anchor[0]+"'"+')" style="color: rgb(87, 158, 182)">'+pageTitle+' </A>'; | ||
tds =document.createElement("TD"); | ||
if (anchor[1].substr(anchor[0].length-4) == "_top") | ||
{ | ||
tds.innerHTML = "<Top of page>"; | ||
} | ||
else | ||
{ | ||
tds.innerHTML = anchor[1].substr(0,1).toUpperCase() + anchor[1].substr(1) +' '; | ||
tds.innerHTML = tds.innerHTML.replace("Table ", "Table: "); | ||
} | ||
|
||
tr=document.createElement("TR"); | ||
if (oddrow) tr.className='odd-row'; | ||
tr.appendChild(tdn); | ||
tr.appendChild(tds); | ||
tb.appendChild(tr); | ||
oddrow=!oddrow; | ||
return true; | ||
} | ||
function getTBody() | ||
{ | ||
art_table=document.getElementsByTagName("TABLE")[2]; | ||
return art_table.getElementsByTagName("TBODY")[0]; | ||
} | ||
function replace(str, fnd, rpl) | ||
{ | ||
var idx; | ||
var a=str.split(fnd); | ||
reply=''; | ||
sep=''; | ||
for (idx=0;idx <a.length;idx++) | ||
{ | ||
reply+=sep+a[idx]; | ||
sep=rpl; | ||
} | ||
return reply; | ||
} | ||
function clearTable(tb) | ||
{while (tb.getElementsByTagName('TR').length> 0) | ||
{ | ||
tb.removeChild(tb.getElementsByTagName('TR')[0]); | ||
} | ||
oddrow=true; | ||
tableempty=true; | ||
return true; | ||
} | ||
function insertHeader(tb) | ||
{ | ||
thn =document.createElement("TD"); | ||
thn.innerHTML ='<B>Top results may not be the most relevant</B>'; | ||
tr=document.createElement("TR"); | ||
tr.appendChild(thn); | ||
tb.appendChild(tr); | ||
|
||
thn =document.createElement("TD"); | ||
thn.innerHTML ='<B>Page </B>'; | ||
ths =document.createElement("TD"); | ||
ths.innerHTML ='<B>Section </B>'; | ||
tr=document.createElement("TR"); | ||
tr.appendChild(thn); | ||
tr.appendChild(ths); | ||
tb.appendChild(tr); | ||
return true; | ||
} | ||
function insertNoresults(tb) | ||
{ | ||
td=document.createElement("TD"); | ||
td.innerHTML ='<B>NO RESULTS FOUND</B>'; | ||
tr=document.createElement("TR"); | ||
tr.appendChild(td); | ||
tb.appendChild(tr); | ||
return true; | ||
} | ||
function openLink(lnk) | ||
{if (window.opener) | ||
{ | ||
window.opener.document.location.href=lnk; | ||
window.opener.focus(); | ||
}else | ||
{ | ||
var w=window.open(lnk, "anchor_detail", "scrollbars=yes,resizable=yes, toolbar=no, status=no, location=no, directories=no, screenX=10, screenY=20, top=20, left=10"); | ||
w.focus(); | ||
} | ||
} |
Oops, something went wrong.