Donec eget ex magna. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque venenatis dolor imperdiet dolor mattis sagittis. Praesent rutrum sem diam, vitae egestas enim auctor sit amet. Pellentesque leo mauris, consectetur id ipsum sit amet, fergiat. Pellentesque in mi eu massa lacinia malesuada et a elit. Donec urna ex, lacinia in purus ac, pretium pulvinar mauris. Curabitur sapien risus, commodo eget turpis at, elementum convallis fames ac ante ipsum primis in faucibus.
34 |
Pellentesque venenatis dolor imperdiet dolor mattis sagittis. Praesent rutrum sem diam, vitae egestas enim auctor sit amet. Consequat leo mauris, consectetur id ipsum sit amet, fersapien risus, commodo eget turpis at, elementum convallis elit enim turpis lorem ipsum dolor sit amet feugiat. Phasellus convallis elit id ullamcorper pulvinar. Duis aliquam turpis mauris, eu ultricies erat malesuada quis. Aliquam dapibus, lacus eget hendrerit bibendum, urna est aliquam sem, sit amet est velit quis lorem.
35 |
Tempus veroeros
36 |
Cep risus aliquam gravida cep ut lacus amet. Adipiscing faucibus nunc placerat. Tempus adipiscing turpis non blandit accumsan eget lacinia nunc integer interdum amet aliquam ut orci non col ut ut praesent. Semper amet interdum mi. Phasellus enim laoreet ac ac commodo faucibus faucibus. Curae ante vestibulum ante. Blandit. Ante accumsan nisi eu placerat gravida placerat adipiscing in risus fusce vitae ac mi accumsan nunc in accumsan tempor blandit aliquet aliquet lobortis. Ultricies blandit lobortis praesent turpis. Adipiscing accumsan adipiscing adipiscing ac lacinia cep. Orci blandit a iaculis adipiscing ac. Vivamus ornare laoreet odio vis praesent nunc lorem mi. Erat. Tempus sem faucibus ac id. Vis in blandit. Nascetur ultricies blandit ac. Arcu aliquam. Accumsan mi eget adipiscing nulla. Non vestibulum ac interdum condimentum semper commodo massa arcu.
37 |
38 |
39 |
40 |
41 |
42 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
--------------------------------------------------------------------------------
/src/canvas/canvas.js:
--------------------------------------------------------------------------------
1 | import io from 'socket.io-client';
2 | import Pointer from './pointer';
3 | import HOST from '../util/host';
4 |
5 | class Drawing {
6 | constructor() {
7 | const [, , documentId, selection] = window.location.pathname.split('/');
8 |
9 | this.documentId = documentId;
10 | this.selection = selection;
11 |
12 | this.pointer = new Pointer();
13 |
14 | this.width = 310;
15 | this.height = 596;
16 |
17 | const canvas = document.querySelector('canvas');
18 | canvas.width = this.width;
19 | canvas.height = this.height;
20 |
21 | this.ctx = canvas.getContext('2d');
22 |
23 | this.ctx.lineWidth = 2;
24 | this.ctx.strokeStyle = 'black';
25 | this.ctx.lineCap = 'round';
26 |
27 | this.uiButton = document.querySelector('.ui-btn');
28 |
29 | this.initialData = this.data();
30 |
31 | this.startSockets();
32 | this.addListeners();
33 | }
34 |
35 | data() {
36 | return this.ctx.getImageData(0, 0, this.width, this.height).data;
37 | }
38 |
39 | startSockets() {
40 | this.socket = io(HOST);
41 | this.socket.on('connect', () => {
42 | this.socket.emit('document', this.documentId);
43 | });
44 |
45 | this.socket.on('image', diff => this.receiveImageDiff(diff));
46 |
47 | this.socket.on('loadImage', savedImageDataURI => {
48 | const img = new Image();
49 | img.onload = () => {
50 | this.ctx.drawImage(img, 0, 0);
51 | };
52 | img.src = savedImageDataURI;
53 | });
54 |
55 | this.socket.on('saveImage', () => {
56 | this.socket.emit('imageDataURI', this.ctx.canvas.toDataURL());
57 | });
58 | }
59 |
60 | addListeners() {
61 | this.ctx.canvas.addEventListener('mousedown', this.mouseDown());
62 | this.ctx.canvas.addEventListener('touchstart', this.mouseDown());
63 |
64 | document.addEventListener('mousemove', this.mouseMove());
65 | document.addEventListener('touchmove', this.mouseMove());
66 |
67 | this.ctx.canvas.addEventListener('mouseup', this.mouseUp());
68 | this.ctx.canvas.addEventListener('touchend', this.mouseUp());
69 |
70 | this.uiButton.addEventListener('click', this.toggleEraser());
71 | }
72 |
73 | mouseDown() {
74 | return e => {
75 | this.pointer.update(e);
76 | this.pointer.down();
77 | this.ctx.beginPath();
78 | };
79 | }
80 |
81 | mouseMove() {
82 | return e => {
83 | if (this.pointer.pressing) {
84 | this.pointer.update(e);
85 | const { previousPos, currentPos } = this.pointer;
86 |
87 | this.ctx.lineTo(previousPos.x, previousPos.y);
88 | this.ctx.lineTo(currentPos.x, currentPos.y);
89 | this.ctx.stroke();
90 | this.ctx.closePath();
91 | this.ctx.beginPath();
92 |
93 | this.sendImageDiff();
94 | }
95 | };
96 | }
97 |
98 | mouseUp() {
99 | return e => {
100 | this.pointer.update(e);
101 | this.pointer.up();
102 |
103 | const { x, y } = this.pointer.previousPos;
104 |
105 | this.ctx.lineTo(x, y);
106 | this.ctx.stroke();
107 | this.ctx.closePath();
108 | this.sendImageDiff();
109 | };
110 | }
111 |
112 | indexRange() {
113 | const { currentPos, previousPos } = this.pointer;
114 | const xMin = Math.min(currentPos.x, previousPos.x) - this.ctx.lineWidth;
115 | const yMin = Math.min(currentPos.y, previousPos.y) - this.ctx.lineWidth;
116 | const xMax = Math.max(currentPos.x, previousPos.x) + this.ctx.lineWidth;
117 | const yMax = Math.max(currentPos.y, previousPos.y) + this.ctx.lineWidth;
118 |
119 | return {
120 | startIndex: 4 * (yMin * this.width + (xMin % this.width)),
121 | endIndex: 4 * (yMax * this.width + (xMax % this.width))
122 | };
123 | }
124 |
125 | sendImageDiff() {
126 | const { startIndex, endIndex } = this.indexRange();
127 |
128 | const newData = this.data();
129 | const newPixelIndexes = [];
130 | const newPixels = [];
131 |
132 | for (let i = startIndex; i <= endIndex; i += 1) {
133 | if (newData[i] !== this.initialData[i]) {
134 | newPixelIndexes.push(i);
135 | newPixels.push(newData[i]);
136 | }
137 | }
138 |
139 | this.socket.emit('drawing', {
140 | diffIndex: newPixelIndexes,
141 | diffData: newPixels
142 | });
143 |
144 | this.initialData = newData;
145 | }
146 |
147 | receiveImageDiff({ diffIndex, diffData }) {
148 | const data = this.data();
149 | const { length } = diffData;
150 | const diffImage = new ImageData(data, this.width, this.height);
151 |
152 | for (let i = 0; i < length; i += 1) data[diffIndex[i]] = diffData[i];
153 | this.ctx.putImageData(diffImage, 0, 0);
154 | }
155 |
156 | toggleEraser() {
157 | return () => {
158 | if (this.pointer.eraser) {
159 | this.ctx.globalCompositeOperation = 'source-over';
160 | this.pointer.eraser = false;
161 | this.ctx.strokeStyle = 'black';
162 | this.ctx.lineWidth = 2;
163 | this.uiButton.id = 'eraser';
164 | } else {
165 | this.ctx.globalCompositeOperation = 'destination-out';
166 | this.pointer.eraser = true;
167 | this.ctx.strokeStyle = 'rgba(0,0,0,1)';
168 | this.ctx.lineWidth = 20;
169 | this.uiButton.id = 'pencil';
170 | }
171 | };
172 | }
173 | }
174 |
175 | Object.assign(window, { drawing: new Drawing() });
176 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # TypeDraw Project Archive
2 |
3 | TypeDraw was a web and mobile app demonstration of a multi-user, real-time virtual whiteboard.
4 |
5 | 
6 |
7 | The live web demo had its final deploy in December 2018 and ran until its database provider ended operations in December 2020.
8 |
9 | A landing page similar to what was formerly deployed can still be found on https://typedraw.app.
10 |
11 | ---
12 |
13 | **The remainder of this document includes the original preliminary planning and design docs for the project.**
14 |
15 | ---
16 |
17 | ## Background and Overview
18 |
19 | TypeDraw is a minimal viable product that tackles three challenges in application development, software engineering, and user experience. These challenges are expressed, respectively, in the following ideals:
20 |
21 | - Universal: Without compromising quality, an application that is written once only requires platform-specific changes to be deployed universally.
22 | - Real-time: Communication feels instantaneous. More generally, updates to the state of an application in multiple locations occur with no perceptible delay.
23 | - Seamless: Users can expect a responsive application that is intuitive to use and has a consistent look and feel regardless of the platform.
24 |
25 | TypeDraw is primarily built with the MERN stack, a combination of following four technologies: MongoDB, Express, React, and Node.
26 |
27 | ## Functionality & MVP
28 |
29 | - [ ] Documents will have a text editor and a drawing pad layered on top of each other so that users can type and draw at the same time
30 | - [ ] Documents support multi-user document sharing by allowing invitations to other users through either Facebook or Gmail
31 | - [ ] Real-time communication between devices (Mobile and Browser)
32 | - [ ] Session persistence across devices allowing for changes to be seen as they are made
33 | - [ ] Web and mobile application (iOs)
34 |
35 | ### Bonus Features
36 |
37 | - [ ] Getting on the App Store
38 | - [ ] Uploading a text document and allowing our app to draw over it
39 | - [ ] End-to-end encryption
40 | - [ ] Document Parsing to parse over different type of document text files, and generating our own extension with drawing on top of the document
41 | - [ ] Group chat and voice chat for users to communicate as they are drawing and/or typing up a document
42 |
43 | ## Technologies & Challenges
44 |
45 | ### Architecture
46 |
47 | The overall application architecture is geared toward rapid development and maintainability of an application that is deployed on both web and mobile.
48 |
49 | To that end, TypeDraw is built with the MERN stack (MongoDB, Express, React, and Node). It features a frontend agnostic API servicing both web and mobile in conjunction with client side rendering with React.
50 |
51 | Additionally, React Native is used for mobile development, bundling of client-side javascript is accomplished by Webpack, and Babel is used to transpile ES6+ Javascript for backward browser compatibility.
52 |
53 | The overall architecture is summarized in the diagram below:
54 |
55 | 
56 |
57 | #### Backend: Node, Express, MongoDB
58 |
59 | The backend will be entirely platform agnostic with the exception of potential performance optimizations per platform. The separation of the back and front allows for either to be modified, built, updated, or swapped out entirely with minimal impact to the other.
60 |
61 | TypeDraw's back-end HTTP API is expected to be relatively small since it's role is limited to retrieving user records and establishing a websocket connection to rapidly synchronize data between users.
62 |
63 | Despite significant advances in both the software and infrastructure of the web, achieving scaleable, real-time communication is still a non-trivial challenge. The requirements to meet this challenge are a particularly well-suited use case for a noSQL database:
64 |
65 | - TypeDraw has only two models (users and documents), and a fixed schema is not preferable for either model.
66 | - Relations between models are simple and inexpensive to query without a relational database.
67 | - Nearly all of the data is unstructured text or image data that is not well suited for relational databases.
68 | - Most importantly, low-latency/availability is preferred over a guarantee of immediate consistency.
69 |
70 | #### Frontend: React and React Native with Redux
71 |
72 | Increasing code reuse across platforms is essential to achieving a rapid development cycle and a codebase that is more easily maintained.
73 |
74 | Given that mobile devices support web technology (JS, HTML, CSS), the typical approach to building mobile and web applications simultaneously has been to begin by building the web application and then running a modified version of that application in a mobile WebView. However, this approach tends toward creating mobile applications that still feel distinctly like web applications.
75 |
76 | TypeDraw's solution is to take the opposite approach and begin by writing all components in React Native. From there, the React Native for Web package will be used to adapt the existing components for use in TypeDraw's web app.
77 |
78 | ### Realtime Communication
79 |
80 | We will be incorporating websockets with our app to implement real-time communication between our users.
81 |
82 | Our server will be listening for incoming connections and will establish a connection between clients through the WebSocket handshake when a request is made by a client.
83 |
84 | We will be managing real-time display of changes by processing information from the upstream and downstream communications between our server and the clients.
85 |
86 | ### Cross-Platform Typing & Drawing
87 |
88 | Our aim with this project is to create a cohesive experience across all web browsers for both mobile and desktop users. Users must be able to type, draw, and collaboratively edit documents, regardless of platform.
89 |
90 | While building our application in React Native will allow us to utilize a platform's various native components, we are faced with the challenge of creating a drawing and text-editing UI that looks good and functions uniformly.
91 |
92 | Along with React Native, we plan to use a **multi-layer approach** to the editor itself - a bottom layer for text-editing, with an **HTML5 Canvas** layer above. This will give collaborators the ability to easily add comments, make changes, or mark up a document.
93 |
94 | ## UI/UX
95 |
96 | The goal is to make a sleek and intuitive interface for users to be able to pick up and engage with quickly. Pages will be self explanatory with a minimal feel as to not overwhelm users.
97 |
98 | The app will consist of a single page upon logging in with a welcome banner and a sidebar that can be used for navigation between different document rooms. The sidebar will collapse upon entering a document room for a full-screen experience with a clickable tab to reopen the sidebar in order to navigate elsewhere.
99 |
100 | Document pages will start out as a blank canvas and include a toolbar to switch between text and drawing modes with their own prospective editing tools such as font size and pen width.
101 |
102 | The top of the screen will feature an unobtrusive fixed bar for document information such as name and creator, a log out button, and links to the GitHub repository as well as a dropdown menu with links to each contributing developer's information.
103 |
104 | ### Wireframes
105 |
106 | #### Splash Page
107 |
108 | 
109 |
110 | #### Welcome Page
111 |
112 | 
113 |
114 | #### Draw Page (with sidebar)
115 |
116 | 
117 |
118 | #### Type page (no sidebar)
119 |
120 | 
121 |
122 | ## Group Members & Work Breakdown
123 |
124 | **Zaniar Moradian**,
125 | **Mason Anders**,
126 | **Matt Moe**,
127 | **Aidan Gadberry**
128 |
129 | ## Attribution
130 |
131 | Device mockup images in splash-page wireframe are by [Danilo De Marco](http://www.danilodemarco.com/)
132 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | TypeDraw
11 |
12 |
13 |
14 |
15 |
16 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
TypeDraw
29 |
Collaborate remotely and create with others.
30 |
31 |
32 |
33 |
34 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
Create and collaborate with TypeDraw!
52 |
53 |
TypeDraw is a cross-platform app designed for and by creative minds to enable collaboration between
54 | users while they create works of art. Open it on your desktop browser or download the app
55 | and create on the go!
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
How do I use TypeDraw?
65 |
66 |
67 |
68 |
69 |
Create a Document
70 |
Select "Create a New Doc" to get an empty document started, or visit the public document to see what
71 | others are up to.
72 |
73 |
74 |
75 |
Type and Draw
76 |
Select "Type" and then click on the page to start typing.
77 | Select "Draw" then click and drag around the screen to draw a picture.
78 |
79 |
85 |
86 |
91 |
92 |
93 |
94 |
95 |
96 |
Why did we make TypeDraw?
97 |
98 | We made TypeDraw as a way to develop and display crucial industry skills such as
99 | mobile-first development, MERN stack and React Native experience, and team collaboration through Git.
100 |
101 |
102 | We hope to continue developing TypeDraw moving forward, and aspire to publish it on the App Store and Google
103 | Play Store, as well as maintain cross-browser compatibility.
104 |
If you're not yet sure how to use TypeDraw, please refer to the 'How to use TypeDraw' tab above.
120 |
121 | Otherwise, have fun and try it out with a friend!
122 |
123 |
')
373 | .append(i.clone())
374 | .remove()
375 | .html()
376 | .replace(/type="password"/i, 'type="text"')
377 | .replace(/type=password/i, 'type=text')
378 | );
379 |
380 | if (i.attr('id') != '')
381 | x.attr('id', i.attr('id') + '-polyfill-field');
382 |
383 | if (i.attr('name') != '')
384 | x.attr('name', i.attr('name') + '-polyfill-field');
385 |
386 | x.addClass('polyfill-placeholder')
387 | .val(x.attr('placeholder')).insertAfter(i);
388 |
389 | if (i.val() == '')
390 | i.hide();
391 | else
392 | x.hide();
393 |
394 | i
395 | .on('blur', function(event) {
396 |
397 | event.preventDefault();
398 |
399 | var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
400 |
401 | if (i.val() == '') {
402 |
403 | i.hide();
404 | x.show();
405 |
406 | }
407 |
408 | });
409 |
410 | x
411 | .on('focus', function(event) {
412 |
413 | event.preventDefault();
414 |
415 | var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']');
416 |
417 | x.hide();
418 |
419 | i
420 | .show()
421 | .focus();
422 |
423 | })
424 | .on('keypress', function(event) {
425 |
426 | event.preventDefault();
427 | x.val('');
428 |
429 | });
430 |
431 | });
432 |
433 | // Events.
434 | $this
435 | .on('submit', function() {
436 |
437 | $this.find('input[type=text],input[type=password],textarea')
438 | .each(function(event) {
439 |
440 | var i = $(this);
441 |
442 | if (i.attr('name').match(/-polyfill-field$/))
443 | i.attr('name', '');
444 |
445 | if (i.val() == i.attr('placeholder')) {
446 |
447 | i.removeClass('polyfill-placeholder');
448 | i.val('');
449 |
450 | }
451 |
452 | });
453 |
454 | })
455 | .on('reset', function(event) {
456 |
457 | event.preventDefault();
458 |
459 | $this.find('select')
460 | .val($('option:first').val());
461 |
462 | $this.find('input,textarea')
463 | .each(function() {
464 |
465 | var i = $(this),
466 | x;
467 |
468 | i.removeClass('polyfill-placeholder');
469 |
470 | switch (this.type) {
471 |
472 | case 'submit':
473 | case 'reset':
474 | break;
475 |
476 | case 'password':
477 | i.val(i.attr('defaultValue'));
478 |
479 | x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
480 |
481 | if (i.val() == '') {
482 | i.hide();
483 | x.show();
484 | }
485 | else {
486 | i.show();
487 | x.hide();
488 | }
489 |
490 | break;
491 |
492 | case 'checkbox':
493 | case 'radio':
494 | i.attr('checked', i.attr('defaultValue'));
495 | break;
496 |
497 | case 'text':
498 | case 'textarea':
499 | i.val(i.attr('defaultValue'));
500 |
501 | if (i.val() == '') {
502 | i.addClass('polyfill-placeholder');
503 | i.val(i.attr('placeholder'));
504 | }
505 |
506 | break;
507 |
508 | default:
509 | i.val(i.attr('defaultValue'));
510 | break;
511 |
512 | }
513 | });
514 |
515 | });
516 |
517 | return $this;
518 |
519 | };
520 |
521 | /**
522 | * Moves elements to/from the first positions of their respective parents.
523 | * @param {jQuery} $elements Elements (or selector) to move.
524 | * @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
525 | */
526 | $.prioritize = function($elements, condition) {
527 |
528 | var key = '__prioritize';
529 |
530 | // Expand $elements if it's not already a jQuery object.
531 | if (typeof $elements != 'jQuery')
532 | $elements = $($elements);
533 |
534 | // Step through elements.
535 | $elements.each(function() {
536 |
537 | var $e = $(this), $p,
538 | $parent = $e.parent();
539 |
540 | // No parent? Bail.
541 | if ($parent.length == 0)
542 | return;
543 |
544 | // Not moved? Move it.
545 | if (!$e.data(key)) {
546 |
547 | // Condition is false? Bail.
548 | if (!condition)
549 | return;
550 |
551 | // Get placeholder (which will serve as our point of reference for when this element needs to move back).
552 | $p = $e.prev();
553 |
554 | // Couldn't find anything? Means this element's already at the top, so bail.
555 | if ($p.length == 0)
556 | return;
557 |
558 | // Move element to top of parent.
559 | $e.prependTo($parent);
560 |
561 | // Mark element as moved.
562 | $e.data(key, $p);
563 |
564 | }
565 |
566 | // Moved already?
567 | else {
568 |
569 | // Condition is true? Bail.
570 | if (condition)
571 | return;
572 |
573 | $p = $e.data(key);
574 |
575 | // Move element back to its original location (using our placeholder).
576 | $e.insertAfter($p);
577 |
578 | // Unmark element as moved.
579 | $e.removeData(key);
580 |
581 | }
582 |
583 | });
584 |
585 | };
586 |
587 | })(jQuery);
--------------------------------------------------------------------------------
/public/splash/extras/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Creative Commons Attribution 3.0 Unported
2 | http://creativecommons.org/licenses/by/3.0/
3 |
4 | License
5 |
6 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
7 |
8 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
9 |
10 | 1. Definitions
11 |
12 | 1. "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
13 | 2. "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
14 | 3. "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership.
15 | 4. "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
16 | 5. "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
17 | 6. "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
18 | 7. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
19 | 8. "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
20 | 9. "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
21 |
22 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
23 |
24 | 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
25 |
26 | 1. to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections;
27 | 2. to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified.";
28 | 3. to Distribute and Publicly Perform the Work including as incorporated in Collections; and,
29 | 4. to Distribute and Publicly Perform Adaptations.
30 | 5.
31 |
32 | For the avoidance of doubt:
33 | 1. Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
34 | 2. Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and,
35 | 3. Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License.
36 |
37 | The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved.
38 |
39 | 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
40 |
41 | 1. You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(b), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(b), as requested.
42 | 2. If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Section 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4 (b) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
43 | 3. Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise.
44 |
45 | 5. Representations, Warranties and Disclaimer
46 |
47 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
48 |
49 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
50 |
51 | 7. Termination
52 |
53 | 1. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
54 | 2. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
55 |
56 | 8. Miscellaneous
57 |
58 | 1. Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
59 | 2. Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
60 | 3. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
61 | 4. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
62 | 5. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
63 | 6. The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
64 |
--------------------------------------------------------------------------------
/public/splash/extras/elements.html:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | Elements - Stellar by HTML5 UP
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
Elements
23 |
Ipsum dolor sit amet nullam
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
Text
35 |
This is bold and this is strong. This is italic and this is emphasized.
36 | This is superscript text and this is subscript text.
37 | This is underlined and this is code: for (;;) { ... }. Finally, this is a link.
38 |
39 |
Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing blandit tempus accumsan.
40 |
41 |
Heading Level 2
42 |
Heading Level 3
43 |
Heading Level 4
44 |
45 |
Blockquote
46 |
Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan faucibus. Vestibulum ante ipsum primis in faucibus lorem ipsum dolor sit amet nullam adipiscing eu felis.
47 |
Preformatted
48 |
i = 0;
49 |
50 | while (!deck.isInOrder()) {
51 | print 'Iteration ' + i;
52 | deck.shuffle();
53 | i++;
54 | }
55 |
56 | print 'It took ' + i + ' iterations to sort the deck.';
Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent lorem ipsum dolor sit amet veroeros consequat. Etiam tempus lorem ipsum.
341 |
Fringilla nisl. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Donec accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus..