A contact form built with Bootstrap 3. Field validation with Bootstrap Validator.
A Pen by Scott Galloway on CodePen.
This file contains 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
npm install --save-dev redux-devtools-extension | |
import { devToolsEnhancer } from 'redux-devtools-extension' | |
const Store = createStore( | |
devToolsEnhancer(), | |
... | |
); |
This file contains 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
handleKeyPress = (event) => { | |
if(event.key == 'Enter'){ | |
console.log('enter press here! ') | |
} | |
} | |
render: function(){ | |
return( | |
<div> | |
<input type="text" id="one" onKeyPress={this.handleKeyPress} /> | |
</div> |
This file contains 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
var countries = []; | |
var methods = []; | |
$(document).ready(function(){ | |
function filter (){ | |
$(".wm-courses-popular-wrap").parent().hide(); | |
$(".wm-courses-popular-wrap").toArray().forEach((item) => { | |
const hasCountry = countries.length > 0 ? countries.indexOf($(item).attr('country')) > -1 : true; | |
const hasMethod = methods.length > 0 ? methods.indexOf($(item).attr('method')) > -1 : true; | |
if (hasCountry && hasMethod) { |
This file contains 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 action from "../../Actions/MyAction"; | |
import Cartbox from "./Cartbox"; | |
import {bindActionCreators} from "redux"; | |
import {connect} from "react-redux"; | |
class Header extends Component { | |
constructor(props) { | |
super(props); | |
} |