deploy: 1a4743a798
				
					
				
			
							parent
							
								
									6e919a7fc9
								
							
						
					
					
						commit
						8b2013934c
					
				
								
									
									
										
											10
										
									
									fx_core.js
									
									
									
									
								
								
							
							
										
											10
										
									
									fx_core.js
									
									
									
									
								| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
const fx_version = '0.6.0.2'; // FX Client Version
 | 
					const fx_version = '0.6.0.3'; // FX Client Version
 | 
				
			||||||
const fx_update = 'Feb 3'; // FX Client Last Updated
 | 
					const fx_update = 'Feb 6'; // FX Client Last Updated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
 | 
					if (localStorage.getItem("fx_winCount") == undefined || localStorage.getItem("fx_winCount") == null) {
 | 
				
			||||||
| 
						 | 
					@ -121,8 +121,10 @@ function displayDonationsHistory(playerID, playerNames, isSingleplayer) {
 | 
				
			||||||
    var historyText = "";
 | 
					    var historyText = "";
 | 
				
			||||||
    history.reverse();
 | 
					    history.reverse();
 | 
				
			||||||
    if (history.length > 0) history.forEach(function(historyItem, index) {
 | 
					    if (history.length > 0) history.forEach(function(historyItem, index) {
 | 
				
			||||||
        if (playerID === historyItem[1]) historyText += `${(history.length - index)}. Received ${historyItem[2]} resources from ${playerNames[historyItem[0]]}<br>`;
 | 
					        historyText += `<span class="color-light-gray">${(history.length - index)}.</span> `;
 | 
				
			||||||
        else historyText += `${(history.length - index)}. Sent ${historyItem[2]} resources to ${playerNames[historyItem[1]]}<br>`;
 | 
					        if (playerID === historyItem[1])
 | 
				
			||||||
 | 
					            historyText += `Received <span class="color-green">${historyItem[2]}</span> resources from ${playerNames[historyItem[0]]}<br>`;
 | 
				
			||||||
 | 
					        else historyText += `Sent <span class="color-red">${historyItem[2]}</span> resources to ${playerNames[historyItem[1]]}<br>`;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    else historyText = "Nothing to display";
 | 
					    else historyText = "Nothing to display";
 | 
				
			||||||
    document.querySelector("#donationhistory p#donationhistory_text").innerHTML = historyText;
 | 
					    document.querySelector("#donationhistory p#donationhistory_text").innerHTML = historyText;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
								
									
									
										
											7
										
									
									main.css
									
									
									
									
								
								
							
							
										
											7
										
									
									main.css
									
									
									
									
								| 
						 | 
					@ -54,7 +54,7 @@ h1 {
 | 
				
			||||||
	transition        : 0.2s;
 | 
						transition        : 0.2s;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
canvas {
 | 
					canvas, input, textarea {
 | 
				
			||||||
	transition: 0.2s;
 | 
						transition: 0.2s;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,6 +73,11 @@ input#inputfilebtn {
 | 
				
			||||||
	transition: 0.2s
 | 
						transition: 0.2s
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.window#donationhistory { user-select: text; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.color-red { color: #dc143c; }
 | 
				
			||||||
 | 
					.color-green { color: #32cd32; }
 | 
				
			||||||
 | 
					.color-light-gray { color: #aaaaaa; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Checkbox */
 | 
					/* Checkbox */
 | 
				
			||||||
label.checkbox {
 | 
					label.checkbox {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue