forked from itchy/Dialyse-Webseite
Rework using Gemini
This commit is contained in:
1 parent
911b8864ca
commit
8660ea6173
28 files changed
+872
-73
No files matched your search
+45
-6
@@ -3,13 +3,52 @@
|
||||
* Dialysezentrum Berlin-Mahlsdorf
|
||||
*/
|
||||
|
||||
function sending() {
|
||||
// Obfuscated mailto link to prevent bot harvesting
|
||||
var parts = ['kontakt', 'dialyse-berlin.net'];
|
||||
window.location.href = 'mailto:' + parts[0] + '@' + parts[1];
|
||||
function sending(user, domain, tld) {
|
||||
user = user || 'kontakt';
|
||||
domain = domain || 'dialyse-berlin';
|
||||
tld = tld || 'net';
|
||||
window.location.href = 'mailto:' + user + '@' + domain + '.' + tld;
|
||||
return true;
|
||||
}
|
||||
|
||||
function initObfuscatedEmails() {
|
||||
// Dynamically reconstruct obfuscated email links and text for real visitors
|
||||
$('.mail-obf').each(function() {
|
||||
var $el = $(this);
|
||||
var u = $el.attr('data-usr') || $el.data('usr');
|
||||
var d = $el.attr('data-dom') || $el.data('dom');
|
||||
var t = $el.attr('data-tld') || $el.data('tld');
|
||||
if (u && d && t) {
|
||||
var email = u + '@' + d + '.' + t;
|
||||
$el.attr('href', 'mailto:' + email);
|
||||
var $val = $el.find('.mail-val');
|
||||
if ($val.length) {
|
||||
$val.removeClass('c-rev').text(email);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.mail-obf-text').each(function() {
|
||||
var $el = $(this);
|
||||
var u = $el.attr('data-usr') || $el.data('usr');
|
||||
var d = $el.attr('data-dom') || $el.data('dom');
|
||||
var t = $el.attr('data-tld') || $el.data('tld');
|
||||
if (u && d && t) {
|
||||
var email = u + '@' + d + '.' + t;
|
||||
var $val = $el.find('.mail-val');
|
||||
if ($val.length) {
|
||||
$val.removeClass('c-rev').text(email);
|
||||
} else {
|
||||
$el.text(email);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
initObfuscatedEmails();
|
||||
});
|
||||
|
||||
function showMapLocation(loc) {
|
||||
var $frame = $('#mapFrame');
|
||||
var $addrText = $('#mapAddressText');
|
||||
@@ -20,14 +59,14 @@ function showMapLocation(loc) {
|
||||
if (loc === 'satellit') {
|
||||
$frame.attr('src', 'https://maps.google.com/maps?q=Blumberger+Damm+130,+12685+Berlin&t=&z=15&ie=UTF8&iwloc=&output=embed');
|
||||
$addrText.text('Blumberger Damm 130 (Eingang Pritzhagener Weg 21), 12685 Berlin');
|
||||
$extLink.attr('href', 'https://www.google.com/maps/place/Dialysezentrum+Berlin-Mahlsdorf+LC/@52.542799,13.5694855,17z/');
|
||||
$extLink.attr('href', 'https://www.google.com/maps/place/Dialysezentrum+Berlin-Mahlsdorf+LC/@52.5428128,13.5716785,17z/data=!3m1!4b1!4m6!3m5!1s0x47a84991f9d5111b:0xda0b4785760166c5!8m2!3d52.5428128!4d13.5716785!16s%2Fg%2F1ts_5mmj');
|
||||
|
||||
$btnMahlsdorf.removeClass('btn-primary').addClass('btn-outline-primary');
|
||||
$btnSatellit.removeClass('btn-outline-primary').addClass('btn-primary');
|
||||
} else {
|
||||
$frame.attr('src', 'https://maps.google.com/maps?q=Thorner+Stra%C3%9Fe+1,+12623+Berlin&t=&z=15&ie=UTF8&iwloc=&output=embed');
|
||||
$addrText.text('Thorner Straße 1, 12623 Berlin');
|
||||
$extLink.attr('href', 'https://www.google.de/maps/place/Dialysezentrum+Berlin-Mahlsdorf/@52.5078935,13.6126659,16z/');
|
||||
$extLink.attr('href', 'https://www.google.com/maps/place/Dialysezentrum+Berlin-Mahlsdorf/@52.5078291,13.6092903,17z/data=!3m1!4b1!4m6!3m5!1s0x47a84991f9c57f7f:0xad4486f559442067!8m2!3d52.5078291!4d13.6092903!16s%2Fg%2F1tdqghgn');
|
||||
|
||||
$btnMahlsdorf.removeClass('btn-outline-primary').addClass('btn-primary');
|
||||
$btnSatellit.removeClass('btn-primary').addClass('btn-outline-primary');
|
||||
|
||||
Reference in new issue
Block a user