-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
14 changed files
with
15 additions
and
1,135 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,345 +1,6 @@ | ||
<!doctype html> | ||
<!DOCTYPE html> | ||
<head> | ||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M0SCB1X0YP"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', 'G-M0SCB1X0YP'); | ||
</script> | ||
<meta charset="UTF-8" /> | ||
<title>Hudder wiki - Base.html</title> | ||
<script> | ||
|
||
document.addEventListener("DOMContentLoaded", function (event) { | ||
document.body.style = "background-color: #202020"; | ||
var notes = document.getElementsByTagName('note'); | ||
for (var i = 0; i < notes.length; i++) { | ||
let content = notes[i].innerHTML; | ||
notes[i].innerHTML = "<img src=\"/Images/Info.png\" alt=\"INFO\" width=\"24px\">" + content; | ||
} | ||
var notes = document.getElementsByTagName('warning'); | ||
for (var i = 0; i < notes.length; i++) { | ||
let content = notes[i].innerHTML; | ||
notes[i].innerHTML = "<img src=\"/Images/Warning.png\" alt=\"INFO\" width=\"24px\">" + content; | ||
} | ||
var codes = Array.from(document.getElementsByTagName('code')).concat(Array.from( | ||
document.getElementsByTagName("inline-code"))); | ||
for (var j = 0; j < codes.length; j++) { | ||
if (codes[j].getAttribute("language") != "js") continue; | ||
let content = codes[j].innerHTML; | ||
let result = ""; | ||
let builder = ""; | ||
let color = "gray"; | ||
let state = 0; | ||
for (i = 0; i < content.length; i++) { | ||
if (content[i]=="\"") { | ||
for (; i < content.length; i++) { | ||
builder += content[i]; | ||
if (content[i] == "\"") break; | ||
} | ||
result += "<span style=\"color:#E0E000\">" + builder + "</span>"; | ||
builder = ""; | ||
state = 0; | ||
color = "white"; | ||
continue; | ||
} | ||
builder += content[i]; | ||
if (content[i] === "\n"||content[i] === ";") { | ||
result += "<span style=\"color:" + color + "\">" + builder.substring(0,builder.length-1) + "</span>"; | ||
result += "<span style=\"color:white\">"+content[i]+"</span>"; | ||
color = "gray"; | ||
state = 0; | ||
builder = ""; | ||
} | ||
if (content[i] === "(") { | ||
result += "<span style=\"color:#018ea0\">" + builder.substring(0,builder.length-1) + "</span>"; | ||
result += "<span style=\"color:white\">(</span>"; | ||
builder = ""; | ||
} | ||
if (content[i] === ")") { | ||
result += "<span style=\"color:white\">" + builder + "</span>"; | ||
builder = ""; | ||
} | ||
if (state == 1) { | ||
if (content[i] === "=") { | ||
result += "<span style=\"color:#018ea0\">" + builder.substring(0, builder.length - 1) + "</span>"; | ||
result += "<span style=\"color:white\">\=</span>"; | ||
builder = ""; | ||
color = "white"; | ||
state = 2; | ||
} | ||
continue; | ||
} | ||
if (state == 2) { | ||
if (content[i] === " ") { | ||
result += "<span style=\"color:#018ea0\">" + builder + "</span>"; | ||
builder = ""; | ||
color = "#0f770f"; | ||
state = 0; | ||
} | ||
continue; | ||
} | ||
if (builder === "function " || builder === "return "||builder==="var "||builder==="let ") { | ||
result += "<span style=\"color:#ea716a\">" + builder + "</span>"; | ||
if (builder==="var "||builder==="let ") { | ||
color = "#018ea0"; | ||
state = 1; | ||
} | ||
builder = ""; | ||
} | ||
if (content[i] == "\t") { | ||
result += "\t"; | ||
builder = ""; | ||
} | ||
} | ||
result += "<span color=\"" + color + "\">" + builder + "</span>"; | ||
codes[j].innerHTML = result; | ||
} | ||
}); | ||
</script> | ||
<base href="/"> | ||
<meta http-equiv="refresh" content="0; url=https://ngspace.github.io/hudder/base.html"/> | ||
</head> | ||
<body> | ||
|
||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M0SCB1X0YP"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', 'G-M0SCB1X0YP'); | ||
</script> | ||
<style> | ||
#topbar { | ||
background-color: #101010; | ||
position: fixed; | ||
width: 100%; | ||
height: 8vh; | ||
left: 0; | ||
top: 0; | ||
} | ||
#topbar img { | ||
position: absolute; | ||
padding-top: 1.2vh; | ||
padding-left: 1.2vh; | ||
height: 80%; | ||
} | ||
#topbar #title { | ||
color: lightgray; | ||
text-align: center; | ||
padding-top: 0.8vh; | ||
font-size: 6.7vh; | ||
font-family: consolas; | ||
} | ||
#contents { | ||
position: absolute; | ||
text-align: left; | ||
color: lightgray; | ||
font-family: "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; | ||
font-size: 20px; | ||
width: calc(84% - 3px); | ||
left: 15%; | ||
padding-top: 15vh; | ||
padding-left: 1%; | ||
text-wrap: wrap; | ||
border-left: 3px solid gray; | ||
min-height: 85vh; | ||
z-index: -1; | ||
top: 0px; | ||
} | ||
#sidebar { | ||
text-align: left; | ||
color: white; | ||
font-family: "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; | ||
font-size: 1.3vw; | ||
width: 15%; | ||
margin: 0px; | ||
text-wrap: wrap; | ||
border: none; | ||
position: fixed; | ||
top: 9vh; | ||
left: 0%; | ||
} | ||
#sidebar h1 { | ||
margin: 0px; | ||
padding-left: 20px; | ||
margin-bottom: 10px; | ||
border-bottom: 3px solid gray; | ||
} | ||
#sidebar details { | ||
/* I know I could have used list but I decided to hide the button very late into dev and it was not worth it*/ | ||
pointer-events: none; /* prevents the hidden button from being clicked */ | ||
font-size: 0.9vw; | ||
} | ||
#sidebar details a { | ||
pointer-events: all; /* prevents click events */ | ||
position: relative; | ||
left: 20px; | ||
text-decoration: underline; | ||
} | ||
#sidebar details summary a {left: 27px;} | ||
#sidebar details summary {list-style: none;} | ||
#sidebar details ul { | ||
list-style: none; | ||
margin-top: 0px; | ||
margin-bottom: 0px; | ||
margin-left: -5px; | ||
} | ||
#sidebar details ul a { | ||
color: #4f8bd1; | ||
text-decoration: none; | ||
} | ||
p {margin: 10px;} | ||
h1 {margin: 0px;margin-top: 10px;margin-bottom: 10px;scroll-margin-top: 15vh;} | ||
h2 {margin: 0px;margin-top: 10px;margin-bottom: 10px;scroll-margin-top: 15vh;} | ||
a { | ||
color: #0969da; | ||
text-decoration: none; | ||
} | ||
code { | ||
display: block; | ||
font-family: monospace; | ||
border-radius: 5px; | ||
border-color: gray; | ||
border-style: solid; | ||
border-width: 1px; | ||
background-color: rgb(59, 59, 59); | ||
text-align: left; | ||
padding: 5px; | ||
white-space: pre; | ||
width: fit-content; | ||
} | ||
inline-code { | ||
font-family: monospace; | ||
border-radius: 5px; | ||
border-color: gray; | ||
border-style: solid; | ||
border-width: 1px; | ||
background-color: rgb(59, 59, 59); | ||
text-align: left; | ||
padding: 0px; | ||
margin: 0px; | ||
} | ||
note { | ||
display: inline-block; | ||
border-left: 0.25em solid; | ||
border-color: #0969da; | ||
padding: 10px; | ||
padding-bottom: 10px; | ||
border-collapse: collapse; | ||
display: flex; | ||
align-items: center; /* Align vertical */ | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
note img { | ||
padding-right: 10px; | ||
} | ||
warning { | ||
display: inline-block; | ||
border-left: 0.25em solid; | ||
border-color: #FF9D00; | ||
padding: 10px; | ||
padding-bottom: 10px; | ||
border-collapse: collapse; | ||
display: flex; | ||
align-items: center; /* Align vertical */ | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
warning img { | ||
padding-right: 10px; | ||
} | ||
|
||
table td {border: 3px solid gray;} | ||
table th {border: 3px solid gray;} | ||
table {border-collapse: collapse;border: 3px solid gray;max-width: 96%;} | ||
</style> | ||
<div id="topbar"> | ||
<img src="/Images/Hudder.webp" alt="Back to main wiki page" /> | ||
<div id="title">Hudder Wiki</div> | ||
</div> | ||
<div id="sidebar"> | ||
<h1>Explore</h1> | ||
<details open> | ||
<summary> | ||
<a href="/wiki/index.html">Home</a> | ||
</summary> | ||
</details> | ||
<details open> | ||
<summary><a href="/wiki/howto.html">Basic Tutorial</a></summary> | ||
<ul> | ||
<li><a href="/wiki/howto.html#text">Normal text</a></li> | ||
<li><a href="/wiki/howto.html#color">Character escaping and Color Codes</a></li> | ||
<li><a href="/wiki/howto.html#sections">Text sections</a></li> | ||
<li><a href="/wiki/howto.html#variables">Basic variables</a></li> | ||
<li><a href="/wiki/howto.html#conditions">Basic conditions</a></li> | ||
<li><a href="/wiki/howto.html#adv_variables">Advanced Variables</a></li> | ||
<li><a href="/wiki/howto.html#methods">Inventory management and methods</a></li> | ||
</ul> | ||
</details> | ||
<details open> | ||
<summary><a href="/wiki/javascript.html">JavaScript</a></summary> | ||
<ul> | ||
<li><a href="/wiki/javascript.html#sections">Sections? Functions!</a></li> | ||
<li><a href="/wiki/javascript.html#functions">List of functions and their descriptions</a></li> | ||
</ul> | ||
</details> | ||
<details open> | ||
<summary> | ||
<a href="/wiki/varlist.html">Variable list</a> | ||
</summary> | ||
</details> | ||
<details open> | ||
<summary> | ||
<a href="/wiki/methodlist.html">Method list</a> | ||
</summary> | ||
</details> | ||
<br> | ||
<details open> | ||
<summary> | ||
<a href="/wiki/russian.html">Русский</a> | ||
</summary> | ||
</details> | ||
</div> | ||
<div id="contents"> | ||
<warning> | ||
this is very important | ||
</warning> | ||
<note> | ||
this is very important | ||
</note> | ||
<h1 id="welcome">You shouldn't be seeing this page!!!</h1> | ||
That's what I get for having my open source | ||
<h1 id="welcome">Welcome to the hudder wiki!</h1> | ||
|
||
Hudder is a minecraft mod which allows you to create your own, highly | ||
customizable hud without prior programming knowledge.<br /> | ||
Hudder also allows more technical people the ability to use complex | ||
tools that they may be more familiar with (like JavaScript) to make | ||
their hud.<br /> | ||
Hudder also has a variety of built-in huds that can serve as a base for | ||
your own hud as well as give you the ability to make as many huds as you | ||
may wish for. | ||
<br /><br /> | ||
|
||
Want to start simple? <a href="/home.html">Full tutorial here.</a><br /> | ||
Want to do something with JavaScript? | ||
<a href="/home.html">This might be the place to start.</a><br /> | ||
A full variable list can be found <a href="/varlist.html">here.</a | ||
><br /> | ||
A full list of methods can be found <a href="/varlist.html">here.</a | ||
><br /> | ||
<code language="js">function topleft() { | ||
let fps = getVal("fps"); | ||
setVal("fpsbutbetter", fps+2); | ||
return "thy fps+2 is " + getVal("fpsbutbetter"); | ||
}</code> | ||
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /> | ||
<a id="ru" href="russian.html">Русский</a> | ||
</div> | ||
</body> |
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
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,6 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<meta http-equiv="refresh" content="0; url=https://ngspace.github.io/hudder/developers.html"/> | ||
</head> | ||
<body> | ||
</body> |
Oops, something went wrong.