PageSourceSearch

https://www.viola-group.com/wp-content/themes/viola/assets/js/Guest-popup.js

js viola-group.com collected 2026-10-02 05:50:32 UTC 2,051 bytes, 66 lines download raw bytes

1	function loadGuestPopup(name) {
2
3		$.ajax({
4			url: "https://www.viola-group.com/api/guest.php",
5			method: "get",
6			data: {
7				name: name
8			},
9			success: function(datas){
10				// console.log(datas);
11				var popup = $("#guest-popup");
12
13				//reset popup data
14				popup.find(".g-twitter, .g-facebook, .g-googleplus, .g-linkedin").hide()
15
16				popup.find(".g-image img").attr("src",datas.image);
17				popup.find(".g-name").text(datas.name);
18				popup.find(".g-company").text(datas.company);
19				popup.find(".g-role").text(datas.position);
20				popup.find(".g-bio").html(datas.content);
21				if (datas.twitter != "") {
22					popup.find(".g-twitter").show();
23					popup.find(".g-twitter a").attr("src", datas.twitter);
24				}
25				if (datas.facebook != "") {
26					popup.find(".g-facebook").show();
27					popup.find(".g-facebook a").attr("src", datas.facebook);
28				}
29				if (datas.googleplus != "") {
30					popup.find(".g-googleplus").show();
31					popup.find(".g-googleplus a").attr("src", datas.googleplus);
32				}
33				if (datas.linkedin != "") {
34					popup.find(".g-linkedin").show();
35					popup.find(".g-linkedin a").attr("src", datas.linkedin);
36				}
37
38				$("#guest-popup .notes-wrap").html("");
39				datas.posts.forEach(function(row){
40					// console.log(row);
41					$("#guest-popup .notes-wrap").append('<div class="single-post-wrap"><div class="post-content-wrap"><div class="details"><span>'+row.date+'</span> | <span>'+datas.name+'</span></div><h2>'+row.title+'</h2><a href="https://www.viola-group.com/violanotes/'+row.url+'" class="read-more">Read More</a></div></div>')
42				})
43
44			
45				$('.popup-overlay, #guest-popup').fadeIn('500');
46
47			}
48		});
49	}
50
51$(document).ready(function(){
52
53	$(document).on("click",".guest-popup-link", function(e){
54		console.log("guest-popup-link");
55		e.preventDefault();
56		// console.log($(this).attr("data-url"));
57		loadGuestPopup( $(this).attr("data-url") );
58	});
59
60	$('.popup-overlay, .close-btn').on('click', function(){
61		$('.popup-overlay, #guest-popup').fadeOut('500');
62	});
63
64	$('#guest-popup').mCustomScrollbar();
65
66});

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.