Customer Select

Developer
Size
3,178 Kb
Views
26,312

How do I make an customer select?

What is a customer select? How do you make a customer select? This script and codes were developed by Albert Miller on 23 August 2022, Tuesday.

Customer Select Previews

Customer Select - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Customer Select</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="body" ng-app="testApp">	<div ng-controller="customerSelect">	<button class="btn" ng-click="setCustomerType(0)">RESET</button>	<h2 class="headerText">{{headerText}}</h2>	<div>	<div class="selectionBox alignLeft" ng-click="setCustomerType(1)" ng-hide="organization === true || individual === true">	<h3>Individual</h3>	<p>	An Individual Customer is a single person. Individual Customers will have only a single address and point of contact.	</p>	</div><div class="selectionBox alignRight" ng-click="setCustomerType(2)" ng-hide="organization === true || individual === true">	<h3>Organization</h3>	<p>	An Organization Customer is a corporation, association, club, or LLC. Organization Customers can have multiple addresses and associated points of contact.	</p>	</div>	</div>	<p>TEST</p>	</div>
</div> <script src='http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.2/angular-animate.js'></script> <script src="js/index.js"></script>
</body>
</html>

Customer Select - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Roboto:400);
body { font-family: 'Roboto';
}
.body { background-color: #f1f1f1; height: 50em; margin: 1em auto 0; width: 60em; position: relative;
}
.body h2 { margin: 0; padding: 1em 0 0; text-align: center; opacity: 1; transition: opacity .4s;
}
.body h2.ng-hide { opacity: 0;
}
.body .selectionBox { display: inline-block; width: 49%; transition: width .4s, height .4s; margin-top: 2em; background-color: #ffccbc; opacity: 1; height: 10em; position: relative; cursor: pointer; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}
.body .selectionBox h3 { text-align: center;
}
.body .selectionBox p { line-height: 1.5em; padding: 0 2em;
}
.body .selectionBox.ng-hide { opacity: 0; transition: opacity .4s .4s;
}
.body .headerText { opacity: 1; transition: opacity .4s .4s;
}
.body .headerText.ng-hide { opacity: 0;
}

Customer Select - Script Codes JS Codes

var testApp = angular.module('testApp', ['ngAnimate']);
testApp.controller('customerSelect', ['$scope', function($scope){	$scope.individual = false;	$scope.organization = false;	$scope.checkCustomerType = function(type){	if($scope.individual === true && type === 1){	return 'open';	} else if ($scope.organization === true && type === 2) {	return 'open';	}	};	$scope.setCustomerType = function(type){	if(type === 1){	$scope.individual = true;	$scope.organization = false;	$scope.headerText = 'Individual';	} else if(type === 2) {	$scope.individual = false;	$scope.organization = true;	$scope.headerText = 'Organization';	} else if (type === 0) {	$scope.individual = false;	$scope.organization = false;	$scope.headerText = 'What kind of Customer are we creating?';	}	};	$scope.setCustomerType(0);
}]);
Customer Select - Script Codes
Customer Select - Script Codes
Home Page Home
Developer Albert Miller
Username SinceSidSlid
Uploaded August 23, 2022
Rating 3
Size 3,178 Kb
Views 26,312
Do you need developer help for Customer Select?

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!

Albert Miller (SinceSidSlid) Script Codes
Create amazing art & images with AI!

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!