PageSourceSearch

https://dcmstories.com/wp-content/themes/dcm-theme/js/site-js.js?ver=1.1790935971

js dcmstories.com collected 2026-10-02 10:13:12 UTC 7,695 bytes, 300 lines download raw bytes

1var mainpath = "https://dcmstories.com";
2//var mainpath = "http://localhost/dcmstories";
3
4var $ = jQuery.noConflict();
5$(document).ready(function () {
6    
7    $(window).scroll(function () {
8        var scrollTop = $(this).scrollTop();
9       
10    });
11    $(window).scroll()
12    
13    
14     $("#filter-dropdown .dropdown-menu").on('click', 'li a', function(e){
15         e.preventDefault();
16         
17         $("#filter-dropdown .dropdown-toggle").html($(this).html())
18         location.href=$(this).attr("href");
19   });
20    
21    
22    $("input[name=quiz],input[name=teilnahmebedingungen],input[name=datenschutz]").addClass("form-check-input")
23    
24     $(".front-page-title-fittext").fitText(1.8);
25     $(".h2").fitText(2.8);
26    
27    
28    $("#movieDataList").change(function(){
29      //alert("The text has been changed.");
30    }); 
31    
32    $("#movieDataList").bind('input', function () {
33    if(checkExists( $('#movieDataList').val() ) === true){
34       location.href= mainpath+"/?p="+$('#movieDataList').val() ;
35    }
36    });
37    
38    
39    
40    $("#movieDataList2").keyup(function(){
41        var seachstr = $('#movieDataList2').val().toLowerCase();
42
43        $( "a.movie-list-item" ).each(function( index ) {
44            console.log( index + ": " + $( this ).find(".movie-title").text() + "|" + seachstr);
45            var movietitle = $( this ).find(".movie-title").text().toLowerCase();
46            if(movietitle.indexOf(seachstr) == -1){
47               $( this ).parent().hide();
48            } else{
49                $( this ).parent().fadeIn(); 
50            }
51            
52        });
53        
54        
55        
56        
57    }); 
58    
59    
60    if (location.hash) {
61        hash = location.hash;
62
63        
64        setTimeout(function() {
65            var targetOffset = parseInt($("header").css('height'));
66            $('html, body').animate({
67                scrollTop: $(hash).offset().top - targetOffset 
68            }, 1);
69            
70      }, 100);
71    }
72
73     var $gridjobs = $('.gridjobs').imagesLoaded( function() {
74      $gridjobs.isotope({
75         itemSelector: '.gridjobs-item', 
76         masonry: {
77            columnWidth: '.gridjobs-sizer'
78         }
79      });
80    });
81    
82     var $grid = $('.grid').imagesLoaded( function() {
83      $grid.isotope({
84         itemSelector: '.grid-item', 
85         percentPosition: true,
86         masonry: {
87            columnWidth: '.grid-sizer'
88         }
89      });
90    });
91    
92    
93  	/*
94    // Prüfen, ob aktuelle URL "/-ch/" enthält
95    var isDeCh = window.location.pathname.includes('/de-ch/');
96    var isItCh = window.location.pathname.includes('/it-ch/');
97    var isFrCh = window.location.pathname.includes('/fr-ch/');
98
99    // Aktuelle Zeit in Millisekunden
100    var now = new Date().getTime();
101
102    // localStorage prüfen
103    var storedData = localStorage.getItem("deChModalShown");
104    var modalData = storedData ? JSON.parse(storedData) : null;
105
106    // Wenn auf de-ch und entweder noch nie gezeigt oder Zeit abgelaufen
107    if ( (isDeCh || isItCh || isFrCh) && (!modalData || now - modalData.time > 2 * 60 * 60 * 1000)) {
108    var modal = new bootstrap.Modal(document.getElementById('welcomeModal'));
109    
110    setTimeout(function() {
111        
112        modal.show();
113
114        // Nach 5 Sekunden Modal schließen
115        setTimeout(function() {
116          modal.hide();
117            audio.pause()
118        }, 3000);
119
120    }, 3000); // 3 Sekunden Verzögerung
121
122    // Zeitstempel speichern
123   localStorage.setItem("deChModalShown", JSON.stringify({ shown: true, time: now }));
124   }
125    
126    
127   var img = document.getElementById('tvImage');
128    function flickerEffect() {
129        const brightness = 0.8 + Math.random() * 0.4;
130        img.style.filter = `brightness(${brightness})`;
131    }
132    setInterval(flickerEffect, 80);
133    const audio = document.getElementById('tvSound');
134    function enableAudio() {
135        if($("#welcomeModal.show").length){
136           
137            audio.play()
138            
139            .then(() => {
140            console.log("Audio gestartet");
141            })
142            .catch(err => {
143            console.error("Audio-Start fehlgeschlagen:", err);
144            });
145        }
146        window.removeEventListener('click', enableAudio);
147    }
148    window.addEventListener('click', enableAudio);
149    
150   */
151    
152    
153    
154
155    
156    
157    
158    
159    
160    
161    
162    
163    
164    
165    
166    
167    
168    
169    
170    
171    
172    
173    
174	
175	
176    $( ".but-video-wrapper" ).click(function() {
177      var video = $(this).attr("data-video");
178	  var videolink = "https://www.youtube-nocookie.com/embed/"+video+"?autoplay=1";
179      $(this).hide();
180      $(".postervideo").hide()
181      $(".videoiframe").show();
182        
183      if(window.BorlabsCookie.checkCookieGroupConsent("external-media")){
184		  //console.log("Cookie is set for external Media")
185          $(".videoiframe")[0].src += "&autoplay=1";
186      }
187      else{
188		  //console.log("Cookie not set for external Media")
189      } 
190    });
191    
192    
193    
194    var currURL = "";
195    $( ".modallink" ).click(function(e) {
196        e.preventDefault();
197        var myModal = new bootstrap.Modal(document.getElementById('contentModal'), {
198                keyboard: false
199        })
200        
201        var post = $(this).attr("data-post");
202        var permalink = $(this).attr("data-href");
203        var bgcolor = "#ffffff";
204        if($(this).attr("data-color")){
205         bgcolor = $(this).attr("data-color");
206        }
207        
208        currURL = window.location.href;
209        
210       $.ajax({
211           url: mainpath + '/wp-content/themes/dcm-theme/content/openmodal.php',
212           type: 'post',
213           data: {post: post, bgcolor: bgcolor},
214           success: function(response){ 
215               // Add response in Modal body
216               $('.modal-fullscreen-single .modal-content').html(response);
217               window.history.replaceState("nextstate", "Title", permalink);
218               // Display Modal
219               
220              
221               myModal.show()
222               setTimeout(setModalInit,400)
223                 
224           }
225       });             
226
227    });
228    
229    
230    $( ".closeModal" ).click(function(e) {
231        e.preventDefault();
232      
233       window.history.replaceState("nextstate", "Title", currURL);
234
235    });
236	
237	
238	
239	const iframe = document.querySelector("#kinoprogramm");
240    window.addEventListener("message",
241		function(event) {
242		  //alert("message")
243		  if (event.origin != "https://bonschuurticino.mein-kino.ch" && event.origin != "https://girlyouknowitstrue.mein-kino.ch" ) {
244			 return;
245		  }
246		  if (event.data && event.data.height) { 
247			 iframe.height = Math.max(event.data.height, 300) + "px";
248		  }
249		},
250	   false
251	);
252	/**/
253
254   
255});
256
257function checkExists(inputValue) {
258    //console.log(inputValue);
259    
260    var x = document.getElementById("moviedatalistOptions");
261    var i;
262    var flag;
263    for (i = 0; i < x.options.length; i++) {
264        if(inputValue == x.options[i].value){
265            flag = true;
266        }
267    }
268    return flag;
269}
270
271
272function setModalInit(){
273    var $grid = $('.grid').imagesLoaded( function() {
274          $grid.isotope({
275             itemSelector: '.grid-item', 
276             percentPosition: true,
277             masonry: {
278                columnWidth: '.grid-sizer'
279             }
280          });
281        });   
282   $(".front-page-title-fittext").fitText(1.8);
283   $(".h2").fitText(2.8);
284	
285	
286	$( ".but-video-wrapper1" ).click(function() {
287      var video = $(this).attr("data-video");
288	  var videolink = "https://www.youtube-nocookie.com/embed/"+video+"?autoplay=1";
289      $(this).hide()
290      $(".postervideo1").hide()
291      $(".videoiframe1").show()
292      $(".videoiframe1").attr("src",videolink)
293      
294    });
295}
296
297
298
299
300

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.