-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
156 lines (152 loc) · 7.09 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>E-Card Maker</title>
<link rel="stylesheet" href="font/font.css" type="text/css" media="all"/>
<link rel="stylesheet" href="style.css" type="text/css" media="all"/>
<meta name="Description" content="Create E-Cards online with ease (and a terrible user experience).">
<!-- OpenGraph Metadata -->
<meta property="og:title" content="E-Card Maker">
<meta property="og:description" content="Create E-Cards online with ease (and a terrible user experience).">
<meta property="og:site_name" content="himbeer.me">
<meta property="og:type" content="website">
<meta property="og:url" content="https://himbeer.me/apps/ecards/">
<meta property="og:image" content="https://himbeer.me/apps/ecards/thumbnail.jpg">
</head>
<body>
<div class="container">
<h1>E-Card Maker</h1>
<div class="main">
<div class="canvascontainer">
<canvas id="canvas" width="960" height="720">Your browser sucks</canvas>
</div>
<div class="settings">
<div class="setting">
<span>Image:</span>
<button id="imageSearch">Search image</button>
<button id="customImage">Upload image</button>
<button id="listCustom">List saved images</button>
</div>
<div class="setting">
<label for="mtext">Text</label>
<textarea id="mtext"></textarea>
</div>
<div class="setting">
<label for="to">To</label>
<input type="text" id="to"/>
</div>
<div class="setting">
<label for="from">From</label>
<input type="text" id="from"/>
</div>
<div class="setting">
<label for="backcl">Background Color</label>
<button class="jscolor {closable:true,closeText:'Close',valueElement:'backcl',value:'cc2211',onFineChange:'renderCard()'}"
id="backclb">Click to select
</button>
<input type="text" id="backcl" value="CC2211"/>
</div>
<div id="fontoptions">
<div class="setting">
<label for="textcl">Text Color</label>
<button class="jscolor {closable:true,closeText:'Close',valueElement:'textcl',value:'ffffff',onFineChange:'renderCard()'}"
id="textclb">Click to select
</button>
<input type="text" id="textcl" value="FFFFFF"/>
</div>
<div class="setting">
<label for="fontstyle">Effect</label>
<select id="fontstyle">
<option value="">Normal</option>
<option value="bold">Bold</option>
<option value="oblique">Oblique</option>
<option value="oblique bold">Bold & Oblique</option>
</select>
</div>
<div class="setting">
<label for="font">Font</label>
<input type="text" id="font" value="Comic Neue"/>
</div>
<div class="setting">
<label for="size">Size</label>
<input type="number" id="sizeText" value="1" step="0.1"/>
<input type="range" id="sizeSlider" value="1" min="0.2" max="4" step="0.05"/>
</div>
</div>
<div class="setting">
<button id="saveImage">Save image</button>
</div>
<footer style="margin-top: 2rem;">
<small style="color: grey;">Website: ©2023 Himbeer</small>
<a href="https://github.com/HimbeersaftLP/Valentine-ECard-Generator">Github</a>
</footer>
</div>
</div>
</div>
<div class="window" id="imageSearchWin" style="display: none;">
<div class="winHeader">
<form id="searchForm">
<input type="search" id="searchText">
<button type="submit">Search</button>
</form>
</div>
<div id="searchResults">
</div>
<div id="searchNavigation">
<button id="searchNavBack">< Previous page</button>
<button id="searchNavForward">Next page ></button>
<span id="searchPageInfo"></span>
</div>
<div id="searchLoading">
Loading...
</div>
<p>Images provided by <a href="https://pixabay.com/"><img alt="Pixabay" src="pixabay-logo.svg" style="height: 1em; vertical-align: middle;"></a>
and licensed under the <a href="https://pixabay.com/service/license/">Pixabay License</a>.</p>
</div>
<div class="window" id="customImageUploaderWin" style="display: none;">
<input id="customImageFile" type="file">
<button id="customImageConfirm">Okay</button>
</div>
<div class="window" id="customImageCropperWin" style="display: none;">
<div class="winHeader">
<p>Draw over the part of the image you want to keep, then press "Crop" to crop and "Save" to use the image.</p>
<p>You can access your picture with the "List saved images" button.</p>
<div>
<label for="penSize">Brush size</label>
<input id="penSize" type="range" min="1" max="50" value="10">
</div>
<div>
<button id="cropCrop">Crop</button>
<button id="cropConfirm">Save</button>
</div>
</div>
<div class="cropCanvasContainer">
<canvas id="originalImage"></canvas>
<canvas id="croppingMask"></canvas>
</div>
</div>
<div class="window" id="customImagePickerWin" style="display: none;">
<div id="customImages">
</div>
</div>
<div class="window" id="saveImageWin" style="display: none;">
<p>Long press (right click) the image to save:</p>
<img id="saveImageImg" alt="Valentine's Card" src="">
</div>
<canvas id="fontPreloader" width="1" height="1" style="width: 0; height: 0;"></canvas>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lie/3.3.0/lie.polyfill.min.js"
integrity="sha512-xgoykApB+wd90C4usNpsvZyghL+sVHi3e9bPPiqbEvZu9XAwzc7i1RXVVx7LUp845BFPf4XuqVAr801Ur8k2NQ==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/localforage/1.7.3/localforage.nopromises.min.js"
integrity="sha256-wVLovZQ/gu9lwfIJ50Y4kJLZH54WqgJJTaNHlbkf72M=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jscolor/2.0.4/jscolor.min.js"
integrity="sha256-CJWfUCeP3jLdUMVNUll6yQx37gh9AKmXTRxvRf7jzro=" crossorigin="anonymous"></script>
<script src="js/script.js" type="text/javascript" charset="utf-8"></script>
<script src="js/crop.js" type="text/javascript" charset="utf-8"></script>
<script src="js/search.js" type="text/javascript" charset="utf-8"></script>
<script src="js/draw.js" type="text/javascript" charset="utf-8"></script>
<script src="js/fontPreloader.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="/analytics.js"></script>
</body>
</html>