Skip to content
Browse files

Add protected email

  • Loading branch information...
1 parent b6f0a43 commit bed7d891a45a0dc6e1686148f342e176d16dfde3 @antris committed Mar 2, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −0 index.html
  2. +1 −1 main.js
  3. +1 −0 src/index.html
  4. +3 −4 src/main.js
View
1 index.html
@@ -10,6 +10,7 @@
<ul id="links">
<li><a href="http://twitter.com/antonrissanen">Twitter</a></li>
<li><a href="https://github.com/antris">GitHub</a></li>
+ <li><a href="mailto:hellox@antonx.fi" id="email">Email</a></li>
</ul>
<button id="repaint">Repaint!</button>
</section>
View
2 main.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 src/index.html
@@ -10,6 +10,7 @@
<ul id="links">
<li><a href="http://twitter.com/antonrissanen">Twitter</a></li>
<li><a href="https://github.com/antris">GitHub</a></li>
+ <li><a href="mailto:hellox@antonx.fi" id="email">Email</a></li>
</ul>
<button id="repaint">Repaint!</button>
</section>
View
7 src/main.js
@@ -122,10 +122,6 @@
scene.add(plane);
camera.lookAt(scene.position);
- var actions = {
- getColors: getColors
- };
-
function animate(t) {
var ct;
_.each(cubes, function(cube) {
@@ -189,4 +185,7 @@
});
}
+ // Protect email
+ var emailElem = document.getElementById('email');
+ emailElem.href = emailElem.href.replace(/x/g, '');
}());

0 comments on commit bed7d89

Please sign in to comment.
Something went wrong with that request. Please try again.