Commit 6f338d19 authored by Julian Doucette's avatar Julian Doucette

Issue #47 - Added email address masking to privacy page

parent 0828e788
......@@ -7,6 +7,8 @@ title=Privacy Policy
}
</style>
<script src="/js/address-masking.js"></script>
<header class="page-title">
<h1>Privacy Policy <small>(eyeo.com)</small></h1>
</header>
......@@ -143,7 +145,7 @@ title=Privacy Policy
Questions?
</h3>
<p>
Contact our Data Protection Officer, Dr. Judith Nink, at <a href="mailto:privacy@eyeo.com">privacy@eyeo.com</a> or phone +49 (0) 221 / 65028 598.
Contact our Data Protection Officer, Dr. Judith Nink, at <a href="#" data-mask='{"href": "bWFpbHRvOnByaXZhY3lAZXllby5jb20=", "textContent": "cHJpdmFjeUBleWVvLmNvbQ=="}'>email</a> or phone +49 (0) 221 / 65028 598.
</p>
<hr>
<h2 id="long-version">
......@@ -168,7 +170,7 @@ title=Privacy Policy
<p>
Dr. Judith Nink<br/>
<strong>Phone</strong>: +49 (0) 221 / 65028 598<br/>
<strong>Email</strong>: privacy@eyeo.com<br/>
<strong>Email</strong>: <span data-mask='{"textContent": "cHJpdmFjeUBleWVvLmNvbQ=="}'>email</span><br/>
<strong>Fax</strong>: +49 (0) 221 / 65028 599
</p>
<h3 id="what-is-personal-data">
......@@ -352,7 +354,7 @@ title=Privacy Policy
How to exercise your rights
</h4>
<p>
To exercise your rights, please contact us via <a href="mailto:privacy@eyeo.com">privacy@eyeo.com</a> or write to:
To exercise your rights, please contact us via <a href="#" data-mask='{"href": "bWFpbHRvOnByaXZhY3lAZXllby5jb20=", "textContent": "cHJpdmFjeUBleWVvLmNvbQ=="}'>email</a> or write to:
</p>
<? include address ?>
<h3 id="changes">
......
/*!
* This file is part of website-defaults
* Copyright (C) 2016-present eyeo GmbH
*
* website-defaults is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* website-defaults is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
*/
var ADDRESS_MASKING_DELAY = 250;
function unmaskAddress(target)
{
var attributes = JSON.parse(target.getAttribute("data-mask"));
for (var attr in attributes)
target[attr] = atob(attributes[attr]);
target.removeAttribute("data-mask");
}
document.addEventListener("DOMContentLoaded", function()
{
var unmaskAfterTimeout = setTimeout.bind(
this,
unmaskAddress,
ADDRESS_MASKING_DELAY
);
document.querySelectorAll("[data-mask]").forEach(unmaskAddress);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment