PageSourceSearch

https://topsoft.ch/bundle/homepage?v=dV3J57Dx8IgF1UvLfmemGEID2Btz89qd57udggPvfLE1

js topsoft.ch collected 2026-10-01 14:53:01 UTC 6,298 bytes, 176 lines download raw bytes

1/* Minification failed. Returning unminified contents.
2(1,1): run-time error CSS1019: Unexpected token, found '$'
3(1,2): run-time error CSS1019: Unexpected token, found '('
4(1,9): run-time error CSS1031: Expected selector, found ')'
5(1,9): run-time error CSS1025: Expected comma or open brace, found ')'
6(6,2): run-time error CSS1019: Unexpected token, found ')'
7(8,10): run-time error CSS1031: Expected selector, found 'switchVideo('
8(8,10): run-time error CSS1025: Expected comma or open brace, found 'switchVideo('
9(33,10): run-time error CSS1031: Expected selector, found 'hideVideo('
10(33,10): run-time error CSS1025: Expected comma or open brace, found 'hideVideo('
11(42,10): run-time error CSS1031: Expected selector, found 'loadMoreVideo('
12(42,10): run-time error CSS1025: Expected comma or open brace, found 'loadMoreVideo('
13(52,10): run-time error CSS1031: Expected selector, found 'initSearchPanel('
14(52,10): run-time error CSS1025: Expected comma or open brace, found 'initSearchPanel('
15(114,10): run-time error CSS1031: Expected selector, found 'getScrollPosition('
16(114,10): run-time error CSS1025: Expected comma or open brace, found 'getScrollPosition('
17(126,10): run-time error CSS1031: Expected selector, found 'onscroll('
18(126,10): run-time error CSS1025: Expected comma or open brace, found 'onscroll('
19(135,10): run-time error CSS1031: Expected selector, found 'updateStickyMenu('
20(135,10): run-time error CSS1025: Expected comma or open brace, found 'updateStickyMenu('
21(147,1): run-time error CSS1019: Unexpected token, found 'updateStickyMenu('
22(147,18): run-time error CSS1019: Unexpected token, found ')'
23(149,1): run-time error CSS1019: Unexpected token, found '$'
24(149,2): run-time error CSS1019: Unexpected token, found '('
25(149,9): run-time error CSS1031: Expected selector, found ')'
26(149,9): run-time error CSS1025: Expected comma or open brace, found ')'
27 */
28$(window).load(function () {
29    switchVideo();
30    hideVideo();
31    loadMoreVideo();
32    initSearchPanel();
33});
34
35function switchVideo() {
36    var videos = $("#VideosSection .video-items .item");
37
38    var firstCover = $("#VideosSection .video-items .item:first .overcover").css("background-color", "rgba(255, 255, 255, 0.2)");
39
40    videos.each(function (index, elem) {
41
42        $(elem).on("click", function () {
43            console.log($(window).width());
44            $('html, body').animate({
45                scrollTop: ($('#VideosSection .video-items').offset().top - ($(window).width() > 767 ? 200 : 500))
46            }, 200);
47
48            videos.each(function (index, elem) {
49                $(elem).find(".overcover").css("background-color", "");
50            });
51
52            $("#VideosSection .main-video iframe").attr("src", $(elem).find("iframe").attr("src") + "?autoplay=1&cc_load_policy=1&rel=0");
53            $(elem).find(".overcover").css("background-color", "rgba(255, 255, 255, 0.2)");
54        });
55
56    })
57
58}
59
60function hideVideo() {
61    if ($(window).width() < 767) {
62        $("#VideosSection .video-items .item").slice(0, 3).removeClass("hidden");
63        $("#VideosSection .video-items .show-more-video").removeClass("hidden");
64    }
65    else
66        $("#VideosSection .video-items .item").removeClass("hidden");
67}
68
69function loadMoreVideo() {
70    $("#VideosSection .video-items .show-more-video").on('click', function (e) {
71        e.preventDefault();
72        $("#VideosSection .video-items .item:hidden").slice(0, 3).removeClass("hidden");
73        if ($("#VideosSection .video-items .item:hidden").length == 0) {
74            $("#VideosSection .video-items .show-more-video").fadeOut('slow');
75        }
76    });
77}
78
79function initSearchPanel() {
80	$('.search-type-dropdown li a').on('click', function (e) {
81		e.preventDefault();		
82
83		var searchType = $(this).attr("data-search-type");
84		var searchTypeName = $(this).text();
85
86		$('#search-dropdown').find('.inner-text').text(searchTypeName);
87
88		//save selection
89		$('.search-type-dropdown li a.selected').removeClass('selected');
90		$(this).addClass('selected');
91
92	})
93
94	$('body').on('click', '.events-dropdown li a', function () {
95		$('.events-dropdown .text-inner').text($(this).text())
96		$('.events-dropdown a.selected').removeClass('selected');
97		$(this).addClass('selected');		
98	});
99
100	//on submit
101	$('.search-wrapper').on('submit', function (e) {
102		e.preventDefault();
103
104		var searchQuery = $('.search-input ').find('input').val();
105		$(this).removeClass("empty-query-error")
106
107		if ($.trim(searchQuery) == '') {
108			$(this).addClass("empty-query-error")
109			return;
110		}		
111
112		var searchModel = {
113			searchQuery: searchQuery,
114			searchType: $('.search-type-dropdown li a.selected').attr('data-search-type')
115		}
116
117		$('.search-button button').addClass('in-progress');
118
119		$.post("/Home/Search", searchModel)
120			.done(function (resp) {
121				$('.search-results-container').remove();
122				$(resp).insertAfter('#intro');
123
124				$('.search-results-container .blog-list-section .blog-post-item .title a')
125					.dotdotdot({ height: 60, watch: true })
126
127				$('.search-results-container .blog-list-section .blog-post-item .text')
128					.dotdotdot({ height: 60, watch: true })
129
130				$('.search-results-events-section .event-description')
131					.dotdotdot({height: 45, watch: true})
132			})
133			.always(function () {
134				$('.search-button button').removeClass('in-progress');
135			})
136	});
137	
138}
139
140
141function getScrollPosition() {
142    if (window.pageYOffset != undefined) {
143        return pageYOffset;
144    } else {
145        var sy, d = document,
146            r = d.documentElement,
147            b = d.body;
148        sy = r.scrollTop || b.scrollTop || 0;
149        return sy;
150    }
151}
152
153function onscroll() {
154    if (getScrollPosition() !== 0) {
155        document.getElementById("userSection").style.position = "fixed";
156    }
157    else {
158        document.getElementById("userSection").style.position = "relative";
159    }
160}
161
162function updateStickyMenu() {
163    if ($(window).scrollTop() > 350 && $(window).scrollTop() < 7202) {
164
165        $('.sticky-menu').addClass("sticky-show");
166    }
167
168    else {
169
170        $('.sticky-menu').removeClass("sticky-show");
171
172    }
173}
174updateStickyMenu();
175
176$(window).scroll(updateStickyMenu);

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.