Jump to content

Technological Bench: Difference between revisions

From Once Human Guide
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<div style="max-width:420px; margin:0 auto;">
<div style="max-width:420px; margin:0 auto;">
<style>
<style>
.tb-tabs{display:flex;gap:6px;margin-bottom:12px;}
.mw-tab-buttons {
.tb-tab{flex:1;padding:8px 0;font-size:13px;font-weight:600;text-align:center;border-radius:8px;border:1px solid #444;color:#aaa;cursor:pointer;background:#1a1a1a;}
  display: flex;
.tb-tab.active{background:#2a2a2a;color:#fff;border-color:#888;}
  width: 100%;
.tb-tab:hover:not(.active){background:#222;color:#ddd;}
  background: #0b0f14;
.tb-panel{display:none;}
  border-radius: 10px;
.tb-panel.active{display:block;}
  padding: 4px;
.tb-select{width:100%;padding:9px 10px;font-size:13px;border-radius:8px;border:1px solid #333;background:#1a1a1a;color:#eee;margin-bottom:10px;}
  gap: 4px;
.tb-output{background:#1a1a1a;border:1px solid #2a2a2a;border-radius:10px;padding:12px 14px;display:none;}
}
.tb-out-title{font-size:13px;font-weight:700;color:#eee;margin-bottom:8px;}
 
.tb-line{font-size:12px;color:#999;padding:5px 0;border-top:1px solid #2a2a2a;}
.mw-tab-btn {
.tb-line:first-of-type{border-top:none;}
  flex: 1;
.tb-tier{font-size:10px;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:.04em;display:block;margin-bottom:1px;}
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  color: #cfd6df;
  background: #11161c;
  border-radius: 6px;
  cursor: pointer;
}
 
.mw-tab-btn.active {
  background: linear-gradient(180deg, #1ec8ff, #0ea5e9);
  color: #001018;
}
 
.dropdown {
  width: 100%;
  margin-top: 10px;
}
 
.dropdown select {
  width: 100%;
  padding: 10px;
  background: #11161c;
  color: #e6edf3;
  border: 1px solid #1f2a35;
  border-radius: 8px;
  font-size: 14px;
}
 
.output {
  margin-top: 10px;
  background: #0d1319;
  border: 1px solid #1f2a35;
  border-radius: 10px;
  padding: 12px;
}
 
.output-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #e6edf3;
}
 
.output-line {
  font-size: 13px;
  color: #9fb0c3;
  padding: 4px 0;
  border-top: 1px solid #1a222b;
}
 
.output-line:first-of-type {
  border-top: none;
}
 
.mw-tab-content {
  display: none;
}
 
.mw-tab-content.active {
  display: block;
}
</style>
</style>
<div class="tb-tabs">
 
<div class="tb-tab active" data-tab="survival">Survival</div>
<div class="mw-tab-buttons">
<div class="tb-tab" data-tab="production">Production</div>
  <div class="mw-tab-btn active" data-tab="slot1">Survival</div>
<div class="tb-tab" data-tab="combat">Combat</div>
  <div class="mw-tab-btn" data-tab="slot2">Production</div>
<div class="tb-tab" data-tab="build">Build</div>
  <div class="mw-tab-btn" data-tab="slot3">Combat</div>
  <div class="mw-tab-btn" data-tab="slot4">Build</div>
</div>
</div>
<div id="survival" class="tb-panel active">
 
<select class="tb-select" id="survivalSelect">
<div id="slot1" class="mw-tab-content active">
<option value="">Select item</option>
<div class="dropdown">
<option value="stove">Primary stove</option>
<select id="survivalSelect">
<option value="meat">Meat drier</option>
  <option value="">Select Item</option>
<option value="treatment">Treatment</option>
  <option value="stove">Primary Stove</option>
<option value="adrenaline">Adrenaline shots</option>
  <option value="meat">Meat Drier</option>
<option value="waterfilter">Compact water filter</option>
  <option value="treatment">Treatment</option>
<option value="rainwater">Rainwater collection system</option>
  <option value="adrenaline">Adrenaline Shots</option>
  <option value="waterfilter">Compact Water Filter</option>
  <option value="rainwater">Rainwater Collection System</option>
</select>
</select>
<div class="tb-output" id="survivalOutput"></div>
</div>
</div>
<div id="production" class="tb-panel">
<div id="survivalOutput" class="output" style="display:none;"></div>
<select class="tb-select"><option value="">Select item</option></select>
</div>
<div id="combat" class="tb-panel">
<select class="tb-select"><option value="">Select item</option></select>
</div>
<div id="build" class="tb-panel">
<select class="tb-select"><option value="">Select item</option></select>
</div>
</div>
<div id="slot2" class="mw-tab-content"></div>
<div id="slot3" class="mw-tab-content"></div>
<div id="slot4" class="mw-tab-content"></div>
<script>
<script>
var data={stove:{title:"Primary stove",tiers:[{label:"Tech level 1",recipe:"29 Copper Ore + 17 Gravel + 25 Wood"},{label:"Tech level 8",recipe:"29 Copper Ore + 17 Gravel + 25 Wood"},{label:"Tech level 12",recipe:"30 Copper Ore + 25 Gravel + 17 Wood"}]},meat:{title:"Meat drier",tiers:[{label:"Tech level 1",recipe:"9 Iron Ingot + 13 Metal Scraps + 17 Wood"},{label:"Tech level 8",recipe:"6 Iron Ingot + 8 Metal Scraps + 17 Wood"},{label:"Tech level 12",recipe:"9 Iron Ingot + 8 Metal Scraps + 17 Wood"}]},treatment:{title:"Treatment",tiers:[{label:"Tech level 1",recipe:"1 Detoxident + 1 Glass + 5 Rubber + 1 Acid + 1 Boiled Water"},{label:"Tech level 8",recipe:"1 Detoxident + 1 Glass + 3 Rubber + 1 Acid + 1 Boiled Water"},{label:"Tech level 12",recipe:"1 Detoxident + 1 Glass + 5 Rubber + 1 Acid + 1 Boiled Water"}]},adrenaline:{title:"Adrenaline shots",tiers:[{label:"Tech level 1",recipe:"7 Acid + 1 Glass + 2 Rubber + 17 Stardust Source"},{label:"Tech level 8",recipe:"3 Acid + 1 Glass + 2 Rubber + 17 Stardust Source"},{label:"Tech level 12",recipe:"5 Acid + 1 Glass + 2 Rubber + 17 Stardust Source"}]},waterfilter:{title:"Compact water filter",tiers:[{label:"Tech level 1",recipe:"41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable"},{label:"Tech level 8",recipe:"41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable"},{label:"Tech level 12",recipe:"41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable"}]},rainwater:{title:"Rainwater collection system",tiers:[{label:"Tech level 1",recipe:"25 Wood + 13 Fiber + 5 Rubber"},{label:"Tech level 8",recipe:"25 Wood + 13 Fiber + 2 Rubber"},{label:"Tech level 12",recipe:"26 Wood + 13 Fiber + 3 Rubber"}]}};
document.querySelectorAll('.mw-tab-btn').forEach(btn => {
document.querySelectorAll('.tb-tab').forEach(function(btn){btn.onclick=function(){document.querySelectorAll('.tb-tab').forEach(function(b){b.classList.remove('active');});document.querySelectorAll('.tb-panel').forEach(function(p){p.classList.remove('active');});btn.classList.add('active');document.getElementById(btn.dataset.tab).classList.add('active');};});
  btn.onclick = () => {
document.getElementById('survivalSelect').onchange=function(){var out=document.getElementById('survivalOutput');var item=data[this.value];if(!item){out.style.display='none';return;}var html='<div class="tb-out-title">'+item.title+'</div>';for(var i=0;i<item.tiers.length;i++){html+='<div class="tb-line"><span class="tb-tier">'+item.tiers[i].label+'</span>'+item.tiers[i].recipe+'</div>';}out.innerHTML=html;out.style.display='block';};
    document.querySelectorAll('.mw-tab-btn').forEach(b => b.classList.remove('active'));
    document.querySelectorAll('.mw-tab-content').forEach(c => c.classList.remove('active'));
    btn.classList.add('active');
    document.getElementById(btn.dataset.tab).classList.add('active');
  };
});
 
const survivalData = {
  stove: {
    title: "Primary Stove",
    lines: [
      "Tech Level 1: 29 Copper Ore + 17 Gravel + 25 Wood",
      "Tech Level 8: 29 Copper Ore + 17 Gravel + 25 Wood",
      "Tech Level 12: 30 Copper Ore + 25 Gravel + 17 Wood"
    ]
  },
  meat: {
    title: "Meat Drier",
    lines: [
      "Tech Level 1: 9 Iron Ingot + 13 Metal Scraps + 17 Wood",
      "Tech Level 8: 6 Iron Ingot + 8 Metal Scraps + 17 Wood",
      "Tech Level 12: 9 Iron Ingot + 8 Metal Scraps + 17 Wood"
    ]
  },
  treatment: {
    title: "Treatment",
    lines: [
      "Tech Level 1: 1 Detoxident + 1 Glass + 5 Rubber + 1 Acid + 1 Boiled Water",
      "Tech Level 8: 1 Detoxident + 1 Glass + 3 Rubber + 1 Acid + 1 Boiled Water",
      "Tech Level 12: 1 Detoxident + 1 Glass + 5 Rubber + 1 Acid + 1 Boiled Water"
    ]
  },
  adrenaline: {
    title: "Adrenaline Shots",
    lines: [
      "Tech Level 1: 7 Acid + 1 Glass + 2 Rubber + 17 Stardust Source",
      "Tech Level 8: 3 Acid + 1 Glass + 2 Rubber + 17 Stardust Source",
      "Tech Level 12: 5 Acid + 1 Glass + 2 Rubber + 17 Stardust Source"
    ]
  },
  waterfilter: {
    title: "Compact Water Filter",
    lines: [
      "Tech Level 1: 41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable",
      "Tech Level 8: 41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable",
      "Tech Level 12: 41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable"
    ]
  },
  rainwater: {
    title: "Rainwater Collection System",
    lines: [
      "Tech Level 1: 25 Wood + 13 Fiber + 5 Rubber",
      "Tech Level 8: 25 Wood + 13 Fiber + 2 Rubber",
      "Tech Level 12: 26 Wood + 13 Fiber + 3 Rubber"
    ]
  }
};
 
document.getElementById("survivalSelect").onchange = function () {
  const val = this.value;
  const output = document.getElementById("survivalOutput");
  if (!val) {
    output.style.display = "none";
    return;
  }
  const item = survivalData[val];
  output.innerHTML =
    '<div class="output-title">' + item.title + '</div>' +
    item.lines.map(line => '<div class="output-line">' + line + '</div>').join("");
  output.style.display = "block";
};
</script>
</script>
</div>
</div>

Revision as of 16:28, 24 April 2026

<style> .mw-tab-buttons {

 display: flex;
 width: 100%;
 background: #0b0f14;
 border-radius: 10px;
 padding: 4px;
 gap: 4px;

}

.mw-tab-btn {

 flex: 1;
 text-align: center;
 padding: 10px 0;
 font-weight: 600;
 color: #cfd6df;
 background: #11161c;
 border-radius: 6px;
 cursor: pointer;

}

.mw-tab-btn.active {

 background: linear-gradient(180deg, #1ec8ff, #0ea5e9);
 color: #001018;

}

.dropdown {

 width: 100%;
 margin-top: 10px;

}

.dropdown select {

 width: 100%;
 padding: 10px;
 background: #11161c;
 color: #e6edf3;
 border: 1px solid #1f2a35;
 border-radius: 8px;
 font-size: 14px;

}

.output {

 margin-top: 10px;
 background: #0d1319;
 border: 1px solid #1f2a35;
 border-radius: 10px;
 padding: 12px;

}

.output-title {

 font-weight: 700;
 margin-bottom: 8px;
 color: #e6edf3;

}

.output-line {

 font-size: 13px;
 color: #9fb0c3;
 padding: 4px 0;
 border-top: 1px solid #1a222b;

}

.output-line:first-of-type {

 border-top: none;

}

.mw-tab-content {

 display: none;

}

.mw-tab-content.active {

 display: block;

} </style>

Survival
Production
Combat
Build

<script> document.querySelectorAll('.mw-tab-btn').forEach(btn => {

 btn.onclick = () => {
   document.querySelectorAll('.mw-tab-btn').forEach(b => b.classList.remove('active'));
   document.querySelectorAll('.mw-tab-content').forEach(c => c.classList.remove('active'));
   btn.classList.add('active');
   document.getElementById(btn.dataset.tab).classList.add('active');
 };

});

const survivalData = {

 stove: {
   title: "Primary Stove",
   lines: [
     "Tech Level 1: 29 Copper Ore + 17 Gravel + 25 Wood",
     "Tech Level 8: 29 Copper Ore + 17 Gravel + 25 Wood",
     "Tech Level 12: 30 Copper Ore + 25 Gravel + 17 Wood"
   ]
 },
 meat: {
   title: "Meat Drier",
   lines: [
     "Tech Level 1: 9 Iron Ingot + 13 Metal Scraps + 17 Wood",
     "Tech Level 8: 6 Iron Ingot + 8 Metal Scraps + 17 Wood",
     "Tech Level 12: 9 Iron Ingot + 8 Metal Scraps + 17 Wood"
   ]
 },
 treatment: {
   title: "Treatment",
   lines: [
     "Tech Level 1: 1 Detoxident + 1 Glass + 5 Rubber + 1 Acid + 1 Boiled Water",
     "Tech Level 8: 1 Detoxident + 1 Glass + 3 Rubber + 1 Acid + 1 Boiled Water",
     "Tech Level 12: 1 Detoxident + 1 Glass + 5 Rubber + 1 Acid + 1 Boiled Water"
   ]
 },
 adrenaline: {
   title: "Adrenaline Shots",
   lines: [
     "Tech Level 1: 7 Acid + 1 Glass + 2 Rubber + 17 Stardust Source",
     "Tech Level 8: 3 Acid + 1 Glass + 2 Rubber + 17 Stardust Source",
     "Tech Level 12: 5 Acid + 1 Glass + 2 Rubber + 17 Stardust Source"
   ]
 },
 waterfilter: {
   title: "Compact Water Filter",
   lines: [
     "Tech Level 1: 41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable",
     "Tech Level 8: 41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable",
     "Tech Level 12: 41 Wood + 13 Adhesive + 17 Charcoal + 21 Iron Ingot + 1 Power Cable"
   ]
 },
 rainwater: {
   title: "Rainwater Collection System",
   lines: [
     "Tech Level 1: 25 Wood + 13 Fiber + 5 Rubber",
     "Tech Level 8: 25 Wood + 13 Fiber + 2 Rubber",
     "Tech Level 12: 26 Wood + 13 Fiber + 3 Rubber"
   ]
 }

};

document.getElementById("survivalSelect").onchange = function () {

 const val = this.value;
 const output = document.getElementById("survivalOutput");
 if (!val) {
   output.style.display = "none";
   return;
 }
 const item = survivalData[val];
 output.innerHTML =
'
' + item.title + '
' + item.lines.map(line => '
' + line + '
').join("");
 output.style.display = "block";

}; </script>