PageSourceSearch

https://www.film-documentaire.fr/js/filmdoc_createur_v02.js

js film-documentaire.fr collected 2026-10-02 04:50:05 UTC 5,619 bytes, 259 lines download raw bytes

1
2function FormVarCreateur(choix)
3
4{
5
6var lestags = choix;
7
8
9
10if (lestags =="avec_tag")
11{
12     
13
14      var array = $("input[name*='tag_']").map(function(){
15      if (this.checked)
16      {
17
18        if (this.name=="tag_tous")
19        {return {name: this.name, value: ''};}
20        else
21        {return {name: this.name, value: 'on'};}
22       
23      }
24      else
25      {
26        return {name: this.name, value: ''};
27      }
28      }).get();
29}
30else
31
32{
33      var input_array = $("input[name*='input_createur']").map(function(){
34       return {name: this.name, value: this.value};
35        }).get();
36
37      var selected = document.querySelectorAll('#tabMetier option:checked');
38      var values = Array.from(selected).map(el => el.value);
39      var tab_array = [];
40
41      values.forEach(function(value){
42        tab_array.push({name: 'tabMetier', value: value});
43      });
44
45      var array = $.merge( $.merge( [], input_array ), tab_array );
46
47}
48
49return array;
50}
51
52
53$( "#searchForm_Createur" ).submit(function( event ) {
54 
55  // Stop form from submitting normally
56  event.preventDefault();
57  var array = FormVarCreateur("sans_tag");
58
59  $.ajax({
60                data: array,
61                url: "/4DACTION/Ajax_Createur_Search",
62                type : "POST",
63                success : function (data) {
64
65                    $("#createur_liste").empty().append(data);
66                    $("#createur_resultat").show("slow");
67                    $("#createur_search").hide("slow");
68                    les_createurs_critere();
69
70                },
71                error: function(XMLHttpRequest, textStatus, errorThrown) 
72                { 
73                  alert(errorThrown); 
74                }  
75
76            });  
77});
78
79
80
81
82
83function les_createurs_search()
84
85  {
86
87    if ($("#createur_search").is(":visible"))
88      {$("#createur_search").hide("slow");}
89    else
90      {$("#createur_search").show("slow");}
91    
92
93  }
94
95  function les_createurs_tries(tri)
96
97  {
98
99    var letri = tri;
100
101    $.ajax({
102                
103                url: "/4DACTION/Ajax_Createur_Tri/"+letri,
104
105                success : function (data) {
106
107                    $("#createur_liste").empty().append(data);
108
109                },
110                error: function(XMLHttpRequest, textStatus, errorThrown) 
111                { 
112                  alert(errorThrown); 
113                }  
114
115            });  
116
117  }   
118
119  function les_createurs_critere()
120
121  {
122
123    $.ajax({
124                
125                url: "/4DACTION/Ajax_Createur_Critere/",
126
127                success : function (data) {
128                    
129                    $("#createur_critere").empty().append(data);
130
131                },
132                error: function(XMLHttpRequest, textStatus, errorThrown) 
133                { 
134                  alert(errorThrown); 
135                }  
136
137            });  
138
139  }
140
141 function les_createurs_page(page)
142
143  {
144
145    var lapage = page;
146
147    $.ajax({
148                
149                url: "/4DACTION/Ajax_Liste_Page/"+lapage,
150
151                success : function (data) {
152
153                    $("#createur_liste").empty().append(data);
154                    $('body,html').animate({scrollTop: 0}, 400);
155
156                },
157                error: function(XMLHttpRequest, textStatus, errorThrown) 
158                { 
159                  alert(errorThrown); 
160                }  
161
162            });  
163
164  }    
165
166
167$( "#createur_liste" ).submit(function( event ) {
168 
169  // Stop form from submitting normally
170  event.preventDefault();
171  var array = FormVarCreateur("avec_tag");
172
173    $.ajax({
174                data: array,
175                url: "/4DACTION/Ajax_Createur_Filtre",
176                type : "POST",
177                success : function (data) {
178                  $("#createur_liste").empty().append(data);
179                  $("#createur_resultat").show("slow");
180                  $("#createur_search").hide("slow");
181                  les_createurs_critere();
182
183                },
184                error: function(XMLHttpRequest, textStatus, errorThrown) 
185                { 
186                  alert(errorThrown); 
187                }  
188
189            });  
190});
191
192 function les_createurs_filtre()
193
194  {
195    $("#createur_liste").submit();
196                 
197  }   
198
199 function les_createurs_init()
200
201  {
202
203
204    $.ajax({
205                
206                url: "/4DACTION/Ajax_Createur_Filtre_Init/",
207
208                success : function (data) {
209
210                    $("#createur_liste").empty().append(data);
211                    $("#createur_resultat").show("slow");
212                    $("#createur_search").hide("slow");
213                    les_createurs_critere();
214
215                },
216                error: function(XMLHttpRequest, textStatus, errorThrown) 
217                { 
218                  alert(errorThrown); 
219                }  
220
221            });  
222                 
223  }  
224
225 function les_createurs_alpha()
226
227  {
228
229    if ($("#createur_alphabet").is(":visible"))
230      {$("#createur_alphabet").hide("slow");}
231    else
232      {$("#createur_alphabet").show("slow");}
233    
234
235  }
236
237function les_createurs_fonction(fonction)
238
239  {
240
241    var lafonction = fonction;
242    $.ajax({
243                
244                url: "/4DACTION/Ajax_Createur_Fonction/"+lafonction,
245
246                success : function (data) {
247
248                    $("#film_liste_fonction").empty().append(data);
249                    $('html,body').animate({scrollTop: $("#film_liste_fonction").offset().top},'slow');
250                },
251                error: function(XMLHttpRequest, textStatus, errorThrown) 
252                { 
253                  alert(errorThrown); 
254                }  
255
256            });  
257                 
258  }  
259

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.