$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, }); }); };
const fetcher = $global.GetFetchConcept(); $global.SetFetchConcept({ Get: (url, options) => { return new Promise((resolve, reject) => { addRequest(); fetcher.Get(url, options).then((data) => { removeRequest(); resolve(data); }).catch((error) => { removeRequest(); reject(error); }); }); } }); addRequest = () => ++requestCount; removeRequest = () => (requestCount = Math.max(0, --requestCount));
mainMount = document.querySelector('#main-mount'); modalMount = document.querySelector('#modal-mount');
bgVisible = true;
Sign in
Home
Partnership
About Us
Blog
Get recommendation
Partnership
About Us
Blog
Get recommendation
const bg = $component('bg'), nav = $component('nav'); bg && window.setTimeout(() => { bg.top = '-999rem'; nav && (nav.bgVisible = false); }, 500);
404
page not found
Oops! That's an error — nothing here.
Return to the home page