Форум программистов, компьютерный форум, киберфорум
JavaScript для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
0 / 0 / 0
Регистрация: 20.08.2024
Сообщений: 3

При обновлении страницы, раздел который был открыт, оставлять открытым

11.11.2024, 00:45. Показов 427. Ответов 2
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Дорогие формучане, помогите решить проблему, есть сайт, с 2 страницами, на второй странице расположены 5 разделов(Объекты сотрудники, инструменты, табель, склад, и он хочет чтобы при обновлении страницы, раздел который был открыт, оставался открытым, а я не знаю как это сделать, т.к редко занимаюсь js кодом вот код, буду очень благодарен если поможете разобраться и помочь с написанием
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
let lastActiveElement = null;
 
function activateItem(element, activeIcon, defaultIcon) {
    const items = document.querySelectorAll('.sidebar li');
 
    // Убираем класс 'active' у всех элементов и меняем иконки на дефолтные
    items.forEach(item => {
        if (item !== element) {
            item.classList.remove('active');
            const img = item.querySelector('img');
            img.src = img.dataset.default; // Возвращаем к исходному изображению
        } else {
            const img = item.querySelector('img');
            img.dataset.prev = img.src; // Сохраняем текущее изображение как предыдущее
            img.src = activeIcon; // Меняем иконку на активную
        }
    });
 
    // Активируем текущий элемент
    element.classList.add('active');
    const img = element.querySelector('img');
    img.dataset.default = defaultIcon; // Сохраняем дефолтную иконку
 
    // Очищаем блок main-content перед добавлением нового контента
    const mainContent = document.querySelector('.main-content');
    mainContent.innerHTML = '';
 
if (element.querySelector('span').textContent === 'Сотрудники')
{
                mainContent.innerHTML = `
                    <div class="staff-container">
                        <h2 class="staff-header">Сотрудники</h2>
                        <div class="search-panel">
                            <span>Поиск</span>
                            <div class="search-input">
                                <span id="clear-search">×</span>
                                <input type="text" id="search" placeholder="Поиск сотрудников">
                            </div>
                            <button id="search-button">Найти</button>
                            <button id="add-staff-button">Добавить</button>
                        </div>
                        <table class="staff-table">
                            <thead>
                                <tr>
                                    <th colspan="2">Всего сотрудников: <span id="total-items"></span></th>
                                </tr>
                                <tr>
                                    <th></th>
                                    <th>Ф.И.О.</th>
                                    <th>Серия и номер паспорта</th>
                                    <th>Должность</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>Иванов Иван Иванович</td>
                                    <td>11111111AE</td>
                                    <td>Инженер</td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>Петров Петр Петрович</td>
                                    <td>22222222BE</td>
                                    <td>ИТР</td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>Сидоров Сидор Сидорович</td>
                                    <td>33333333CE</td>
                                    <td>Монтажник</td>
                                </tr>
                                <tr>
                                    <td>4</td>
                                    <td>Кузнецов Николай Николаевич</td>
                                    <td>44444444DE</td>
                                    <td>Монтажник</td>
                                </tr>
                            </tbody>
                        </table>
 
 
<div class="add-employee-form" style="display: none;">
    <div class="form-header"> 
    <h3>Добавление нового сотрудника</h3> 
    <span id="close-employee-form" class="close-icon" style="cursor: pointer;"></span> 
</div>
    <div class="form-group">
        <label for="employee-lastname">Фамилия</label>
        <input type="text" id="employee-lastname" class="input-employee-lastname orange-input wide-input">
    </div>
    <div class="form-group">
        <label for="employee-firstname">Имя</label>
        <input type="text" id="employee-firstname" class="input-employee-firstname orange-input wide-input">
    </div>
    <div class="form-group">
        <label for="employee-middlename">Отчество</label>
        <input type="text" id="employee-middlename" class="input-employee-middlename orange-input wide-input">
    </div>
    <div class="form-group">
        <label>Паспорт</label>
    </div>
    <div class="form-group horizontal">
        <label for="employee-passport-series">Серия и номер</label>
        <input type="text" id="employee-passport-series" class="input-employee-passport-series orange-input">
    </div>
    <div class="form-group horizontal">
        <label for="employee-position">Должность</label>
        <input type="text" id="employee-position" class="input-employee-position orange-input">
    </div>
    <div class="form-group horizontal">
    <label>Документы</label>
    <button class="upload-button">Загрузить</button>
</div>
    <div class="form-group horizontal">
        <label for="employee-access">Пропуск</label>
        <input type="text" id="employee-access" class="input-employee-access orange-input">
    </div>
    <div class="form-group horizontal">
        <label for="employee-rate">Ставка за смену</label>
        <input type="text" id="employee-rate" class="input-employee-rate orange-input">
    </div>
    <div class="error-message" id="employee-error-message" style="display: none; color: red;">Заполните все обязательные поля</div>
    <button id="submit-employee" style="background-color: orange; color: black; padding: 10px 20px; border: none; border-radius: 1px; cursor: pointer; margin: 0 auto; display: block;">Сохранить</button>
</div>
<div id="custom-backdrop" class="custom-backdrop"></div>
<div id="custom-modal" class="custom-modal">
    <div class="custom-header">
        <h4>Предупреждение!</h4>
    </div>
    <div class="custom-body">
        <p>При закрытии данного окна, данные не будут сохранены.</p>
    </div>
    <div class="custom-footer">
        <button id="confirm-close" class="custom-btn">Закрыть</button>
        <button id="cancel-close" class="custom-btn">Отмена</button>
    </div>
</div>
 
                    </div>
 
 
 
                `;
 
// Открытие формы при нажатии на кнопку "Добавить"
document.getElementById('add-staff-button').addEventListener('click', () => {
    document.querySelector('.add-employee-form').style.display = 'block';
});
 
// Закрытие формы при нажатии на "✖"
document.getElementById('close-employee-form').addEventListener('click', handleCloseForm);
 
// Закрытие формы через модальное окно (если есть незаполненные поля)
document.getElementById('confirm-close').addEventListener('click', () => {
    document.querySelector('.add-employee-form').style.display = 'none';
    closeWarningModal();
});
 
// Продолжение работы с формой при нажатии на "Отмена" в модальном окне
document.getElementById('cancel-close').addEventListener('click', closeWarningModal);
 
// Проверка заполненных полей перед закрытием формы
function handleCloseForm() {
    const fields = getEmployeeFields();
    const hasFilledFields = fields.some(field => field.value.trim() !== '');
 
    if (hasFilledFields) {
        openWarningModal(); // Открыть предупреждение, если есть данные
    } else {
        document.querySelector('.add-employee-form').style.display = 'none'; // Закрыть форму
    }
}
 
// Получение полей формы
function getEmployeeFields() {
    return [
        document.getElementById('employee-lastname'),
        document.getElementById('employee-firstname'),
        document.getElementById('employee-middlename'),
        document.getElementById('employee-passport-series'),
        document.getElementById('employee-position'),
        document.getElementById('employee-access'),
        document.getElementById('employee-rate')
    ];
}
 
// Валидация полей сотрудника
function validateFields(fields) {
    let allFilled = true;
    fields.forEach(field => {
        if (field.value.trim() === '') {
            field.style.borderColor = 'red'; // Подсветить незаполненное поле
            allFilled = false;
        } else {
            field.style.borderColor = ''; // Сбросить цвет рамки
        }
    });
    document.getElementById('employee-error-message').style.display = allFilled ? 'none' : 'block';
    return allFilled;
}
 
// Обработчик нажатия на кнопку "Сохранить"
document.getElementById('submit-employee').addEventListener('click', () => {
    const fields = getEmployeeFields();
    const allValid = validateFields(fields);
 
    if (allValid) {
        addEmployeeToTable(fields);
        resetForm(fields);
        showSuccessMessage('Сотрудник успешно добавлен!');
        document.querySelector('.add-employee-form').style.display = 'none';
    }
});
getEmployeeFields().forEach(field => {
    field.addEventListener('keydown', (event) => {
        if (event.key === 'Enter') {
            event.preventDefault(); // Предотвращает стандартное поведение Enter
            document.getElementById('submit-employee').click(); // Триггер кнопки "Сохранить"
        }
    });
});
 
 
 
// Добавление сотрудника в таблицу
function addEmployeeToTable(fields) {
    const fullname = `${fields[0].value} ${fields[1].value} ${fields[2].value}`;
    const passport = fields[3].value;
    const position = fields[4].value;
 
    const newRow = document.createElement('tr');
    newRow.innerHTML = `
        <td>${document.querySelector('.staff-table tbody').getElementsByTagName('tr').length + 1}</td>
        <td>${fullname}</td>
        <td>${passport}</td>
        <td>${position}</td>
    `;
    document.querySelector('.staff-table tbody').appendChild(newRow);
    updateTotalItems();
}
 
// Обновление общего количества сотрудников
function updateTotalItems() {
    const totalItems = document.querySelector('.staff-table tbody').getElementsByTagName('tr').length;
    document.getElementById('total-items').textContent = totalItems;
}
 
 
 
// Показ сообщения об успехе
function showSuccessMessage(message) {
    const successMessage = document.createElement('div');
    successMessage.textContent = message;
    Object.assign(successMessage.style, {
        position: 'fixed',
        top: '50%',
        left: '50%',
        transform: 'translate(-50%, -50%)',
        backgroundColor: 'green',
        color: 'white',
        padding: '10px',
        borderRadius: '5px',
        zIndex: '1000'
    });
    document.body.appendChild(successMessage);
 
    setTimeout(() => document.body.removeChild(successMessage), 3000);
}
 
// Очистка полей формы
function resetForm(fields) {
    fields.forEach(field => {
        field.value = '';
        field.style.borderColor = '';
    });
}
 
// Открытие предупреждающего окна
function openWarningModal() {
    document.getElementById('custom-backdrop').style.display = 'block';
    document.getElementById('custom-modal').style.display = 'block';
}
 
// Закрытие предупреждающего окна
function closeWarningModal() {
    document.getElementById('custom-backdrop').style.display = 'none';
    document.getElementById('custom-modal').style.display = 'none';
}
 
// Инициализация функциональности поиска
setupSearchFunctionality();
 
// Логика поиска сотрудников
setupSearchFunctionality();
 
// Инициализация функциональности поиска
setupSearchFunctionality();
 
function setupSearchFunctionality() {
    const searchInput = document.getElementById('search');
    const clearSearch = document.getElementById('clear-search');
    const searchButton = document.getElementById('search-button');
 
    // Обработчик события для кнопки поиска
    searchButton.addEventListener('click', () => {
        const searchValue = searchInput.value.toLowerCase().trim();
        filterTable(searchValue);
        clearSearch.style.display = searchValue ? 'inline' : 'none'; // Показать крестик, если есть текст
    });
 
    // Обработчик события для крестика
    clearSearch.addEventListener('click', () => {
        searchInput.value = ''; // Очистить поле ввода
        filterTable(''); // Очистить фильтрацию
        clearSearch.style.display = 'none'; // Скрыть крестик
    });
 
    // Обработчик события для ввода текста
    searchInput.addEventListener('input', () => {
        const searchValue = searchInput.value;
        clearSearch.style.display = searchValue ? 'inline' : 'none'; // Показать крестик, если есть текст
    });
 
    // Обновление общего количества элементов
    updateTotalItems();
}
 
// Фильтрация таблицы по значению поиска
function filterTable(searchValue) {
    const rows = document.querySelector('.staff-table tbody').getElementsByTagName('tr');
    let totalItems = 0;
 
    for (let row of rows) {
        const cells = row.getElementsByTagName('td');
        const fullName = cells[1].textContent.toLowerCase();
        const passport = cells[2].textContent.toLowerCase();
        const position = cells[3].textContent.toLowerCase();
 
        if (fullName.includes(searchValue) || passport.includes(searchValue) || position.includes(searchValue)) {
            row.style.display = '';
            totalItems++;
        } else {
            row.style.display = 'none';
        }
    }
    document.getElementById('total-items').textContent = totalItems; // Обновить общее количество элементов
}
 
 
function showSuccessMessage(message) {
    const successMessage = document.createElement('div');
    successMessage.textContent = message;
    Object.assign(successMessage.style, {
        position: 'fixed',
        top: '50%',
        left: '50%',
        transform: 'translate(-50%, -50%)',
        backgroundColor: '#FFA500', // Orange color
        color: 'white',
        padding: '20px',
        borderRadius: '8px',
        fontSize: '18px',
        boxShadow: '0 4px 8px rgba(0, 0, 0, 0.2)',
        zIndex: '1000',
        textAlign: 'center',
        opacity: '0',
        transition: 'opacity 0.5s ease-in-out'
    });
    document.body.appendChild(successMessage);
 
    // Fade in the message
    setTimeout(() => {
        successMessage.style.opacity = '1';
    }, 10); // Timeout allows the transition to trigger
 
    // Fade out and remove after 3 seconds
    setTimeout(() => {
        successMessage.style.opacity = '0';
        setTimeout(() => document.body.removeChild(successMessage), 500); // Remove after fade out
    }, 3000);
}
 
// Очистка полей формы
function resetForm(fields) {
    fields.forEach(field => {
        field.value = '';
        field.style.borderColor = '';
    });
}
 
// Логика поиска сотрудников
function setupSearchFunctionality() {
    const searchInput = document.getElementById('search');
    const clearSearch = document.getElementById('clear-search');
    const searchButton = document.getElementById('search-button');
    const tableBody = document.querySelector('.staff-table tbody');
 
    searchButton.addEventListener('click', () => {
        const searchValue = searchInput.value.toLowerCase().trim();
        filterTable(searchValue);
        clearSearch.style.display = searchValue ? 'inline' : 'none';
    });
 
    clearSearch.addEventListener('click', () => {
        searchInput.value = '';
        filterTable('');
        clearSearch.style.display = 'none';
    });
 
    searchInput.addEventListener('input', () => {
        clearSearch.style.display = searchInput.value ? 'inline' : 'none';
    });
 
    updateTotalItems();
}
 
// Фильтрация таблицы по значению поиска
function filterTable(searchValue) {
    const rows = document.querySelector('.staff-table tbody').getElementsByTagName('tr');
    let totalItems = 0;
 
    for (let row of rows) {
        const cells = row.getElementsByTagName('td');
        const fullName = cells[1].textContent.toLowerCase();
        const passport = cells[2].textContent.toLowerCase();
        const position = cells[3].textContent.toLowerCase();
 
        if (fullName.includes(searchValue) || passport.includes(searchValue) || position.includes(searchValue)) {
            row.style.display = '';
            totalItems++;
        } else {
            row.style.display = 'none';
        }
    }
    document.getElementById('total-items').textContent = totalItems;
}
 
const uploadButton = document.querySelector('.upload-button');
const fileInput = document.createElement('input');
fileInput.type = 'file';
fileInput.multiple = true;
fileInput.accept = 'image/jpeg, image/png';
 
uploadButton.addEventListener('click', () => fileInput.click());
 
fileInput.addEventListener('change', () => {
    const files = Array.from(fileInput.files);
    const maxFiles = 10;
    const maxFileSize = 3 * 1024 * 1024; // 3 MB
 
    if (files.length > maxFiles) {
        alert(`Можно загрузить не более ${maxFiles} файлов`);
        return;
    }
 
    for (let file of files) {
        if (file.size > maxFileSize) {
            alert(`Размер файла ${file.name} превышает 3 MB`);
            return;
        }
    }
 
    openUploadDialog(files);
});
 
// Открытие диалогового окна загрузки
function openUploadDialog(files) {
    const uploadDialog = document.createElement('div');
    Object.assign(uploadDialog.style, {
        position: 'absolute',
        top: '0',
        left: '0',
        width: '100%',
        height: '100%',
        backgroundColor: 'rgba(0, 0, 0, 0.5)',
        zIndex: '1000'
    });
    document.body.appendChild(uploadDialog);
 
    const uploadDialogContent = document.createElement('div');
    Object.assign(uploadDialogContent.style, {
        position: 'absolute',
        top: '50%',
        left: '50%',
        transform: 'translate(-50%, -50%)',
        width: '400px',
        height: '250px', // Увеличили высоту для размещения кнопки внизу
        backgroundColor: 'white',
        padding: '20px',
        borderRadius: '5px',
        boxShadow: '0 0 10px rgba(0, 0, 0, 0.5)'
    });
    uploadDialog.appendChild(uploadDialogContent);
 
    const uploadTitle = document.createElement('h2');
    uploadTitle.textContent = 'Загрузка документов';
    uploadTitle.style.textAlign = 'center';
    uploadDialogContent.appendChild(uploadTitle);
 
const fileList = document.createElement('ul');
Object.assign(fileList.style, {
    marginTop: '15px', // Отступ между заголовком и списком документов
});
 
files.forEach(file => {
    const listItem = document.createElement('li');
    listItem.textContent = file.name;
 
    // Добавляем отступ между документами
    listItem.style.marginBottom = '10px';
 
    fileList.appendChild(listItem);
});
 
uploadDialogContent.appendChild(fileList);
 
    // Создаем контейнер для кнопки
    const closeButtonContainer = document.createElement('div');
    Object.assign(closeButtonContainer.style, {
        position: 'absolute',
        bottom: '20px',
        left: '50%',
        transform: 'translateX(-50%)',
        width: '100%',
        display: 'flex',
        justifyContent: 'center'
    });
 
    const closeButton = document.createElement('button');
    closeButton.textContent = 'Закрыть';
    closeButton.addEventListener('click', () => document.body.removeChild(uploadDialog));
 
    closeButtonContainer.appendChild(closeButton);
    uploadDialogContent.appendChild(closeButtonContainer);
}
 
 
// Инициализация функциональности поиска
setupSearchFunctionality();
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
11.11.2024, 00:45
Ответы с готовыми решениями:

При обновлении страницы сайта клиент остается там же где и был
Проблема такая: я листаю сайт (одностраничный) дошел например до середины сайта, нажимаю обновить страницу и я появляюсь на том же самом...

Как проверить, освободился ли файл, который был открыт для дозаписи?
Видел тему, как проверить, открыт ли файл кем-то еще. У меня файл открыт другой программой, а она может закрыть его через 2 минуты, а...

Как узнать путь файла, который был открыт своей программой
Сразу извиняюсь, если эта тема уже была. У меня есть программа, которая играет (воспроизводит) аудио. Как узнать путь файла, который...

2
413 / 304 / 113
Регистрация: 28.08.2013
Сообщений: 807
11.11.2024, 15:12
Когда пользователь выбирает какой-то раздел, заноси его название/id в localStorage. При загрузке/перезагруке страницы получи это значение из localStorage и активируй его. Если значение равное null (т.е. ещё пусто), тогда активируй дефолтный раздел.
0
Эксперт JS
 Аватар для DrType
6553 / 3624 / 1075
Регистрация: 07.09.2019
Сообщений: 5,877
Записей в блоге: 1
11.11.2024, 18:59
Или как вариант - в урл отражать раздел. Менять URL при выборе раздела, восстанавливать из URL после перезагрузки. Якорем, гет-параметром или даже фрагментом пути.
1
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
11.11.2024, 18:59
Помогаю со студенческими работами здесь

Как получить путь к файлу, который был открыт с помощью моей программы
Как получить путь к файлу, который был открыт с помощью моей программы? Например я открыл картинку с помощью моей программы, и в ней...

Как проверить, был ли открыт рекордсет в АДО, или он еще не открыт?
Народ! Помогите по сабжу

Как в Android сделать чтобы Navigation Drawer при запуске был открыт?
Помогите!

Подгрузка данных из cookie при обновлении страницы/переходе на другие страницы сайта
Приветствую уважаемые разработчики! Прошу Вашей помощи/совета в решении задачи. Собственно, сама задача следующая: Имеется сайт...

Какое свойство задать RowSourse чтобы при открытии формы список сразу был открыт
Здравствуйте! Прошу вашей подсказки. Есть форма с кнопкой,при нажатии на неё открывается другая форма, в которой есть поле со списком. Как...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
3
Ответ Создать тему
Новые блоги и статьи
SDL3 для Web (WebAssembly): Обработчик клика мыши в браузере ПК и касания экрана в браузере на мобильном устройстве
8Observer8 02.02.2026
Содержание блога Для начала пошагово создадим рабочий пример для подготовки к экспериментам в браузере ПК и в браузере мобильного устройства. Потом напишем обработчик клика мыши и обработчик. . .
Философия технологии
iceja 01.02.2026
На мой взгляд у человека в технических проектах остается роль генерального директора. Все остальное нейронки делают уже лучше человека. Они не могут нести предпринимательские риски, не могут. . .
SDL3 для Web (WebAssembly): Вывод текста со шрифтом TTF с помощью SDL3_ttf
8Observer8 01.02.2026
Содержание блога В этой пошаговой инструкции создадим с нуля веб-приложение, которое выводит текст в окне браузера. Запустим на Android на локальном сервере. Загрузим Release на бесплатный. . .
SDL3 для Web (WebAssembly): Сборка C/C++ проекта из консоли
8Observer8 30.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
SDL3 для Web (WebAssembly): Установка Emscripten SDK (emsdk) и CMake для сборки C и C++ приложений в Wasm
8Observer8 30.01.2026
Содержание блога Для того чтобы скачать Emscripten SDK (emsdk) необходимо сначало скачать и уставить Git: Install for Windows. Следуйте стандартной процедуре установки Git через установщик. . . .
SDL3 для Android: Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 29.01.2026
Содержание блога Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами. Версия v3 была полностью переписана на Си, в. . .
Инструменты COM: Сохранение данный из VARIANT в файл и загрузка из файла в VARIANT
bedvit 28.01.2026
Сохранение базовых типов COM и массивов (одномерных или двухмерных) любой вложенности (деревья) в файл, с возможностью выбора алгоритмов сжатия и шифрования. Часть библиотеки BedvitCOM Использованы. . .
SDL3 для Android: Загрузка PNG с альфа-каналом с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru