forked from GithubMirrors/cardconjurer
		
	restyle
This commit is contained in:
		| @@ -8,6 +8,14 @@ rootStyles.setProperty('--font-color', '#000000') | ||||
| rootStyles.setProperty('--body-background', 'none') | ||||
| setCookie('colorPalette', 'dayRave') | ||||
|  | ||||
| //Stops the hue shift when another palette is loaded | ||||
| document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) | ||||
|  | ||||
| function removeEventListener() { | ||||
| 	clearInterval(colorCycle) | ||||
| 	document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) | ||||
| } | ||||
|  | ||||
| //Shifts the hue | ||||
| var colorCycle = setInterval(shiftHue, 100) | ||||
| var currentHueRotation = 0 | ||||
| @@ -18,13 +26,4 @@ function shiftHue() { | ||||
| 	if (currentHueRotation == 360) { | ||||
| 		currentHueRotation = 0 | ||||
| 	} | ||||
| } | ||||
|  | ||||
| //Stops the hue shift when another palette is loaded | ||||
| document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) | ||||
|  | ||||
| function removeEventListener() { | ||||
| 	console.log('cleared') | ||||
| 	clearInterval(colorCycle) | ||||
| 	document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) | ||||
| } | ||||
| @@ -8,6 +8,14 @@ rootStyles.setProperty('--font-color', '#efefef') | ||||
| rootStyles.setProperty('--body-background', 'none') | ||||
| setCookie('colorPalette', 'nightRave') | ||||
|  | ||||
| //Stops the hue shift when another palette is loaded | ||||
| document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) | ||||
|  | ||||
| function removeEventListener() { | ||||
| 	clearInterval(colorCycle) | ||||
| 	document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) | ||||
| } | ||||
|  | ||||
| //Shifts the hue | ||||
| var colorCycle = setInterval(shiftHue, 100) | ||||
| var currentHueRotation = 0 | ||||
| @@ -18,13 +26,4 @@ function shiftHue() { | ||||
| 	if (currentHueRotation == 360) { | ||||
| 		currentHueRotation = 0 | ||||
| 	} | ||||
| } | ||||
|  | ||||
| //Stops the hue shift when another palette is loaded | ||||
| document.getElementById('inputColorPalette').addEventListener('change', removeEventListener, false) | ||||
|  | ||||
| function removeEventListener() { | ||||
| 	console.log('cleared') | ||||
| 	clearInterval(colorCycle) | ||||
| 	document.getElementById('inputColorPalette').removeEventListener('change', removeEventListener, false) | ||||
| } | ||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 195 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 700 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 255 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 93 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 64 KiB | 
		Reference in New Issue
	
	Block a user
	 Kyle
					Kyle