New selector for buttonBox, to allow use of galleries
This commit is contained in:
		
					parent
					
						
							
								19e86e2f50
							
						
					
				
			
			
				commit
				
					
						5009bf3eb4
					
				
			
		
					 1 changed files with 10 additions and 6 deletions
				
			
		|  | @ -70,11 +70,15 @@ | |||
|     </aside> | ||||
| 
 | ||||
|   </article> | ||||
|        <script src="{{ "js/baguetteBox.min.js" | relURL}}" rel="application/javascript"></script> | ||||
|       <script>baguetteBox.run('figure', { | ||||
|         captions: function(element) { | ||||
|             return element.getElementsByTagName('img')[0].title; | ||||
|         } | ||||
|       });</script> | ||||
|       <script src="{{ "js/baguetteBox.min.js" | relURL}}" rel="application/javascript" async></script> | ||||
|       <script> | ||||
|         window.addEventListener('load', function() { | ||||
|             baguetteBox.run('figure,.gallery', { | ||||
|                 captions: function(element) { | ||||
|                     return element.getElementsByTagName('img')[0].title; | ||||
|                 } | ||||
|             }); | ||||
|         }); | ||||
|       </script> | ||||
| 
 | ||||
| {{ end }} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue