mirror of
				https://github.com/msberends/AMR.git
				synced 2025-10-31 02:48:21 +01:00 
			
		
		
		
	Built site for AMR@3.0.0.9002: 3742e9e
				
					
				
			This commit is contained in:
		
							
								
								
									
										14
									
								
								extra.js
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								extra.js
									
									
									
									
									
								
							| @@ -29,10 +29,22 @@ | ||||
| # ==================================================================== # | ||||
| */ | ||||
|  | ||||
| $(document).ready(function() { | ||||
| $(function () { | ||||
|   // add GPT assistant info | ||||
|   $('aside').prepend('<div class="amr-gpt-assistant"><a target="_blank" href="https://chat.amr-for-r.org"><img src="https://amr-for-r.org/AMRforRGPT.svg"></a></div>'); | ||||
|  | ||||
|   // split version number in navbar into main version and build number | ||||
|   $('.nav-text').each(function () { | ||||
|     const $el = $(this); | ||||
|     const text = $.trim($el.text()); | ||||
|     const lastDotIndex = text.lastIndexOf('.'); | ||||
|     if (lastDotIndex > -1) { | ||||
|       const main = text.substring(0, lastDotIndex); | ||||
|       const build = text.substring(lastDotIndex); | ||||
|       $el.html(`<span class="version-main">${main}</span><span class="version-build">${build}</span>`); | ||||
|     } | ||||
|   }); | ||||
|  | ||||
|   // replace 'Developers' with 'Maintainers' on the main page, and "Contributors" on the Authors page | ||||
|   $(".developers h2").text("Maintainers"); | ||||
|   $(".template-citation-authors h1:nth(0)").text("Contributors and Citation"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user