Skip to content

Commit

Permalink
Deployed 98737c8 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Jan 10, 2025
0 parents commit 5e97c83
Show file tree
Hide file tree
Showing 701 changed files with 10,938 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions 404.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assemblystorm/index.html

Large diffs are not rendered by default.

159 changes: 159 additions & 0 deletions assets/blueprint.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
#blueprintContainer {
font-size: 12.5px;
line-height: 20px;
/* font-family: "Roboto Mono", "SFMono-Regular", "Consolas", "Menlo", monospace; */
}
.blueprint {
border-top: 1px solid #8883;
border-left: 1px solid #8883;
border-right: 1px solid #8883;
margin: 0 0 0.4rem;
/* background: #282828; */
}
.property-row {
width: 100%;
display: flex;
flex-direction: column;
border-bottom: 1px solid #8883;
}
.property-row .property-name {
flex-grow: 0;
width: 8rem;
min-width: 6rem;
padding: 0.4rem;
padding-bottom: 0;
opacity: 0.3;
}
.property-row .property-value {
flex: 1;
padding: 0.4rem;
}
.entity-count {
height: 20px;
}
.show-on-hover {
opacity: 0.15;
padding-left: 0.4rem;
}
.entity-count:hover .show-on-hover {
opacity: 0.6;
}
.entity-count .count {
font-family: "Roboto Mono", "SFMono-Regular", "Consolas", "Menlo", monospace;
padding-right: 0.4rem;
}
.entity-count .label {
opacity: 0.7;
padding-left: 0.4rem;
}
.entity-list-toggle {
cursor: pointer;
}
img.icon {
width: 20px;
height: 20px;
object-fit: cover;
object-position: 0 0;
vertical-align: middle;
}
img.blueprint-preview {
height: auto;
min-height: none;
max-height: none;
max-width: 100%;
}

span.blueprint-label {
font-size: 18px;
margin-left: 12px;
line-height: 50px;
/* font-weight: bold; */
}

.label-icon {
width: 50px;
height: 50px;
position: relative;
}

.label-icon .item-icon img {
width: 50px;
height: 50px;
}

.label-icon .blueprint-icons {
width: 45px;
height: 45px;
position: absolute;
top: 3.5px;
left: 3px;
display: grid;
grid-template-columns: 20px 20px;
grid-row: auto auto;
grid-column-gap: 2.5px;
grid-row-gap: 2.5px;
}
.label-icon .blueprint-icons.icons-1 {
top: 8px;
left: 10px;
display: block;
}
.label-icon .blueprint-icons.icons-1 img {
height: 30px;
width: 30px;
}
.label-icon .blueprint-icons img {
display: block;
filter: drop-shadow(0px 2px 3px #0003);
}



.typesetter {
background: #282828;
color: #fff;
font-family: sans-serif;
font-size: 16px;
line-height: 24px;
padding: 0.5rem 1rem;
}

.typesetter input,
.typesetter textarea,
.typesetter button,
.typesetter select {
background: #333;
color: #fff;
border: 1px solid #666;
padding: 0.5rem;
display: block;
margin: 0;
flex: 1;
}

.typesetter button {
background: orange;
color: #333;
padding: 1rem 0.5rem;
font-size: 110%;
font-weight: bold;
cursor: pointer;
margin-top: 0.5rem;
}

.typesetter label {
display: block;
opacity: 0.8;
}

.typesetter .form {
display: flex;
flex-direction: column;
gap: 1rem
}

.typesetter code {
font-family: 'Courier New', Courier, monospace;
border: 1px solid #fff3;
padding: 0.1rem 0.2rem;
}
28 changes: 28 additions & 0 deletions assets/blueprint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// decode blueprintString and put info into container: HTMLDivElement
const processBlueprint = (blueprintName, container) => {
container.innerHTML = `Processing blueprint string ${factorio.loader}`;
const url = `../${blueprintName}.txt`;
fetch(url)
.then(function(response) {
response.text().then((text) => {
const blueprintString = text.trim();
document.querySelector(".highlight pre").querySelector("code").innerHTML = blueprintString;
try {
// get path to assets/ folder from logo image src
factorio.assetsPath = document
.querySelector("img[alt='logo']")
.getAttribute("src")
.split("assets/")[0] + "assets";
const blueprintObject = factorio.decodeBlueprint(blueprintString);
console.log(blueprintObject);
const key = [...Object.keys(blueprintObject)][0];
factorio.requestStagger = 0;
container.innerHTML = factorio.getBlueprintHTML(blueprintObject[key]);
} catch (e) {
const error = new Error().stack;
container.innerHTML = `<pre>${error}</pre>`;
throw e;
}
});
});
};
Binary file added assets/explosives.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5e97c83

Please sign in to comment.