-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (102 loc) · 4.32 KB
/
index.html
File metadata and controls
113 lines (102 loc) · 4.32 KB
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
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Mobile config generator</title>
<link rel="stylesheet" href="./vendor/codemirror/lib/codemirror.css" />
<link rel="stylesheet" href="./vendor/codemirror/addon/fold/foldgutter.css" />
<link rel="stylesheet" href="./vendor/codemirror/addon/dialog/dialog.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<header class="header">
<div class="container">
<div class="headerBar">
<div class="headerText">
<h1>Mobile config generator</h1>
<p class="muted">Собери конфиг из настроек → получи JSON → Copy / Download</p>
</div>
<div class="spacer"></div>
<div class="toolbar">
<button id="copyBtn">Copy</button>
<button id="downloadBtn">Download .json</button>
<button id="resetBtn" class="ghost danger">Reset</button>
</div>
</div>
</div>
</header>
<main class="container grid" id="mainGrid">
<section class="card panelLeft">
<div class="panelScroll">
<h2>Settings</h2>
<div class="row">
<label>slidingExpiration.config</label>
<input id="slidingConfigSec" type="number" value="1800" />
<span class="hint monoHint">sec</span>
</div>
<div class="row">
<label>maxInappsPerSession</label>
<input id="maxPerSession" type="number" min="1" value="100" />
</div>
<div class="row">
<label>maxInappsPerDay</label>
<input id="maxPerDay" type="number" min="1" value="100" />
</div>
<div class="row">
<label>minIntervalBetweenShows</label>
<input id="minIntervalSec" type="number" min="0" value="1" />
<span class="hint monoHint">sec</span>
</div>
<div class="row">
<label>send in-app show error</label>
<div class="segmented" role="radiogroup" aria-label="Send in-app show error">
<input id="sendInappShowError_false" type="radio" name="sendInappShowError" data-f="sendInappShowError" value="false" />
<label for="sendInappShowError_false">false</label>
<input id="sendInappShowError_true" type="radio" name="sendInappShowError" data-f="sendInappShowError" value="true" checked />
<label for="sendInappShowError_true">true</label>
</div>
</div>
<div class="divider"></div>
<div class="row sectionTitle">
<h2>In-apps</h2>
<div class="spacer"></div>
<button id="addInappBtn">Add in-app</button>
</div>
<div id="inappsRoot"></div>
</div>
</section>
<div id="splitter" class="splitter" title="Drag to resize"></div>
<section class="card panelRight">
<div class="row editorBar">
<div id="editorStatus" class="muted small"></div>
<div class="spacer"></div>
</div>
<div id="jsonNav" class="jsonNav" aria-label="JSON outline">
<div class="jsonNavTags"></div>
<div class="jsonNavActions" aria-hidden="true">
<button id="formatJsonBtn" class="ghost" hidden>Pretty</button>
<button id="regenerateJsonBtn" class="ghost" hidden>Reset JSON to dropdowns</button>
</div>
</div>
<div id="output" class="code codeEditor" aria-label="JSON editor"></div>
<div id="errors" class="errors"></div>
</section>
</main>
<script src="./vendor/codemirror/lib/codemirror.js"></script>
<script src="./vendor/codemirror/mode/javascript/javascript.js"></script>
<script src="./vendor/codemirror/addon/edit/matchbrackets.js"></script>
<script src="./vendor/codemirror/addon/fold/foldcode.js"></script>
<script src="./vendor/codemirror/addon/fold/foldgutter.js"></script>
<script src="./vendor/codemirror/addon/fold/brace-fold.js"></script>
<script src="./vendor/codemirror/addon/dialog/dialog.js"></script>
<script src="./vendor/codemirror/addon/search/searchcursor.js"></script>
<script src="./vendor/codemirror/addon/search/search.js"></script>
<script src="./vendor/codemirror/addon/search/jump-to-line.js"></script>
<script src="./app.shared.js"></script>
<script src="./app.inapps.js"></script>
<script src="./app.editor.js"></script>
<script src="./app.domain.js"></script>
<script src="./app.js"></script>
</body>
</html>