Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


<!doctype html>
<html lang="ru-RU">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">
    
    
    <meta name="language" content="Russian">
    <meta http-equiv="content-language" content="Russian">
    <meta name="yandex-verification" content="3f2be1e66ae1d679"/>

    <title>Задачник МВД: ПС в ОВД (самоподготовка). 1. Базовые принципы расследования. 1. УПК РФ. Коллизии закона. №115</title>
    <link href="https://l-zone.ru/css/reset.css" rel="stylesheet">
    <link rel="icon" href="https://l-zone.ru/favicon.png" type="image/png">
    <link rel="stylesheet" href="https://l-zone.ru/admlte/plugins/fontawesome-free/css/all.min.css">
    <link href="https://l-zone.ru/css/font-awesome.min.css" rel="stylesheet">
        <script src="https://l-zone.ru/packages/tinymce5/tinymce.min.js" defer></script>
    <script src="https://l-zone.ru/js/packages/autosize.min.js" defer></script>
    <script src="https://l-zone.ru/js/scripts/admin_tiny_mce5.js?v=1715923393"
            defer></script>
    <script>
        // --------------- Глобальные ошибки JS Ajax
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        


        // ------------ Глобальные ошибки JS
        window.onerror = function myErrorHandler(msg, url, lineNo, columnNo, error) {
            let formData = new FormData();
            formData.append('_token', "hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf");
            formData.append('errorMsg', msg ?? 'Нет сообщения об ошибке');
            formData.append('url', url ?? 'Нет Url');
            formData.append('columnNo', columnNo);
            formData.append('error', error);
            formData.append('user', 'Плугина А.В.');
            formData.append('lineNumber', lineNo);
            formData.append('time', new Date());
            // ---------- AJAX ERROR JS
            
            
            
            
            
            
            
            
            
            

                // ---------- FETCH ERROR JS
            fetch('https://l-zone.ru/utils/fileSave', {
                method: 'POST',
                body: formData
            })
                .then(response => {
                    return response.text();
                })
                .then(data => {
                    console.log(data);
                });

            //$('#loader_black').fadeIn(100).delay(1000);
            //$('#loader_message').css('backgroundColor', 'yellow').css('fontSize', '24px').text('Произошла ошибка. Обновите страницу...').fadeIn(100).delay(1000);

            //alert("Что-то пошло не так... Ошибка JS: " + error + ' СТРОКА: ' + lineNo);
            alert("Что-то пошло не так... Попробуйте другой браузер.");
            return false;
        }

    </script>
    <link rel="stylesheet" href="https://l-zone.ru/admlte/dist/css/admlte.min.css">
    <link href="https://l-zone.ru/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://l-zone.ru/css/styles.css?v=1738590655" rel="stylesheet">
    <link rel="stylesheet"
          href="/css/styles_bootstrap_sidebar.css?v=1711907280">

    <script>
        localStorage.setItem('user_type', 'user') // ЧЕРНОВИК
        localStorage.setItem('user_id', 681)
    </script>

    <script src="https://l-zone.ru/js/packages/jquery.min.js"></script>
    <script src="https://l-zone.ru/js/packages/bootstrap.min.js"></script>
    <script src="https://l-zone.ru/js/packages/socket4.io.js"></script>

    
    <script type="text/javascript">
        (function (m, e, t, r, i, k, a) {
            m[i] = m[i] || function () {
                (m[i].a = m[i].a || []).push(arguments)
            };
            m[i].l = 1 * new Date();
            for (var j = 0; j < document.scripts.length; j++) {
                if (document.scripts[j].src === r) {
                    return;
                }
            }
            k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
        })
        (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

        ym(84910108, "init", {
            clickmap: true,
            trackLinks: true,
            accurateTrackBounce: true,
            webvisor: true
        });
    </script>
    <noscript>
        <div><img src="https://mc.yandex.ru/watch/84910108" style="position:absolute; left:-9999px;" alt=""/></div>
    </noscript>
    

</head>

<body
    
>

<div id="loader_message"></div>
<div id="loader"><i class="fa fa-refresh fa-4x fa-spin" aria-hidden="true"></i></div>
<div id="loader_black"><span></span></div>

    
    <script>
    let socketIo;

    let socketUser = {
        'user_id': '681',
        'user_fio': 'Плугина А.В.',
        'user_role': 'user',
        'title': 'Задачник МВД: ПС в ОВД (самоподготовка). 1. Базовые принципы расследования. 1. УПК РФ. Коллизии закона. №115',
        'url': document.location.href,
        'organization': 'ВИ МВД РФ (УП)',
        'time': '2025-06-17 18:13:45',
        'online': true,
        'active': true,
        'status': 'connecting',
        'socketID': null,
        'room': 'main',
        'task_id': '115'
    }

    let user = {};

    window.addEventListener('load', function () {

        // throw new Error('Тестовая ошибка');

        try {
            socketIo = io('https://server.l-zone.ru:444', {
                path: '/main/socket.io'
            });
        } catch (err) {
            console.log('SOCKET OFF')
        }

        socketIo.on('connect', function () {
            $('#status_socket').css('color', '#9d00ff').html('ОНЛАЙН')
            socketIo.emit('PAGE:USER_CONNECT', socketUser, function (user) {
                socketUser.socketID = user.socketID;
                //console.log(socketUser);
                //console.log(socketIo)
            })
        });

        socketIo.on('MESSAGE:CURL_MESSAGE', (data) => {
            //$('#loader_black').fadeIn(100).delay(1000).fadeOut(100);
            //$('#loader_message').css('backgroundColor', 'yellow').css('fontSize', '24px').css('color', 'black').text(data).fadeIn(100).delay(1000).fadeOut(100);
            $('#block_ai_check_socket').show();
            $('#message_ai_check_socket').html(data);
            $('#modal-notifications').modal('show')
            //console.log(data)
        })

                window.addEventListener("focus", function (event) {
            socketIo.emit('USER:SETTINGS_SET', {type: 'string', key: 'active', 'values': true})
        }, false);

        window.addEventListener("blur", function (event) {
            socketIo.emit('USER:SETTINGS_SET', {type: 'string', key: 'active', 'values': false})
        }, false);
        
        socketIo.on("disconnect", () => {
            $('#status_socket').css('color', 'red');
            console.log('НЕТ КОННЕКТА')
            //socketIo.close();
            //socketIo.removeAllListeners();
            //console.log(socketIo)
            //socketIo.connect();
        });

        //console.log('check disconnect', socketIo.disconnected);
        // console.log('check 1', socketIo.connected);
        //
        // socketIo.on('connect', function() {
        //     console.log('check 2', socketIo.connected);
        // });


    })
</script>































                        <div class="modal fade" id="modal-message-add" data-backdrop="static" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-xl modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-danger text-white py-1">
                <div style="font-size: 20px">Сообщить информацию/ошибку/проблему</div>
                <div class="close_modal pointer" id="close" data-dismiss="modal"><i class="fa fa-times-circle fa-2x"></i></div>
            </div>
            <div style="margin: auto; width: 100%" class="modal-body text-center">
                <div style="border: 1px solid black; width: 100%; height: 200px" contentEditable="true" id="problem_text"></div>
                <button type="button" class="btn btn-secondary m-2" id="send_message_btn">Отправить</button>
            </div>
        </div>
    </div>
</div>


<script>
    window.addEventListener('load', function () {
        $('#modal-add-message').on('click', function(){
            $('#modal-message-add').modal('show')
        })

        $('#send_message_btn').on('click', function(){
            let user_owner_id = '1'
            let user = 'Плугина А.В.'
            let from_user_id = '681'
            let text = $('#problem_text').text()

            //            ------------- ТЕЛЕГРАМ JS
            $('#modal-message-add').modal('hide')
            let $data = {};
            $data["_token"] = "hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf"
            $data['from_user_fio'] = user
            $data['from_user_id'] = from_user_id
            $data['to_user_id'] = user_owner_id
            $data['text'] = text
            $.ajax({
                url: 'https://l-zone.ru/user/organizations/vimvd_up/utils/notifications',
                type: 'post',
                data: $data,
                error: function (error) {
                    alert('Сообщение не отправлено. Истекло время сессии');
                }
            });
        })

    })
</script>
            























<div class="wrapper_user">
    <nav id="sidebar_user">
        <div class="sidebar_user-header">
                            <a href="https://l-zone.ru/user/organizations/vimvd_up"
                   class="brand-link1 p-0 mb-1" style="color: white; font-size: 14px">
                    <div class="brand-text font-weight-light">Плугина А.В.</div>
                    <div
                        class="brand-text font-weight-light">Пользователь</div>
                </a>
            
                    </div>
        <hr style="color: yellow; background-color: yellow">

        <ul class="list-unstyled components">
                                                <li class="side-menu" style="text-align: left">
                        <i class="fas fa-question-circle mr-1" style="margin-left: 3px"></i>
                        <span style="color: deepskyblue"><a href="javascript:void(0)">КВЕСТЫ</a></span>
                        <div style="display: inline-block">
                            <div style="display: flex; justify-content: right; text-align: right">
                            <span><a style="color: white; text-decoration: none; font-weight: bold"
                                     href="https://qpuzzle.l-zone.ru/" target="_blank"><i
                                        class="fa fa-chrome"
                                        aria-hidden="true"></i></a></span>
                                <span><a
                                        style="color: white; text-decoration: none; font-weight: bold"
                                        href="javascript:void(0)"
                                        id="open_quest_modal_admin"><i class="fas fa-window-maximize"
                                                                       aria-hidden="true"></i>
                    </a></span>
                            </div>
                        </div>
                    </li>

                    
                    <li class="side-menu ">
                        <i class="fas fa-comment mr-1"></i>
                        <span><a href="javascript:void(0)" id="modal-add-message">Преподаватель</a></span>
                    </li>


                    <li class="side-menu ">
                        <i class="fas fa-question-circle mr-1"></i>
                        <span><a href="https://l-zone.ru/organizations/vimvd_up/listTasksZachet">Вопросы к зачету</a></span>
                    </li>

                    <li class="side-menu">
                        <i class="fas fa-question-circle mr-1"></i>
                        <span><a href="https://l-zone.ru/organizations/vimvd_up/listTasksExam">Вопросы к экзамену</a></span>
                    </li>

                    <li class="side-menu">
                        <i class="fas fa-question-circle mr-1"></i>
                        <span><a href="https://l-zone.ru/organizations/vimvd_up/questions">Вопросы (тесты)</a></span>
                    </li>


                    
                                            <li class="side-menu ">
                            <i class="fas fa-question-circle mr-1"></i>
                            <span><a href="https://l-zone.ru/user/organizations/vimvd_up/utils/checkDecisions">Рецензирование</a></span>
                        </li>
                    
                    <li class="side-menu ">
                        <i class="fas fa-comment mr-1"></i>
                        <span><a href="https://l-zone.ru/organizations/vimvd_up/board_science" id="modal-add-message">Доп. задания</a></span>
                    </li>


                    <li class="side-menu">
                        <i class="fa fa-frown-o"></i>
                        <span><a
                                href="https://l-zone.ru/organizations/vimvd_up/listTasksErrors">
                                        Ошибки
                                        <span
                                            class="badge badge-warning">
                                                0
                                        </span>
                                </a>
                                </span>
                    </li>


                    <li class="side-menu">
                        <i class="fa fa-cogs mr-1"></i>
                        <span><a
                                href="https://l-zone.ru/user/organizations/vimvd_up/utils/settings">Настройки</a></span>
                    </li>

                    <li class="side-menu">
                        <i class="fas fa-chevron-circle-right mr-1"></i>
                        <span><a
                                href="javascript:void(0)" class="nav-link fm-modal" data-fm="fm"
                                data-target="#modal-files">
                                Файлы</a></span>
                    </li>


                    <hr style="background-color: red">

                            

            <li class="side-menu">
                <i class="fa fa-television mr-1"></i>
                <span><a
                        href="https://l-zone.ru/user/organizations/vimvd_up/utils/board">
                                Доска</a></span>
            </li>

            <li class="side-menu">
                <i class="fa fa-television mr-1"></i>
                <span><a
                        href="https://l-zone.ru/user/organizations/vimvd_up/utils/boardDraw">
                                Доска графическая</a></span>
            </li>

            <li class="side-menu">
                <i class="fa fa-building mr-1"></i>
                <span><a
                        href="https://l-zone.ru/organizations">
                                Организации</a></span>
            </li>

            <li class="side-menu">
                <i class="fa fa-user mr-1"></i>
                <span><a
                        href="https://l-zone.ru/pages/feedback">
                                Обратная связь</a></span>
            </li>

            <li class="side-menu">
                <i class="fa fa-user mr-1"></i>
                <span><a
                        href="https://l-zone.ru/categories">
                                Статьи</a></span>
            </li>

            <li class="side-menu">
                <i class="fa fa-user mr-1"></i>
                <span><a
                        href="https://l-zone.ru/user/organizations/vimvd_up/utils/interrogation">
                                Допрос</a></span>
            </li>

        </ul>
    </nav>

    
    <div id="content">

        <nav class="navbar navbar-expand navbar-light bg-light p-0">
            <button type="button" id="sidebarCollapse" class="btn btn-dark">
                <i class="fas fa-align-left" style="pointer-events: none"></i>
                <span></span>
            </button>

                            <li class="list-inline-item ml-2" style="position: relative">
                    <a class="navbar-brand" style="color: blueviolet; text-align: center; margin: auto"
                       href="https://l-zone.ru/user/organizations/vimvd_up">
                        <i class="fa fa-home fa-lg" aria-hidden="true"></i>
                    </a>
                </li>
            
            
            <ul class="navbar-nav mr-auto">
    <li class="nav-item d-none d-sm-block">
                    <a class="nav-link btn-sm btn-info px-1 mx-1 text-nowrap"
               style="background-color: black; color: white"
               href="https://l-zone.ru/organizations/vimvd_up/disciplines">ВИ МВД РФ (УП)
            </a>
            </li>
    <li class="nav-item d-none d-sm-block">
                    <a class="nav-link btn-sm btn-info px-1 mx-1 text-nowrap"
               style="background-color: black; color: white"
               href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo">ПС в ОВД (самоподготовка)
            </a>
            </li>
</ul>

            <span style="display: none" id="span_load"><i class="fa fa-refresh fa-spin fa-1x fa-fw"></i></span>

            <div class="" id="navbarSupportedContent" style="margin-right: 15px">
                <ul class="nav navbar-nav ml-auto">
                                                                        <li class="list-inline-item m-0" style="position: relative">
                                <a class="nav-link btn-sm btn-warning px-1 m-1"
                                   style="color: white"
                                   href="https://l-zone.ru/user/organizations/vimvd_up/utils/notifications">
                                    <i class="fa fa-bell"></i>
                                                                    </a>
                            </li>
                                                                <li class="nav-item dropdown">
        <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button"
           data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
            Плугина А.В.
        </a>

        <div style="z-index: 5000" class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
            <a class="dropdown-item" href="https://l-zone.ru/logout"
               onclick="event.preventDefault();
               document.getElementById('logout-form').submit();">
                Выйти
            </a>

            <form id="logout-form" action="https://l-zone.ru/logout" method="POST"
                  class="d-none">
                <input type="hidden" name="_token" value="hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf">            </form>
        </div>
    </li>



    
                    </ul>
            </div>
        </nav>

        <hr style="margin: 0">

        
                

        <div id="app">
            
            
    <section class="container-fluid py-2">

        

                <div class="row">
            <div class="col-lg-2 col-sm-4 col-4">
                <noindex>
                    <div>
        <h4 class="text-center">ТЕМЫ</h4>
    <div class="row">
                                <div class="col-lg-12 col-6">
                <div id="491" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="491"
                        class="active_task  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491">
                            <div class="href"> 1. Базовые принципы расследования </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 43 / 53   </span>
                            </div>

                            <div style="font-size: 12px">
                                                                    (81.13 %)
                                    <progress style="vertical-align: middle; width: 50px" value="43" max="53"
                                              class="bt-tooltip"></progress>
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="495" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="495"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/495">
                            <div class="href"> 2. Уголовное преследование </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 3 / 21   </span>
                            </div>

                            <div style="font-size: 12px">
                                                                    (14.29 %)
                                    <progress style="vertical-align: middle; width: 50px" value="3" max="21"
                                              class="bt-tooltip"></progress>
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="496" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="496"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/496">
                            <div class="href"> 3. Проверка сообщения о преступлении </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 38   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="592" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="592"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/592">
                            <div class="href"> 3.1 Сроки в уголовном процессе </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 2 / 13   </span>
                            </div>

                            <div style="font-size: 12px">
                                                                    (15.38 %)
                                    <progress style="vertical-align: middle; width: 50px" value="2" max="13"
                                              class="bt-tooltip"></progress>
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="499" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="499"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/499">
                            <div class="href"> 4. Квалификация преступления </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 2 / 30   </span>
                            </div>

                            <div style="font-size: 12px">
                                                                    (6.67 %)
                                    <progress style="vertical-align: middle; width: 50px" value="2" max="30"
                                              class="bt-tooltip"></progress>
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="630" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="630"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/630">
                            <div class="href"> 4.1 Предварительное расследование </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 0 <span class="badge badge-danger">1</span>  </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="497" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="497"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/497">
                            <div class="href"> 5. Стадия возбуждения уголовного дела </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 17   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="502" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="502"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/502">
                            <div class="href"> 6. Участники уголовного процесса </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 17   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="508" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="508"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/508">
                            <div class="href"> 7. Следственные действия </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 41   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="516" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="516"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/516">
                            <div class="href"> 7.1 Процессуальные действия </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 1   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="503" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="503"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/503">
                            <div class="href"> 8. Доказательства и доказывание </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">зачет</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 20   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="507" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="507"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/507">
                            <div class="href"> 9. Меры процессуального принуждения </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 37   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="510" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="510"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/510">
                            <div class="href"> 10. Движение уголовного дела </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 10   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="511" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="511"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/511">
                            <div class="href"> 11. Особенности расследования преступлений </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 36   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="512" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="512"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/512">
                            <div class="href"> 12. Назначение экспертиз </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 11   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="513" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="513"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/513">
                            <div class="href"> 13. Прекращение уголовного дела </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 9   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="515" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="515"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/515">
                            <div class="href"> 14. Обвинительное заключение </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 12   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="514" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="514"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/514">
                            <div class="href"> 15. Реабилитация </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 20   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="633" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="633"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/633">
                            <div class="href"> 16. Международное сотрудничество </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 13   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="634" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="634"
                        class="  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/634">
                            <div class="href"> 17. Просмотр фильмов </div>

                            <div>
                                                                                                                                                        <span class="badge badge-warning"
                                                 style="font-size: 12px">экзамен</span>
                                                                                                                                            <span style="font-size: 12px"> 0 / 5   </span>
                            </div>

                            <div style="font-size: 12px">
                                                            </div>

                                                                                                                                            </a>
                    </div>
                </div>
            </div>
            </div>
</div>


                    </noindex>
            </div>

            <div class="col-lg-2 col-sm-4 col-4">
                <noindex>
                                            <div>
        <h4 class="text-center">ЗАНЯТИЯ</h4>
        <div class="row">
                                <div class="col-lg-12 col-6">
                <div id="105" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="105"
                        class="active_task  "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105">
                            <div class="href"> 1. УПК РФ </div>
                            <div style="font-size: 12px"> 10
                                / 20   </div>
                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="106" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="106"
                        class=" alert-success "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/106">
                            <div class="href"> 2. УК РФ </div>
                            <div style="font-size: 12px"> 20
                                / 20   </div>
                                                                                                                                            </a>
                    </div>
                </div>
            </div>
                                <div class="col-lg-12 col-6">
                <div id="109" class="m-0 p-1" style="+height: 100%;">
                    <div
                        style="position: relative; align-items: center; justify-content: center; text-align: center; border: 1px solid black; +height: 100%;  margin-bottom: 5px; border-radius: 5px"
                        id="109"
                        class=" alert-success "
                    >
                        <a style="text-decoration: none; color: inherit; font-size: 18px"
                           href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/109">
                            <div class="href"> 3. Понятия </div>
                            <div style="font-size: 12px"> 13
                                / 13   </div>
                                                                                                                                            </a>
                    </div>
                </div>
            </div>
            </div>
</div>

                                        </noindex>
            </div>

            <div class="col-lg-2 col-sm-4 col-4">
                <noindex>
                                            <div>
        <h4 class="text-center">ЗАДАНИЯ</h4>
    

    <div class="row">
        <input type="hidden" id="refresh" value="no">
                                    <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/109">
                                        <div class="href"
                                            
                                        >
                                            Восстановление прав
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/116">
                                        <div class="href"
                                            
                                        >
                                            Жилище
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/436">
                                        <div class="href"
                                            
                                        >
                                            Имущество
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/106">
                                        <div class="href"
                                            
                                        >
                                            Иностранные граждане
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn active_task">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/115">
                                        <div class="href"
                                            
                                        >
                                            Коллизии закона
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/99">
                                        <div class="href"
                                            
                                        >
                                            Кто подписал
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/83">
                                        <div class="href"
                                            
                                        >
                                            Название срока
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/108">
                                        <div class="href"
                                            
                                        >
                                            Не виновен
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/105">
                                        <div class="href"
                                            
                                        >
                                            Новая мера пресечения
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/107">
                                        <div class="href"
                                            
                                        >
                                            Обжалование действий
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/102">
                                        <div class="href"
                                            
                                        >
                                            Принятие УПК РФ
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/103">
                                        <div class="href"
                                            
                                        >
                                            Пропущенный элемент
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/100">
                                        <div class="href"
                                            
                                        >
                                            Самая большая статья
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/101">
                                        <div class="href"
                                            
                                        >
                                            Самая маленькая статья
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/104">
                                        <div class="href"
                                            
                                        >
                                            Самая необычная глава
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/112">
                                        <div class="href"
                                            
                                        >
                                            Свойства судей
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/76">
                                        <div class="href"
                                            
                                        >
                                            Статьи
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex  btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/113">
                                        <div class="href"
                                            
                                        >
                                            Уважение участников
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/111">
                                        <div class="href"
                                            
                                        >
                                            Уголовное преследование
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                                                <div class="col-lg-12 col-6">
                                        
                    
                                                                                                                                                                                                                                                                                    
                    
                                            <div class="m-0 p-1 position-relative card_task">
                            <div class="m-0 p-1">
                                <div
                                    style="+height: 100%;
                            align-items: center;
                            
                             justify-content: center;
                             position: relative;
                             width: 100%;
                             padding-left: 10px;
                             padding-right: 10px;
                             border: 1px solid black"

                                    class="d-flex alert alert-success btn section_btn ">
                                    <a style="color: inherit; text-decoration: none"
                                       href="https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/114">
                                        <div class="href"
                                            
                                        >
                                            Цель УПК РФ
                                        </div>
                                        
                                        <div>
                            <span>
                                                                        <i class="fa fa-file-text-o"> <span
                                                style="font-weight: lighter"
                                                class="badge badge-danger">вопрос</span></i>
                                                                    </span>

                                            
                                                                                            
                                                
                                                
                                                
                                                
                                                                                                    <span style="color: blue">
                                                <span class="badge badge-primary"
                                                      style="font-size: 14px">автопроверка</span>
                                                </span>
                                                
                                                
                                            
                                            


                                                                                                                                        
                                                                                                                                                                                </div>
                                                                                    <div style="font-size: 12px; font-weight: bold" class="badge badge-dark">
                                                выполнено: 5
                                            </div>
                                        
                                                                            </a>
                                </div>
                            </div>
                        </div>
                                    </div>
                        </div>
</div>

    
<script>

    // --------------------------- ПЕРЕЗАГРУЗКА КНОПКА НАЗАД
    // window.addEventListener( "pageshow", function ( event ) {
    //     let perfEntries = performance.getEntriesByType("navigation");
    //     if (perfEntries[0].type === "back_forward") {
    //         location.reload();
    //     }
    // });

    window.addEventListener('load', function () {
        
            

        if ('') {
            $('#tag_id').select2({
                dropdownParent: $("#modal_task_select")
            });
        }


        // ---------------------- ДОБАВЛЕНИЕ ЗАДАНИЯ ИЗ БАЗЫ
                $('#modal_task_select').on('click', '[data-name=select-task], #btn-selected-arr', function (e) {
            let dataName = e.currentTarget.getAttribute('data-name');
            let task_ids = [];
            let task_id = '';
            if (dataName === 'select-arr') {
                let DT = ($(".dataTable").DataTable());
                task_ids = DT.rows('.selected').data().toArray().map((item) => item.id);
            }
            if (dataName === 'select-task') {
                task_id = ($(this).parent().attr('data-id'));
            }

            $('#modal_task_select').modal('hide');
            let type = dataName;
            let lesson_id = 105;

            $.ajax({
                url: 'https://l-zone.ru/organizations/vimvd_up/tasks/ajaxUpdate',
                type: 'POST',
                data: {task_id, task_ids, type, lesson_id, '_token': "hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf"},

                success: function (task_id) {
                    if (!isNaN(task_id)) {
                        $('#loader_black').fadeIn(100).delay(500).fadeOut(100);
                        $('#loader_message').css('backgroundColor', 'yellow').css('fontSize', '24px').text('Добавляем').fadeIn(100).delay(500).fadeOut(100);
                        let route = 'https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/task/task_id';
                        window.location.href = route.replace('task_id', task_id);
                    }
                },
                error: function () {
                    alert('Error!');
                },
            });
        })
        
        $('.click_button a').on('click', function () {
            $('#loader_black').fadeIn(100).delay(500).fadeOut(100);
            $('#loader_message').css('backgroundColor', 'yellow').css('fontSize', '24px').text('Добавляем...').fadeIn(100).delay(500).fadeOut(100);
        })
    })
</script>
                                    </noindex>
            </div>

            <div class="col-lg-6 col-sm-12 col-12">
                                    <h4 class="text-center" style="position: relative">

            <span>ЗАДАНИЕ</span>
    
            <span

        >

                    </span>
    </h4>
    
            <div class="container-task text-center">

        <h5>Коллизии закона  (автопроверка) 
    <span data-taskId="115" id="taskId" style="font-size: 14px">id: 115</span>
            <span style="font-size: 14px">Смагин П.Г.</span>
    </h5>

        
        <hr>

                    <section class="content-task" style="text-align: justify; font-size: 20px; user-select: none">
                <p>Какой закон применяется при коллизии норм различных нормативных актов ?</p>
            </section>
                        </div>

    
    <div class="container-task" id="section-decision" style="margin: auto; text-align: center; position: relative">

        <style>
    @media (max-width: 599px) {
        #blocks_toasts {
            min-height: 75px;
            min-width: 150px;
            font-size: 10px;
        }

        .toast-body {
            padding: 0.2em;
            height: 35px;
            font-size: 14px;
        }

        .toast-header {
            padding: 0.2em;
        }
    }

    @media (min-width: 600px) {
        #blocks_toasts {
            min-height: 100px;
            min-width: 200px;
            font-size: 18px;
        }
    }
</style>

    <div id="blocks_toasts"
         style="position: absolute; z-index: 1000; top: -35px; right: 10px;">
        <div class="toast" id="toast_5000" data-autohide='false' style="font-size: inherit; display: none;">
            <div class="toast-header" style="background-color: red; color: white">
                <strong class="mr-auto">Предупреждение</strong>
                
                <button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="toast-body">
                Слишком длинный ответ...
            </div>
        </div>

        <div class="toast" id="toast_message" data-autohide='false' style="font-size: inherit; display: none;">
            <div class="toast-header" style="background-color: pink; color: white;">
                <strong class="m-auto" id="toast_str_header" style="text-align: center; color: black"></strong>
                <button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="toast-body" id="toast_str_message"></div>
        </div>
    </div>

        <h4 class="alert alert-info p-1 numberDecision" style="">
            Решение 
                    </h4>

        <form
            method="post"
            onsubmit="return false"
            enctype="multipart/form-data"
            id="form_decision"
            autocomplete="off"
            
        >

            <input type="hidden" name="_token" value="hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf">
            <noscript>
                <style>
                    #textarea-decision {
                        display: none !important;
                    }
                </style>
            </noscript>


                                                <div style="text-align: center" id="input_decision">
                    <textarea name="decision" rows="6"
                              class="content-decision  form-control"
                              id="textarea-decision"></textarea>
                                            </div>

                    <div>
                    <span class="mb-2" id="activate-tinymce" style="text-align: center">
                        <a href="javascript:void(0)">Активировать расширенный редактор</a>
                    </span>
                        <span class="badge badge-info" id="count_symbols">0</span>
                    </div>

                    <canvas id="canvas" style="display: none"></canvas>

<div class="container-task" style="border: 0px; padding: 2px">

    
    


    </div>


<script>
    window.addEventListener('load', function () {
        let uploadFiles = [];
        let dataTransfer = new DataTransfer();
        let arr_deleted = [];
        let images_rotate = {};

        async function loadImages(fileList) {
            const promiseArray = []; // create an array for promises
            const imageArray = []; // array for the images
            let el2 = document.getElementById("upload-documents");

            for (let file of fileList) {
                if (file.type.includes('image')) {
                    promiseArray.push(new Promise(resolve => {
                        const canvas = document.getElementById('canvas');
                        const ctx = canvas.getContext('2d');
                        const image = new Image();
                        let reader = new FileReader();
                        reader.onload = function (e) {
                            image.src = e.target.result;
                        }
                        image.onload = function () {
                            const aspectRatio = image.width / image.height;
                            const newWidth = 1920;  // Желаемая ширина
                            const newHeight = newWidth / aspectRatio;
                            canvas.width = newWidth;
                            canvas.height = newHeight;
                            ctx.drawImage(image, 0, 0, newWidth, newHeight);
                            //let img_base64 = canvas.toDataURL();
                            canvas.toBlob((blob) => {
                                const file_blob = new File([blob], file.name.substring(0, file.name.lastIndexOf()) + ".png", {type: 'image/jpeg'});
                                dataTransfer.items.add(file_blob);
                                el2.files = dataTransfer.files;
                                //refreshUploadFiles(dataTransfer);
                                resolve();
                            }, 'image/jpeg', 0.5);
                        }
                        reader.readAsDataURL(file);
                        imageArray.push(image);
                    }));
                } else {
                    dataTransfer.items.add(file);
                    el2.files = dataTransfer.files;
                }
            }

            await Promise.all(promiseArray);
            return imageArray;
        }

        $('#upload-files').on('change', function (e) {
            const fileList = e.target.files;
            loadImages(fileList).then(files => {
                refreshUploadFiles(dataTransfer)
            })

            // if (fileList.length > 0) {
            //     let el = document.getElementById("upload-files");
            //     for (let c = 0; c < el.files.length; c++) {
            //         let file = el.files[c];
            //         const canvas = document.getElementById('canvas');
            //         const ctx = canvas.getContext('2d');
            //         const image = new Image();
            //         let reader = new FileReader();
            //         reader.onload = function (e) {
            //             image.src = e.target.result;
            //         }
            //         image.onload = function () {
            //             const aspectRatio = image.width / image.height;
            //             const newWidth = 100;  // Желаемая ширина
            //             const newHeight = newWidth / aspectRatio;
            //             canvas.width = newWidth;
            //             canvas.height = newHeight;
            //             ctx.drawImage(image, 0, 0, newWidth, newHeight);
            //             //let img_base64 = canvas.toDataURL();
            //             canvas.toBlob((blob) => {
            //                 const file1 = new File([blob], "canvas.png", {type: blob.type});
            //                 dataTransfer.items.add(file1);
            //                 let el2 = document.getElementById("upload-documents");
            //                 el2.files = dataTransfer.files;
            //                 refreshUploadFiles(dataTransfer);
            //             });
            //
            //         }
            //         reader.readAsDataURL(file);
            //         //dataTransfer.items.add(file);
            //     }
            // }
        })

        function refreshUploadFiles(dataTransfer) {
            //console.log(dataTransfer.files)
            $('#js-decisions-docs > div').each(function (key, img) {
                if (!$(img).hasClass('php')) {
                    $(img).remove();
                }
            });

            $.each(dataTransfer.files, function (index, file) {
                    if (file.type.includes('image')) {
                        let reader = new FileReader();
                        reader.onload = function (e) {
                            $('#js-decisions-docs').append("<div class='m-2 mx-auto image' id='" + file.name + "' style='position: relative; display: inline-block; vertical-align:top; max-width: 150px; margin: 0 10px; padding: 0; color: blue; font-weight: bold'><img data-rotate='0' style='width: 100%; margin: auto'  src='" + e.target.result + "' /><div>" + file.name + "</div><div style='position: absolute; right: -0px; top: -0px; width: 20px; z-index: 1'><div class='deleteUploadFile' data-name='" + file.name + "'><img class='pointer'  width='25' src='/storage/app/images/delete.png'></div></div></div>");
                        }
                        reader.readAsDataURL(file);
                    } else {
                        $('#js-decisions-docs').append("<div class='m-2 mx-auto' id='" + file.name + "' style='display: inline-block; vertical-align:top; max-width: 150px; margin: 0 0px; padding: 0px; color: blue; font-weight: bold'><div style='position: relative; width: 100%'><img style='width: 100%; margin: auto'  src='https://l-zone.ru/storage/app/images/upload.png' /><div style='position: absolute; right: -0px; top: -0px; width: 20px'><div class='deleteUploadFile' data-name='" + file.name + "'><img class='pointer'  width='25' src='/storage/app/images/delete.png'></div></div><div>" + file.name + "</div></div></div>");
                    }
                }
            );
        }

        $('#js-decisions-docs').on('click', '.deleteUploadFile', function (e) {
            e.preventDefault();
            e.stopPropagation();
            let name = e.currentTarget.getAttribute('data-name');
            document.querySelector("[id='" + name + "']").remove();
            let dt = new DataTransfer();
            [...dataTransfer.files].forEach((file, index) => {
                if (file.name !== name) {
                    dt.items.add(file);
                }
            })
            arr_deleted.push(name)
            $('#list-documents').val(JSON.stringify(arr_deleted))
            dataTransfer = new DataTransfer();
            let el2 = document.getElementById("upload-documents");
            document.getElementById("upload-files").value = null;
            el2.value = null;
            el2.files = dt.files;
        })

                $('#js-decisions-docs').on('click', '.image+++', function (e) {
            e.preventDefault();
            e.stopPropagation();
            let degree = parseInt(e.target.dataset.rotate);
            if (degree >= 270) {
                degree = -90;
            }
            e.target.dataset.rotate = degree + 90;
            e.target.style.transform = "rotate(" + (degree + 90) + "deg)";
            // console.log($(e.currentTarget).find('a > div')[0])
            let image = $(this).find(`[data-rotate]`)[0];
            //console.log(image.height)
            //console.log(image.width)
            // $(e.currentTarget).find('a > div').eq(0).css({ width : image.height, height: image.width })
            // $(image).css({ width : 100, height: 150 })

            $('#js-decisions-docs > div').each(function (key, img) {
                if ($(img).hasClass('php')) {
                    images_rotate[img.id] = $(img).find(`[data-rotate]`).attr('data-rotate')
                } else {
                    images_rotate['681-' + img.id] = $(img).find(`[data-rotate]`).attr('data-rotate')
                }
            });

            $('#rotate-documents').val(JSON.stringify(images_rotate))
        })
        


    })
</script>
                
                <div class="modal fade" id="modal-confirm-modify" data-backdrop="static" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary text-white" style="padding: 0.5rem">
                <div style="font-size: 20px">Укажите, что не так с заданием ?</div>
                <div class="close_modal pointer" id="close" data-dismiss="modal"><i
                        class="fa fa-times-circle fa-2x"></i></div>
            </div>
            <div class="modal-body">
                <textarea rows="3" class="form-control" id="text_modify"></textarea>
                <div class="mt-2">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">&#10007; Отмена</button>
                    <button type="button" id="btn-confirm-modify" class="btn btn-danger">&#10003; Пожаловаться</button>
                </div>
            </div>
        </div>
    </div>
</div>



    <div id="buttons" style="width: 100%; height: 50px; background: black">
        <div style="margin: auto; padding-top: 6px; text-align: center; position: relative">
            <button type="button" id="btn_save_decision"
                    onclick="$('#buttons_save').css('display', 'inline-block');"
                    style="background: red; font-weight: bold; color: white"
                    class="btn primary">
                <i
                    style="display: none" id="buttons_save"
                    class="fa fa-refresh fa-spin fa-1x fa-fw">

                </i>
                Сохранить решение
            </button>
                            <button type="button" style="position: absolute; right: 5px"
                        class="btn btn-outline-primary"
                        id="btn_task_modify"
                        
                        name="task_modify"
                        data-toggle="modal"
                        data-target="#modal-confirm-modify"
                    
                >
                    <i class="fa fa-trash"></i>
                    +
                </button>
                    </div>
    </div>




<script>
    window.addEventListener('load', function () {

        $('#btn_save_decision, #decision_null').on('click', function () {
            let formData = new FormData($('#form_decision')[0]);
            // let formData = $('#form_decision').serializeArray();

            if ('1') {
                formData.delete('decision');
                formData.append('decision', (typeof tinymce != 'undefined' && tinymce?.activeEditor?.getContent()) ?? $('#textarea-decision').val());
            }

            if ($('#textarea-decision').val()?.length > 5000) {
                alert('Превышен порог символов 5000');
                $('#buttons_save').hide();
                return false;
            }

            if ($(this).attr('id') == 'decision_null') {
                if (confirm('Точно аннулировать решение?')) {
                    formData.append('decision_null', 1);
                    formData.append('decision', '');
                    //formData.push({"name": 'decision_null', "value": 1});
                    postAjax(formData);
                } else {
                    return false;
                }
            } else {
                postAjax(formData);
            }

            function catchError(formData, request, exception, url) {
                //formData.delete('_token');
                formData.append('type', 'ОШИБКА AJAX ПРИ СОХРАНЕНИИ РЕШЕНИЯ');
                formData.append('user', 'Плугина А.В.');
                formData.append('errorMsg', exception);
                formData.append('columnNo', request.status ?? '-------');
                formData.append('url', url);
                formData.append('error', request.responseText ?? '-------');
                formData.append('lineNumber', request.responseJSON ?? '-------');
                formData.append('time', new Date());
                $.ajax({
                    url: 'https://l-zone.ru/utils/fileSave',
                    type: 'post',
                    contentType: false,
                    processData: false,
                    data: formData,
                    success: function (result) {
                        //console.log(result);
                    }
                });
            }

            function postAjax(formData) {
                $.ajax({
                    url: "https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/tasks/115/decision/save",
                    headers: {
                        Accept: 'application/json'
                    },
                    type: 'post',
                    data: formData,
                    contentType: false,
                    processData: false,
                    beforeSend: function () {
                        if ('') {
                            $('#loader_message').css('backgroundColor', 'white').css('fontSize', '24px').css('color', 'black').text('Проверка решения').fadeIn(100);
                        } else {
                            $('#loader_message').css('backgroundColor', 'white').css('fontSize', '24px').css('color', 'black').text('Загрузка...').fadeIn(100);
                        }

                        $('#loader_black').fadeIn(100);
                    },
                    success: function (result) {
                        //console.log(result);
                        localStorage.removeItem('decision')
                        $('#loader_black').fadeOut(100);
                        if (result.decision.status === 'done') {
                            $('#loader_message').css('backgroundColor', 'yellow').css('fontSize', '24px').css('color', 'black').text('Выполнено').fadeIn(100).delay(800).fadeOut(100);
                        } else if (result.decision.status === 'error') {
                            $('#loader_message').css('backgroundColor', 'red').css('fontSize', '24px').css('color', 'white').text(result.decision.comment ?? 'Не выполнено').fadeIn(100).delay(800).fadeOut(100);
                            $('#buttons_save').css('display', 'none');
                        } else {
                            $('#loader_message').css('backgroundColor', 'yellow').css('fontSize', '24px').css('color', 'black').text('Сохранено').fadeIn(100).delay(800).fadeOut(100);
                            $('#buttons_save').css('display', 'none');
                        }
                        setTimeout(() => {
                           location.reload();
                        }, 1000)
                    },
                    error: function (request, status, error) {
                        //console.log(request.responseText)
                        //console.log(exception)
                        //console.log(request.statusText)
                        let obj = request.responseJSON
                        let text = '';
                        if (request.responseJSON?.message) {
                            for (let key in obj['errors']) {
                                text += obj['errors'][key][0] + ' '
                            }
                        } else {
                            catchError(formData, request, error, window.location.href);
                            text = 'Сервер перегружен. Попробуйте через несколько секунд ...'
                        }
                        //console.log(request.responseJSON.errors)
                        //console.log(request.responseJSON?.errors)


                        $('#loader_black').fadeIn(100).delay(2000).fadeOut(100).find('span')
                        $('#loader_message').css('backgroundColor', 'red').css('fontSize', '24px').text(text).fadeIn(100).delay(1800).fadeOut(100);
                        setTimeout(() => {
                           location.reload();
                        }, 2000)
                    },
                    complete: function () {
                       // $('#loader_black').fadeOut(100);
                    }
                });
            }
        })


        $('#btn-confirm-modify').on('click', function () {
            let my_form = {};
            my_form = document.createElement('FORM');
            my_form.style.display = 'none';
            my_form.name = 'myForm';
            my_form.method = 'POST';
            my_form.action = 'https://l-zone.ru/organizations/vimvd_up/disciplines/psovd_sampo/section/491/lesson/105/tasks/115/decision/save';
            let formDataModify = new FormData();
            formDataModify.append('text_modify', $('#text_modify').val())
            formDataModify.append('_token', 'hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf')
            formDataModify.append('task_modify_done', 1);
            my_form.innerHTML = '<input name="_token" value="hOtw8LF8b93hVAADdZWi6gnhFrEXWwf5AL5lVsaf"/><input name="text_modify" value="' + $('#text_modify').val() + '"/><input name="task_modify" value="done"/>';
            $(document.body).append(my_form);
            my_form.body = formDataModify;
            console.log(my_form)
            my_form.submit();
        })

    })
</script>

            
        </form>
    </div>



    <script>
        window.addEventListener('load', function () {
            let task = {"id":115,"name":"Коллизии закона","user_id":1,"instruction":"","content":"<p>Какой закон применяется при коллизии норм различных нормативных актов ?<\/p>","answer":"","answer_pattern":"упк","allow_document":0,"users_check":0,"status":null,"visible":1,"type":"pattern","auto_check":1,"auto_check_type":"now","check_ai":0,"check_ai_type":null,"copy_paste":1,"modify":0,"modify_call_user_id":204,"modify_user_comment":"","created_at":"2021-09-07T09:30:12.000000Z","updated_at":"2023-02-21T13:48:13.000000Z","documents":[]};

            autosize($('#textarea-decision'));

            $('#original').click(function () {
                let html = `<p>Какой закон применяется при коллизии норм различных нормативных актов ?</p>`;
                tinyMCE.activeEditor.setContent(html);
            });

            $('#activate-tinymce').on('click', function () {
                $(this).hide();
                tinymce.EditorManager.execCommand("mceAddEditor", true, 'textarea-decision');
                $('#blocks_toasts').hide();

                if (1 == 0) {
                    tinymce?.activeEditor?.addShortcut("ctrl+v", "Custom Ctrl+V", "custom_ctrl_v");
                    tinymce?.activeEditor?.addCommand("custom_ctrl_v", function () {
                        $('#loader_message').css('backgroundColor', 'red').css('fontSize', '24px').css('color', 'white').text('Запрещено').fadeIn(100).delay(300).fadeOut(100);
                        return false;
                    });

                    tinymce?.activeEditor?.on('paste', function () {
                        $('#loader_message').css('backgroundColor', 'red').css('fontSize', '24px').css('color', 'white').text('Запрещено').fadeIn(100).delay(300).fadeOut(100);
                        return false;
                    })
                }
            });

            if (localStorage.getItem('decision')) {
                let lsDecision = JSON.parse(localStorage.getItem('decision'))
                if (Number(lsDecision.taskId) === 115) {
                    $('.numberDecision').css('backgroundColor', 'black').css('color', 'white')
                    $('.numberDecision').html('<span class="badge badge-danger">ЧЕРНОВИК </span>' + $('.numberDecision').text());
                    $('#textarea-decision').html(lsDecision.textarea)
                    if (lsDecision.textarea && lsDecision.textarea[0] == '<') {
                        $('#activate-tinymce').trigger('click').hide()
                        tinyMCE.activeEditor.setContent(lsDecision.textarea);
                    }
                }
            }

            if ($('#textarea-decision').val()) {
                $('#count_symbols').html($('#textarea-decision').val().length)
            }

            
            
        })
    </script>

    <script>
        window.addEventListener('load', function () {

            let textDecision = '';
            let answer_pattern = [];
            let task = {"id":115,"name":"Коллизии закона","user_id":1,"instruction":"","content":"<p>Какой закон применяется при коллизии норм различных нормативных актов ?<\/p>","answer":"","answer_pattern":"упк","allow_document":0,"users_check":0,"status":null,"visible":1,"type":"pattern","auto_check":1,"auto_check_type":"now","check_ai":0,"check_ai_type":null,"copy_paste":1,"modify":0,"modify_call_user_id":204,"modify_user_comment":"","created_at":"2021-09-07T09:30:12.000000Z","updated_at":"2023-02-21T13:48:13.000000Z","documents":[]};
            localStorage.setItem('task', JSON.stringify(task));

            // ++++++++++++++++++++++ АКТИВИРОВАТЬ ЗАПРЕТ КОПИРОВАНИЯ TINYMCE
            if (typeof tinymce !== 'undefined' && tinymce.activeEditor !== null) {
                tinymce.get('textarea-decision')?.on('change input', function () {
                    let textDecision = tinymce.get('textarea-decision').getContent({format: 'text'})
                    if ('1') {
                        checkDecision(textDecision);
                    }
                    checkCountSymbols(textDecision);
                    visible_toasts(textDecision.length, null, 'symbols')
                });
            }

            // -------------------------- СТАРЫЙ СЛУШАТЕЛЬ TinyMCE
            
            
            
            
            
            
            
            
            
            
            
            
            


            $('#textarea-decision').on('input', function () {
                checkCountSymbols($(this).val());
                if (('1')) {
                    checkDecision($(this).val());
                }
                visible_toasts(textDecision.length, null, 'symbols')
            })

            function checkCountSymbols(textDecision) {
                //console.log(textDecision);
                let clean_text = textDecision.replace(/<\/?[^>]+(>|$)/gi, "").replace(/&nbsp;/gi, ' ');
                let symbols_old = $('#count_symbols').html();
                $('#count_symbols').html(clean_text.length);
                if ('') {
                    let symbols_new = clean_text.length;

                    if ((symbols_new - symbols_old) > 20) {
                        // +++++++++++++++++++++++++ АКТИВИРОВАТЬ ДЛЯ 3 КУРСА ЗАПРЕТ КОПИРОВАНИЯ TINYMCE
                        $('#textarea-decision').val('КОПИРОВАТЬ НЕЛЬЗЯ');
                        $('#count_symbols').html('КОПИРОВАТЬ НЕЛЬЗЯ'.length);
                        stopCopy();
                        if (typeof tinymce !== 'undefined') {
                            tinymce.activeEditor?.setContent('КОПИРОВАТЬ НЕЛЬЗЯ');
                        }

                        //tinymce?.activeEditor?.editorCommands.commands.exec.undo();
                    }
                    let decision = {'textarea': $('#textarea-decision').val(), 'taskId': '115'}
                    localStorage.setItem('decision', JSON.stringify(decision));
                }
            }

            function checkDecision(textDecision) {
                let text_answer = textDecision.toLowerCase().replace('ё', 'е');
                let count_words_answer_ok = 0;
                let task_one = JSON.parse(localStorage.getItem('task'));
                if (task_one['answer'].match(/<strong>(.*?)<\/strong>/g)) {
                    answer_pattern = task_one['answer'].match(/<strong>(.*?)<\/strong>/g).map(function (val) {
                        return val.replace(/<\/?strong>/g, '');
                    });
                } else {
                    answer_pattern = task_one['answer_pattern'].split(' ');
                }
                let arr_answer_count_words = text_answer.toLowerCase().split(' ');
                let count_words_answer_pattern = answer_pattern.length;
                let count_words_answer = arr_answer_count_words.length;

                // -----------------RegExp
                if (answer_pattern.length > 0 && text_answer.length > 0) {
                    let str_answer_pattern = answer_pattern.sort(function (a, b) {
                        return b.length - a.length;
                    }).join('|');

                    if (str_answer_pattern == '+') {
                        str_answer_pattern = "\\+";
                    }

                    let regexp = new RegExp(str_answer_pattern, 'gi');
                    let arr_match_answer = text_answer.match(regexp)
                    count_words_answer_ok = [...new Set(arr_match_answer)].length;
                }



                // ---------------------- Другой метод проверки из qpuzzle --- не удалять
                // //let answer_arr = task_one['answer'].toUpperCase().split(' ') ?? null;
                // let decision_arr = text_answer.toUpperCase().split(' ') ?? null;
                // // let checker = (arr, target) => target.every(v => arr.includes(v));
                // // let checker = (arr, target) => target.filter(v => arr.includes(v));
                // let checker = (arr_decision, arr_answer) => arr_answer.filter(a => {
                //     return arr_decision.some(d => {
                //             return d.includes(a)
                //         }
                //     )
                // })
                //
                // console.log(answer_pattern)
                // console.log(decision_arr)
                //
                // console.log(checker(decision_arr, answer_pattern).length / answer_pattern.length)
                // console.log(count_words_answer_ok / count_words_answer_pattern)
                // --------------------------------------------------------

                if (count_words_answer_ok / count_words_answer_pattern > 0.65) {
                    visible_toasts(null, true, 'answer', count_words_answer_ok / count_words_answer_pattern)
                } else {
                    visible_toasts(null, false, 'answer', count_words_answer_ok / count_words_answer_pattern)
                }
            }

            function visible_toasts(symbols, answer, type, percent = null) {
                if (type === 'symbols') {
                    if (symbols > 5000) {
                        $('#blocks_toasts').show();
                        $('#toast_5000').show().toast('show')
                    } else {
                        $('#toast_5000').hide().toast('hide')
                    }
                }

                if (type === 'answer') {
                    if (answer === true) {
                        $('#blocks_toasts').show();
                        $('#toast_message').show().toast('show')
                        $('.toast-header').css('background-color', 'greenyellow').css('color', 'black')
                        $('#toast_str_header').html('ВЫПОЛНЕНО')
                        $('#toast_str_message').html('Процент: ' + parseFloat(percent * 100).toFixed(2) + '%')
                        if( '' ) {
                            $('#btn_save_decision_control').prop('disabled', false);
                        }
                        if (task['type'] == 'blitz') {
                            $('#continue').show();
                            localStorage.setItem('count_ok', Number(localStorage.getItem('count_ok')) + 1);
                            $('#textarea-decision').val('РЕШЕНИЕ СКРЫТО...').prop('disabled', true);
                        }
                    } else if (percent > 0.05) {
                        $('#blocks_toasts').show();
                        $('#toast_message').show().toast('show')
                        $('.toast-header').css('background-color', 'gray')
                        $('#toast_str_header').html('ЧАСТИЧНО')
                        $('#toast_str_message').html('Процент: ' + parseFloat(percent * 100).toFixed(2) + '%')
                    } else {
                        $('#blocks_toasts').show();
                        $('.toast-header').css('background-color', 'red')
                        $('#toast_str_header').html('АВТОПРОВЕРКА')
                        $('#toast_str_message').html('Не выполнено')
                        // $('#toast_message').hide().toast('hide')
                    }
                }

                if (symbols !== null && symbols < 5000 && answer === false) {
                    $('#blocks_toasts').hide();
                }
            }


            if (('1' && (typeof tinymce == 'undefined' || (typeof tinymce != 'undefined' || tinymce.activeEditor == null)))) {
                $('#blocks_toasts').show();
                $('#toast_message').show().toast('show')
                $('.toast-header').css('background-color', 'pink')
                $('#toast_str_header').html('АВТОПРОВЕРКА')
                $('#toast_str_message').html('Не выполнено')
            }

        });

    </script>
    <script>
        if ('') {
            function stopCopy() {
                $('#loader_message').css('backgroundColor', 'red').css('fontSize', '24px').css('color', 'white').text('Запрещено').fadeIn(100).delay(300).fadeOut(100);
                return false;
            }

            let ctrlDown = false, ctrlKey = 17, vKey = 86, cKey = 67;

            $(document).keydown(function (e) {
                if (e.keyCode == ctrlKey)
                    ctrlDown = true;
            }).keyup(function (e) {
                if (e.keyCode == ctrlKey)
                    ctrlDown = false;
            });

            $("#textarea-decision").keydown(function (e) {
                if (ctrlDown && (e.keyCode == vKey || e.keyCode == cKey)) {
                    //console.log("Копирование")
                    e.preventDefault();
                    stopCopy();
                    return false;
                }
            });

            $('#textarea-decision').on('paste drop', function (e) {
                stopCopy();
                //console.log("Копирование");
                e.preventDefault();
                e.stopPropagation();
                return false;
            });
        }
