mirror of
https://github.com/celisej567/wiki.git
synced 2026-01-03 18:11:10 +03:00
IE 8 compatiblity
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<title>SourceBox Wiki</title>
|
||||
<script>
|
||||
const documentlist = ['/wiki/index.html', '/wiki/QScript/Introduction.html', '/wiki/QScript/Lua/Classes.html', '/wiki/QScript/Lua/Exports.html', '/wiki/QScript/Lua/Imports.html', '/wiki/QScript/Lua/Intro.html', '/wiki/QScript/Lua/Objects.html', '/wiki/QScript/Tutorial/Chapter1.html']
|
||||
const namelist = ['Wiki Intro', 'QScript Intro', 'Lua Classes', 'Lua Exports', 'Lua Imports', 'Lua Intro', 'Lua Objects', 'QScript Tutorial Chapter 1']
|
||||
documentlist = ['/wiki/index.html', '/wiki/QScript/Introduction.html', '/wiki/QScript/Lua/Classes.html', '/wiki/QScript/Lua/Exports.html', '/wiki/QScript/Lua/Imports.html', '/wiki/QScript/Lua/Intro.html', '/wiki/QScript/Lua/Objects.html', '/wiki/QScript/Tutorial/Chapter1.html'];
|
||||
namelist = ['Wiki Intro', 'QScript Intro', 'Lua Classes', 'Lua Exports', 'Lua Imports', 'Lua Intro', 'Lua Objects', 'QScript Tutorial Chapter 1'];
|
||||
|
||||
function toggleTree(element)
|
||||
{
|
||||
const nested = element.parentElement.querySelector(".nested");
|
||||
nested = element.parentNode.childNodes[3];
|
||||
if(nested.className.indexOf("active",0) != -1)
|
||||
{
|
||||
nested.className = "nested";
|
||||
element.parentNode.childNodes[0].innerHTML = "+";
|
||||
}
|
||||
else
|
||||
{
|
||||
nested.className = "nested active";
|
||||
element.parentNode.childNodes[0].innerHTML = "-";
|
||||
}
|
||||
if(element.className.indexOf("active",0) != -1)
|
||||
{
|
||||
@@ -67,7 +69,7 @@ pre {
|
||||
border-left: 1px solid #000;
|
||||
}
|
||||
|
||||
.active {
|
||||
ul.active {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
@@ -84,27 +86,17 @@ li {
|
||||
list-style-type: none !important;
|
||||
}
|
||||
|
||||
li b::before{
|
||||
content:'+';
|
||||
width:12px;
|
||||
height:100%;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
|
||||
li b.active::before
|
||||
{
|
||||
content: '-';
|
||||
width:12px;
|
||||
height:100%;
|
||||
display: inline-block;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
li b {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.liicon {
|
||||
display:inline-block;
|
||||
width:12px;
|
||||
height:100%;
|
||||
font-family: monospace;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -115,10 +107,10 @@ li b {
|
||||
</ul>
|
||||
<ul id="filetree">
|
||||
<li><a href="/wiki/index.html">Wiki Intro</a></li>
|
||||
<li><b onclick="toggleTree(this);">QScript</b>
|
||||
<li><small class="liicon">+</small><b onclick="toggleTree(this);">QScript</b>
|
||||
<ul class="nested">
|
||||
<li><a href="/wiki/QScript/Introduction.html">QScript Intro</a></li>
|
||||
<li><b onclick="toggleTree(this);">Lua</b>
|
||||
<li><small class="liicon">+</small><b onclick="toggleTree(this);">Lua</b>
|
||||
<ul class="nested">
|
||||
<li><a href="/wiki/QScript/Lua/Classes.html">Lua Classes</a></li>
|
||||
<li><a href="/wiki/QScript/Lua/Exports.html">Lua Exports</a></li>
|
||||
@@ -127,15 +119,15 @@ li b {
|
||||
<li><a href="/wiki/QScript/Lua/Objects.html">Lua Objects</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><b onclick="toggleTree(this);">Python</b>
|
||||
<li><small class="liicon">+</small><b onclick="toggleTree(this);">Python</b>
|
||||
<ul class="nested">
|
||||
</ul>
|
||||
</li>
|
||||
<li><b onclick="toggleTree(this);">Squirrel</b>
|
||||
<li><small class="liicon">+</small><b onclick="toggleTree(this);">Squirrel</b>
|
||||
<ul class="nested">
|
||||
</ul>
|
||||
</li>
|
||||
<li><b onclick="toggleTree(this);">Tutorial</b>
|
||||
<li><small class="liicon">+</small><b onclick="toggleTree(this);">Tutorial</b>
|
||||
<ul class="nested">
|
||||
<li><a href="/wiki/QScript/Tutorial/Chapter1.html">QScript Tutorial Chapter 1</a></li>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user