mirror of
				https://github.com/Investigamer/cardconjurer.git
				synced 2025-10-31 15:15:12 -05:00 
			
		
		
		
	css
This commit is contained in:
		
							
								
								
									
										15
									
								
								data/main.js
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								data/main.js
									
									
									
									
									
								
							| @@ -2,6 +2,21 @@ | ||||
| //       Card Conjurer, by Kyle Burton        // | ||||
| //============================================// | ||||
| //Hi there :D | ||||
| window.onscroll = function() {scrollFunction()}; | ||||
| window.onresize = function() {scrollFunction()} | ||||
|  | ||||
| function scrollFunction() { | ||||
| 	if (window.innerWidth > 900) { | ||||
| 		if (document.body.scrollTop < 70) { | ||||
|     		document.getElementById("header").style.maxHeight =  100 - document.body.scrollTop + "px"; | ||||
|   		} else { | ||||
|     		document.getElementById("header").style.maxHeight = "30px"; | ||||
|   		} | ||||
| 	} else { | ||||
| 		document.getElementById("header").style.maxHeight = "80px"; | ||||
| 	} | ||||
| } | ||||
| scrollFunction() | ||||
|  | ||||
| //============================================// | ||||
| //     Anything I Like to Change Often :)     // | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle