56 lines
3.4 KiB
HTML
56 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>LispPlayground</title>
|
|
</head>
|
|
<body>
|
|
<div id="LispPlaygroundConfigPage" data-role="page" class="page type-interior pluginConfigurationPage" data-require="emby-input,emby-button,emby-select,emby-checkbox" data-controller="__plugin/lispPlayground.js">
|
|
<div data-role="content">
|
|
<div class="content-primary">
|
|
<form id="LispPlaygroundConfigForm">
|
|
<div class="inputContainer">
|
|
<label class="inputLabel inputLabelUnfocused" for="LispPlaygroundInputLinks">Input Items</label>
|
|
<div class="fieldDescription">
|
|
Items which should be given to the filter program, one link per line.
|
|
This list is provided to the program in the
|
|
<code>*items*</code> variable.<br>
|
|
Hint: Just copy the link to the media item,
|
|
it should contain a <code>id</code> in
|
|
the query part of the URL's
|
|
fragment.<br>
|
|
Example:
|
|
<code>https://jellyfin.example.com/web/#/details?id=9f63ee779963588ed2ad94d37d6abe4e&serverId=dc0683d7a413473eb8246d21eaea2f99</code><br>
|
|
<textarea id="LispPlaygroundInputLinks" class="emby-input smartplayground-monospace" name="InputLinks" rows="16" cols="120"></textarea>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<label class="inputLabel inputLabelUnfocused" for="LispPlaygroundEditProgram">Program</label>
|
|
<div class="fieldDescription">A program which should return <code>t</code> or <code>nil</code> to include or exclude the provided <code>item</code>.</div>
|
|
<textarea id="LispPlaygroundEditProgram" class="emby-input smartplayground-monospace" name="Program" rows="16" cols="120"></textarea>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<label class="inputLabel inputLabelUnfocused" for="LispPlaygroundOutput">Output</label>
|
|
<div class="fieldDescription">The output of the program.</div>
|
|
<textarea id="LispPlaygroundOutput" class="emby-input smartplayground-monospace" name="Output" rows="16" cols="120"></textarea>
|
|
</div>
|
|
<div class="inputContainer">
|
|
<label class="inputLabel inputLabelUnfocused" for="LispPlaygroundReturn">Final expression</label>
|
|
<div class="fieldDescription">The final expression the program has been reduced to.</div>
|
|
<textarea id="LispPlaygroundReturn" class="emby-input smartplayground-monospace" name="Output" rows="1" cols="120"></textarea>
|
|
</div>
|
|
<div>
|
|
<button is="emby-button" type="submit" class="raised button-submit block emby-button">
|
|
<span>Run</span>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.smartplayground-monospace {
|
|
font-family: monospace;
|
|
}
|
|
</style>
|
|
</div>
|
|
</body>
|
|
</html>
|