ui: going to try using elm a bit differently

partial-rewrite
Ben Blazak 2014-06-01 01:50:24 -07:00
parent 203cb66b26
commit 620221bd20
8 changed files with 16921 additions and 0 deletions

View File

@ -19,6 +19,28 @@
Haskell is very similar to Elm in some ways, so I think this applies.
## JavaScript Stuff
* [How to include a JavaScript file in another JavaScript file?]
(http://stackoverflow.com/questions/950087/how-to-include-a-javascript-file-in-another-javascript-file)
### Libraries
* [Raphaël]
(http://raphaeljs.com)
Cool graphics library :)
## HTML Stuff
* [W3C Documentation]
(http://www.w3schools.com/html/html5_intro.asp)
-------------------------------------------------------------------------------
Copyright &copy; 2014 Ben Blazak <benblazak.dev@gmail.com>

View File

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>layout-gen</title>
<script type='text/javascript' src='lib/jquery-2.0.0.js'></script>
<script type='text/javascript' src='lib/raphael.js'></script>
<script type='text/javascript' src='main.js'></script>
</head>
</html>

8755
layout-gen/test-js/lib/jquery-2.0.0.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
window.onload = function() {
// Creates canvas 320 × 200 at 10, 50
var paper = Raphael(0, 0, 320, 200);
// Creates circle at x = 50, y = 40, with radius 10
var circle = paper.circle(320, 200, 10);
// Sets the fill attribute of the circle to red (#f00)
circle.attr("fill", "#729fcf");
// Sets the stroke attribute of the circle to white
circle.attr("stroke", "#fff");
}