diff --git a/conv.html b/conv.html index 0a2aaca..831511b 100644 --- a/conv.html +++ b/conv.html @@ -181,7 +181,8 @@ -
+ + @@ -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();