-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (50 loc) · 2.39 KB
/
index.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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Corporate Warfare Asset Generator</title>
<link rel="stylesheet" href="/style/common.css">
<script type="text/javascript" src="https://unpkg.com/[email protected]/lib/umd.js"></script>
<script src="vendor/vue.js"></script>
<script src="vendor/svg.js"></script>
<script src="generator.js"></script>
<script src="vendor/saveAsPng.js"></script>
</head>
<body>
<h2>Corporate Warfare Asset Generator</h2>
<div id="app">
<select v-model="selected" @change="generateAsset(config)">
<option value="resistance">Resistance</option>
<option value="corporation">Corporation</option>
<option value="terrain" data-type="deck">Terrain</option>
<option value="objectives" disabled>Objectives</option>
</select>
<span v-if="factionSpecific">
<select v-model="kind" @change="generateAsset(config)">
<option value="deck">Characters</option>
<option value="vehicle">Vehicles</option>
<option value="token">Combat Tokens</option>
<option value="other">Other</option>
</select>
<select v-model="item" @change="generateAsset(config)">
<option value="all" v-if="notSingle" selected="selected" key="all">-- All --</option>
<option value="back" v-if="notSingle" key="back">-- Back --</option>
<option :value="index" v-for="(item, index) in assetList" :key="item.name">{{item.name}}</option>
</select>
</span>
<span v-else>
<select v-model="kind" @change="generateAsset(config)">
<option value="front" selected="selected">Front</option>
<option value="back">Back</option>
</select>
<select v-model="item" @change="generateAsset(config)">
<option value="all" selected="selected" key="all">-- All --</option>
<option :value="index" v-for="(item, index) in assetList" :key="item.name">{{index + 1}}{{kind == 'front' ? 'A' : 'B'}}</option>
</select>
</span>
<button @click="savePng">Save</button>
<div id="result"></div>
</div>
<script src="app.js"></script>
</body>
</html>