</script>

                                </div>
        </div>
        

            </section>

            
        </div>
    </div>
</div>


    <input id="user_email" type="hidden" value="thealevtina@yandex-ru"/>
    <input id="user_fio" type="hidden" value="Плугина А.В."/>

    <div class="modal fade" id="modal-files" data-backdrop="static" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-dialog-centered" role="document" style="max-width: 1040px">
        <div style="z-index: 1080" class="modal-content">
            <div class="modal-header bg-danger text-white" style="padding: 0.5rem">
                <div style="font-size: 20px">Файловый менеджер</div>
                <div class="close_modal pointer" id="close_modal_files" data-dismiss="modal"><i
                        class="fa fa-times-circle fa-2x"></i></div>
            </div>


            <div style="margin: auto; width: 100%; height: 730px; display: flex; flex: 1" class="modal-body">
                <div class="quest_relative">
                    
                    
                    
                </div>

                <div style="width: 100%" id="div-iframe">
                    
                    
                    
                </div>

            </div>


        </div>
    </div>
</div>


<script>
    // window.addEventListener('load', function () {
    // --------------------------- РЕАГИРОВАНИЕ НА ВЫБОР ФАЙЛА RESPONSIVE LISTENER

    $("#modal-files").on("hidden.bs.modal", function () {
        $('#frame_files').remove();
        //$('#frame_files').attr('src', '');
    });

    function responsive_filemanager_callback(field_id) {
        if (field_id == 'new-img-disc') {
            $('#new-img-disc').trigger('change');
        }

        if (field_id == 'new-img-org') {
            $('#new-img-org').trigger('change');
        }

        if (field_id == 'new-doc') {
            $('#new-doc').trigger('change');
        }

        if (field_id == 'new-img-cat') {
            console.log(11111);
            $('#new-img-cat').trigger('change');
        }

        if (field_id == 'new-img-article') {
            $('#new-img-article').trigger('change');
        }
    }

    // })
