Изменения документа Опыт
Редактировал(а) Denis Pozdnyakov 2025/03/04 00:41
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -38,6 +38,32 @@ 38 38 (% class="box" %) 39 39 ((( 40 40 [[image:Ludus Latrunculorum.jpg||style="width: 100%"]] 41 + 42 + function openFullscreenImage(src) { 43 + var img = document.createElement("img"); 44 + img.src = src; 45 + img.style.position = "fixed"; 46 + img.style.top = "0"; 47 + img.style.left = "0"; 48 + img.style.width = "100%"; 49 + img.style.height = "100%"; 50 + img.style.zIndex = "1000"; 51 + img.style.backgroundColor = "rgba(0,0,0,0.8)"; 52 + img.onclick = function() { 53 + document.body.removeChild(img); 54 + }; 55 + document.body.appendChild(img); 56 + } 57 + 58 + document.querySelectorAll('.fullscreen-image').forEach(function(img) { 59 + img.style.cursor = 'pointer'; 60 + img.addEventListener('click', function() { 61 + openFullscreenImage(img.src); 62 + }); 63 + }); 64 + 65 + 66 + 41 41 |Настольная игра «Латрункули», обнаруженная в Римской Британии 42 42 ))) 43 43