PageSourceSearch

https://yerkir.am/js/myScript.js

js yerkir.am collected 2026-10-02 05:02:49 UTC 2,660 bytes, 78 lines download raw bytes

1var mybutton = document.getElementById("myBtn");
2// When the user scrolls down 20px from the top of the document, show the button
3window.onscroll = function () {
4    scrollFunction()
5};
6
7function scrollFunction() {
8    if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
9        mybutton.style.display = "block";
10    } else {
11        mybutton.style.display = "none";
12    }
13}
14
15// When the user clicks on the button, scroll to the top of the document
16function topFunction() {
17    document.body.scrollTop = 0;
18    document.documentElement.scrollTop = 0;
19}
20
21$(".hover").mouseleave(
22    function () {
23        $(this).removeClass("hover");
24    }
25);
26$(document).ready(function () {
27    $('.js-example-basic-multiple').select2({
28        placeholder: "#"
29    });
30    var swiper = new Swiper('.carousel-gallery .swiper-container', {
31        effect: 'slide',
32        speed: 900,
33        slidesPerView: 5,
34        spaceBetween: 20,
35        simulateTouch: true,
36        autoplay: {
37            delay: 5000,
38            stopOnLastSlide: false,
39            disableOnInteraction: false
40        },
41        pagination: {
42            el: '.carousel-gallery .swiper-pagination',
43            clickable: true
44        },
45        breakpoints: {
46            // when window width is <= 320px
47            320: {
48                slidesPerView: 1,
49                spaceBetween: 5
50            },
51            // when window width is <= 480px
52            425: {
53                slidesPerView: 2,
54                spaceBetween: 10
55            },
56            // when window width is <= 640px
57            768: {
58                slidesPerView: 3,
59                spaceBetween: 20
60            }
61        }
62    }); /*http://idangero.us/swiper/api/*/
63});
64
65function sliderPlay(allVideoId, minMax = 'max') {
66    let videoId = minMax === 'max' ? allVideoId.replace('max_', '') : allVideoId.replace('min_', '');
67    $('.main-img-'+minMax+'-'+videoId).hide();
68    let iframe = $("<iframe/>", {
69        src: 'https://www.youtube-nocookie.com/embed/' + videoId + '?autoplay=1&mute=1',
70        width:'100%',
71        style:'position:relative !important;left:0 !important;right:0 !important;bottom:0 !important;right:0 !important;height:100%;',
72        class:'iframe_video',
73        allow:"accelerometer; autoplay; clipboard-write; fullscreen",
74    });
75    let editedSlide = $('.img_'+minMax+'_'+videoId);
76    editedSlide.prepend(iframe);
77    editedSlide.children('.newscard_link').children('.item').children('.mainH5').attr('style', 'bottom: 45px !important; background: linear-gradient(180deg, rgb(89 89 89 / 0%) 0%, rgb(89 89 89 / 50%) 20%, rgb(5 5 5 / 0%) 100%) !important;');
78}

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.