mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-04-25 15:58:11 -05:00
easter egg
This commit is contained in:
parent
d15e8eea68
commit
76be1cb7ff
File diff suppressed because one or more lines are too long
|
|
@ -1,8 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Interactive from 'react-interactive';
|
|
||||||
import { Link } from 'react-router';
|
|
||||||
import style from '../../styles/style';
|
import style from '../../styles/style';
|
||||||
import DigitInput from 'react-digit-input';
|
import DigitInput from 'react-digit-input';
|
||||||
|
import API from '../SpreadsheetData';
|
||||||
import {observable} from "mobx";
|
import {observable} from "mobx";
|
||||||
import {observer, inject} from 'mobx-react';
|
import {observer, inject} from 'mobx-react';
|
||||||
|
|
||||||
|
|
@ -36,8 +35,19 @@ export default class EnterTheCode extends React.Component {
|
||||||
let validate = (e) => {
|
let validate = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
// this.code;
|
if (this.code == "" || this.code.indexOf(" ") === 1) {
|
||||||
this.message = "Sorry, this feature doesn't exist :(";
|
this.message = (
|
||||||
|
<p style={{'color': 'red'}}>Please enter a 12 digit code</p>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.message = (
|
||||||
|
<div>
|
||||||
|
<p> Congrats on your scan! </p><br />
|
||||||
|
<img className="card" src={API.base_image + "1mlqp46AcMVmrP_rspK7vlr7K0_-1k4QI"} />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(
|
return(
|
||||||
|
|
@ -70,7 +80,7 @@ export default class EnterTheCode extends React.Component {
|
||||||
<br />
|
<br />
|
||||||
<button onClick={validate}>Validate Code</button>
|
<button onClick={validate}>Validate Code</button>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<span style={{'color': 'red'}}>{this.message}</span>
|
{this.message}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user