Test for rawgit
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
height: 800 | |
width: 800 | |
scrolling: yes |
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
height: 800 | |
width: 800 | |
scrolling: yes |
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(){ | |
function messenger(exports){ | |
/*export the message so it is visible for other functions*/ | |
exports.message = message; | |
/*function for message generator*/ | |
function message(text){ | |
var div = document.createElement("div"); | |
message.count = message.count || 0; | |
message.div = message.div || document.getElementsByClassName("sideCar")[0]; | |
message.div.appendChild(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
!function(){ | |
function loadStyles(){ | |
var link = document.createElement("link"); | |
link.href = "./styles.css"; | |
link.type = "text/css"; | |
link.rel = "stylesheet"; | |
document.head.appendChild(link); | |
}; | |
taskq.push(loadStyles); | |
}(); |
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(){ | |
/*in our main thread there is only index function | |
so there is no need to use _taskqId or _taskqWaitFor. | |
We define the function and directly do taskq.push | |
to start the main thread.*/ | |
function index(exports){ | |
/*start by loading the message generator | |
then wait 3 seconds before proceeding next*/ | |
taskq.load("./message.js") | |
.then(function(){ |
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(){ | |
function draw(exports){ | |
/*instead of recreating similar divs, | |
I will make one template div, store it | |
in exports and then clone it each time.*/ | |
if(!exports.point) { | |
var div = document.createElement("div"); | |
div.className = "point"; | |
exports.point = 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
<!DOCTYPE html> | |
<html lang="en" style="font-size:24px;"> | |
<head> | |
<meta charset="utf-8"> | |
<script type="text/javascript" src="../../taskq.js" charset="UTF-8"></script> | |
<script type="text/javascript" src="./index.js" charset="UTF-8" async></script> | |
</head> | |
<body> | |
<div class="row"> | |
</div> |