Add modules to repository

This commit is contained in:
Sebastian Kinne
2017-11-16 16:42:22 +11:00
commit d0aa1e38ef
707 changed files with 96750 additions and 0 deletions

34
MACInfo/js/module.js Normal file
View File

@@ -0,0 +1,34 @@
/* This is our AngularJS controller, called "MACInfo". */
registerController('MACInfo', ['$api', '$scope', function($api, $scope) {
$scope.company = "";
$scope.macprefix = "";
$scope.address = "";
$scope.country = "";
$scope.type = "";
$scope.error = "";
$scope.isLookupSuccess = false;
$scope.isLookupFailure = false;
$scope.moduleMAC = "";
$scope.getMACInfo = (function() {
$api.request({
module:"MACInfo",
action:"getMACInfo",
moduleMAC: $scope.moduleMAC
}, function(response){
if(response.success == true){
$scope.isLookupSuccess = true;
$scope.isLookupFailure = false;
$scope.company = response.company;
$scope.macprefix = response.macprefix;
$scope.address = response.address;
$scope.country = response.country;
$scope.type = response.type;
}
else{
$scope.isLookupSuccess = false;
$scope.isLookupFailure = true;
$scope.error = response.error;
}
});
});
}]);