Submitability
How do I make an submitability?
Submitability. What is a submitability? How do you make a submitability? This script and codes were developed by Kevin on 28 October 2022, Friday.
Submitability - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>submitability</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!DOCTYPE html>
<html lang="en" ng-app="submitability">
<head> <meta charset="UTF-8" /> <title>submitability</title>
</head>
<body ng-controller="submitabilityCtrl as vm"> <button submitability="submitHandle">提交</button>
</body>
</html> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Submitability - Script Codes CSS Codes
button{ width: 200px; background-color: blue; color: #ffffff; padding:10px; border-radius:5px;
}
button.disabled{ background-color: gray;
}
Submitability - Script Codes JS Codes
angular.module('submitability', []) .controller("submitabilityCtrl", ['$timeout', '$scope', function($timeout, $scope){ var vm = this; $scope.submitHandle = function(){ var delay = 5000; console.log('---submitHandle---'); $timeout(function(){ console.log('---submitHandle.enabled---'); $scope.submitHandle['enabled'] = true; }, delay); } }]) .directive('submitability', function(){ return { restrict: 'A', link: function(scope, element, attrs){ var disabledcls = attrs['disabled'] || 'disabled'; var submitability = scope[attrs['submitability']]; submitability['enabled'] = true; scope.$watch(function(){ return submitability['enabled']; }, function(enabled){ !enabled ? element.addClass(disabledcls) : element.removeClass(disabledcls); }); element.on('click', function(){ if(submitability['enabled']){ scope.$apply(function(){ submitability['enabled'] = false; }); submitability(); } }); } } })
Developer | Kevin |
Username | chenming142 |
Uploaded | October 28, 2022 |
Rating | 3 |
Size | 2,105 Kb |
Views | 22,264 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by Kevin | 10,365 Kb |
NgModel validation Unit | 2,421 Kb |
NgTouchSpin | 3,084 Kb |
JsTag | 7,050 Kb |
Vue Transition | 4,561 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Webkit decolorize | Fivera | 1,675 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Vue.js Lazy Loading | Kjbrum | 3,620 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
Boxes | H3l1um | 2,563 Kb |
Fullscreen audio play button | 72 | 2,148 Kb |
Hexagons | Ashmind | 4,360 Kb |
Animate a paper plane along an SVG path, looking ahead | PotatoDie | 3,734 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!