-
Notifications
You must be signed in to change notification settings - Fork 0
/
minecrafttooltips.html
131 lines (117 loc) · 7.86 KB
/
minecrafttooltips.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
---
layout: default
title: "Itens do Minecraft"
footer-fixed: true
---
<meta name="keywords" content="Minecraft, Tooltip, Item, Download, Generator">
<svg class="offscreen" width="0" height="0" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="crispify">
<feComponentTransfer>
<feFuncA type="discrete" tableValues="0 1"/>
</feComponentTransfer>
</filter>
</defs>
</svg>
<link rel="preconnect" href="/assets/Minecraft-Font/Minecraft.ttf" crossorigin>
<link rel="stylesheet" href="{{ site.baseurl }}/css/minecrafttooltips.css">
<div class="minecraft-flex">
<div class="minecraft-background minecraft-side center">
<div class="center-top-relative">
<div id="tooltip-output" class="center"></div>
<div id="recording-text" class="center hidden" style="margin-top: 1rem; margin-bottom: 1rem;">
<span data-translate-string='{"translate":"minecrafttooltips-recording"}'></span> <span id="recording-percentage">0</span>%
</div>
<div class="download-tooltip-wrapper info-bubble" data-translate-aria-label='{"translate":"minecrafttooltips-downloadtooltip"}'>
<button class="icon-button" id="download-tooltip" onclick="downloadOverlay.classList.toggle('hidden')">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 374.1 374.1" style="fill: currentColor; width: 15px;" xml:space="preserve">
<path d="M344.1,207.5c-16.6,0-30,13.4-30,30v76.6h-254v-76.6c0-16.6-13.4-30-30-30s-30,13.4-30,30v106.6c0,16.6,13.4,30,30,30h314
c16.6,0,30-13.4,30-30V237.5C374.1,220.9,360.6,207.5,344.1,207.5z"/>
<path d="M250.5,108.3l-33.5,33.5V30c0-16.6-13.4-30-30-30s-30,13.4-30,30v111.8l-33.5-33.5c-5.9-5.9-13.5-8.8-21.2-8.8
s-15.4,2.9-21.2,8.8c-11.7,11.7-11.7,30.7,0,42.4l84.7,84.7c11.7,11.7,30.7,11.7,42.4,0l84.7-84.7c11.7-11.7,11.7-30.7,0-42.4
C281.3,96.6,262.3,96.6,250.5,108.3z"/>
</svg>
</button>
</div>
</div>
</div>
<div class="minecraft-side">
<span data-translate-string='{"translate":"minecrafttooltips-title"}'>Gerador de nomes do Minecraft</span>
<div class="text-input-wrapper center">
<input type="text" data-translate-placeholder='{"translate":"minecrafttooltips-defaulttooltip"}' id="minecraft-text-input" name="Texto do Minecraft" class="text-input minecraft-text-input">
<!--<input type="text" data-translate-placeholder='{"translate":"minecrafttooltips-itemquantity"}' id="item-count-input" name="Número de itens" class="minecraft-text-input">-->
<button class="button" id="save-tooltip" data-translate-string='{"translate":"minecrafttooltips-save"}'>Salvar</button>
</div>
<span class="minor" data-translate-string='{"translate":"minecrafttooltips-savedtooltips"}'>Nomes salvos</span>
<div id="saved-tooltips" class="saved-tooltips center-notext"></div>
<div class="download-overlay hidden" id="download-overlay">
<div class="download-overlay-background" id="download-overlay-background"></div>
<div class="download-overlay-window">
<!--
<span class="minor"><span data-translate-string='{"translate":"minecrafttooltips-imageresolution"}'>resolução da imagem:</span> <span id="image-resolution">1</span>x</span> <span class="warning info-bubble" id="resolution-warning" data-translate-aria-label='{"translate":"minecrafttooltips-resolutionwarning"}'>!</span><br>
<input type="range" min="1" max="50" value="1" class="slider" id="resolution-slider">
-->
<span class="minor" data-translate-string='{"translate":"minecrafttooltips-duration"}'></span>
<form id="tooltip-duration" action="">
<label class="radio-input">
<input type="radio" name="tooltip-duration" id="download-tooltip-static" value="0" checked>
<span data-translate-string='{"translate":"minecrafttooltips-downloadtooltipstatic"}'></label>
</label>
<br>
<label class="radio-input">
<input type="radio" name="tooltip-duration" id="download-tooltip-full-loop" value="6283.185307179586">
<span data-translate-string='{"translate":"minecrafttooltips-downloadtooltipfullloop"}'></label>
</label>
<br>
<label class="radio-input">
<input type="radio" name="tooltip-duration" id="download-tooltip-custom" value="0">
<span data-translate-string='{"translate":"minecrafttooltips-downloadtooltipcustom"}'></label>
<input class="text-input" type="number" id="download-tooltip-custom-input" name="download-tooltip-custom-input" step="0.1" min="0">
</label>
</form>
<br>
<div class="download-overlay-download-button-wrapper info-bubble" data-translate-aria-label='{"translate":"minecrafttooltips-downloadtooltip-png"}'>
<button class="icon-button" id="download-overlay-download-button" onclick="recordPNG(exportFile); downloadOverlay.classList.add('hidden')">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 374.1 374.1" style="fill: currentColor; width: 15px;" xml:space="preserve">
<path d="M344.1,207.5c-16.6,0-30,13.4-30,30v76.6h-254v-76.6c0-16.6-13.4-30-30-30s-30,13.4-30,30v106.6c0,16.6,13.4,30,30,30h314
c16.6,0,30-13.4,30-30V237.5C374.1,220.9,360.6,207.5,344.1,207.5z"/>
<path d="M250.5,108.3l-33.5,33.5V30c0-16.6-13.4-30-30-30s-30,13.4-30,30v111.8l-33.5-33.5c-5.9-5.9-13.5-8.8-21.2-8.8
s-15.4,2.9-21.2,8.8c-11.7,11.7-11.7,30.7,0,42.4l84.7,84.7c11.7,11.7,30.7,11.7,42.4,0l84.7-84.7c11.7-11.7,11.7-30.7,0-42.4
C281.3,96.6,262.3,96.6,250.5,108.3z"/>
</svg>
</button>
</div>
<div class="download-overlay-download-button-wrapper info-bubble" data-translate-aria-label='{"translate":"minecrafttooltips-downloadtooltip-webp"}'>
<button class="icon-button" id="download-overlay-download-button" onclick="recordPNG(exportWebP); downloadOverlay.classList.add('hidden')">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 374.1 374.1" style="fill: currentColor; width: 15px;" xml:space="preserve">
<path d="M344.1,207.5c-16.6,0-30,13.4-30,30v76.6h-254v-76.6c0-16.6-13.4-30-30-30s-30,13.4-30,30v106.6c0,16.6,13.4,30,30,30h314
c16.6,0,30-13.4,30-30V237.5C374.1,220.9,360.6,207.5,344.1,207.5z"/>
<path d="M250.5,108.3l-33.5,33.5V30c0-16.6-13.4-30-30-30s-30,13.4-30,30v111.8l-33.5-33.5c-5.9-5.9-13.5-8.8-21.2-8.8
s-15.4,2.9-21.2,8.8c-11.7,11.7-11.7,30.7,0,42.4l84.7,84.7c11.7,11.7,30.7,11.7,42.4,0l84.7-84.7c11.7-11.7,11.7-30.7,0-42.4
C281.3,96.6,262.3,96.6,250.5,108.3z"/>
</svg>
</button>
</div>
<div class="download-overlay-close-button-wrapper info-bubble" data-translate-aria-label='{"translate":"minecrafttooltips-close"}'>
<button class="icon-button" id="close-button" onclick="downloadOverlay.classList.add('hidden')">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 374.1 374.1" style="fill: currentColor; width: 15px;" xml:space="preserve">
<g>
<path d="M349.2,349.2c-5.9,5.9-13.5,8.8-21.2,8.8c-7.7,0-15.4-2.9-21.2-8.8L185.6,228.1L65.2,348.5
c-5.9,5.8-13.5,8.8-21.2,8.8s-15.3-2.9-21.2-8.8c-11.7-11.7-11.7-30.7,0-42.4l120.4-120.4L24.9,67.4c-11.7-11.7-11.7-30.7,0-42.4
c11.7-11.7,30.7-11.7,42.4,0l118.3,118.3L304.6,24.3c11.7-11.7,30.7-11.7,42.4,0c11.7,11.7,11.7,30.7,0,42.4L228.1,185.6
l121.1,121.1C360.9,318.4,360.9,337.4,349.2,349.2z"/>
</g>
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script>
<script src="{{ site.baseurl }}/js/canvas2apng.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/apng2webp"></script>
<script src="{{ site.baseurl }}/js/minecraft-tip.js"></script>
<script src="{{ site.baseurl }}/js/minecraft-tip-impl.js"></script>
<script src="/modules/dom-to-image.js"></script>