$scope.update = (code, value, type, target) => { $scope.code = code; $scope.value = value; $scope.type = type; $scope.target = target; }; $scope.remove = () => { $scope.code = ''; $scope.value = 0; $scope.type = ''; $scope.target = ''; }; $scope.compute = (targetValue) => { if ($scope.type !== 'percentage'){ return $scope.value; } if (typeof targetValue !== 'number'){ targetValue = (($scope.target === 'service') ? $cart.serviceCharge : $cart.subTotal); } return (targetValue * $scope.value); };
copy = (text, message) => { navigator.clipboard.writeText(text).then(() => { $alert.notify({ type: 'success', message: (message || 'Text copied to clipboard.'), toast: true, }); }); };
Sign in
Predictive Calculator
Partnership
About Us
Blog
Get recommendation
Predictive Calculator
Partnership
About Us
Blog
Get recommendation
Welcome back to Shirah. Sign in as
Login
Register
Create account
Already have an account?
Sign in here
mainMount = document.querySelector('#main-mount'); modalMount = document.querySelector('#modal-mount');