Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardanaya committed Jun 13, 2016
1 parent 4d88fad commit ecb34ba
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

This is a component for easily adding HTML as a material to your 3d objects in aframe VR.

![html in vr](http://i.imgur.com/OdVplWm.png)

Features
* Load content from a url (note: you'll be restricted by what urls you use unless you use CORS or proxy)
* Modify content directly
* Simulate mouse events ("mousedown","mouseup","mousemove","click")

Notes
* Check for other restrictions at http://cburgmer.github.io/rasterizeHTML.js/
* Check for other restrictions at http://cburgmer.github.io/rasterizeHTML.js/

#install
```bash
npm install aframe-html
```
32 changes: 29 additions & 3 deletions examples/00_simple/test.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
<html>
<head>
<style>
.form {
background: rgba(0,0,0,.5);
border-radius: 5px;
padding: 5px;
}
.form div {
background: white;
border-radius: 5px;
margin-bottom: 5px;
}
.form button {
background: darkseagreen;
border-radius: 5px;
}
</style>
</head>
<body>
<h1>HTML!</h1>
This is a <b>test</b>
<img src="tiger.png">
<div class="form">
<div>
This is a <b>test</b>
</div>
<div>
<img src="tiger.png">
</div>
<div>
<button>Submit</button>
</div>
</div>
</body>
</html>

0 comments on commit ecb34ba

Please sign in to comment.