add new cold regional icon
This commit is contained in:
		
							parent
							
								
									6e70ccb252
								
							
						
					
					
						commit
						0522cbeaac
					
				
					 2 changed files with 7 additions and 1 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								server/images/r/cold.gif
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								server/images/r/cold.gif
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 9.4 KiB  | 
| 
						 | 
					@ -29,6 +29,7 @@ const icons = (() => {
 | 
				
			||||||
		case 'skc-n':
 | 
							case 'skc-n':
 | 
				
			||||||
		case 'nskc':
 | 
							case 'nskc':
 | 
				
			||||||
		case 'nskc-n':
 | 
							case 'nskc-n':
 | 
				
			||||||
 | 
							case 'cold-n':
 | 
				
			||||||
			return addPath('Clear-1992.gif');
 | 
								return addPath('Clear-1992.gif');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		case 'bkn':
 | 
							case 'bkn':
 | 
				
			||||||
| 
						 | 
					@ -135,6 +136,9 @@ const icons = (() => {
 | 
				
			||||||
		case 'blizzard':
 | 
							case 'blizzard':
 | 
				
			||||||
			return addPath('Blowing Snow.gif');
 | 
								return addPath('Blowing Snow.gif');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							case 'cold':
 | 
				
			||||||
 | 
								return addPath('cold.gif');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		default:
 | 
							default:
 | 
				
			||||||
			console.log(`Unable to locate regional icon for ${conditionName} ${link} ${isNightTime}`);
 | 
								console.log(`Unable to locate regional icon for ${conditionName} ${link} ${isNightTime}`);
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
| 
						 | 
					@ -142,7 +146,7 @@ const icons = (() => {
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const getWeatherIconFromIconLink = (link, _isNightTime) => {
 | 
						const getWeatherIconFromIconLink = (link, _isNightTime) => {
 | 
				
			||||||
		if (!link) return;
 | 
							if (!link) return false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// internal function to add path to returned icon
 | 
							// internal function to add path to returned icon
 | 
				
			||||||
		const addPath = (icon) => `images/${icon}`;
 | 
							const addPath = (icon) => `images/${icon}`;
 | 
				
			||||||
| 
						 | 
					@ -166,11 +170,13 @@ const icons = (() => {
 | 
				
			||||||
		case 'skc':
 | 
							case 'skc':
 | 
				
			||||||
		case 'hot':
 | 
							case 'hot':
 | 
				
			||||||
		case 'haze':
 | 
							case 'haze':
 | 
				
			||||||
 | 
							case 'cold':
 | 
				
			||||||
			return addPath('CC_Clear1.gif');
 | 
								return addPath('CC_Clear1.gif');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		case 'skc-n':
 | 
							case 'skc-n':
 | 
				
			||||||
		case 'nskc':
 | 
							case 'nskc':
 | 
				
			||||||
		case 'nskc-n':
 | 
							case 'nskc-n':
 | 
				
			||||||
 | 
							case 'cold-n':
 | 
				
			||||||
			return addPath('CC_Clear0.gif');
 | 
								return addPath('CC_Clear0.gif');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		case 'sct':
 | 
							case 'sct':
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue