-
Notifications
You must be signed in to change notification settings - Fork 2
/
makeshaped.html
133 lines (115 loc) · 4.74 KB
/
makeshaped.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<!--5ETOOLS_CMP-->
<!--5ETOOLS_ANALYTICS-->
<!--5ETOOLS_ADCODE-->
<meta charset="utf-8">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Make Shaped JS - 5etools</title>
<link rel="manifest" href="manifest.webmanifest">
<link rel="stylesheet" href="css/bootstrap.css?v=1.94.7">
<link rel="stylesheet" href="css/jquery-ui.css?v=1.94.7">
<link rel="stylesheet" href="css/jquery-ui-slider-pips.css?v=1.94.7">
<link rel="stylesheet" href="css/style.css?v=1.94.7">
<link rel="icon" href="favicon.png">
<script>if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js?v=1.94.7");</script>
<script type="text/javascript" src="js/header.js?v=1.94.7"></script>
<style>
#shapedJS {
resize: none;
width: 100%;
height: 100%;
}
.shaped-cols {
display: flex;
width: 100%;
justify-content: center;
}
.shaped-cols > *:first-child {
margin-right: 5rem;
}
.shaped-label {
display: flex;
}
.shaped-label > input {
margin-right: 5px;
}
.shaped-wrp-controls {
width: 100%;
display: flex;
flex-direction: column;
max-height: 100%;
}
#sourceList {
margin-bottom: 0;
}
.shaped-wrp-output {
flex: 1;
}
.wrp-shaped-list {
flex-shrink: 0;
display: flex;
height: 100%;
flex-direction: column;
}
</style>
</head>
<body>
<header class="hidden-xs hidden-sm page__header">
<div class="container">
<h1 class="page__title">Shaped JS Builder</h1>
<p class="page__subtitle">Select options, and hit Prepare.</p>
</div>
</header>
<nav class="container page__nav" id="navigation">
<ul class="nav page__nav-inner" id="navbar">
</ul>
</nav>
<div class="cancer__wrp-leaderboard"><!--5ETOOLS_AD_LEADERBOARD--></div>
<div class="cancer__wrp-sidebar-rhs"><!--5ETOOLS_AD_RIGHT_1--><div class="cancer__sidebar-rhs-inner"><!--5ETOOLS_AD_RIGHT_2--></div></div>
<main class="container">
<div class="row">
<div class="shaped-cols">
<div class="wrp-shaped-list">
<div class="text-center">
<label class="shaped-label ml-2"><input type="checkbox" id="selectAll"> Select All</label>
</div>
<ul id="sourceList"></ul>
<div class="text-center wrp-footer-buttons">
<button class="btn btn-xs btn-file btn-info" id="manage-brew">Manage Homebrew</button>
</div>
</div>
<div class="shaped-wrp-controls">
<div class="mb-2">
<p class="shaped-help">
If you use the <a href="https://github.com/mlenser/roll20-character-sheets/tree/master/5eShaped" target="_blank" rel="noopener">5e Shaped character sheet</a> on Roll20 with its <a href="https://github.com/mlenser/roll20-api-scripts/tree/master/5eShapedScript" target="_blank" rel="noopener">companion script</a>, this page will allow you to generate a supplementary script file that will load additional monsters and spells from the 5etools data set for use with the <span class="code">!shaped-import-monster</span> and <span class="code">!shaped-import-spell</span> commands. Select the sources that you wish to include, click the "Prepare JS" button and then, once the data has populated into the text box below, click the "Copy JS" button to copy it to the clipboard. You should then paste it into a new API script file in your Roll20 campaign. See the <a href="https://bitbucket.org/mlenser/5eshapedscript/wiki/Home" target="_blank" rel="noopener">script documentation</a> for more details on how to import spells and monsters into your game once you've loaded the additional data.
</p>
<p>
<strong>Important Note:</strong> Please do not paste links to this tool on public forums - especially not on the Roll20 forums.
</p>
</div>
<div class="mb-2 text-center" id="buttons">
<button class="btn btn-primary" id="copyJS" disabled="disabled">Copy JS</button>
</div>
<div class="mb-2 shaped-wrp-output">
<textarea id="shapedJS" class="form-control"></textarea>
</div>
</div>
</div>
</div>
</main>
<!--5ETOOLS_SCRIPT_ANCHOR-->
<!--5ETOOLS_AD_ADHESION-->
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/jquery-ui.js"></script>
<script type="text/javascript" src="lib/jquery-ui-slider-pip.js"></script>
<script type="text/javascript" src="js/shared.js?v=1.94.7"></script>
<script type="text/javascript" src="lib/localforage.js"></script>
<script type="text/javascript" src="js/makeshaped.js?v=1.94.7"></script>
<script type="text/javascript" src="js/list2.js?v=1.94.7"></script>
<script type="text/javascript" src="lib/elasticlunr.js"></script>
</body>
</html>