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 PropTypes from 'prop-types'; | |
import React, {Component} from 'react'; | |
// wrapper component that will call dismiss if a click is detected outside of itself or its children | |
class DismissableClick extends Component { | |
constructor(props) { | |
super(props); | |
this.handleMouseDown = this.handleMouseDown.bind(this); | |
this.removeListener = this.removeListener.bind(this); | |
} |
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, { Component, PropTypes } from "react"; | |
import { connect } from 'react-redux'; | |
import { nextPage, previousPage, setPage } from '../actions/pager_actions'; | |
import Pager from '../components/Pager'; | |
class PagerContainer extends Component { | |
render() { | |
return ( | |
<Pager | |
currentPage={+(this.props.currentPage)} |
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
#grey{ | |
background-image: url('https://upload.wikimedia.org/wikipedia/commons/1/1d/Marcus_Thames_Tigers_2007.jpg'); | |
background-size: cover; | |
height: 252px; | |
width: 480px; | |
} | |
#flag { | |
position: absolute; | |
z-index:3; |
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 type="date" id="date"/> | |
<input type="text" id="time" /> | |
<div id="countdown"></div> |
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 type="text" id="myinput" /> |
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
'use strict'; | |
var DOMElement = require('famous/dom-renderables/DOMElement'); | |
var FamousEngine = require('famous/core/FamousEngine'); | |
var GestureHandler = require('famous/components/GestureHandler') | |
FamousEngine.init(); | |
// UI events are sent up to parent nodes. | |
// Parent nodes emit events down |
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
var ask = prompt("Enter a price to find the next palindromic number!"); | |
var removeDec = function (j) { | |
return parseInt(j * 100); | |
} | |
var c = removeDec(ask); | |
var reverseIt = function (x) { | |
var a = "" | |
x = x.toString(); |