Search the Community
Showing results for tags 'meter'.
-
Hello Friends! Simple meter for password strength: How to use? For example for UniEdit: 1. UniServerModule.CustomCSS : .x-form-strengthmeter { width : 100%; float: right; background: #ff4c00; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: -moz-linear-gradient(left, #ff4c00 0%, #edd712 50%, #1aff00 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, right top, color-stop(0%,#ff4c00), color-stop(50%,#edd712), color-stop(100%,#1aff00)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(left, #ff4c00 0%,#edd712 50%,#1aff00 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(left, #ff4c00 0%,#edd712 50%,#1aff00 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(left, #ff4c00 0%,#edd712 50%,#1aff00 100%); /* IE10+ */ background: linear-gradient(left, #ff4c00 0%,#edd712 50%,#1aff00 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff4c00', endColorstr='#1aff00',GradientType=1 ); /* IE6-8 */ } .x-form-strengthmeter-scorebar { background-color: white; float: right; line-height: 6px; width: 100%; } 2. UniEdit->ClientEvents->UniEvents: beforeInit fn Of course still need to optimize the calcStrength function. Try... Best regards.