mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-10-31 16:36:45 +01:00 
			
		
		
		
	Added simple notifications.
Updated styling for word links.
This commit is contained in:
		
							parent
							
								
									a4a3bc8b9d
								
							
						
					
					
						commit
						8356317d1d
					
				
					 4 changed files with 35 additions and 1 deletions
				
			
		|  | @ -73,6 +73,10 @@ input, textarea, select, option, button { | |||
| 	background: #efdfc0; | ||||
| } | ||||
| 
 | ||||
| #notificationArea { | ||||
|     background:#c0c088; | ||||
| } | ||||
| 
 | ||||
| #dictionaryContainer { | ||||
| 	background: #bd7251; | ||||
| 	padding: 15px; | ||||
|  |  | |||
|  | @ -111,6 +111,15 @@ input[type=checkbox] { | |||
|     margin: 0 10px 0 0; | ||||
| } | ||||
| 
 | ||||
| #notificationArea { | ||||
|     text-align:center; | ||||
|     padding:10px; | ||||
|     border-radius:5px; | ||||
|     margin:0 auto; | ||||
|     width:50%; | ||||
|     min-width:200px; | ||||
| } | ||||
| 
 | ||||
| #dictionaryContainer { | ||||
|     margin: 15px 0 36px 15px;    /* bottom margin must clear footer */ | ||||
|     width: 60%; | ||||
|  | @ -166,6 +175,9 @@ entry { | |||
| .wordLink { | ||||
|     text-decoration: none; | ||||
|     float: right; | ||||
|     font-size: 13px; | ||||
|     padding: 2px; | ||||
|     line-height: 10px; | ||||
| } | ||||
| 
 | ||||
| word { | ||||
|  |  | |||
							
								
								
									
										20
									
								
								index.php
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								index.php
									
										
									
									
									
								
							|  | @ -1,4 +1,7 @@ | |||
| <!DOCTYPE html> | ||||
| <?php | ||||
| $notificationMessage = get_include_contents('notification.php'); | ||||
| ?>
 | ||||
| <!DOCTYPE html> | ||||
| <html> | ||||
| <head> | ||||
|     <meta charset="utf-8" /> | ||||
|  | @ -25,6 +28,11 @@ | |||
|         </div> | ||||
|     </header> | ||||
|     <contents> | ||||
|     <?php if ($notificationMessage) { ?>
 | ||||
|     <div id="notificationArea"> | ||||
|         <?php echo $notificationMessage; ?>
 | ||||
|     </div> | ||||
|     <?php } ?>
 | ||||
|     <div id="leftColumn"> | ||||
|     <form id="wordEntryForm"> | ||||
|         <label><span>Word</span> | ||||
|  | @ -171,3 +179,13 @@ | |||
|     <?php include_once("php/google/analytics.php"); ?>
 | ||||
| </body> | ||||
| </html> | ||||
| <?php | ||||
| function get_include_contents($filename) { | ||||
|     if (is_file($filename)) { | ||||
|         ob_start(); | ||||
|         include $filename; | ||||
|         return ob_get_clean(); | ||||
|     } | ||||
|     return false; | ||||
| } | ||||
| ?>
 | ||||
							
								
								
									
										0
									
								
								notification.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								notification.php
									
										
									
									
									
										Normal file
									
								
							
		Loading…
	
	Add table
		
		Reference in a new issue