### Initialize lightGallery with Dynamic Data Source: https://grundum.de/immobilien/wohnung-eigentumswohnung-etagenwohnung-in-mainz-kaufen-vk25008-rs6/ Initializes the lightGallery plugin with dynamic content. It targets an element with the ID 'lightgallery' and configures it to use a dynamic array of image objects. This setup is commonly used for displaying image galleries from data sources. ```javascript jQuery(document).ready(function($) { const dynamicGallery = lightGallery(document.getElementById('lightgallery'), { "dynamic": true, "dynamicEl": [ { "alt": "Gestaged - Wohnzimmer - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-vesa2cvhdffe4p3dn6d3lfw3-gestaged-wohnzimmer.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-vesa2cvhdffe4p3dn6d3lfw3-gestaged-wohnzimmer-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "Wohnzimmer 1.1 - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-dmj2a1hjsrxzfqqoevpd4rzw-img_0992.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-dmj2a1hjsrxzfqqoevpd4rzw-img_0992-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "Wohnzimmer 1.2 - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-xjyhcuu5ozusjnfbpqbsdm5y-img_0988.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-xjyhcuu5ozusjnfbpqbsdm5y-img_0988-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "Au\u00dfenansicht - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-up1jrvdtniece7hfucsjfcpr-img_1035.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-up1jrvdtniece7hfucsjfcpr-img_1035-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "Eingangsbereich Haus - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-zgujwbnpknujqy69rv1xrg2f-img_1030.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-zgujwbnpknujqy69rv1xrg2f-img_1030-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "Flur - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-ucywhjmfjcvpjvcwjgbnsgew-img_0966.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-ucywhjmfjcvpjvcwjgbnsgew-img_0966-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "G\u00e4ste WC - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-ewlxkb3dabgnvs9u57etju2j-img_0975.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-ewlxkb3dabgnvs9u57etju2j-img_0975-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "K\u00fcche - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-ohqdp5ls2rtgnr5zmgd8utdn-img_0986.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-ohqdp5ls2rtgnr5zmgd8utdn-img_0986-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>" }, { "alt": "K\u00fcchenzeile - Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-jexoav78qjbvtymoqbwd9qjj-img_0983.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/40e3d92d638529203285190c4f7cc952\/3639070-jexoav78qjbvtymoqbwd9qjj-img_0983-165x110.avif", "subHtml": "
Sch\u00f6ne 3\u2011Zimmerwohnung im gr\u00fcnen Lerchenberg!<\/p>"
}
]
});
});
```
--------------------------------
### WordPress Block Styling Example
Source: https://grundum.de/grundum-sorglos-paket/
Example CSS for a custom WordPress block, demonstrating background color, border, and text color for a specific block class.
```css
.wp-block-create-block-wjo-block{background-color:#21759b;border:1px dotted red;color:#fff;padding:2px}
```
--------------------------------
### JavaScript Configuration and Data Layer
Source: https://grundum.de/immobilien-arten/wohnung/
Contains JavaScript variables for site configuration, mobile settings, and data layer initialization for analytics. Includes settings for sticky headers, sidebar behavior, and Google Analytics tracking.
```javascript
var dtLocal = {"stickyMobileHeaderSecondSwitch":{"logo":{"html":""}},"sidebar":{"switchPoint":990},"boxedWidth":"1280px"};
var dtShare = {"shareButtonText":{"facebook":"Share on Facebook","twitter":"Share on X","pinterest":"Pin it","linkedin":"Share on Linkedin","whatsapp":"Share on Whatsapp"},"overlayOpacity":"85"};
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-854482468');
```
--------------------------------
### WordPress Internationalization Setup
Source: https://grundum.de/immobilien/halle-produktion-industriehalle-mit-freiflaeche-in-bad-kreuznach-kaufen-9bfd92/
Sets up locale data for WordPress internationalization, specifically for text direction.
```javascript
wp.i18n.setLocaleData( {
'text direction\u0004ltr': [
'ltr'
]
} );
```
--------------------------------
### jQuery AJAX Event Handlers
Source: https://grundum.de/immobilien-ort/mainz/
Handles visual feedback during AJAX requests by changing the opacity of the search form element '#immomakler-search' when requests start and complete.
```JavaScript
(function($) {
$(function() {
$( '#immomakler-search' ).ajaxStart(function() {
$( '#immomakler-search' ).css('opacity', 0.5);
});
$( '#immomakler-search' ).ajaxComplete(function() {
$( '#immomakler-search' ).css('opacity', 1);
});
});
})(jQuery);
```
--------------------------------
### Initialize lightGallery Dynamic Gallery
Source: https://grundum.de/immobilien/haus-mehrfamilienhaus-in-eltville-am-rhein-kaufen-9121a1/
This snippet demonstrates how to initialize the lightGallery plugin for a dynamic image gallery. It uses jQuery's document ready function to ensure the DOM is fully loaded before execution. The gallery is configured with dynamic data, including image sources, thumbnails, and descriptive HTML for each item.
```javascript
jQuery(document).ready(function($) {
const dynamicGallery = lightGallery(document.getElementById('lightgallery'), {
"dynamic": true,
"dynamicEl": [
{
"alt": "Luftbild 1 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben",
"src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-q1cxag5egqsxd8pe4sosnu5i-luftbild-1.avif",
"thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-q1cxag5egqsxd8pe4sosnu5i-luftbild-1-147x110.avif",
"subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Luftbild 2 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-ghkndv8pthjhskm7ecc2avzs-luftbild-2.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-ghkndv8pthjhskm7ecc2avzs-luftbild-2-147x110.avif", "subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Luftbild 3 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-yypvaafyk5vhzfdvt8xjnpiz-luftbild-3.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-yypvaafyk5vhzfdvt8xjnpiz-luftbild-3-147x110.avif", "subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Luftbild 4 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-tnznfcmm3ghdrib7gzgt8mod-luftbild-4.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-tnznfcmm3ghdrib7gzgt8mod-luftbild-4-147x110.avif", "subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Luftbild 5 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-advkr46uis9dnahhvfyc9h5c-luftbild-5.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-advkr46uis9dnahhvfyc9h5c-luftbild-5-147x110.avif", "subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Luftbild 6 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-qcf5akdsg9s2f3hoad8h5nwa-luftbild-6.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-qcf5akdsg9s2f3hoad8h5nwa-luftbild-6-147x110.avif", "subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Luftbild 7 - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-wuscbz4adzd7hyvftmersiky-luftbild-7.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-wuscbz4adzd7hyvftmersiky-luftbild-7-147x110.avif", "subHtml": "
Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben<\/p>" }, { "alt": "Stra\u00dfenansicht - Charmantes Altbau-\u200bMFH mit 5 WE in Eltville! Optional mit separatem Baugrundst\u00fcck zu erwerben", "src": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-yaqgjszybydbl3zgg3aduame-strassenansicht_201.1.avif", "thumb": "https:\/\/grundum.de\/wp-content\/uploads\/immomakler\/attachments\/7ef7b8e192365f39d65d8063ffdecfa8\/3498094-yaqgjszybydbl3zgg3aduame-strassenansicht_201.1-147x110.avif" } ] }); }); ``` -------------------------------- ### Contact Form Function Call Source: https://grundum.de/lokaler-immobilienmakler-fuer-wiesbaden-und-umgebung-grundum-immobilien/ Example of a JavaScript function call to interact with a contact form, likely closing a menu and then showing a specific form, such as the email form. ```javascript Default(); // Assuming Default() is a predefined function contactUs.closeMenu(); contactUs.showForm('email'); return false; ``` -------------------------------- ### Contact Widget Initialization and Configuration Source: https://grundum.de/immobilien-vermarktungsart/miete/ Initializes a contact widget by creating a div element, appending it to the document body, and setting up event listeners for widget interactions. It also defines and adds various contact methods (WhatsApp, Callback, Email) to the widget's configuration, including their respective icons and click handlers. ```javascript var $arcuWidget; var zaloWidgetInterval; var tawkToInterval; var tawkToHideInterval; var skypeWidgetInterval; var lcpWidgetInterval; var closePopupTimeout; var lzWidgetInterval; var paldeskInterval; var arcuOptions; var hideCustomerChatInterval; var _arCuTimeOut = null; var arCuPromptClosed = false; var _arCuWelcomeTimeOut = null; var arCuMenuOpenedOnce = false; var arcuAppleItem = null; var arcItems = []; window.addEventListener('load', function(){ $arcuWidget = document.createElement('div'); var body = document.getElementsByTagName('body')[0]; $arcuWidget.id = 'arcontactus'; if (document.getElementById('arcontactus')) { document.getElementById('arcontactus').parentElement.removeChild(document.getElementById('arcontactus')); } body.appendChild($arcuWidget); arCuClosedCookie = arCuGetCookie('arcu-closed'); $arcuWidget.addEventListener('arcontactus.init', function(){ $arcuWidget.classList.add('arcuAnimated'); $arcuWidget.classList.add('flipInY'); setTimeout(function(){ $arcuWidget.classList.remove('flipInY'); }, 1000); if (document.querySelector('#arcu-form-callback form')) { document.querySelector('#arcu-form-callback form').append(contactUs.utils.DOMElementFromHTML(arCUVars._wpnonce)); } if (document.querySelector('#arcu-form-email form')) { document.querySelector('#arcu-form-email form').append(contactUs.utils.DOMElementFromHTML(arCUVars._wpnonce)); } $arcuWidget.addEventListener('arcontactus.successSendFormData', function(event){}); $arcuWidget.addEventListener('arcontactus.successSendFormData', function(event){}); $arcuWidget.addEventListener('arcontactus.errorSendFormData', function(event){ if (event.detail.data && event.detail.data.message) { alert(event.detail.data.message); } }); $arcuWidget.addEventListener('arcontactus.hideFrom', function(){ clearTimeout(closePopupTimeout); }); }); $arcuWidget.addEventListener('arcontactus.closeMenu', function(){ arCuCreateCookie('arcumenu-closed', 1, 1); }); var arcItem = {}; arcItem.id = 'msg-item-2'; arcItem.class = 'msg-item-whatsapp'; arcItem.title = "Whatsapp"; arcItem.icon = ''; arcItem.includeIconToSlider = true; arcItem.href = 'https://wa.me/+49611974514140'; arcItem.color = '#BE9E55'; arcItems.push(arcItem); var arcItem = {}; arcItem.id = 'msg-item-9'; arcItem.onClick = function(e){ e.preventDefault(); contactUs.closeMenu(); contactUs.showForm('callback'); return false; } arcItem.class = 'msg-item-phone'; arcItem.title = "Rückruf-Service"; arcItem.icon = ''; arcItem.href = null; arcItem.color = '#BE9E55'; arcItems.push(arcItem); var arcItem = {}; arcItem.id = 'msg-item-12'; arcItem.onClick = function(e){ e.preventDefault(); contactUs.closeMenu(); contactUs.showForm('email'); return false; } arcItem.class = 'msg-item-envelope'; arcItem.title = "E-Mail Service"; arcItem.icon = ''; arcItem.href = null; arcItem.color = '#BE9E55'; arcItems.push(arcItem); arcuOptions = { rootElementId: 'arcontactus', credits: false, visible: true, wordpressPluginVersion: '2.2.7', online: null, buttonIcon: '