:Resume phone number minor obfuscation

This is not fool-proof, but should stop most scrapers, since it would
require parsing CSS.
master
Mike Gerwitz 2015-08-28 21:48:55 -04:00
parent 36a12673b2
commit 8f1cfe3f9c
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
2 changed files with 22 additions and 1 deletions

View File

@ -33,7 +33,12 @@
</dd>
<dt>Phone:</dt>
<dd>
<span class="phone">+1 (716) 980-7118</span>
<span class="nocss">
Please enable CSS to see phone number, or view the
stylesheet. This is just a precaution against
scrapers. Sorry!
</span>
+1 <div class="phone">9<span class="phony">76</span>80</div>
</dd>
</dl>
</div>

View File

@ -271,3 +271,19 @@ h1 { font-size: 2.2em; }
width: 50px;
height: 50px;
}
.nocss,
.phony {
display: none;
}
/* makes it at least a little harder for scrapers */
.phone {
display: inline-block;
}
.phone::before {
content: '(716) ';
}
.phone::after {
content: '-7118';
}