PageSourceSearch

http://www.sietmanagement.fr/wp-content/plugins/ezflippr/resources/js/ezflippr.js?ver=4.5.33

js sietmanagement.fr collected 2026-10-02 14:40:18 UTC 2,405 bytes, 87 lines download raw bytes

1(function($){
2	$(document).ready(function(){
3		// Replace add new links
4		var lang = String($('body').attr('lang')).substr(0,2);
5		var addLink = 'https://ezflippr.com';
6		switch (lang) {
7			case 'fr':
8			case 'es':
9				addLink += '/'+lang;
10				break;
11		}
12		$('a').each(function(){
13			var href = String($(this).attr('href'));
14			// http://wordpress-demo.localhost/wp-admin/post-new.php?post_type=ezflippr_flipbook
15			if (href.match(/post-new.php\?post_type=ezflippr_flipbook/)) {
16				$(this).attr('href', addLink);
17				$(this).attr('target', '_blank');
18			}
19		});
20
21		// Have key/don't have key fields
22		$("input[name='ezflippr-field-havekey']").change(function(){
23			var showEmail   = $('#ezflippr-field-havekey-no:checked,#ezflippr-field-havekey-forgot:checked').length > 0;
24			var showKey     = $('#ezflippr-field-havekey-yes:checked').length > 0;
25			if(showEmail){
26				$("#tr-email").fadeIn();
27			}else{
28				$("#tr-email").stop(true,true).hide();
29			}
30
31			if(showKey){
32				$("#tr-key").fadeIn();
33			}else{
34				$("#tr-key").stop(true,true).hide();
35			}
36		});
37
38		$("#tr-key").hide();
39
40		// Install / Uninstall / Reinstall
41		$('.ez-btn-install,.ez-btn-reinstall,.ez-btn-uninstall').click(function(ev) {
42			ev.preventDefault();
43
44			var $row = $(this).parents('tr');
45			var $status = $row.find('.column-status');
46
47			$row.find('.ez-btn-install,.ez-btn-reinstall,.ez-btn-uninstall').css('color','#999').click(function(ev){ ev.preventDefault(); });
48
49			var url = $(this).attr('href')+'&json=1';
50			var finished = false;
51
52			function continue_install(url) {
53				$.ajax({
54					url: url,
55					success: function (data) {
56						if (data.result) {
57							if ('continue' in data) {
58								continue_install(data.continue);
59								text = text.replace(/\.+.*$/, '...');
60								if ('progress' in data) text += ' '+data.progress+'%';
61								$status.text(text);
62							} else {
63								document.location.reload();
64							}
65						} else {
66							alert(data.error);
67							document.location.reload();
68						}
69					},
70					error: function (a, b, c) {
71						alert(b);
72						document.location.reload();
73					}
74				});
75			}
76			continue_install(url);
77
78			var text = $(this).hasClass('ez-btn-install') ? ez_str_installing :
79				$(this).hasClass('ez-btn-reinstall') ? ez_str_reinstalling :
80				$(this).hasClass('ez-btn-uninstall') ? ez_str_uninstalling :
81					ez_str_please_wait;
82
83			$status.text(text);
84		});
85
86	});
87})(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.