mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-01 12:21:48 -05:00
AC-1006 upgraded all js libraries to latest release. Fixed obvious broken things. Installed bower to make package installation/upgrade easier. Added less to Grunt build.
This commit is contained in:
committed by
Chris Houseknecht
parent
d25e712e21
commit
e81d02885f
30
awx/ui/static/lib/angular-md5/example/index.html
Normal file
30
awx/ui/static/lib/angular-md5/example/index.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Angular md5</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script>
|
||||
<script src="../angular-md5.js"></script>
|
||||
</head>
|
||||
<body ng-app="YOUR_APP" ng-controller="MainCtrl" ng-cloak>
|
||||
<img ng-src="http://www.gravatar.com/avatar/{{ email | gravatar }}">
|
||||
<input type="email" ng-model="email" placeholder="Email Address" autofocus>
|
||||
Your email Hash is: {{ message }}
|
||||
<!--
|
||||
<script src="app/bower_components/angular-md5/angular-md5.js"></script>
|
||||
-->
|
||||
<script>
|
||||
angular.module('YOUR_APP', [
|
||||
'angular-md5', // you may also use 'ngMd5' or 'gdi2290.md5'
|
||||
'controllers'
|
||||
]);
|
||||
angular.module('controllers', [])
|
||||
.controller('MainCtrl', ['$scope', 'md5', function($scope, md5) {
|
||||
|
||||
$scope.$watch('email' ,function() {
|
||||
$scope.message = md5.createHash($scope.email || '');
|
||||
});
|
||||
|
||||
}]);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user