-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (48 loc) · 1.91 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
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mockup Generator</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Mockup Generator By DRS</h1>
<form onsubmit="event.preventDefault();formSubmit()">
<div id="file-div">
<input id="design" type="file" name="design" accept="image/png, image/gif, image/jpeg" required>
<h3 id="choose">⇐  Choose / Drop your Design file HERE  ⇒</h3>
</div>
<main>
<section class="section">
<h2>Select your Mockups:</h2>
<div class="selection-group mockup-group">
</div>
</section>
<section class="section">
<h2>Select a Color:</h2>
<div class="selection-group color-group"></div>
</section>
</main>
<div>
<input type="submit" id="generate-button" class="button" value="Generate">
<div>
<label for="xOff">X-Offset: </label><input type="number" name="xOff" id="xOff">
<label for="yOff">Y-Offset: </label><input type="number" name="yOff" id="yOff">
<label for="scale">Shrink(%): </label><input type="number" name="scale" id="scale">
<button id="reset" class="button" onclick="this.parentElement.children[1].value='';this.parentElement.children[3].value='';this.parentElement.children[5].value='';"
type="button">Reset</button>
</div>
</div>
</form>
<iframe id="photopea" src="https://www.photopea.com" style="width:800px; height:500px; display: none;"
onload="iframeLoaded(this)"></iframe>
<section class="output">
</section>
<button type="button" id="download" class="button" onclick="downloadOutputFiles()" style="display: none;">Download Mockups</button>
<div id="generating">
<h1>Generating....</h1>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>