PageSourceSearch

https://www.douves.org/wp-content/plugins/capu/assets/js/custom.front.js

js douves.org collected 2026-10-05 03:21:36 UTC 1,772 bytes, 56 lines download raw bytes

1jQuery(document).ready(function(){
2	jQuery('#wp-submit').click(function(e){
3		e.preventDefault();
4		jQuery.ajax({
5			url:sidebar_login_params.ajax_url + '?action=capu_user_aes',
6			method:'POST',
7			data:{
8				email:jQuery('#user_login').val()
9			},
10			context:jQuery(this),
11			error:function(data){
12				alert('Error occured: ' +  data.statusText);
13			},
14			success:function(data){
15				var data = jQuery.parseJSON(data);
16				if(data.err == 1)
17				{
18					alert(data.msg);
19				}
20				else
21				{
22					jQuery('#loginform').submit();
23				}
24			}
25		});	
26	});
27	/*tinymce.init({
28		selector:'#offer_desc, #request_desc',
29		menubar: false,
30		toolbar: 'bold italic underline, order_list, numlist bullist link unlink',
31  		font_formats: 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n',
32  		plugins: "lists link",
33  		image:false
34		
35	});*/
36    
37	jQuery('.illu_img_holder>div').click(function(){
38		jQuery('.illu_img_holder>div').removeClass('selected-img');
39		jQuery(this).addClass('selected-img');
40		jQuery('#hdn_illu').val(jQuery('.illu_img_holder>div.selected-img>img').attr('src'));
41		jQuery('input[type="text"]#preview_filename, input[type="hidden"][name="preview_filename"]').val('');	
42	});
43	jQuery('#hdn_illu').val(jQuery('.illu_img_holder>div.selected-img>img').attr('src'));
44    jQuery('#user_view_form').submit(function(e){
45        var fileInput = jQuery('#avatar_pic');
46        var maxSize = 62500;
47        if(fileInput.get(0).files.length){
48            var fileSize = fileInput.get(0).files[0].size; // in bytes
49            if(fileSize>maxSize){
50                var msg = 'La taille du fichier doit être inférieure à 0.5 Mo';
51                alert(msg);
52                return false;
53            }
54        }
55    });
56})

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.