</script>

    <script>
        window.addEventListener('load', function () {
            // --------------------МОДАЛЬНЫЕ ОКНА ФАЙЛОВ
            $('.fm-modal').on('click', function (e) {
                $('#div-iframe').html('<iframe src="" id="frame_files" style="width: 100%; height: 100%; overflow: hidden; border: none;"></iframe>')
                let user_email = 'thealevtina@yandex-ru'
                let user_id = '681'
                $('#modal-files').modal('show')
                if ($(this).attr('data-fm') == 'el' && '') {
                    $('#frame_files').attr('src', '/packages/elfinder/elfinder.html')
                } else if ($(this).attr('data-fm') == 'lm') {
                    $('#frame_files').attr('src', '/laravel-filemanager?')
                } else if ($(this).attr('data-fm') == 'fm') {
                    $('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?user_id=' + user_id)
                } else if ($(this).attr('data-fm') == 'img-disc') {
                    $('#frame_files').attr('src', '/laravel-filemanager?callback=lfm')
                    // $('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?path=img-cover&user=' + user_email + '&multiple=false&relative_url=1&type=1&field_id=new-img-disc')
                } else if ($(this).attr('data-fm') == 'img-org') {
                    $('#frame_files').attr('src', '/laravel-filemanager?callback=lfm')
                    //$('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?path=img-cover&user=' + user_email + '&multiple=false&relative_url=1&type=1&field_id=new-img-org')
                } else if ($(this).attr('data-fm') == 'add-doc') {
                    //$('#frame_files').attr('src', '/laravel-filemanager?callback=lfm')
                    $('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?path=new-doc&user_id=' + user_id + '&relative_url=1&type=2&field_id=new-doc')
                    // $('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?path=new-doc&user=' + user_email + '&multiple=false&relative_url=1&type=2&field_id=new-doc')
                } else if ($(this).attr('data-fm') == 'img-cat') {
                    $('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?user_id=' + user_id + '&relative_url=1&type=2&field_id=new-img-cat')
                } else if ($(this).attr('data-fm') == 'img-article') {
                    $('#frame_files').attr('src', '/packages/responsive_filemanager/filemanager/dialog.php?user_id=' + user_id + '&relative_url=1&type=2&field_id=new-img-article')
                }

            })
        })
    </script>
    





        <div class="modal fade" id="modal-notifications" data-backdrop="static" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-warning text-black py-1">

                <div style="font-size: 20px">Оповещения системы</div>

                <div class="close_modal pointer" id="close" data-dismiss="modal"><i
                        class="fa fa-times-circle fa-2x"></i></div>
            </div>
            <div style="margin: auto; width: 100%" class="modal-body text-center">

                <div id="block_ai_check_socket" style="display: none">
                    <div class="alert alert-primary p-1 text-bold">Сообщения</div>
                    <div id="message_ai_check_socket"></div>
                </div>

                
                                <button type="button" class="btn btn-outline-primary mt-3" data-dismiss="modal">OK</button>
                                                            </div>
        </div>
    </div>
</div>


<script>
    window.addEventListener('load', function () {
            })
</script>


    

<div class="modal fade" id="modal_quest" data-backdrop="static" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-dialog-centered"
         role="document"
         style="max-width: 1280px; max-height: calc(100vh - 210px); overflow-y: auto"
    >
        <div class="modal-content">
            <div class="modal-header bg-danger text-white" style="padding: 0.5rem">
                <div style="font-size: 20px">КВЕСТ</div>
                <div class="close_modal pointer" id="close" data-dismiss="modal"><i
                        class="fa fa-times-circle fa-2x"></i></div>
            </div>
            <div style="margin: auto; width: 100%; height: 720px" class="modal-body">
                <div class="quest_relative---" >
                    <iframe style="width: 100%; height: 700px"
                            id="frame_quest" src="">
                    </iframe>
                </div>
            </div>
        </div>
    </div>
</div>


<script>


</script>

<script type="text/javascript">
    window.addEventListener('load', function () {

        // ------------------ SPINNER IOS
        // let isOnIOS = navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPhone/i);
        // let eventName = isOnIOS ? "pagehide" : "beforeunload";
        //
        // window.addEventListener(eventName, function (event) {
        //     $("#span_load").fadeIn(100).css('display', 'inline');
        //     //$("body").css("opacity", "0.5");
        //     //$("body").fadeOut(100);
        //     $('#loader').fadeIn(500);
        // })
        //
        // if (isOnIOS) {
        //     window.addEventListener('click', filter, false)
        //
        //     function filter(e) {
        //         console.log(e.target.className)
        //         if (e.target.className === 'href') {
        //             e.preventDefault();
        //
        //             $("#span_load").show().css('display', 'inline');
        //             $('#loader').show();
        //             setTimeout(() => {
        //                 window.location.href = e.target.closest('a').href; // переходите по ссылке
        //             }, 0)
        //             //window.location.href = e.target.closest('a').href; // переходите по ссылке
        //         }
        //     }
        // }

        $('#sidebarCollapse').on('click', function () {
            $('#sidebar_user').toggleClass('active');
        });

        $(document).on('click', function (e) {
            if ($('#sidebar_user').hasClass('active') && $(window).width() < 768 && e.target.id !== 'sidebarCollapse' && e.target.id !== 'sidebar_user') {
                $('#sidebar_user').toggleClass('active');
            }
        });


        //------------------------ВЫБОР ПОДСВЕТКИ МЕНЮ
        $('.list-unstyled li').each(function () {
            // let location = window.location.protocol + '//' + window.location.host + window.location.pathname;
            let location = document.location.href
            let link = $(this).find('a').attr('href');
            if (link == location) {
                $(this).addClass('active_menu');
            }
        });

    });

    //------------------------IFRAME КВЕСТ MODAL
    $('#open_quest_modal_admin').on('click', function (e) {
        $('#modal_quest').modal('show')
        $('#frame_quest').attr('src', 'https://qpuzzle.l-zone.ru/')
    })

</script>

</body>
</html> раскодируй и найди в коде строчку с ключевыми словами из ответа (сам ответ писать не нужно)



© 2023 Quttera Ltd. All rights reserved.