File manager - Edit - /usr/local/cpanel/whostmgr/docroot/templates/autossl/directives/starRating.js
Back
/* # autossl/directives/starRating.js Copyright(c) 2020 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net http://cpanel.net # This code is subject to the cPanel license. Unauthorized copying is prohibited */ /* global define: false */ define( [ "angular", "cjt/core" ], function(angular, CJT) { "use strict"; var module = angular.module("whostmgr.autossl.starRating", []); var TEMPLATE_PATH = "directives/starRating.phtml"; module.directive("starRating", function() { return { templateUrl: TEMPLATE_PATH, restrict: "EA", replace: true, transclude: true, scope: { max: "=", rating: "=" }, controller: ["$scope", function($scope) { function _buildStars() { $scope.stars = []; while ($scope.stars.length < $scope.max) { $scope.stars.push($scope.rating > $scope.stars.length ? 1 : 0); } } $scope.$watch("max", _buildStars); $scope.$watch("rating", _buildStars); _buildStars(); }] }; }); } );
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings