Widget:Caveripper: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>This widget allows you to embed the [https://github.com/mayabyte/caveripper Caveripper] tool. Accepted parameters: '''width''', '''height'''.</noinclude><includeonly><div><script src="https://mayabyte.github.io/caveripper/bootstrap.js"></script>
<noinclude>This widget allows you to embed the [https://github.com/mayabyte/caveripper Caveripper] tool. Accepted parameters: '''width''', '''height'''.</noinclude><includeonly><div><script src="https://mayabyte.github.io/caveripper/bootstrap.js"></script>
<button id="cr-generate" class="mw-ui-button" style="margin-bottom:2px">Generate</button>
<button id="cr-generate" class="mw-ui-button" style="margin-bottom:2px">Generate</button>
<span style="white-space:nowrap"><label for="cr-sublevel">Sublevel:</label>
<div style="display:inline-block"><label for="cr-sublevel">Sublevel:</label>
<select id="cr-sublevel" style="height:32px;vertical-align:middle;padding:6px;margin-bottom:2px">
<select id="cr-sublevel" style="height:32px;vertical-align:middle;padding:6px;margin-bottom:2px">
<option value="null">Select a sublevel...</option>
<option value="null">Select a sublevel...</option>
Line 111: Line 111:
<option value="dd13">Dream Den 13</option>
<option value="dd13">Dream Den 13</option>
<option value="dd14">Dream Den 14</option>
<option value="dd14">Dream Den 14</option>
</select></span>
</select></div>
<input id="cr-query" class="mw-ui-input" style="display:none;height:18px;vertical-align:middle;border:1px solid #999;padding:6px;margin-bottom:2px" placeholder="sublevel..."/>
<input id="cr-query" class="mw-ui-input" style="display:none;height:18px;vertical-align:middle;border:1px solid #999;padding:6px;margin-bottom:2px" placeholder="sublevel..."/>
<span style="white-space:nowrap"><label for="cr-sublevel">Seed:</label>
<div style="display:inline-block"><label for="cr-sublevel">Seed:</label>
<input id="cr-seed" class="mw-ui-input" style="height:18px;vertical-align:middle;border:1px solid #999;padding:6px;margin-bottom:2px" placeholder="(leave empty for random)" size="20"/>
<input id="cr-seed" class="mw-ui-input" style="height:18px;vertical-align:middle;border:1px solid #999;padding:6px;margin-bottom:2px" placeholder="(leave empty for random)" size="20"/>
<span id="cr-current-seed"></span></span>
<span id="cr-current-seed"></span></div>
<div id="caveripper-wrapper" style="width:<!--{$height|escape:'html'|default:'100%'}-->;height:<!--{$height|escape:'html'|default:'83vh'}-->;display:flex;align-items:center;justify-content:center;background:#0f0f0f;border:1px solid #999;margin-top:2px"><canvas id="cr-canvas" style="max-width:100%;max-height:100%;border:1px solid transparent;box-sizing:border-box"></div>
<div id="caveripper-wrapper" style="width:<!--{$height|escape:'html'|default:'100%'}-->;height:<!--{$height|escape:'html'|default:'83vh'}-->;display:flex;align-items:center;justify-content:center;background:#0f0f0f;border:1px solid #999;margin-top:2px"><canvas id="cr-canvas" style="max-width:100%;max-height:100%;border:1px solid transparent;box-sizing:border-box"></div>
<script>
<script>

Revision as of 11:43, April 6, 2024

This widget allows you to embed the Caveripper tool. Accepted parameters: width, height.