Ops Implementation
How do I make an ops implementation?
What is a ops implementation? How do you make a ops implementation? This script and codes were developed by Alexander Hadik on 16 September 2022, Friday.
Ops Implementation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Ops Implementation</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Ops Implementation - Script Codes CSS Codes
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i");
body { color: #0E202E; font-family: 'Source Sans Pro', sans-serif; background-color: #FAFAFA; font-size: 14px;
}
input { font-family: 'Source Sans Pro', sans-serif;
}
.quick-list-creator { margin-top: 2em; width: 90%; max-width: 840px; padding: 2em; background-color: white; box-shadow: 0px 1px 3px 0px rgba(14, 33, 47, 0.5); margin-left: auto; margin-right: auto;
}
.quick-list-creator__title { border: none; background-color: white; font-size: 2em; width: 50%; margin-bottom: .5em;
}
.quick-list-creator__instruction { margin-top: .5em; margin-bottom: .5em; color: #708696;
}
.quick-list-creator__list-item { height: auto; border-bottom: 1px solid #EFF1F2; padding-bottom: .5em; margin: 1em 0;
}
.quick-list-creator__list-item:last-of-type { border-bottom: none;
}
.row-entity-creator { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background-color: white; margin-bottom: 3em;
}
.row-entity-creator > *:first-child { border-radius: 3px 0 0 3px;
}
.row-entity-creator > *:last-child { border-radius: 0 3px 3px 0;
}
.row-entity-creator__data-entry { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; -webkit-box-align: center; -ms-flex-align: center; align-items: center; height: 40px;
}
.row-entity-creator__text-input { -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1;
}
.row-entity-creator__number-input { -webkit-appearance: none; -moz-appearance: none; appearance: none; margin: 0; width: 12%;
}
.row-entity-creator__input { outline: none; height: 40px; box-sizing: border-box; padding: 1em; border: none; background-color: #EFF1F2;
}
.row-entity-creator__input:focus { box-shadow: 0 0 4px 0 #FFC40C inset;
}
.row-entity-creator__input::-webkit-input-placeholder { color: #838383; font-weight: 700;
}
.row-entity-creator__input::-moz-placeholder { color: #838383; font-weight: 700;
}
.row-entity-creator__input:-ms-input-placeholder { color: #838383; font-weight: 700;
}
.row-entity-creator__input::placeholder { color: #838383; font-weight: 700;
}
.row-entity-creator__dropdown { padding: 0 1em; height: 40px; border-radius: 0; -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.row-entity-creator__icon { width: 40px; height: 100%; background-color: #6FCE95; text-align: center; padding: 0px; border: none;
}
.row-entity-creator__icon::before { line-height: 40px; color: white; font-size: 1.5em;
}
.row-entity-creator__block-entry { padding-right: 0; resize: none; height: 40px; -ms-flex-item-align: start; align-self: flex-start; -webkit-transition: height .2s; transition: height .2s;
}
.row-entity-creator__block-entry:focus { height: 80px;
}
.row-entity-creator__vertical-divider { display: block; height: 100%; width: 0px; border-right: 1px solid #c3c3c3;
}
.list-item { position: relative; width: 100%; background-color: white; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
.list-item:hover .list-item__remove { display: block;
}
.list-item__remove { border: none; background-color: transparent; color: #F05E5E; border-radius: 50%; position: absolute; display: none; top: .25em; left: -.75em; cursor: pointer;
}
.list-item__name { font-weight: 600; color: #838383; width: 100%;
}
.list-item__datum { padding: 5px 15px; overflow: hidden; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; white-space: nowrap; text-overflow: ellipsis; font-size: .85em;
}
.list-item__datum--fixed { -webkit-box-flex: 0; -ms-flex-positive: 0; flex-grow: 0;
}
.list-item__datum--tiny { width: 5%;
}
.list-item__datum--small { width: 8%;
}
.list-item__datum--medium { width: 15%;
}
.list-item__text-block { width: 20%;
}
.shipment-info { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; margin-top: 2em; border-top: 1px solid #c3c3c3; padding-top: 1em;
}
.shipment-info__packing-slip { width: 20%; background: transparent;
}
.shipment-info__notes { width: 75%; resize: none; border: 1px solid #c3c3c3; height: 7em;
}
.shipment-info__submit { margin-left: auto; margin-top: 1em; background-color: #4DA4E3; outline: none; border: none; border-radius: 3px; color: white; font-size: 1em; padding: 5px 15px;
}
Ops Implementation - Script Codes JS Codes
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
var conditions = ['Ambient (22 ± 2 ºC)', '4 ºC (± 1 ºC)', '-20 ºC (± 1 ºC)', '-80 ºC (± 1 ºC)'];
var PackageCreation = function (_React$Component) { _inherits(PackageCreation, _React$Component); function PackageCreation(props) { _classCallCheck(this, PackageCreation); var newItem = { name: '', quantity: '', container: '', notes: '' }; var _this = _possibleConstructorReturn(this, _React$Component.call(this, Object.assign(props, { newItem: newItem }))); _this.state = { items: [], newItem: newItem }; return _this; } PackageCreation.prototype.onAdd = function onAdd(e) { e.preventDefault(); var item = { name: e.target.elements.namedItem('item-name').value, qty: e.target.elements.namedItem('item-quantity').value, container: e.target.elements.namedItem('item-container').value, condition: e.target.elements.namedItem('item-condition').value, notes: e.target.elements.namedItem('item-notes').value }; var items = this.state.items; items.push(item); this.setState({ items: items, newItem: this.props.newItem }); }; PackageCreation.prototype.onItemInput = function onItemInput(newItem) { this.setState({ newItem: newItem }); }; PackageCreation.prototype.render = function render() { var _this2 = this; var a = React.createElement('a', null); var b = React.createElement('a', { test: 'b' }); console.log(a); console.log(b); return React.createElement( 'div', { className: 'quick-list-creator' }, React.createElement('input', { placeholder: 'Shipment Title', type: 'text', className: 'quick-list-creator__title' }), React.createElement( 'h4', { className: 'quick-list-creator__instruction' }, 'Add Shipment Items' ), React.createElement(PackageItemCreation, { containers: this.props.containers, conditions: this.props.conditions, onAdd: function onAdd(e) { return _this2.onAdd.apply(_this2, [e]); }, item: Object.assign({}, this.state.newItem), onInput: this.onItemInput.bind(this) }), this.state.items.map(function (item, index) { return React.createElement(PackageItem, { key: index, name: item.name, qty: item.qty, container: item.container, notes: item.notes, condition: item.condition }); }), React.createElement( 'form', { className: 'shipment-info' }, React.createElement( 'div', { className: 'shipment-info__packing-slip' }, React.createElement( 'h4', { className: 'quick-list-creator__instruction' }, 'Upload Packing Slip' ), React.createElement('input', { type: 'file', name: 'pic' }) ), React.createElement('textarea', { className: 'shipment-info__notes', placeholder: 'Shipment notes' }), React.createElement( 'button', { className: 'shipment-info__submit' }, 'Save' ) ) ); }; return PackageCreation;
}(React.Component);
PackageCreation.PropTypes = { containers: React.PropTypes.array.isRequired, conditions: React.PropTypes.array.isRequired
};
var PackageItemCreation = function (_React$Component2) { _inherits(PackageItemCreation, _React$Component2); function PackageItemCreation() { _classCallCheck(this, PackageItemCreation); return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments)); } PackageItemCreation.prototype.render = function render() { var _this4 = this; var currItem = this.props.newItem; return React.createElement( 'form', { onSubmit: this.props.onAdd, className: 'row-entity-creator quick-list-creator__card row-entity-creator__data-entry' }, React.createElement('input', { required: true, placeholder: 'Item Name', className: 'row-entity-creator__text-input row-entity-creator__input', type: 'text', name: 'item-name', value: this.props.item.name, onChange: function onChange(e) { _this4.props.onInput(Object.assign({}, currItem, { 'name': e.target.value })); } }), React.createElement('div', { className: 'row-entity-creator__vertical-divider' }), React.createElement('input', { required: true, placeholder: 'Quantity', className: 'row-entity-creator__number-input row-entity-creator__input', type: 'text', pattern: '[0-9]*', name: 'item-quantity', value: this.props.item.quantity, onChange: function onChange(e) { _this4.props.onInput(Object.assign({}, currItem, { 'quantity': e.target.value })); } }), React.createElement('div', { className: 'row-entity-creator__vertical-divider' }), React.createElement('input', { required: true, placeholder: 'Container Type', className: 'row-entity-creator__text-input row-entity-creator__input', type: 'text', name: 'item-container', value: this.props.item.container, onChange: function onChange(e) { _this4.props.onInput(Object.assign({}, currItem, { 'container': e.target.value })); } }), React.createElement('div', { className: 'row-entity-creator__vertical-divider' }), React.createElement( 'select', { required: true, name: 'item-condition', className: 'row-entity-creator__dropdown row-entity-creator__input' }, this.props.conditions.map(function (condition) { return React.createElement( 'option', null, condition ); }) ), React.createElement('div', { className: 'row-entity-creator__vertical-divider' }), React.createElement('textarea', { name: 'item-notes', placeholder: 'Notes', className: 'row-entity-creator__block-entry row-entity-creator__input', value: this.props.item.notes, onChange: function onChange(e) { _this4.props.onInput(Object.assign({}, currItem, { 'notes': e.target.value })); } }), React.createElement('div', { className: 'row-entity-creator__vertical-divider' }), React.createElement('button', { type: 'submit', className: 'fa fa-plus row-entity-creator__icon' }) ); }; return PackageItemCreation;
}(React.Component);
PackageItemCreation.PropTypes = { conditions: React.PropTypes.array.isRequired, onAdd: React.PropTypes.func.isRequired, onInput: React.PropTypes.func.isRequired, newItem: React.PropTypes.object.isRequired
};
var PackageItem = function (_React$Component3) { _inherits(PackageItem, _React$Component3); function PackageItem() { _classCallCheck(this, PackageItem); return _possibleConstructorReturn(this, _React$Component3.apply(this, arguments)); } PackageItem.prototype.render = function render() { return React.createElement( 'div', { className: 'list-item quick-list-creator__list-item' }, this.props.removeItem && React.createElement('button', { className: 'list-item__remove fa fa-times-circle', onClick: this.props.removeItem }), React.createElement( 'span', { className: 'list-item__datum list-item__name' }, this.props.name ), React.createElement( 'span', { className: 'list-item__datum list-item__datum--tiny list-item__datum--fixed' }, this.props.qty, 'x' ), React.createElement( 'span', { className: 'list-item__datum list-item__datum--small list-item__datum--fixed' }, this.props.container ), React.createElement( 'span', { className: 'list-item__datum list-item__datum--medium list-item__datum--fixed' }, this.props.condition ), React.createElement( 'span', { className: 'list-item__datum list-item__text-block' }, this.props.notes ) ); }; return PackageItem;
}(React.Component);
PackageItem.PropTypes = { name: React.PropTypes.string.isRequired, qty: React.PropTypes.number.isRequired, container: React.PropTypes.string.isRequired, storage: React.PropTypes.string.isRequired, notes: React.PropTypes.string, removeItem: React.PropTypes.func
};
var PackageCreationView = React.createElement(PackageCreation, { conditions: conditions });
ReactDOM.render(PackageCreationView, document.querySelector('body'));
Developer | Alexander Hadik |
Username | ahadik |
Uploaded | September 16, 2022 |
Rating | 3 |
Size | 8,026 Kb |
Views | 12,144 |
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 |
Pricing Cards V2 | 6,308 Kb |
Welcome to Transcriptic | 3,846 Kb |
Pricing View with Map | 3,869 Kb |
Pricing Cards V3 | 6,584 Kb |
HSL SVG Gradient | 1,809 Kb |
IOPS Selector | 3,779 Kb |
Red Pill or Blue Pill But Only CSS | 3,455 Kb |
Workcell | 5,864 Kb |
Transcriptic Typography | 4,188 Kb |
Loader | 2,296 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 |
Fading Navigation Bar | J-w-v | 2,805 Kb |
Polo, the flying squirrel | Agbales | 2,445 Kb |
Mario | Takaneichinose | 3,902 Kb |
A Pen by Mohomed Anees | Mohomedanees | 12,597 Kb |
Medium Menu | Lucasmotta | 3,923 Kb |
3D-box | Parthviroja | 2,346 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
Incremental game | Eprouver | 5,868 Kb |
Whyutils | LeYvan | 3,752 Kb |
Colorful Sliders | Chanrith | 1,246 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!