PageSourceSearch

https://phyphox.org/wp-content/themes/phyphox/js/scroll.js?ver=7.1.1

js phyphox.org collected 2026-09-24 09:16:44 UTC 1,893 bytes, 56 lines download raw bytes

1var homeHeader;
2var movieButton;
3var h1;
4
5var playMovie = function() {
6    movieButton.hide();
7    h1.hide();
8    var bg = homeHeader.css("background");
9    homeHeader.css("background", "#000000");
10
11    var file = "trailer";
12    //Add localized versions here:
13    var lang = jQuery("html").attr("lang");
14    switch (lang.substring(0,2)) {
15        case "de": file += "_de";
16                   break;
17    }
18
19    video = jQuery("<video autoplay controls><source src=\"http://phyphox.org/"+file+".mp4\" type=\"video/mp4\" /><source src=\"http://phyphox.org/"+file+".webm\" type=\"video/webm\" /></video>");
20    video.on("ended", function() {
21        movieButton.show();
22        h1.show();
23        homeHeader.css("background", bg);
24        video.remove();
25    });
26    homeHeader.append(video);
27}
28
29jQuery(document).ready(function(){
30    var myPosY;
31    var compact = 0;
32
33    jQuery(window).bind( 'scroll', function() {
34        var y = jQuery(window).scrollTop();
35        if (y > 50 && compact <= 0) {
36            compact = 1;
37            jQuery('body').addClass('compact-bar-scroll');
38        } else if (y <= 50 && compact >= 0) {
39            compact = -1;
40            jQuery('body').removeClass('compact-bar-scroll');
41        }
42    });
43
44    homeHeader = jQuery('.home article header');
45    movieButton = jQuery("<a id=\"movieButton\" href=\"#\" onclick=\"playMovie();return false;\" ><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><path fill=\"none\" stroke=\"#ffffff\" stroke-width=\"5\" d=\"M5,50a45,45 0 1,0 90,0a45,45 0 1,0 -90,0M35,30L35,70L72,50Z\"></path></svg></a>");
46    h1 = jQuery("h1");
47
48    homeHeader.append(movieButton);
49
50    jQuery(".faq").click(function() {
51        var isExtended = jQuery(this).hasClass("faq_extended");
52        jQuery(".faq").removeClass("faq_extended");
53        if (!isExtended)
54            jQuery(this).addClass("faq_extended");
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.