Widget:Caveripper: Difference between revisions
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><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><script src="https://mayabyte.github.io/caveripper/bootstrap.js"></script> | ||
<div><button id="new-layout-button" class="mw-ui-button">New layout</button> | <div><button id="new-layout-button" class="mw-ui-button" style="margin-bottom:2px">New layout</button> | ||
<input id="sublevel-input" class="mw-ui-input" type="text" style="height:18px;vertical-align:middle;border:1px solid #999;padding:6px" placeholder="sublevel..."/> | <input id="sublevel-input" class="mw-ui-input" type="text" style="height:18px;vertical-align:middle;border:1px solid #999;padding:6px;margin-bottom:2px" placeholder="sublevel..."/> | ||
<input id="seed-input" class="mw-ui-input" type="text" style="height:18px;vertical-align:middle;border:1px solid #999;padding:6px" placeholder="seed... (leave empty for random)" size="27"/> | <input id="seed-input" class="mw-ui-input" type="text" style="height:18px;vertical-align:middle;border:1px solid #999;padding:6px;margin-bottom:2px" placeholder="seed... (leave empty for random)" size="27"/> | ||
<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: | <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="canvas" style="max-width:100%;max-height:100%;border:1px solid transparent;box-sizing:border-box"></div></div></includeonly> |
Revision as of 23:43, April 4, 2024
This widget allows you to embed the Caveripper tool. Accepted parameters: width, height.