fix sizing
This commit is contained in:
		
							parent
							
								
									480736e877
								
							
						
					
					
						commit
						194ebc58de
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -45,10 +45,13 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||||
| 	<script type="text/javascript"> | 	<script type="text/javascript"> | ||||||
| 		(function($) { | 		(function($) { | ||||||
| 			var width = $(window).width(); | 			var width = $(window).width(); | ||||||
| 			var height = $(window).height(); | 			var height = $(window).height() - 150; | ||||||
| 			var size = (width < height ? width : height - 50) + 'px'; | 			var size = width < height ? width : height; | ||||||
|  | 			if (size < 200) { | ||||||
|  | 				size = 200; | ||||||
|  | 			} | ||||||
| 			$('#uhr').uhr({ | 			$('#uhr').uhr({ | ||||||
| 				width: size, | 				width: size + 'px', | ||||||
| 				language: 'de_CH', | 				language: 'de_CH', | ||||||
| 			}); | 			}); | ||||||
| 		})(jQuery); | 		})(jQuery); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue