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
sb.onclick = () => pw.style.outlineColor = pw.value.split("").some(character => !isNaN(character)) ? "green" : "red" |
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
// Solution 1 | |
document.querySelector("p").style.color = "green" | |
// Solution 2 | |
document.getElementById("p1").style.color = "green" | |
// Solution 3 | |
p1.style.color = "green" |
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
<p id="p1">Hello World</p> |
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
body { | |
background: orange; | |
} |
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
pragma solidity ^0.4.24; | |
import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
/** @title A Box Office Movie that inherits ERC20 */ | |
contract BoxOfficeMovie is StandardToken { | |
uint8 public constant decimals = 0; | |
string public name; | |
string public symbol; |
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
pragma solidity ^0.4.24; | |
import "openzeppelin-solidity/contracts/math/SafeMath.sol"; | |
import {HeartBankCoinInterface as Kiitos} from "./HeartBankCoinInterface.sol"; | |
import {BoxOfficeMovie as Movie} from "./BoxOfficeMovie.sol"; | |
/** @title Box Office factory that creates ERC20 movie tickets */ | |
contract BoxOffice { | |
using SafeMath for uint; |
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 React, { Component } from "react"; | |
import { Container, Embed, List, Label, Breadcrumb, Dimmer, Loader, Message } from "semantic-ui-react"; | |
import getAccount, { BoxOffice, Movie } from "../../utils/contracts"; | |
import { Link } from "../../routes"; | |
import Layout from "../../components/Layout"; | |
import AudienceMembers from "../../components/contents/AudienceMembers"; | |
import makeShorter, { toDollars } from "../../utils/offchainwork"; | |
const isAudienceMember = (account, members) => { | |
for (let member of members) { |
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 React, { Component } from "react"; | |
import { Progress, Grid, Button, Icon, Dimmer, Loader } from "semantic-ui-react"; | |
import getAccount, { BoxOffice, Movie } from "../../utils/contracts"; | |
import { Link } from "../../routes"; | |
import Layout from "../../components/Layout"; | |
import MovieDetails from "../../components/contents/MovieDetails"; | |
import MovieStats from "../../components/contents/MovieStats"; | |
import TokenDetails from "../../components/contents/TokenDetails"; | |
import BuyTickets from "../../components/forms/BuyTickets"; | |
import Withdrawals from "../../components/contents/Withdrawals"; |
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 React, { Component } from "react"; | |
import { Dimmer, Loader, Step, Icon } from "semantic-ui-react"; | |
import getAccount, { Kiitos, BoxOffice, Movie } from "../../utils/contracts"; | |
import Layout from "../../components/Layout"; | |
import UpdateFilm from "../../components/forms/UpdateFilm"; | |
import makeShorter, { toDollars } from "../../utils/offchainwork"; | |
class MakeFilm extends Component { | |
static async getInitialProps(props) { | |
const kiitos = await Kiitos.deployed(); |
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 React, { Component } from "react"; | |
import { Button, Grid, Icon, Sticky, Dimmer, Loader } from "semantic-ui-react"; | |
import getAccount, { Kiitos, BoxOffice } from "../utils/contracts"; | |
import { Link } from "../routes"; | |
import Layout from "../components/Layout"; | |
import BoxOfficeMovies from "../components/contents/BoxOfficeMovies"; | |
import BoxOfficeStats from "../components/contents/BoxOfficeStats"; | |
import makeShorter, { toDollars } from "../utils/offchainwork"; | |
class HeartBankStudio extends Component { |
NewerOlder