nice
this is nice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Resolve the given type from the container. | |
* | |
* @param string $abstract | |
* @param array $parameters | |
* @return mixed | |
*/ | |
public function make($abstract, array $parameters = []) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input onclick="if ( confirm('sure?') ) { this.disabled=true; this.value='處理中,請稍候...'; this.form.submit(); }else{return false;};" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (this.form.checkValidity()) { this.disabled=true; this.value='處理中,請稍候...'; this.form.submit(); } else { this.form.reportValidity(); return false; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
class Loading extends React.Component { | |
render() { | |
return ( | |
<div style={{ | |
position: "fixed", | |
width: "100%", | |
height: "100%", | |
top: "0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
changeOptionValue(optionIndex, valueIndex, newValue) { | |
const state = this.state; | |
const newState = { | |
...state, | |
options: state.options.map((option, i) => | |
i === optionIndex ? | |
{ ...option, values: option.values.map((value, ii) => | |
ii === valueIndex ? | |
newValue : value |