mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	add missing javascript code
This commit is contained in:
		
							parent
							
								
									5e87cb378d
								
							
						
					
					
						commit
						bfd92305f2
					
				
							
								
								
									
										18
									
								
								styles/hc/application.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								styles/hc/application.js
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| 	$(document).ready( function() { | ||||
| 		$(".pwd").passStrength({ | ||||
| 			url: "../op/op.Ajax.php", | ||||
| 			minscore: <?php echo (int) $passwordstrength; ?>, | ||||
| 			onChange: function(data, target) { | ||||
| 				pws = <?php echo (int) $passwordstrength; ?>; | ||||
| 				kids = $('#'+target).children(); | ||||
| 				$(kids[1]).html(Math.round(data.strength)); | ||||
| 				$(kids[0]).width(data.strength); | ||||
| 				if(data.strength > pws) { | ||||
| 					$(kids[0]).css('background-color', 'green'); | ||||
| 				} else { | ||||
| 					$(kids[0]).css('background-color', 'red'); | ||||
| 				} | ||||
| 			} | ||||
| 		}); | ||||
| 	}); | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann