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
<scheme name="Scratch" version="1" parent_scheme=""> | |
<option name="FONT_SCALE" value="1.0" /> | |
<option name="LINE_SPACING" value="1.8" /> | |
<font> | |
<option name="EDITOR_FONT_NAME" value="Ubuntu Mono" /> | |
<option name="EDITOR_FONT_SIZE" value="18" /> | |
</font> | |
<font> | |
<option name="EDITOR_FONT_NAME" value="Monaco" /> | |
<option name="EDITOR_FONT_SIZE" value="18" /> |
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
"use strict"; | |
var WordInput = { | |
init() { | |
this.rendered = false; | |
this.domElem = null; | |
this.map = {}; | |
}, |
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
"use strict"; | |
var Word = { | |
init() { | |
this.state = { | |
rendered : false, | |
}; | |
this.domElem = null; | |
}, |
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
"use strict"; | |
var App = { | |
fontSize : 5, | |
multiplier : 3, | |
min : 1, | |
default : 'word', | |
init(id) { | |
id = id || "app"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Worldcloud</title> | |
<script type="application/javascript" src="wordcloud/Word.js"></script> | |
<script type="application/javascript" src="wordcloud/WordInput.js"></script> | |
<script type="application/javascript" src="wordcloud/WordContainer.js"></script> | |
<script type="application/javascript" src="wordcloud/App.js"></script> | |
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
(?!{)[\w\.]+(?=})/g | |
<a href="{material.url}">{material.type}</a> |
// function
function search(target, path) {
var index = path.match(/^[\w]+/);
if (target[index] === undefined) {
return undefined;
}
path = path.replace(/^[\w]+\./, '');
if (path == index) {