A Pen by James Daly on CodePen.
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 } from 'react'; | |
import { Button, Input, Table } from 'semantic-ui-react' | |
import { createContract } from './../ethereum/crowdfundingContract' | |
import { web3 } from './../ethereum/web3'; | |
export class Campaign extends Component { | |
ONGOING_STATE = '0' | |
FAILED_STATE = '1' | |
SUCCEEDED_STATE = '2' |
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
function myFavoriteThingsEachCity (sport, landmark, food) { | |
const object = {}; | |
object[this.constructor.name]= { | |
team: this.sportsTeams[sport], | |
landMarks: this.landmarks[landmark], | |
food: this.bestFoods[food] | |
} | |
return object | |
} |
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'; | |
import SideMenu from './SideMenu'; | |
import Icon from 'react-native-vector-icons/Ionicons'; | |
import {createDrawerNavigator, createStackNavigator, createAppContainer} from 'react-navigation' | |
import {Dimensions, Text} from "react-native"; | |
var {height, width} = Dimensions.get('window'); | |
import HomeScreen from '../screens/Home'; | |
import ExercisesScreen from '../screens/Exercises'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
<div id="WordGAME" class="module moduColor_Dark hangman_jury" > | |
<div class="grid-container"> | |
<div class="loader">Loading</div> | |
<div class='hide'> | |
<h2 class="module-header">Who Am I?</h2> | |
<div class="social"> | |
<div class="currentScore"> | |
<span>Correct</span> | |
<b>0</b> | |
</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
/* Word Game jQuery plugin | |
* | |
* @param {object} options | |
* @returns {settings object that override default} | |
* jQuery plugin | |
* current dependencies are jQuery ... duh | |
*/ | |
(function ($) { | |
$.fn.WordGame = function (options) { | |
var $container = $(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
var relatedProductsContainer = $("#relatedProducts"); | |
relatedProductsContainer.find('article').each(function(index, element) { | |
var containerHeight = [] | |
var $element = $(element); | |
var liFirstChild = $element.find('div.product_content ul.product_description_list li:first-child'); | |
var liLastChild = $element.find('div.product_content ul.product_description_list li:last-child'); | |
var liOnlyChild = $element.find('div.product_content ul.product_description_list li:only-child'); | |
var liSpanElement = liFirstChild.children('span:first-child'); | |
var lastLiSpanElement = liLastChild.children('span'); | |
var more = $('<a class="more_or_less more" style="cursor:pointer">more</a>'); //more trigger |
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
<script> | |
//this should probably be added to an external file | |
setTimeout(function () { | |
(function (w, d) { | |
var smallerScreen = "(max-width:990px)"; // this is set in movies.scss as part of media query | |
var removedTextArray = []; | |
var removedTextArrayone = []; | |
var relatedProductsContainer = $("#relatedProducts"); //normally set in ini | |
var $ul = $('div.btn-dropdown ul'); | |
var liFirstChild = $('div.product_content ul.product_description_list li:first-child'); |
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
function inherit(C, P) { | |
var F = function () {}; | |
F.prototype = P.prototype; | |
C.prototype = new F(); | |
C.uber = P.prototype; | |
C.prototype.constructor = C; | |
} | |
function Parent () {} |