mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-22 04:07:04 +01:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
/obj/item/book/manual/wiki/splurt/initialize_wikibook()
|
|
var/wikiurl = CONFIG_GET(string/wikiurl)
|
|
if(wikiurl)
|
|
dat = {"
|
|
|
|
<html><head>
|
|
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
|
|
<style>
|
|
iframe {
|
|
display: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
function pageloaded(myframe) {
|
|
document.getElementById("loading").style.display = "none";
|
|
myframe.style.display = "inline";
|
|
}
|
|
</script>
|
|
<p id='loading'>You start skimming through the manual...</p>
|
|
<iframe width='100%' height='97%' onload="pageloaded(this)" src="[wikiurl]/[page_link]?printable=yes&remove_links=1" frameborder="0" id="main_frame"></iframe>
|
|
</body>
|
|
|
|
</html>
|
|
|
|
"}
|
|
|
|
/obj/item/book/manual/wiki/splurt/splurt_space_law
|
|
name = "Local Space Law"
|
|
desc = "A set of Nanotrasen guidelines for keeping law and order on their space stations. This one is specific to the local space station."
|
|
icon_state = "bookSpaceLaw"
|
|
author = "Nanotrasen"
|
|
title = "Space Law"
|
|
page_link = "Space_Law"
|
|
|
|
/obj/item/book/manual/wiki/splurt/splurt_space_law/suicide_act(mob/living/user)
|
|
user.visible_message(span_suicide("[user] pretends to read \the [src] intently... then promptly dies of laughter!"))
|
|
return OXYLOSS
|