mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Use innerHTML instead of innerText in Code Copy strings
so that users willing to use a svg inplace of already existing text can update the i18n strings and get an svg in place
This commit is contained in:
		| @@ -91,12 +91,12 @@ | ||||
|  | ||||
|         const copybutton = document.createElement('button'); | ||||
|         copybutton.classList.add('copy-code'); | ||||
|         copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}'; | ||||
|         copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}'; | ||||
|  | ||||
|         function copyingDone() { | ||||
|             copybutton.innerText = '{{- i18n "code_copied" | default "copied!" }}'; | ||||
|             copybutton.innerHTML = '{{- i18n "code_copied" | default "copied!" }}'; | ||||
|             setTimeout(() => { | ||||
|                 copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}'; | ||||
|                 copybutton.innerHTML = '{{- i18n "code_copy" | default "copy" }}'; | ||||
|             }, 2000); | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange