This commit is contained in:
parent
c973e4d567
commit
8fb1a0626b
13
conv.html
13
conv.html
|
|
@ -181,7 +181,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="nbase64_output"></div>
|
||||
<label>Dane wyjściowe:</label>
|
||||
<pre id="base64_output"></pre>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -353,6 +354,16 @@
|
|||
.on('slide', RGBChange)
|
||||
.data('slider');
|
||||
|
||||
|
||||
function convert_base64() {
|
||||
if ($('input[name=base64RadioOptions]:checked').val() == "text") {
|
||||
$('#base64_output').html(window.btoa($('#base64_text').val()));
|
||||
} else {
|
||||
$('#base64_output').html(window.atob($('#base64_text').val()));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
// Run all converters at startup
|
||||
convert_time();
|
||||
show_color();
|
||||
|
|
|
|||
Loading…
Reference in New Issue