This commit is contained in:
Adrian Hinz 2016-10-13 15:43:39 +02:00
parent c973e4d567
commit 8fb1a0626b
1 changed files with 12 additions and 1 deletions

View File

@ -181,7 +181,8 @@
</div> </div>
</div> </div>
</form> </form>
<div id="nbase64_output"></div> <label>Dane wyjściowe:</label>
<pre id="base64_output"></pre>
</div> </div>
</div> </div>
@ -353,6 +354,16 @@
.on('slide', RGBChange) .on('slide', RGBChange)
.data('slider'); .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 // Run all converters at startup
convert_time(); convert_time();
show_color(); show_color();