Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update dist to v0.3.0 #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/directive/ng-password-strength.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
angular
.module('ngPasswordStrength')
.directive('ngPasswordStrength', ngPasswordStrength);
.directive('ngPasswordStrength', ['PasswordStrengthFormulaService', 'PasswordStrengthEntropyService', ngPasswordStrength]);

function ngPasswordStrength(PasswordStrengthFormulaService, PasswordStrengthEntropyService) {
return {
Expand Down
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!doctype html> <html class="no-js" ng-app="ngPasswordStrength" ng-init="mode='bootstrap'"> <head> <meta charset="utf-8"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" ng-if="mode === 'bootstrap'"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.1/css/foundation.css" ng-if="mode === 'foundation'"> <link rel="stylesheet" href="styles/main.css"> <body> <!--[if lt IE 7]>
<!doctype html> <html class="no-js" ng-app="ngPasswordStrength" ng-init="demo.cssMode='bootstrap'; demo.calculationMode='formula'; demo.goal=96"> <head> <meta charset="utf-8"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" ng-if="demo.cssMode === 'bootstrap'"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.1/css/foundation.css" ng-if="demo.cssMode === 'foundation'"> <link rel="stylesheet" href="styles/main.css"> <body> <!--[if lt IE 7]>
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]--> <!-- Add your site or application content here --> <div class="container"> <div class="row"> <h1>ngPasswordStrength</h1> <h3>Choose:</h3> <ul> <li> <a ng-class="{true:'active'}[mode === 'foundation']" ng-click="mode='foundation'">Foundation</a> </li> <li> <a ng-class="{true:'active'}[mode === 'bootstrap']" ng-click="mode='bootstrap'">Bootstrap</a> </li> </ul> <div class="form-group"> <input type="text" class="form-control" id="inputPass" placeholder="Password" ng-model="user.password"> <h2>Vars</h2> <div ng-if="mode === 'foundation'"> <div ng-password-strength="user.password" strength="passStrength" inner-class="meter"></div> </div> <div ng-if="mode === 'bootstrap'"> <div ng-password-strength="user.password" strength="passStrength" inner-class="progress-bar" inner-class-prefix="progress-bar-"></div> </div> <h2>Mode</h2> <div ng-password-strength="user.password" strength="passStrength" mode="bootstrap" ng-if="mode==='bootstrap'"></div> <div ng-password-strength="user.password" strength="passStrength" mode="foundation" ng-if="mode==='foundation'"></div> </div> <div>Current strength is <strong>{{passStrength}}</strong> </div> </div> </div> <script src="scripts/vendor.js"></script> <script src="scripts/ng-password-strength.min.js"></script>
<![endif]--> <!-- Add your site or application content here --> <div class="container"> <div class="row"> <h1>ngPasswordStrength</h1> <h3>CSS mode:</h3> <ul> <li> <a ng-class="{true:'active'}[demo.cssMode === 'foundation']" ng-click="demo.cssMode='foundation'">Foundation</a> </li> <li> <a ng-class="{true:'active'}[demo.cssMode === 'bootstrap']" ng-click="demo.cssMode='bootstrap'">Bootstrap</a> </li> </ul> <h3>Calculation mode:</h3> <ul> <li> <a ng-class="{true:'active'}[demo.calculationMode === 'formula']" ng-click="demo.calculationMode='formula'">Formula (default)</a> </li> <li> <a ng-class="{true:'active'}[demo.calculationMode === 'entropy']" ng-click="demo.calculationMode='entropy'">Entropy</a> </li> </ul> <div class="goal" ng-if="demo.calculationMode==='entropy'"> <label for="">Goal</label> <input type="number" ng-model="demo.goal"> <span>To improve performance goal is not watched so you have to change password to see how it influences</span> </div> <div class="form-group"> <input type="text" class="form-control" id="inputPass" placeholder="Password" ng-model="user.password"> <h2>Vars</h2> <div ng-if="demo.cssMode === 'foundation'"> <div ng-password-strength="user.password" strength="demo.passStrength" calculation-mode="{{demo.calculationMode}}" goal="{{demo.goal}}" inner-class="meter"></div> </div> <div ng-if="demo.cssMode === 'bootstrap'"> <div ng-password-strength="user.password" strength="demo.passStrength" calculation-mode="{{demo.calculationMode}}" goal="{{demo.goal}}" inner-class="progress-bar" inner-class-prefix="progress-bar-"></div> </div> <h2>Mode</h2> <div ng-password-strength="user.password" strength="passStrength" calculation-mode="{{demo.calculationMode}}" goal="{{demo.goal}}" css-mode="{{demo.cssMode}}"></div> </div> <div>Current strength is <strong>{{demo.passStrength}}</strong> </div> </div> </div> <script src="scripts/vendor.js"></script> <script src="scripts/ng-password-strength.min.js"></script>
220 changes: 0 additions & 220 deletions dist/scripts/ng-password-strength.js

This file was deleted.

Loading