PageSourceSearch

https://internshala.com/static/js/includes/common/app_download_ribbon.1774440141.js

js internshala.com collected 2026-09-24 08:45:19 UTC 802 bytes, 26 lines download raw bytes

1$(document).ready(function () {
2    function getCookie(name) {
3        const value = `; ${document.cookie}`;
4        const parts = value.split(`; ${name}=`);
5        if (parts.length === 2) return parts.pop().split(';').shift();
6    }
7    const $nudge = $('#app-download-ribbon');
8    const $closeBtn = $('.ic-16-cross');
9    const isClosed = getCookie('app_download_ribbon_closed');
10
11    if (isClosed !== 'true' && $(window).width() < 991) {
12        $nudge.show();
13    } else {
14        $nudge.hide();
15    }
16    $closeBtn.on('click', function (e) {
17        e.stopPropagation();
18        document.cookie = "app_download_ribbon_closed=true; max-age=300; path=/";
19        $nudge.hide();
20    });
21
22});
23
24$(document).on('click', '.app-nudge', function () {
25    window.location.href = '/app/download/nudge';
26});

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.