@jajoosam/

Santafy

HTML, CSS, JS

Santa them pictures

fork
loading
Files
  • index.html
  • face.js
  • favicon.png
  • santa.png
  • script.js
  • style.css

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.1308030214579392","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgoJCTx0aXRsZT5TYW50YWZ5PC90aXRsZT4KICAgIDxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MS4wIj4KCQk8bGluayByZWw9Imljb24iIGhyZWY9ImZhdmljb24ucG5nIiB0eXBlPSJpbWFnZS9wbmciPgogICAgPGxpbmsgaHJlZj0ic3R5bGUuY3NzIiByZWw9InN0eWxlc2hlZXQiIHR5cGU9InRleHQvY3NzIiAvPgoJCTxsaW5rIHJlbD0ic3R5bGVzaGVldCIgaHJlZj0iaHR0cHM6Ly91bnBrZy5jb20vY2hvdGFAbGF0ZXN0Ij4KICA8L2hlYWQ+CiAgPGJvZHk+CgkJPGgxPlNhbnRhZnkg8J+OhTwvaDE+CgkJPGg1IGNsYXNzPSJ0ZXh0LWdyYXkiPvCflrzvuI8gQ2hvb3NlIGFuIGltYWdlIHRvIHNhbnRhZnk8L2g1PgoJCTxpbnB1dCB0eXBlPSJmaWxlIiAKICAgIG9uY2hhbmdlPSJnbyh3aW5kb3cuVVJMLmNyZWF0ZU9iamVjdFVSTCh0aGlzLmZpbGVzWzBdKSkiIGlkPSJ1cmwiPgoJCTxjYW52YXMgaWQ9ImNhbnZhcyI+PC9jYW52YXM+CgkJPGRpdiBpZD0iZGl2Ij48L2Rpdj4KCQk8ZGl2IGNsYXNzPSJjYXJkIGlzLXRleHQtY2VudGVyIj4KCQkJPGhlYWRlcj4KCQkJCTxoND5Xb3QgZGlzI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0PgoJCTxzY3JpcHQgYXN5bmMgZGVmZXIgc3JjPSJodHRwczovL2Nkbi5zaW1wbGVhbmFseXRpY3MuaW8vaGVsbG8uanMiPjwvc2NyaXB0PiAKCQk8bm9zY3JpcHQ+PGltZyBzcmM9Imh0dHBzOi8vYXBpLnNpbXBsZWFuYWx5dGljcy5pby9oZWxsby5naWYiIGFsdD0iIj48L25vc2NyaXB0PgogIDwvYm9keT4KPC9odG1sPg=="},"asBuffer":null},"loaded":true}}
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
<!DOCTYPE html>
<html>
  <head>
		<title>Santafy</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="icon" href="favicon.png" type="image/png">
    <link href="style.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="https://unpkg.com/[email protected]">
  </head>
  <body>
		<h1>Santafy ๐ŸŽ…</h1>
		<h5 class="text-gray">๐Ÿ–ผ๏ธ Choose an image to santafy</h5>
		<input type="file" 
    onchange="go(window.URL.createObjectURL(this.files[0]))" id="url">
		<canvas id="canvas"></canvas>
		<div id="div"></div>
		<div class="card is-text-center">
			<header>
				<h4>Wot dis magic? โœจ</h4>
			</header>
			<p >Santafy automagically adds santa hats to people in your images! It compresses your images with <a href="https://github.com/brunobar79/J-I-C">J.I.C</a>, detects faces with <a href="https://github.com/jaysalvat/jquery.facedetection">jquery.facedetection</a>, and draws <a href="santa.png">this</a> santa hat over them using HTML Canvas.<br></p>
			<footer>
				<span class="text-dark"> ๐ŸŽ„Merry Christmas ๐ŸŽ„<span>
				<a class="text-grey" href="https://twitter.com/jajoosam">by @jajoosam</a><br>
				<a href="/__repl"><img src="https://icongr.am/clarity/code.svg" style="display:inline"></a>
			</footer>
		</div>
		<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
		<script src="face.js"></script>
    <script src="script.js"></script>
		<script async defer src="https://cdn.simpleanalytics.io/hello.js"></script> 
		<noscript><img src="https://api.simpleanalytics.io/hello.gif" alt=""></noscript>
  </body>
</html>
result
console