From 8fb1a0626b7c53c96c9fd63ef689b5e21b754866 Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Thu, 13 Oct 2016 15:43:39 +0200 Subject: [PATCH] f --- conv.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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();