-
Notifications
You must be signed in to change notification settings - Fork 9
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 78bb268
Showing
8 changed files
with
580 additions
and
0 deletions.
There are no files selected for viewing
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,30 @@ | ||
var IntWL = { | ||
"cn": { | ||
"name": "中文", | ||
"head": "其他语言", | ||
"url": "http://scp-wiki-cn.wikidot.com/", | ||
"id": "530812", | ||
"category": "wanderers:" | ||
}, | ||
"en": { | ||
"name": "English", | ||
"head": "Languages", | ||
"url": "http://wanderers-library.wikidot.com/", | ||
"id": "146034", | ||
"category": "" | ||
}, | ||
"jp": { | ||
name: "日本語", | ||
head: "他言語版", | ||
url: "http://scp-jp.wikidot.com/", | ||
id: "578002", | ||
"category": "wanderers:" | ||
}, | ||
"ko": { | ||
name: "한국어", | ||
head: "다른 언어", | ||
url: "http://wanderers-library-ko.wikidot.com/", | ||
id: "621849", | ||
"category": "" | ||
} | ||
}; |
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,107 @@ | ||
var Int = { | ||
"cn": { | ||
"name": "中文", | ||
"head": "其他语言", | ||
"url": "http://scp-wiki-cn.wikidot.com/", | ||
"id": "530812", | ||
"category": "" | ||
}, | ||
"cs": { | ||
name: "Česky", | ||
head: "V jiných jazycích", | ||
url: "http://scp-cs.wikidot.com/", | ||
id: "2060442", | ||
"category": "" | ||
}, | ||
"en": { | ||
"name": "English", | ||
"head": "Languages", | ||
"url": "http://www.scpwiki.com/", | ||
"id": "66711", | ||
"category": "" | ||
}, | ||
"fr": { | ||
name: "Français", | ||
head: "Dans d’autres langues", | ||
url: "http://fondationscp.wikidot.com/", | ||
id: "464696", | ||
"category": "" | ||
}, | ||
"de": { | ||
name: "Deutsch", | ||
head: "In anderen Sprachen", | ||
url: "http://scp-wiki-de.wikidot.com/", | ||
id: "1269857", | ||
"category": "" | ||
}, | ||
"int": { | ||
name: "International", | ||
head: "Languages", | ||
url: "http://scp-int.wikidot.com/", | ||
id: "1427610", | ||
"category": "" | ||
}, | ||
"it": { | ||
name: "Italiano", | ||
head: "In altre lingue", | ||
url: "http://fondazionescp.wikidot.com/", | ||
id: "530167", | ||
"category": "" | ||
}, | ||
"jp": { | ||
name: "日本語", | ||
head: "他言語版", | ||
url: "http://scp-jp.wikidot.com/", | ||
id: "578002", | ||
"category": "" | ||
}, | ||
"ko": { | ||
name: "한국어", | ||
head: "다른 언어", | ||
url: "http://ko.scp-wiki.net/", | ||
id: "486864", | ||
"category": "" | ||
}, | ||
"pl": { | ||
name: "Polski", | ||
head: "W innych językach", | ||
url: "http://scp-wiki.net.pl/", | ||
id: "647733", | ||
"category": "" | ||
}, | ||
"ptbr": { | ||
name: "Português", | ||
head: "Em outros idiomas", | ||
url: "http://scp-pt-br.wikidot.com/", | ||
id: "783633", | ||
"category": "" | ||
}, | ||
"ru": { | ||
name: "Русский", | ||
head: "На других языках", | ||
url: "http://scpfoundation.net/", | ||
id: "169125", | ||
"category": "" | ||
}, | ||
"es": { | ||
name: "Español", | ||
head: "En otros idiomas", | ||
url: "http://scp-es.com/", | ||
id: "560484", | ||
"category": "" | ||
}, | ||
"th": { | ||
name: "ภาษาไทย", | ||
head: "ภาษาอื่น", | ||
url: "http://scp-th.wikidot.com/", | ||
id: "547203", | ||
"category": "" | ||
}, | ||
"ua": { | ||
name: "Українська", | ||
head: "Іншими мовами", | ||
url: "http://scp-ukrainian.wikidot.com/", | ||
id: "1398197", | ||
"category": "" | ||
} | ||
}; |
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,35 @@ | ||
document.addEventListener("DOMContentLoaded",function(){ | ||
var mySite = document.referrer; | ||
mySite = mySite.split("http://").join(""); | ||
mySite = "http://" + mySite.split("/")[0] + "/"; | ||
|
||
var iframeSet = document.getElementById('iframeset'); | ||
var oldHeight = 0; | ||
|
||
var url = location.href; | ||
url = url.replace(/^.*\//,'/'); | ||
|
||
createResizeIframe(); | ||
|
||
function createResizeIframe(){ | ||
|
||
var Height = getMyHeight(); | ||
var iframe = document.createElement("iframe"); | ||
var CacheBreak = String(Math.floor(Math.random() * 10000)); | ||
|
||
if(Height != oldHeight){ | ||
iframeSet.innerHTML = ''; | ||
iframe.src = mySite + "common--javascript/resize-iframe.html?" + CacheBreak + "#" + Height +url; | ||
iframe.style.display = "none"; | ||
|
||
iframeSet.appendChild(iframe); | ||
oldHeight = Height; | ||
} | ||
setTimeout(createResizeIframe,50); | ||
} | ||
|
||
function getMyHeight() { | ||
|
||
return iframeSet.getBoundingClientRect().top; | ||
}; | ||
}); |
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,37 @@ | ||
function getWikiModule(v) { | ||
var _xhr = () => { | ||
if(window.XMLHttpRequest){ | ||
return new XMLHttpRequest(); | ||
} | ||
if(window.ActiveXObject){ | ||
try{ | ||
return new ActiveXObject("Msxml2.XMLHTTP.6.0"); | ||
}catch(e){} | ||
try{ | ||
return new ActiveXObject("Msxml2.XMLHTTP.3.0"); | ||
}catch(e){} | ||
try{ | ||
return new ActiveXObject("Microsoft.XMLHTTP"); | ||
}catch(e){} | ||
} | ||
return false; | ||
}, | ||
xhr = _xhr(), | ||
site_id = v.site_id ? "&s=" + v.site_id : "", | ||
query = "&q=" + (v.query ? v.query : "_"), | ||
url = "/quickmodule.php?module=PageLookupQModule" + site_id + query; | ||
xhr.onreadystatechange = function() { | ||
if(xhr.readyState == 4){ | ||
if(xhr.status != 200){ | ||
return; | ||
} | ||
try{ | ||
var res = JSON.parse(xhr.responseText); | ||
res = res[Object.keys(res)[0]]; | ||
v.function(res); | ||
}catch(e){} | ||
} | ||
}; | ||
xhr.open("GET", url, true); | ||
xhr.send(); | ||
} |
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,43 @@ | ||
body { | ||
background: transparent; | ||
margin: 4px 6px 0; | ||
padding: 0; | ||
font-family: verdana,arial,helvetica,sans-serif; | ||
font-size: 0.80em; | ||
text-align: center; | ||
overflow-y: hidden; | ||
} | ||
.side-block { | ||
padding: 10px; | ||
border: solid 1px #888880; | ||
border-radius: 20px; | ||
box-shadow: 0 2px 6px rgba(0,0,0,.5); | ||
background: #fcfdfb; | ||
margin-bottom: 15px; | ||
} | ||
.side-block .heading { | ||
color: #333; | ||
border-bottom: solid 1px #aaa; | ||
margin: 0 2em 5px; | ||
font-weight: bold; | ||
} | ||
.side-block .heading a { | ||
cursor: pointer; | ||
} | ||
.side-block p { | ||
margin: 0; | ||
} | ||
.side-block div.menu-item { | ||
margin: 2px 0; | ||
} | ||
.side-block div.menu-item img { | ||
display: none; | ||
} | ||
.side-block div.menu-item a { | ||
color: #b01; | ||
font-weight: bold; | ||
text-decoration: none; | ||
} | ||
.side-block div.menu-item a:hover { | ||
text-decoration: underline; | ||
} |
Oops, something went wrong.