mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	added image marking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									724051ff5e
								
							
						
					
					
						commit
						53c6297f45
					
				| @ -59,8 +59,8 @@ | ||||
| 	display: inline-block; | ||||
| 	vertical-align: middle; | ||||
| 	text-align;left; | ||||
| 	width: 100px; | ||||
| 	height: 100px; | ||||
| 	width: 300px; | ||||
| 	height: 300px; | ||||
| 	font-size: 12pt; | ||||
| 
 | ||||
| 	background: black; | ||||
| @ -72,6 +72,25 @@ | ||||
| 	background: red; | ||||
| } | ||||
| 
 | ||||
| /* XXX this misbehaves... (happens with page zoom) */ | ||||
| .marked.image:after { | ||||
| 	display: block; | ||||
| 	position: absolute; | ||||
| 	content: ""; | ||||
| 	font-size: 0pt; | ||||
| 	border: none; | ||||
| 
 | ||||
| 	/* XXX this is not uniform circle for some reason... (connected with page zoom) */ | ||||
| 	width: 5px; | ||||
| 	height: 5px; | ||||
| 
 | ||||
| 	bottom: 5px; | ||||
| 	right: 5px; | ||||
| 
 | ||||
| 	border-radius: 50%; | ||||
| 	background: blue; | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| </style> | ||||
| 
 | ||||
| @ -98,6 +117,11 @@ Split the API into the following sections: | ||||
| 
 | ||||
| */ | ||||
| 
 | ||||
| 
 | ||||
| var toggleImageMark = createCSSClassToggler('.current.image', 'marked') | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| function createImage(n){ | ||||
| 	if(n == null){ | ||||
| 		if(window._n == null){ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user