-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
119 lines (108 loc) · 12.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<html>
<head>
<title>Terms of Service: The Game</title>
<meta charset="UTF-8" />
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/[email protected]/babel.min.js"></script>
<style>
html, body {
width: 100%;
}
#root {
width: 50%;
margin: 0 auto;
}
.tos {
width: 100%;
height: 600px;
overflow: auto;
margin-bottom: 25px;
}
.btn {
float: right;
font-size: 16px;
margin-right: 10px;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
class App extends React.Component {
constructor() {
super();
this.newToS = this.newToS.bind(this);
this.generateToS = this.generateToS.bind(this);
this.done = this.done.bind(this);
this.cancel = this.cancel.bind(this);
this.paragraphs = [
"Maintainer' referring to the trademarks or trade name in a manner that reasonably allows subsequent Recipients to identify the originator of the Program. You may also choose to distribute copies of the Work. Maintainer' A person or persons nominated as such uses are compliant with the complete agreement concerning subject matter hereof. If any Recipient extracts Embedded Fonts are used in 48 C.F.R.",
"C.F.R. 12.212 and 48 C.F.R. C.F.R. 2.101 (Oct. This License provides that: 1. You may create a Derived Work may be published from time to time. Each version will be given a distinguishing version number.",
"Effect of Termination. In the absence of any change; and b) a copy of this License, each Contributor grants the licenses granted by such Participant under Sections 2.1 and/or 2.2 of this License published by the Wikimedia community. Text from external sources may attach additional attribution notices from the new version. No one may use or not licensed at all. For example, if a court judgment or allegation of patent infringement litigation, then the reasonable value of the breach of its terms and conditions of merchantability and fitness for a Distributor includes the Program in a conspicuous location in the software is provided in accordance with each copy of the Contribution causes such combination to be updated versions of the Work (for example, by posting to comp.text.tex.) If the terms of the Copyright Holder of a change completed under the new version.",
"Except as expressly stated in this Section 2.1(a) and (b) describe the limitations and the party making the Covered Code is available under the copyright notice appear in supporting documentation, and that you have modified that component; or it may not occur to you under this License with every copy of the Licensor accepting any liability incurred by or assigned to Apple and (ii) are not covered by this License), You must: (a) rename Your license so that the Program is void, and will automatically terminate at the expiration of the Derived Program that can be a Modified Version does not specify a version number of Computers and use in the copyright holders, and the State of California, and You must retain the above conditions for distributing the Covered Code. You may choose any version of that Derived Work without restriction, including without limitation the rights granted by a third party patent license to make, have made, and/or otherwise dispose of Licensed Product.",
"It is required to allow Recipient to distribute the programs of this License, You may aggregate the Package if it was received. In addition, after a new version of the source code, which must be also Redistributed together with the requirements of this section has the LPPL specify means to enable you to make, have made, and/or otherwise dispose of Licensed Product or portions thereof with code not governed by the laws of the terms applicable to software source code, even though third parties on terms identical to those Modifications, and cause the direction or management of such work; and (b) otherwise make Covered Code and any licenses granted under this Agreement more than one year after the cause of action arose. Each party waives its rights to use the software. General; Definitions.",
"This License shall be reformed to the minimum extent necessary to implement that API, Contributor must identify itself as well as in related documentation or collateral in which case the failure of the Source Code or any distributor hereunder prior to termination shall survive any termination of this Package without restriction, either gratis or for any purpose and without further action by the parties hereto, such provision shall be construed under the copyright holder who places the Program under their own license agreement, and (ii) are not considered part of the remainder of the State of New York and the definitions are repeated for your convenience in a lawsuit) alleging that Licensed Product and any modifications or work as a market that must bear the fee.) Freely Available means that recipients of modified versions of your accepting any liability to You for claims brought by any other intellectual property of any Derivative Works that You delete from the Jabber Open Source Software.",
"Information for text contributors to Wikimedia projects are available under the terms applicable to software that is exclusively available under a particular purpose; ii) effectively excludes on behalf of, the Licensor has the status `author-maintained' if the Program (including its Contributions) on an AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE EXERCISE OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY RESPECT, YOU (AND NOT THE LICENSOR OR ANY OTHER USERS OF PYTHON 1.6b1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY DERIVED PROGRAM OR ANY CONTRIBUTOR SHALL CREATE A WARRANTY.",
"You acknowledge that the instructions are invalid, then you must give the recipients all the rights conveyed by this Artistic License to Your modifications and may be published from time to time.",
"Modified Code. You may choose to distribute their works under this Agreement, each Contributor hereby grants Licensee a non-exclusive, worldwide, royalty-free copyright license to use such covered code has been published under a particular version of the following disclaimer.",
"Redistributions in binary form and its license agreement: i) effectively disclaims on behalf of the provisions relating to the Program originate from and are distributed on an unmodified basis or as an Executable version does not grant you the freedom to share and change free software--to make sure that you have knowledge of patent infringement litigation, then the reasonable value of the license, and which you contribute, and which provides credit to the risks and costs of program errors, compliance with applicable laws, damage to or loss of goodwill, work stoppage, computer failure or malfunction, or any Contributor to the program. It is safest to attach them to the Licensor shall be reformed to the combination of the Source Code version remains available even if the required attribution is deemed too intrusive.",
"For example, if you fail to comply with. Please note that these licenses do allow commercial uses of your choice. If you make modifications or additions to the Program, and additions to or deletions from the same sections as part of your choice that may contain errors that could have legal implications and, worse, cause problems for the community.",
"You may copy and distribute the Package, if you do not appear in supporting documentation, and conversions to other media types. IBM has the right to use Servicemarks (sm) or Trademarks (tm) of Zope Corporation. Use of them is covered by this License.",
"Specifically, we want its recipients to know that what they have is not the Current Maintainer is reachable and the like. Document File shall mean a Digital Font Program licensed by the parties hereto, such provision valid and enforceable. If Recipient institutes patent litigation (including a cross-claim or counterclaim in a manner that reasonably allows subsequent Recipients to identify the originator of the Agreement Steward reserves the right to share and change free software--to make sure the requirements of Section 3.2.",
"Permission to use, copy, distribute and/or modify the Program (or with a client other than copying, distribution and modification follow. TERMS AND CONDITIONS OF ANY OF SUCH DAMAGES. EXPORT CONTROL Recipient agrees to cease use and distribution of the GNU General Public License instead of calling it PHP Foo or phpfoo 5.",
"This applies to any claims or Losses relating to the Original Code or executable form with such an event, the Recipient and shall be reformed only to the version of said Licensed Product. If you have the right to acquire, license, develop, have others develop for it, market and/or distribute technology or products that perform the same pertinent community as in 2b) above. WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', below, gives instructions, examples, and recommendations for authors who are considering distributing their works under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights reserved.",
"By accepting the Licensed Program held by the Derivative Works; or, within a display generated by the Recipient, this Agreement shall terminate as of the Work, excluding those countries, so that it is Recipient's responsibility to acquire that license itself honors the conditions of this License incorporates the limitation as if written in the hope that it becomes identical to an alternative, stable online copy which is freely accessible, which conforms with the wishes of the circumstances described in Section 3 below, for as long as that Compiled Work on their system exactly as it may be filtered to exclude very small or irrelevant contributions.)",
"Original Code and documentation You distribute at least twelve (12) months after the cause of action arose. Each party waives its rights to a third party intellectual property rights of any terms of this License, including the files in this version of this License. If you are re-using, b) a copy of the Derived Work. You may add your name as a whole is intended to describe, in plain English, the nature of the United States of America. No party to this license apply to the Licensed Product, or for combinations of the Source Code.",
"The contents of a Larger Work by You alone, not by any other combinations which include the Program itself (excluding combinations of the date You first made, used, sold, distributed, or had made, Modifications made by or assigned to Apple (collectively Apple Marks) or to build stand-alone binary or bytecode versions of this License and You must make sure that you keep intact all notices in the software is covered in a commercial product offering, Product X. That Distributor is then a Commercial Contributor.",
"If that Commercial Distributor then makes performance claims, or offers warranties related to applicable law or agreed to in writing, shall any Contributor under this license. The legal effect of this License Agreement, Licensee may substitute the following manner."
];
this.state = {
tos: this.generateToS(),
score: 0
};
}
newToS() {
this.setState({
tos: this.generateToS()
});
}
generateToS() {
const c = 4 + Math.round(Math.random() * 10);
const res = [];
for(let i = 0; i < c; i++) {
const rantxt = Math.floor(Math.random() * this.paragraphs.length);
res.push(this.paragraphs[rantxt]);
}
return res;
}
done() {
this.setState({
score: this.state.score + 1
}, this.newToS);
}
cancel() {
this.setState({
score: 0
});
alert("You have to agree to Term Of Service naturally... Back to 0 score you go!");
}
render() {
return (
<div>
<div className="tos">
<h2>Terms of Service</h2>
<p>By agreeing to these Terms of Service, you agree that I did not steal this idea from Lewis of the Yogscast.... Not at all...</p>
{this.state.tos.map((e, i) => <p key={i}>{e}</p>)}
</div>
<button className="btn" onClick={this.cancel}>Don't Agree</button>
<button className="btn" onClick={this.done}>Agree</button>
<div>You have agreed to {this.state.score} Terms of Service.</div>
</div>
);
}
}
ReactDOM.render(<App/>, document.getElementById('root'));
</script>
</body>
</html>