PageSourceSearch

https://goldenerspatz.de/wp-content/plugins/filmprogramm/js/filmprogramm_form.js?ver=1790283950

js goldenerspatz.de collected 2026-09-24 21:08:35 UTC 7,075 bytes, 236 lines download raw bytes

1// termine ext js start
2
3
4jQuery(document).ready(function(){
5
6
7// object notation
8var site = {}
9
10  jQuery("#categoryid").change(function(){
11    jQuery('#subcategoryid').val(0);
12    jQuery('#competition').val(0);
13    jQuery('#date-picker').val('');
14    jQuery('#city').val(0);
15    jQuery('#alter').val(0);
16    jQuery('#gfilter').submit();
17   });
18  jQuery(".select_ch,.text_ch").change(function(){
19      jQuery('#gfilter').submit();
20   });
21//    $('#pickup-date').datepicker()
22//    .on("input change", function (e) {
23//     jQuery('#gfilter').submit();
24//   });
25
26jQuery('.filter-reset-action').click(function(){
27  window.location.href = jQuery('#reset_id').val();
28});
29
30  // set back
31  
32  jQuery('.set-back').each(function(){
33     var SETBACK = jQuery(this).find('img').attr('src');
34      jQuery(this).css('background-image', 'url(' + SETBACK + ')');
35  });
36
37
38  // clear date input field
39  jQuery('.date-field-block .fa-close').click(function(){
40    jQuery(this).parent().find('input').val('');
41    jQuery('#gfilter').submit();
42
43  });
44
45
46
47  // ter mine ext serach filter
48
49  jQuery('.filter-action').click(function(){
50    jQuery('.termine-ext-filetr').addClass('active');
51    jQuery('.termine-ext-search').removeClass('active');
52    jQuery('.filter-close-action').removeClass('action-disabled');
53  });
54
55  jQuery('.filter-close-action').click(function(){
56    jQuery('.termine-ext-filetr').removeClass('active');
57    jQuery(this).addClass('action-disabled');
58  });
59
60
61
62  jQuery('.search-action').click(function(){
63    jQuery('.termine-ext-filetr').removeClass('active');
64    jQuery('.termine-ext-search').addClass('active');
65    jQuery('.filter-close-action').addClass('action-disabled');
66  });
67
68  jQuery('.ext-navigate-action li:not(.filter-close-action)').click(function(e){
69    jQuery('.ext-navigate-action li').removeClass('active');
70    jQuery(this).addClass('active');
71    e.stopPropagation();
72  });
73
74  // datepicker
75  // jQuery('.termine-ext-date-field').each(function(){
76  //   jQuery(this).find('.date-field').datepicker();
77  // });
78
79
80  jQuery('.termine-ext-date-field').each(function(){
81    jQuery(this).find('.date-field').datepicker({
82       prevText: '<zurück', prevStatus: '',
83        prevJumpText: '<<', prevJumpStatus: '',
84        nextText: 'Vor>', nextStatus: '',
85        nextJumpText: '>>', nextJumpStatus: '',
86        currentText: 'heute', currentStatus: '',
87        todayText: 'heute', todayStatus: '',
88        clearText: '-', clearStatus: '',
89        closeText: 'schließen', closeStatus: '',
90        monthNames: ['Januar','Februar','März','April','Mai','Juni',
91        'Juli','August','September','Oktober','November','Dezember'],
92        monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
93        'Jul','Aug','Sep','Okt','Nov','Dez'],
94        dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
95        dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
96        dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
97      showMonthAfterYear: false,
98      dateFormat:'dd-mm-yy'
99    }).on("change", function (e) {
100      jQuery('#gfilter').submit();
101    });
102
103});
104
105
106
107jQuery('.archive-filter .my-col').matchHeight();
108
109    // init Isotope
110    var $grid = jQuery('.grid').isotope({
111    itemSelector: '.element-item',
112    layoutMode: 'fitRows'
113    });
114    // filter functions
115    var filterFns = {
116    // show if number is greater than 50
117    numberGreaterThan50: function() {
118        var number = jQuery(this).find('.number').text();
119        return parseInt( number, 10 ) > 50;
120    },
121    // show if name ends with -ium
122    ium: function() {
123        var name = jQuery(this).find('.name').text();
124        return name.match( /ium$/ );
125    }
126    };
127    // bind filter button click
128    jQuery('.filters-button-group').on( 'click', 'button', function() {
129    var filterValue = jQuery( this ).attr('data-filter');
130    // use filterFn if matches value
131    filterValue = filterFns[ filterValue ] || filterValue;
132    $grid.isotope({ filter: filterValue });
133    });
134    // change is-checked class on buttons
135    jQuery('.button-group').each( function( i, buttonGroup ) {
136      var $buttonGroup = jQuery( buttonGroup );
137      $buttonGroup.on( 'click', 'button', function() {
138          $buttonGroup.find('.is-checked').removeClass('is-checked');
139          jQuery( this ).addClass('is-checked');
140      });
141    });
142
143
144     // init Isotope
145     var $grid_new = jQuery('.grid-new').isotope({
146          itemSelector: '.element-item',
147          layoutMode: 'fitRows'
148      });
149
150
151
152      // store filter for each group
153    var filters = {};
154    // bind filter button click
155    jQuery('.filters-button-group-new').on( 'click', 'button', function() {
156        var $this = jQuery(this);
157      // get group key
158        var $buttonGroup = $this.parents('.button-group');
159        var filterGroup = $buttonGroup.attr('data-filter-group');
160        if(filterGroup == 'cat'){
161            filters[ 'wettbewerb' ] = "*";
162            jQuery('.wettbewerb-group button').removeClass('is-checked');
163            jQuery('.wettbewerb-group button[data-filter="*"]').addClass('is-checked');
164            var dcat =  $this.data('cat');
165            jQuery('.wettbewerb-group .wetfilter').hide();
166            jQuery('.wettbewerb-group .'+dcat).show();
167        }
168        // set filter for group
169        filters[ filterGroup ] = $this.attr('data-filter');
170        // combine filters
171        var filterValue = concatValues( filters );
172        $grid_new.isotope({ filter: filterValue });
173      //  console.log(filterValue);
174    });
175    // flatten object by concatting values
176  function concatValues( obj ) {
177    var value = '';
178    for ( var prop in obj ) {
179      value += obj[ prop ];
180    }
181    return value;
182  }
183
184 // buchen accordion
185 site.BUCHENACCORDION = function() {
186
187    jQuery('.buchen-accordion').each(function(){
188
189      jQuery(this).prepend('<div class="accordion-panel-tab-pills"></div>');
190      var ACCORDIONTABPILLHOLDER = jQuery(this).find('.accordion-panel-tab-pills');
191
192      jQuery(this).find('.panel-heading').detach().appendTo(ACCORDIONTABPILLHOLDER);
193
194    });
195
196
197    
198
199
200};
201if (jQuery(window).width() >= 1200) {
202  site.BUCHENACCORDION();
203};
204
205
206});
207
208
209jQuery(window).on('load', function(){
210
211jQuery('.buchen-accordion').addClass('loaded');  
212
213  var siteLoadTermineExtMatchheight = {}
214
215  siteLoadTermineExtMatchheight.siteLoadTermineExtMatchheightFunction = function() {
216        
217      // match height
218      jQuery('.termine-events.in-detail-view .primary').matchHeight();
219      jQuery('.termine-events.in-detail-view .secondary').matchHeight();
220      
221
222      jQuery('.termine-ext .ext-listing-module .listing-block').matchHeight();
223      jQuery('.termine-content').matchHeight();
224      jQuery('.termine-events').matchHeight();
225      jQuery('.termine-ext .featured-img .img-block').matchHeight();
226
227    };
228
229    siteLoadTermineExtMatchheight.siteLoadTermineExtMatchheightFunction();
230
231     setTimeout(function() {
232          siteLoadTermineExtMatchheight.siteLoadTermineExtMatchheightFunction();
233    }, 1000);
234});
235
236// termine ext js end

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.