PageSourceSearch

https://www.epdesignstudio.co.uk/wp-content/plugins/ddpro/include/mermaid/js/mermaid_divi.js?ver=6.8.11

js epdesignstudio.co.uk collected 2026-10-09 22:43:08 UTC 23,008 bytes, 496 lines download raw bytes

1!function (t) {
2    t(".person3_M  .et_pb_column_1_2 .et_pb_team_member  ").hover(function () {
3        t(".person3_M  .et_pb_column_1_2 .et_pb_team_member  ").addClass("noHover"), t(this).addClass("hover")
4    }, function () {
5        t(".person3_M  .et_pb_column_1_2 .et_pb_team_member  ").removeClass("noHover"), t(this).removeClass("hover")
6    }), t(".button_unique").each(function () {
7        t(this).parent(".et_pb_button_module_wrapper").addClass("button_unique_wrapper")
8    }), t(".mask_2_M a.et_pb_button.read-our-news ").on("click", function (e) {
9        e.preventDefault(), t("html").addClass("clicked"), t("body").addClass("clicked_mask").addClass("unclicked_mask"), setTimeout(function () {
10            t("body").removeClass("unclicked_mask")
11        }, 800)
12    }), t(".mask_2_M a.et_pb_button.close_button").on("click", function (e) {
13        e.preventDefault(), t("html").removeClass("clicked"), t("body").removeClass("clicked_mask").addClass("unclicked_mask");
14        var i = t(".mask_2_M").offset();
15        t(document).scrollTop(i.top), setTimeout(function () {
16            t("body").removeClass("unclicked_mask")
17        }, 800)
18    }), t(".mask_1_M a.et_pb_button.team_button ").on("click", function (e) {
19        e.preventDefault(), t("html").addClass("clicked_mask_1"), t("body").addClass("clicked_button");
20        var i = t(this).attr("href");
21        setTimeout(function () {
22            window.location.href = i
23        }, 1e3), t("body").hasClass("safari") && setTimeout(function () {
24            t("body").removeClass("clicked_button")
25        }, 2e3)
26    }), t.easing.smoothmove = function (t, e, i, n, _) {
27        return -n * (e /= _) * (e - 2) + i
28    },  t(' .et_pb_contact .et_pb_contact_form  p:not([data-type="checkbox"]):not([data-type="radio"]) input,  .et_pb_contact .et_pb_contact_form  p:not([data-type="checkbox"]):not([data-type="radio"]) textarea').focus(function () {
29        t(this).parent("p").addClass("focus")
30    }), t(' .et_pb_contact .et_pb_contact_form  p:not([data-type="checkbox"]):not([data-type="radio"]) input,  .et_pb_contact .et_pb_contact_form  p:not([data-type="checkbox"]):not([data-type="radio"]) textarea').blur(function () {
31        t(this).val() ? t(this).parent().addClass("filled") : t(this).parent().removeClass("filled"), t(this).parent("p").removeClass("focus")
32    });
33    var o = t('.contact_form_1_M    .et_pb_contact_field[data-type="select"] select option:first-child').text(),
34        c = o.replace(/\-/g, " ").replace(/\ /g, " ");
35    t('.contact_form_1_M  .et_pb_contact_field[data-type="select"] select option:first-child').text(c), t('<span class="price"></span>').insertBefore(t('.contact_form_1_M   p.et_pb_contact_field[data-id="price"] input')), t(' .contact_form_4_M  .et_pb_contact_form  p[data-id="type_of_project"] .et_pb_contact_field_radio, .contact_form_4_M  .et_pb_contact_form  p[data-id="price"] .et_pb_contact_field_radio').on("click", function () {
36        t(this).hasClass("clicked") || (t(this).parent(".et_pb_contact_field_options_list").find(".et_pb_contact_field_radio").removeClass("clicked"), t(this).addClass("clicked"))
37    }), t('<div class="details"></div>').insertBefore('.contact_form_4_M  form p[data-id="type_of_project"]'), t('<div class="start_date"></div>').insertAfter('.contact_form_4_M  form p[data-id="type_of_project"]'), t('<div class="end_date"></div>').insertBefore('.contact_form_4_M  form p[data-id="price"]'), t('.contact_form_4_M  p[data-id="name"], .contact_form_4_M  p[data-id="email"], .contact_form_4_M  p[data-id="phone"]').appendTo(".contact_form_4_M  .details"), t('.contact_form_4_M  p[data-id="select_month"], .contact_form_4_M  p[data-id="select_year"], .contact_form_4_M  p[data-id="no_big_rsuh"]').appendTo(".contact_form_4_M  .start_date"), t('.contact_form_4_M  p[data-id="select_end_month"], .contact_form_4_M  p[data-id="select_end_year"], .contact_form_4_M  p[data-id="when_its_ready"]').appendTo(".contact_form_4_M  .end_date"), t(".blog_landing_M .et_pb_posts .et_pb_post  .post-meta, .blog_portrait_M .et_pb_posts .et_pb_post  .post-meta, .blog_circle_M .et_pb_posts .et_pb_post  .post-meta, .blog_no_images_M .et_pb_posts .et_pb_post  .post-meta, .blog-landing-image-reveal_M .et_pb_posts .et_pb_post  .post-meta").each(function () {
38        if ("undefined" != t(this).find("span.author")[0]) var e = t(this).find("span.author")[0];
39        var i = t(this).find("span.published")[0],
40            n = t(this).find('a[rel="category tag"]').toArray(),
41            _ = t(this).find(".published").text(),
42            a = _.replace(/\d+/g, ""),
43            s = parseInt(_);
44        if (9 >= s && (s = "0" + s), i = '<span class="published"><span class="day"> ' + s + '</span><span class="month"> ' + a + "</span></span>", n = t.map(n, function (t) {
45                return t.outerHTML
46            }), n = n.join(", "), e) {
47            var o = "Posted " + e.outerHTML + " / ";
48            o += i, o += "<span class='categories'>" + n + "</span>"
49        } else {
50            var o = i;
51            o += "<span class='categories'>" + n + "</span>"
52        }
53        t(this).html(o)
54    }), t.fn.succinct = function (e) {
55        var i = t.extend({size: 240, omission: "...", ignore: !0}, e);
56        return this.each(function () {
57            var e, n, _ = t(this),
58                a = /[!-\/:-@\[-`{-~]$/,
59                s = function () {
60                    _.each(function () {
61                        e = t(this).html(), e.length > i.size && (n = t.trim(e).substring(0, i.size).split(" ").slice(0, -1).join(" "), i.ignore && (n = n.replace(a, "")), t(this).html(n + i.omission))
62                    })
63                };
64            s()
65        })
66    }, t("#page-container .blog-landing-image-reveal_M .entry-title a").succinct({size: 67}), t(".blog_landing_M .entry-title a").succinct({size: 67}), t(".blog_portrait_M .entry-title a").succinct({size: 67}), t(".blog_no_images_M .post-content p").succinct({size: 150}), t(".blog_no_images_M .entry-title a").succinct({size: 67}), t(".blog_circle_M .entry-title a").succinct({size: 80}), setTimeout(function () {
67        t("article.et_pb_post").each(function () {
68            var e = t(this).find(".entry-featured-image-url").height(),
69                i = t(this).find(".entry-featured-image-url img").height();
70            e > i && t(this).find(".entry-featured-image-url").addClass("smallheight")
71        })
72    }, 1e3), setTimeout(function () {
73        var e = 0,
74            i = 0;
75        t("#page-container .blog-landing-image-reveal_M article").each(function () {
76            var n = t(this).height(),
77                _ = t(this).find(".entry-title").height();
78            n > e && (e = n), _ > i && (i = _)
79        }), t("#page-container .blog-landing-image-reveal_M article .entry-title").height(i), t("#page-container .blog-landing-image-reveal_M article").height(e)
80    }, 1e3), t(window).resize(function () {
81        t("#page-container .blog-landing-image-reveal_M article").css("height", "auto")
82    });
83
84}(jQuery);
85jQuery(".circle-blog .et_pb_post").each(function () {
86    var e = jQuery(this).find(".entry-featured-image-url").attr("href");
87    jQuery(this).wrap("<a href='" + e + "' class='newa'></a>")
88});
89!function (t) {
90    t(".content_10_M .et_pb_row").on("click touchend", function () {
91        thisalink = t(this).find(".et_pb_image a").attr("href"), thisatarget = t(this).find(".et_pb_image a").attr("target"), thisalink && ("_blank" == thisatarget ? window.open(thisalink, "_blank") : window.location.href = thisalink)
92    })
93}(jQuery);
94
95(function ($) {
96    // Slider Module only for Slider 1
97
98    setTimeout(function () {
99        $('.slider_1_M .et_pb_slide').each(function () {
100            var imgSrc = $(this).css('background-image');
101            imgSrc = imgSrc.replace('url(', '').replace(')', '').replace(/\"/gi, "");
102            $('<img src=" ' + imgSrc + ' ">').insertBefore($(this).find('.et_pb_container'));
103            $(this).css('background-image', 'none');
104        });
105    }, 500);
106
107
108    $('.slider_1_M .et_pb_slide .et_pb_slide_description').on('click', function () {
109        var descLink = $(this).find('a.et_pb_button').attr('href');
110        if (descLink) {
111            window.location.href = descLink;
112        }
113    });
114
115// Slider Module only for Slider 2
116    setTimeout(function () {
117        $('.slider_2_M').css('display', 'block')
118    }, 1000);
119
120    setTimeout(function () {
121        //Slide Sizes
122        var windowWidth = "";
123        var slideItemWidth = "";
124        var slideItemCount = "";
125        var margRight = "";
126        //Adding Title in controls
127
128        $('.slider_2_M').each(function () {
129            var classCount = "1";
130
131            $(this).find('.et_pb_slide').each(function () {
132
133                var attrText = $(this).find('.et_pb_slide_description h2').text();
134                $(this).parent().parent().find('.et-pb-controllers a:nth-child(' + classCount + ')').attr('text', attrText);
135
136                classCount++;
137            });
138        });
139        $('.slider_2_M ').each(function () {
140            $(this).find('.et_pb_slides').each(function () {
141                windowWidth = $(window).width();
142                slideItemWidth = $(this).find('.et_pb_slide').width();
143                slideItemCount = $(this).find('.et_pb_slide').length + 2;
144                $(this).width(slideItemWidth * slideItemCount);
145
146                margRight = (windowWidth - 3 * slideItemWidth) / 2;
147                $(this).css('margin-left', margRight);
148
149
150                //Adding First and last Elements
151                $(this).find('.et_pb_slide:last-child').clone().insertBefore($(this).find('.et_pb_slide:first-child'));
152                $(this).find('.et_pb_slide:nth-child(2)').clone().removeClass('et-pb-active-slide').insertAfter($(this).find('.et_pb_slide:last-child'));
153
154                prevEl = $(this).find('.et_pb_slide.et-pb-active-slide').prevAll().length - 1;
155                slideSize = slideItemWidth * prevEl - margRight;
156                $(this).find('.et_pb_slides').css('margin-left', -slideSize);
157            });
158        });
159
160
161        //Slider Slide
162
163        $('.slider_2_M .et-pb-controllers a').on('click', function () {
164            $(this).parent().parent().find('.et_pb_slides').removeClass('active_slider')
165            $(this).parent().parent().find('.et_pb_slides').addClass('active_slider')
166            setTimeout(function () {
167                prevEl = $(this).parent().parent().find('.active_slider .et_pb_slide.et-pb-active-slide').prevAll().length - 1;
168                slideSize = slideItemWidth * prevEl - margRight;
169                $(this).parent().parent().find('.active_slider').css('margin-left', -slideSize);
170            }, 100)
171
172        });
173
174        $('.slider_2_M .et_pb_slides').removeClass('active_slider')
175        $('.slider_2_M .et_pb_slides').addClass('active_slider')
176        setInterval(function () {
177            $('.slider_2_M').each(function () {
178                prevEl = $(this).find('.active_slider .et_pb_slide.et-pb-active-slide').prevAll().length - 1;
179                slideSize = slideItemWidth * prevEl - margRight;
180                $(this).find('.active_slider').css('margin-left', -slideSize);
181            })
182
183        }, 100)
184
185
186
187
188    }, 1000);
189
190
191    // End Slider Module only for Slider 2
192
193
194    //Blurb 8
195
196    if ($(window).width() <= 981) {
197        $('.blurb_8_M  .et_pb_row').each(function () {
198            $(this).find($('.et_pb_column_1_3:nth-child(2) .et_pb_blurb.image')).insertBefore($(this).find($('.et_pb_column_1_3:nth-child(2) .et_pb_blurb.title')));
199        })
200
201    }
202
203    $(window).resize(function () {
204        if ($(window).width() >= 981) {
205            $('.blurb_8_M  .et_pb_row').each(function () {
206                $(this).find($('.et_pb_column_1_3:nth-child(2) .et_pb_blurb.image')).insertAfter($(this).find($('.et_pb_column_1_3:nth-child(2) .et_pb_blurb.text')));
207            })
208        } else {
209            $('.blurb_8_M  .et_pb_row').each(function () {
210                $(this).find($('.et_pb_column_1_3:nth-child(2) .et_pb_blurb.image')).insertBefore($(this).find($('.et_pb_column_1_3:nth-child(2) .et_pb_blurb.title')));
211            })
212        }
213    });
214
215
216    // Slider Module only for Slider 3
217
218
219    var slideItemsCount = "";
220    $('.slider_3_M .et_pb_slides').each(function () {
221        slideItemsCount = $(this).find('.et_pb_slide').length;
222
223    });
224
225    setTimeout(function () {
226        $('<div class="slide_count"><span class="current">01</span>/<span>0' + slideItemsCount + '</span></div>').insertBefore('.slider_3_M .et-pb-slider-arrows .et-pb-arrow-prev');
227
228        $('.slider_3_M .et-pb-slider-arrows a').on('click', function () {
229            setTimeout(function () {
230                var prevElAc = $('.slider_3_M .et_pb_slide.et-pb-active-slide').prevAll().length + 1;
231
232                $('.slider_3_M .slide_count .current').text('0' + prevElAc + '');
233            }, 500);
234        });
235    }, 2000);
236
237
238    setInterval(function () {
239        if ($('.slider_3_M .et_pb_slider ').hasClass('et_slider_auto')) {
240            //console.log('slide');
241            var prevElAc = $('.slider_3_M .et_pb_slide.et-pb-active-slide').prevAll().length + 1;
242
243            $('.slider_3_M .slide_count .current').text('0' + prevElAc + '');
244        }
245    }, 200);
246
247     setInterval(function () {
248        if ($('.slider_3_M .et_pb_slider ').hasClass('et_slider_auto')) {
249           // console.log('slide');
250            var prevElAc = $('.slider_3_M .et_pb_slide.et-pb-active-slide').prevAll().length + 1;
251
252            $('.slider_3_M .slide_count .current').text('0' + prevElAc + '');
253        }
254    }, 200)
255
256    // End Slider Module only for Slider 3
257
258
259    // clear the placeholder on click
260
261    $('input,textarea').focus(function () {
262        if ($(this).attr('placeholder') !== '') {
263            $(this).attr('data-placeholder', $(this).attr('placeholder'));
264
265            $(this).attr('placeholder', '');
266        }
267    });
268    $('input,textarea').blur(function () {
269        if ($(this).attr('placeholder') === '') {
270            $(this).attr('placeholder', $(this).attr('data-placeholder'));
271        }
272    });
273
274    // click for blurbs 9
275    $('.blurb_9_M .et_pb_blurb, .blurbs_4_M .et_pb_blurb').on('click', function () {
276
277        var blurbPageLink = $(this).find('.et_pb_blurb_content a').attr('href');
278        var blurbPageLinkTarget = $(this).find('.et_pb_blurb_content a').attr('target');
279
280        if (blurbPageLink) {
281            if (blurbPageLinkTarget) {
282                window.open(
283                    blurbPageLink,
284                    '_blank'
285                );
286            } else window.location.href = blurbPageLink;
287        }
288    });
289
290
291    if ($(window).width() <= 767) {
292        $('.content_10_M .et_pb_row ').each(function () {
293            $(this).find('.column_text').insertAfter($(this).find('.column_image '));
294        })
295
296    }
297
298    $(window).resize(function () {
299        if ($(window).width() <= 767) {
300            $('.content_10_M .et_pb_row ').each(function () {
301                $(this).find('.column_text').insertAfter($(this).find('.column_image '));
302            })
303        } else {
304            $('.content_10_M .et_pb_row ').each(function () {
305                $(this).find('.column_text').insertBefore($(this).find('.column_image '));
306            })
307        }
308    });
309
310
311    // blog pagination
312    function unicornReloadBlog() {
313        $('.blog_landing_M .et_pb_posts .et_pb_post  .post-meta, .blog_portrait_M .et_pb_posts .et_pb_post  .post-meta, .blog_circle_M .et_pb_posts .et_pb_post  .post-meta, .blog_no_images_M .et_pb_posts .et_pb_post  .post-meta, .blog-landing-image-reveal_M .et_pb_posts .et_pb_post  .post-meta').each(function () {
314            var author = $(this).find('span.author')[0];
315            var date = $(this).find('span.published')[0];
316            var categories = $(this).find('a[rel="category tag"]').toArray();
317
318            var dateDay = $(this).find('.published').text();
319            var month = dateDay.replace(/\d+/g, '');
320            var day = parseInt(dateDay);
321
322            if (day <= 9) {
323                day = '0' + day;
324            }
325
326            date = '<span class="published"><span class="day"> ' + day + '</span><span class="month"> ' + month + '</span></span>';
327
328            categories = $.map(categories, function (element) {
329                return element.outerHTML;
330            });
331
332            categories = categories.join(', ');
333
334            if (author) var html = 'Posted ' + author.outerHTML + ' / ';
335            else var html = "";
336            
337
338            html += date;
339
340            html += "<span class='categories'>" + categories + "</span>";
341
342            $(this).html(html);
343        });
344
345        $('.blog_no_images_M  article.et_pb_post, .blog_landing_M article.et_pb_post').each(function () {
346
347            if ($(this).find($('.post_info')).length == 0) {
348                $('<div class="post_info"></div>').appendTo($(this));
349            }
350
351            $(this).find('h2.entry-title').appendTo($(this).find('.post_info'));
352            $(this).find('.post-meta').appendTo($(this).find('.post_info'));
353            $(this).find('.post-content').appendTo($(this).find('.post_info'));
354        });
355    }
356
357    if($('body').hasClass('et-fb')) {
358        setTimeout(function () {
359            unicornReloadBlog();
360
361            $(".person3_M  .et_pb_column_1_2 .et_pb_team_member").hover(function () {
362                $(".person3_M  .et_pb_column_1_2 .et_pb_team_member").addClass("noHover"), $(this).addClass("hover")
363            }, function () {
364                $(".person3_M  .et_pb_column_1_2 .et_pb_team_member").removeClass("noHover"), $(this).removeClass("hover")
365            });
366
367
368
369            $(".mask_2_M a.et_pb_button.read-our-news ").on("click", function (e) {
370                e.preventDefault();
371                    $("html").addClass("clicked");
372                        $("body").addClass("clicked_mask").addClass("unclicked_mask");
373                            setTimeout(function () {
374                    $("body").removeClass("unclicked_mask");
375                }, 800)
376            })
377             $(".mask_2_M a.et_pb_button.close_button").on("click", function (e) {
378                e.preventDefault();
379                $("html").removeClass("clicked");
380                    $("body").removeClass("clicked_mask").addClass("unclicked_mask");
381                var i = $(".mask_2_M").offset();
382                $(document).scrollTop(i.top);
383                    setTimeout(function () {
384                    $("body").removeClass("unclicked_mask")
385                }, 800)
386            }), $(".mask_1_M a.et_pb_button.team_button ").on("click", function (e) {
387                e.preventDefault(), $("html").addClass("clicked_mask_1"), $("body").addClass("clicked_button");
388                var i = $(this).attr("href");
389                setTimeou$(function () {
390                    window.location.href = i
391                }, 1e3), $("body").hasClass("safari") && setTimeou$(function () {
392                    $("body").removeClass("clicked_button")
393                }, 2e3)
394            }), $.easing.smoothmove = function (t, e, i, n, _) {
395                return -n * (e /= _) * (e - 2) + i
396            };
397        }, 10000);
398    }
399
400    var refreshUniBlogonClick = null;
401
402    $('body').on('click', '.et_pb_ajax_pagination_container .wp-pagenavi a,.et_pb_ajax_pagination_container .pagination a', function () {
403        clearInterval(refreshUniBlogonClick);
404        refreshUniBlogonClick = setInterval(unicornReloadBlog, 300);
405    });
406
407    $("body .video-popup a").click(function (event) {
408        event.preventDefault();
409        $.fancybox({
410            'padding': 0,
411            'autoScale': false,
412            'transitionIn': 'none',
413            'transitionOut': 'none',
414            'title': this.title,
415            'width': 680,
416            'height': 495,
417            'href': this.href,
418            'type': 'swf',
419            'swf': {
420                'wmode': 'transparent',
421                'allowfullscreen': 'true'
422            }
423        });
424        return false;
425    });
426
427    $('<div class="post_info"></div>').appendTo(".blog_no_images_M .et_pb_posts  .et_pb_post");
428    $('<div class="post_info"></div>').appendTo(".blog_portrait_M .et_pb_posts  .et_pb_post");
429    $('<div class="post_info"></div>').appendTo(".blog_circle_M .et_pb_posts  .et_pb_post");
430    $('<div class="post_info"></div>').appendTo(".blog_landing_M  .et_pb_posts  .et_pb_post");
431    $(".blog_no_images_M .et_pb_posts  .et_pb_post, .blog_portrait_M .et_pb_posts  .et_pb_post, .blog_circle_M .et_pb_posts  .et_pb_post, .blog_landing_M  .et_pb_posts  .et_pb_post ").each(function () {
432        $(this).find("h2.entry-title").appendTo($(this).find(".post_info"));
433        $(this).find(".post-meta").appendTo($(this).find(".post_info"));
434        $(this).find(".post-content").appendTo($(this).find(".post_info"))
435    }),
436
437
438//    3 Column Reveal Contact Form Capcha
439
440    $('.contact_form_1_M .et_contact_bottom_container .et_pb_contact_right').insertBefore('.contact_form_1_M .et_contact_bottom_container');
441    $('.contact_form_2_M .et_contact_bottom_container .et_pb_contact_right').insertBefore('.contact_form_2_M .et_contact_bottom_container');
442    $('.contact_form_3_M .et_contact_bottom_container .et_pb_contact_right').insertBefore('.contact_form_3_M .et_contact_bottom_container');
443    $('.contact_form_4_M .et_contact_bottom_container .et_pb_contact_right').insertBefore('.contact_form_4_M .et_contact_bottom_container');
444
445    setTimeout(function(){ $(window).trigger('resize');}, 500);
446    setTimeout(function(){ $(window).trigger('resize');}, 1000);
447    setTimeout(function(){ $(window).trigger('resize');}, 1500);
448    setTimeout(function(){ $(window).trigger('resize');}, 2000);
449
450
451    var timeOutblurb1m = 0;
452
453    if($('body').hasClass('et-fb')){
454        timeOutblurb1m = 8000;
455    }
456    var thisBlurb;
457    setTimeout(function () {
458        $(".blurbs_1_M .et_pb_blurb ").hover(
459
460            function () {
461                thisBlurb = $(this);
462            setTimeout(function () {
463                thisBlurb.addClass("hover")
464            },50)
465
466        }, function () {
467            setTimeout(function () {
468                thisBlurb.removeClass("hover")
469            },50)
470        }
471        )
472    }, timeOutblurb1m);
473
474
475    var timeOutcontent14M = 0;
476
477    if($('body').hasClass('et-fb')){
478        timeOutcontent14M = 8000;
479    }
480    var thisBlurb;
481    setTimeout(function () {
482    $(".content_14_M .et_pb_blurb").each(function (e) {
483        var i = $(this).find(".et_pb_main_blurb_image img").attr("src");
484        $(this).find(".et_pb_blurb_container h4").css({background: "url(" + i + ")"})
485    })
486
487    $(".content_14_M .et_pb_blurb").on("mousemove", function (e) {
488        var i = $(this).offset();
489        $(this).find("h4").animate({
490            "background-position-x": -(e.pageX - i.left),
491            "background-position-y": -(e.pageY - i.top)
492        }, {queue: !1, duration: 200, easing: "smoothmove"})
493    })
494    },timeOutcontent14M)
495
496})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.