Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add protected email

  • Loading branch information...
commit bed7d891a45a0dc6e1686148f342e176d16dfde3 1 parent b6f0a43
Anton Rissanen authored
1  index.html
@@ -10,6 +10,7 @@
10 10 <ul id="links">
11 11 <li><a href="http://twitter.com/antonrissanen">Twitter</a></li>
12 12 <li><a href="https://github.com/antris">GitHub</a></li>
  13 + <li><a href="mailto:hellox@antonx.fi" id="email">Email</a></li>
13 14 </ul>
14 15 <button id="repaint">Repaint!</button>
15 16 </section>
2  main.js
1 addition, 1 deletion not shown
1  src/index.html
@@ -10,6 +10,7 @@
10 10 <ul id="links">
11 11 <li><a href="http://twitter.com/antonrissanen">Twitter</a></li>
12 12 <li><a href="https://github.com/antris">GitHub</a></li>
  13 + <li><a href="mailto:hellox@antonx.fi" id="email">Email</a></li>
13 14 </ul>
14 15 <button id="repaint">Repaint!</button>
15 16 </section>
7 src/main.js
@@ -122,10 +122,6 @@
122 122 scene.add(plane);
123 123 camera.lookAt(scene.position);
124 124
125   - var actions = {
126   - getColors: getColors
127   - };
128   -
129 125 function animate(t) {
130 126 var ct;
131 127 _.each(cubes, function(cube) {
@@ -189,4 +185,7 @@
189 185 });
190 186 }
191 187
  188 + // Protect email
  189 + var emailElem = document.getElementById('email');
  190 + emailElem.href = emailElem.href.replace(/x/g, '');
192 191 }());

0 comments on commit bed7d89

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