64 Commits

Author SHA1 Message Date
4cf18c4895 sorting done 2026-02-27 11:00:27 +10:00
c3996ec6c6 filters done 2026-02-26 22:56:12 +10:00
4f1c66e838 moving all labs to old dir 2026-02-26 21:55:48 +10:00
76555d27a4 Faaaah (copy to edit) 2026-02-26 20:12:56 +10:00
9a219093a0 moved sem 1 labs to old folder 2026-02-26 20:12:26 +10:00
3dd2a6f734 Merge branch 'lectures-walkthrough' 2026-01-09 19:39:18 +10:00
54e4e9c2a1 lectures fix 2026-01-09 19:38:48 +10:00
5c751400cb longer lectures 2026-01-09 19:38:48 +10:00
051052a75f lectures done 2026-01-09 19:38:48 +10:00
6bbcec3411 duplicated solutions in loops to match themes 2026-01-09 19:38:48 +10:00
b2bc0651ec js lec 1 added 2026-01-09 19:38:48 +10:00
b0d3fa1ecf lec 3 done 2026-01-09 19:38:48 +10:00
3f748ba05b finished up to bootstrap 2026-01-09 19:38:48 +10:00
9faac87716 added readme for lectures lec2 done 2026-01-09 19:38:48 +10:00
f82e4a7bb3 lec 1 added 2026-01-09 19:38:48 +10:00
011e19e531 lab7 added 2026-01-09 19:36:55 +10:00
df21df0fff lectures fix 2026-01-09 19:35:08 +10:00
d10f15a34a longer lectures 2026-01-03 22:59:02 +10:00
f982d05a54 lectures done 2026-01-03 15:32:33 +10:00
b6776f93fd duplicated solutions in loops to match themes 2026-01-03 13:44:33 +10:00
e6806a2366 js lec 1 added 2026-01-03 13:40:15 +10:00
cca7d57569 lec 3 done 2026-01-03 01:21:46 +10:00
1c50d7ce0e finished up to bootstrap 2026-01-01 23:38:59 +10:00
b00d7fb34d added readme for lectures lec2 done 2026-01-01 20:05:31 +10:00
7818949863 lec 1 added 2026-01-01 18:08:32 +10:00
5d7ecb1f13 math fixed 2026-01-01 15:57:09 +10:00
9fef1e5b0d finishing touches 2026-01-01 15:24:08 +10:00
c09b7b5769 images fixed 2026-01-01 15:05:20 +10:00
cf80fd251e small refactor 2026-01-01 14:37:53 +10:00
46e3696d85 reset bug fixed 2026-01-01 14:17:34 +10:00
9e5950490a values checking added 2026-01-01 14:04:53 +10:00
26bc727758 tooltip for output fields added 2026-01-01 13:52:51 +10:00
04db81b55a math fixed 2025-12-31 22:13:22 +10:00
4ab5967abe basic structure created 2025-12-31 20:42:21 +10:00
63af3ed7b4 prettify 2025-12-29 14:06:51 +10:00
b2c005e22c transpose + reverse + index fix in lab6 2025-12-29 14:05:04 +10:00
4cf2f56749 jab6 bad rotation 2025-12-29 13:58:34 +10:00
b0c3660f16 moved files (again?) 2025-12-29 12:46:23 +10:00
b47e479b95 moved files 2025-12-29 12:46:22 +10:00
eb509fb846 Merge branch 'hw3' 2025-12-29 12:42:10 +10:00
9870335263 Merge branch 'lab6' 2025-12-29 12:25:45 +10:00
7cc781c0b9 gitignore added 2025-12-29 00:27:39 +10:00
8eaf1ed628 Merge branch 'hw3' 2025-12-29 00:18:51 +10:00
7b1c5b0a50 lab 6 done 2025-12-29 00:12:40 +10:00
4316ac1636 finished table controls 2025-12-29 00:12:40 +10:00
a4f511cb45 table added 2025-12-29 00:12:39 +10:00
dd9002a61b added table controls 2025-12-29 00:12:38 +10:00
e142436ed3 details BEM 2025-12-29 00:12:38 +10:00
38e70189b8 details page in progress 2025-12-29 00:12:38 +10:00
39d023d50b stylus mixins 2025-12-29 00:12:37 +10:00
05b624120d BEM naming 2025-12-29 00:12:37 +10:00
7a83c54165 main page working 2025-12-29 00:12:36 +10:00
c495c26320 added stylus template 2025-12-29 00:12:36 +10:00
3982a97dce updating styles 2025-12-29 00:12:36 +10:00
8f89dbe429 adding pages 2025-12-29 00:12:35 +10:00
98b74ae77d aboba mv node 2025-12-29 00:12:34 +10:00
bdc5a9d55c starting hw 2025-12-29 00:11:33 +10:00
8900cf3228 gitignore fix 2025-12-29 00:09:07 +10:00
5f692a4708 gitignore added 2025-12-11 18:22:29 +10:00
b98abb94cc aboba commit 2025-12-10 12:31:34 +10:00
2f44691a98 added lecture 3 2025-12-10 10:21:18 +10:00
36fb1653d3 lab5 finished 2025-11-28 12:01:09 +10:00
0bdaa800f6 nfww that was a fake 2025-11-28 11:05:07 +10:00
ebe6566b87 updated styling for lab 2025-11-28 10:52:14 +10:00
179 changed files with 9559 additions and 25 deletions

5
.gitignore vendored
View File

@@ -1,2 +1,3 @@
node_modules **node_modules
to_reform **to_reform
.vscode

View File

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 198 KiB

View File

Before

Width:  |  Height:  |  Size: 159 KiB

After

Width:  |  Height:  |  Size: 159 KiB

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB

View File

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 229 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

Before

Width:  |  Height:  |  Size: 347 KiB

After

Width:  |  Height:  |  Size: 347 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

View File

Before

Width:  |  Height:  |  Size: 5.2 MiB

After

Width:  |  Height:  |  Size: 5.2 MiB

View File

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View File

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View File

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

14
labs/lab1/CSS/style.css Normal file
View File

@@ -0,0 +1,14 @@
th{
padding: 5px;
background-color: gray;
}
td{
padding: 5px;
background-color: lightgray;
}
th, td ,table{
border: solid black thin;
border-collapse: collapse;
}

View File

@@ -0,0 +1,514 @@
buildings= [
{
"Название": "Бурдж-Халифа",
"Тип": "Небоскрёб",
"Страна": "ОАЭ",
"Город": "Дубай",
"Год": 2010,
"Высота": 828
},
{
"Название": "Варшавская радиомачта",
"Тип": "Антенная мачта",
"Страна": "Польша",
"Город": "Константинов",
"Год": 1974,
"Высота": 646.38
},
{
"Название": "Tokyo Skytree",
"Тип": "Бетонная башня",
"Страна": "Япония",
"Город": "Токио",
"Год": 2012,
"Высота": 634
},
{
"Название": "Шанхайская башня",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шанхай",
"Год": 2013,
"Высота": 632
},
{
"Название": "Телерадиомачта KVLY-TV",
"Тип": "Радиомачта",
"Страна": "США",
"Город": "Бланчард",
"Год": 1963,
"Высота": 629
},
{
"Название": "Телебашня Гуанчжоу",
"Тип": "Гиперболоидная башня",
"Страна": "КНР",
"Город": "Гуанчжоу",
"Год": 2009,
"Высота": 600
},
{
"Название": "Международный финансовый центр Пинань",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шэньчжэнь",
"Год": 2017,
"Высота": 600
},
{
"Название": "Lotte World Tower",
"Тип": "Небоскрёб",
"Страна": "Южная Корея",
"Город": "Сеул",
"Год": 2017,
"Высота": 555
},
{
"Название": "Си-Эн Тауэр",
"Тип": "Бетонная башня",
"Страна": "Канада",
"Город": "Торонто",
"Год": 1976,
"Высота": 553
},
{
"Название": "Останкинская башня",
"Тип": "Бетонная башня",
"Страна": "Россия",
"Город": "Москва",
"Год": 1967,
"Высота": 540.1
},
{
"Название": "Уиллис-тауэр",
"Тип": "Небоскрёб",
"Страна": "США",
"Город": "Чикаго",
"Год": 1974,
"Высота": 527.3
},
{
"Название": "Тайбэй 101",
"Тип": "Небоскрёб",
"Страна": "Тайвань",
"Город": "Тайбэй",
"Год": 2004,
"Высота": 509.2
},
{
"Название": "Шанхайский всемирный финансовый центр",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шанхай",
"Год": 2008,
"Высота": 492
},
{
"Название": "Международный коммерческий центр",
"Тип": "Небоскрёб",
"Страна": "Гонконг",
"Город": "Гонконг",
"Год": 2009,
"Высота": 484
},
{
"Название": "Восточная жемчужина",
"Тип": "Бетонная башня",
"Страна": "КНР",
"Город": "Шанхай",
"Год": 1994,
"Высота": 467.9
},
{
"Название": "Лахта-центр",
"Тип": "Небоскрёб",
"Страна": "Россия",
"Город": "Санкт-Петербург",
"Год": 2018,
"Высота": 462
},
{
"Название": "Landmark 81",
"Тип": "Небоскрёб",
"Страна": "Вьетнам",
"Город": "Хошимин",
"Год": 2018,
"Высота": 461.2
},
{
"Название": "875 Норт-Мичиган-авеню",
"Тип": "Небоскрёб",
"Страна": "США",
"Город": "Чикаго",
"Год": 1969,
"Высота": 457.2
},
{
"Название": "Петронас. башня 1 и 2",
"Тип": "Небоскрёб",
"Страна": "Малайзия",
"Город": "Куала-Лумпур",
"Год": 1998,
"Высота": 452
},
{
"Название": "Финансовый центр Наньцзин-Гринлэнд",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Нанкин",
"Год": 2009,
"Высота": 450
},
{
"Название": "Эмпайр-стейт-билдинг",
"Тип": "Небоскрёб",
"Страна": "США",
"Город": "Нью-Йорк",
"Год": 1931,
"Высота": 448.7
},
{
"Название": "Международный финансовый центр. башня зап.",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Гуанчжоу",
"Год": 2010,
"Высота": 437.5
},
{
"Название": "Kingkey 100",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шэньчжэнь",
"Год": 2011,
"Высота": 439.8
},
{
"Название": "Бордже Милад",
"Тип": "Бетонная башня",
"Страна": "Иран",
"Город": "Тегеран",
"Год": 2003,
"Высота": 435
},
{
"Название": "Парк-авеню. 432",
"Тип": "Небоскрёб",
"Страна": "США",
"Город": "Нью-Йорк",
"Год": 2015,
"Высота": 425.5
},
{
"Название": "Международная гостиница и башня Трампа",
"Тип": "Небоскрёб",
"Страна": "США",
"Город": "Чикаго",
"Год": 2009,
"Высота": 423.4
},
{
"Название": "Менара Куала-Лумпур",
"Тип": "Бетонная башня",
"Страна": "Малайзия",
"Город": "Куала-Лумпур",
"Год": 1995,
"Высота": 421
},
{
"Название": "Цзинь Мао",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шанхай",
"Год": 1999,
"Высота": 420.5
},
{
"Название": "Экибастузская ГРЭС-2",
"Тип": "Дымовая труба",
"Страна": "Казахстан",
"Город": "Экибастуз",
"Год": 1987,
"Высота": 419.7
},
{
"Название": "Международный финансовый центр",
"Тип": "Небоскрёб",
"Страна": "Гонконг",
"Город": "Гонконг",
"Год": 2003,
"Высота": 415.8
},
{
"Название": "Тяньцзиньская телебашня",
"Тип": "Бетонная башня",
"Страна": "КНР",
"Город": "Тяньцзинь",
"Год": 1991,
"Высота": 415.2
},
{
"Название": "Башня Аль-Хамра",
"Тип": "Небоскрёб",
"Страна": "Кувейт",
"Город": "Кувейт",
"Год": 2010,
"Высота": 412
},
{
"Название": "Пекинская телебашня",
"Тип": "Бетонная башня",
"Страна": "КНР",
"Город": "Пекин",
"Год": 1992,
"Высота": 405
},
{
"Название": "Башня CITIC",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Гуанчжоу",
"Год": 1997,
"Высота": 391.1
},
{
"Название": "Киевская телебашня",
"Тип": "Решётчатая мачта",
"Страна": "Украина",
"Город": "Киев",
"Год": 1973,
"Высота": 385
},
{
"Название": "Башня Сёньхин",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шэньчжэнь",
"Год": 1996,
"Высота": 384
},
{
"Название": "Абу-Даби Плаза",
"Тип": "Небоскрёб",
"Страна": "Казахстан",
"Город": "Астана",
"Год": 2015,
"Высота": 382
},
{
"Название": "Бурдж-Мохаммед-бин-Рашид",
"Тип": "Небоскрёб",
"Страна": "ОАЭ",
"Город": "Абу-Даби",
"Год": 2014,
"Высота": 381
},
{
"Название": "Inco Superstack",
"Тип": "Дымовая труба",
"Страна": "Канада",
"Город": "Copper Cliff",
"Год": 1971,
"Высота": 380
},
{
"Название": "Тантекс-Скай-Тауэр",
"Тип": "Небоскрёб",
"Страна": "Тайвань",
"Город": "Гаосюн",
"Год": 1997,
"Высота": 378
},
{
"Название": "JW Marriott Marquis Dubai. 1 и 2",
"Тип": "Небоскрёб",
"Страна": "ОАЭ",
"Город": "Дубай",
"Год": 2010,
"Высота": 376
},
{
"Название": "Ташкентская телебашня",
"Тип": "Башня",
"Страна": "Узбекистан",
"Город": "Ташкент",
"Год": 1985,
"Высота": 374.9
},
{
"Название": "Башня Федерация «Восток»",
"Тип": "Небоскрёб",
"Страна": "Россия",
"Город": "Москва",
"Год": 2016,
"Высота": 374
},
{
"Название": "Сентрал-плаза",
"Тип": "Небоскрёб",
"Страна": "Гонконг",
"Город": "Гонконг",
"Год": 1992,
"Высота": 374
},
{
"Название": "Башня Освобождения",
"Тип": "Бетонная башня",
"Страна": "Кувейт",
"Город": "Кувейт",
"Год": 1996,
"Высота": 372
},
{
"Название": "Телебашня «Коктобе»",
"Тип": "Башня",
"Страна": "Казахстан",
"Город": "Алматы",
"Год": 1983,
"Высота": 371.5
},
{
"Название": "Дымовая труба электростанции",
"Тип": "Дымовая труба",
"Страна": "США",
"Город": "Homer City",
"Год": 1977,
"Высота": 371
},
{
"Название": "Дымовая труба Берёзовской ГРЭС",
"Тип": "Дымовая труба",
"Страна": "Россия",
"Город": "Шарыпово",
"Год": 1985,
"Высота": 370
},
{
"Название": "Рижская телебашня",
"Тип": "Бетонная башня",
"Страна": "Латвия",
"Город": "Рига",
"Год": 1987,
"Высота": 368.5
},
{
"Название": "Берлинская телебашня",
"Тип": "Бетонная башня",
"Страна": "Германия",
"Город": "Берлин",
"Год": 1969,
"Высота": 368
},
{
"Название": "Дымовая труба электростанции.",
"Тип": "Дымовая труба",
"Страна": "США",
"Город": "Маундсвилл",
"Год": 1968,
"Высота": 367.6
},
{
"Название": "Башня Банка Китая",
"Тип": "Небоскрёб",
"Страна": "Гонконг",
"Город": "Гонконг",
"Год": 1990,
"Высота": 367.4
},
{
"Название": "Башня Банка Америки",
"Тип": "Небоскрёб",
"Страна": "США",
"Город": "Нью-Йорк",
"Год": 2008,
"Высота": 366
},
{
"Название": "Башня Алмас",
"Тип": "Небоскрёб",
"Страна": "ОАЭ",
"Город": "Дубай",
"Год": 2008,
"Высота": 363
},
{
"Название": "Дымовая труба электростанции в Трбовле",
"Тип": "Дымовая труба",
"Страна": "Словения",
"Город": "Трбовле",
"Год": 1976,
"Высота": 360
},
{
"Название": "Endesa Termic ",
"Тип": "Дымовая труба",
"Страна": "Испания",
"Город": "Ферроль",
"Год": 1974,
"Высота": 356
},
{
"Название": "SEG Plaza",
"Тип": "Небоскрёб",
"Страна": "КНР",
"Город": "Шэньчжэнь",
"Год": 2000,
"Высота": 355.8
},
{
"Название": "First Canadian Place",
"Тип": "Небоскрёб",
"Страна": "Канада",
"Город": "Торонто",
"Год": 1976,
"Высота": 355
},
{
"Название": "Эмиратская офисная башня",
"Тип": "Небоскрёб",
"Страна": "ОАЭ",
"Город": "Дубай",
"Год": 2000,
"Высота": 354.6
},
{
"Название": "ОКО Южная башня",
"Тип": "Небоскрёб",
"Страна": "Россия",
"Город": "Москва",
"Год": 2015,
"Высота": 354
},
{
"Название": "Виннцкая телемачта",
"Тип": "Радиомачта",
"Страна": "Украина",
"Город": "Винница",
"Год": 1961,
"Высота": 354
},
{
"Название": "Медеплавильный завод",
"Тип": "Дымовая труба",
"Страна": "Румыния",
"Город": "Бая-Маре",
"Год": 1995,
"Высота": 351.5
},
{
"Название": "Стратосфера Лас-Вегас",
"Тип": "Бетонная башня",
"Страна": "США",
"Город": "Лас-Вегас",
"Год": 1996,
"Высота": 350.2
},
{
"Название": "Дымовая труба Сырдарьинской электростанции",
"Тип": "Дымовая труба",
"Страна": "Узбекистан",
"Город": "Сырдарья",
"Год": 1980,
"Высота": 350
}
]

View File

@@ -0,0 +1,91 @@
const correspond = {
"Название": "structure",
"Тип": "category",
"Страна": "country",
"Город": "city",
"Год": ["yearFrom", "yearTo"],
"Высота": ["heightFrom", "heightTo"]
}
/* Структура возвращаемого ассоциативного массива:
{
input_id: input_value,
...
}
*/
const dataFilter = (dataForm) => {
let dictFilter = {};
// перебираем все элементы формы с фильтрами
for (const item of dataForm.elements) {
// получаем значение элемента
let valInput = item.value;
// если поле типа text - приводим его значение к нижнему регистру
if (item.type === "text") {
valInput = valInput.toLowerCase();
}
if (item.type === "number") {
if (valInput === "") {
if (item.id.includes("From")) {
valInput = -Infinity;
}
else {
valInput = Infinity;
}
}
else {
valInput = Number(valInput);
}
}
// формируем очередной элемент ассоциативного массива
dictFilter[item.id] = valInput;
}
return dictFilter;
}
// фильтрация таблицы
const filterTable = (data, idTable, dataForm) => {
// получаем данные из полей формы
const datafilter = dataFilter(dataForm);
// выбираем данные соответствующие фильтру и формируем таблицу из них
let tableFilter = data.filter(item => {
/* в этой переменной будут "накапливаться" результаты сравнения данных
с параметрами фильтра */
let result = true;
// строка соответствует фильтру, если сравнение всех значения из input
// со значением ячейки очередной строки - истина
Object.entries(item).map(([key, val]) => {
// текстовые поля проверяем на вхождение
if (typeof val == 'string') {
result &&= val.toLowerCase().includes(datafilter[correspond[key]])
}
// САМОСТОЯТЕЛЬНО проверить числовые поля на принадлежность интервалу
if (typeof val == 'number') {
result &&= datafilter[correspond[key][0]] <= Number(val) && datafilter[correspond[key][1]] >= Number(val)
}
});
return result;
});
// САМОСТОЯТЕЛЬНО вызвать функцию, которая удаляет все строки таблицы с id=idTable
clearTable(idTable);
// показать на странице таблицу с отфильтрованными строками
createTable(tableFilter, idTable);
}
const clearFilters = (form) => {
form.querySelectorAll(`& input[type="text"],& input[type="number"]`).forEach((elem) => elem.value = null)
}

View File

@@ -0,0 +1,106 @@
document.addEventListener("DOMContentLoaded", function () {
doInit()
})
function doInit() {
createTable(buildings, 'list');
const clearFiltersButton = document.getElementById("clearFiltersButton");
clearFiltersButton.addEventListener("click", (event) => {
clearFilters(filter);
filterTable(buildings,'list',filter)
resetSort(sort);
})
const applyFiltersButton = document.getElementById("applyFiltersButton");
applyFiltersButton.addEventListener("click", (event) => {
filterTable(buildings,'list',filter)
resetSort(sort);
})
setSortSelects(buildings[0], sort)
sort.fieldsFirst.addEventListener("change",()=>{
changeNextSelect(sort.fieldsFirst,sort.fieldsSecond.id)
})
sort.doSortButton.addEventListener("click", ()=>{if (!sortTable('list',sort)){
clearTable('list');
createTable(buildings, 'list');
}});
sort.resetSortButton.addEventListener("click", ()=>{resetSort(sort);
clearTable('list');
createTable(buildings, 'list');
});
}
// формирование полей элемента списка с заданным текстом и значением
const createOption = (str, val) => {
let item = document.createElement('option');
item.text = str;
item.value = val;
return item;
}
// формирование поля со списком
// параметры массив со значениями элементов списка и элемент select
const setSortSelect = (arr, sortSelect) => {
// создаем OPTION Нет и добавляем ее в SELECT
sortSelect.append(createOption('Нет', 0));
// перебираем массив со значениями опций
arr.forEach((item, index) => {
// создаем OPTION из очередного ключа и добавляем в SELECT
// значение атрибута VALUE увеличиваем на 1, так как значение 0 имеет опция Нет
sortSelect.append(createOption(item, index + 1));
});
}
// формируем поля со списком для многоуровневой сортировки
const setSortSelects = (data, dataForm) => {
// выделяем ключи словаря в массив
const head = Object.keys(data);
// находим все SELECT в форме
const allSelect = dataForm.getElementsByTagName('select');
for(const item of dataForm.elements){
// формируем очередной SELECT
setSortSelect(head, item);
// САМОСТОЯТЕЛЬНО все SELECT, кроме первого, сделать неизменяемым
}
let skipped = false
for(const elem of allSelect){
if(!skipped){
skipped = true;
continue;
}
elem.disabled = true;
}
}
const changeNextSelect = (curSelect, nextSelectId) => {
let nextSelect = document.getElementById(nextSelectId);
nextSelect.disabled = false;
// в следующем SELECT выводим те же option, что и в текущем
nextSelect.innerHTML = curSelect.innerHTML;
// удаляем в следующем SELECT уже выбранную в текущем опцию
// если это не первая опция - отсутствие сортировки
if (curSelect.value != 0) {
nextSelect.remove(curSelect.value);
} else {
nextSelect.disabled = true;
}
}
const resetSort = (form)=>{
form.querySelectorAll(`& select`).forEach((curSelect,index) => {if(index!=0){curSelect.disabled = true} curSelect.value = 0})
}

View File

@@ -0,0 +1,87 @@
/*формируем массив для сортировки по двум уровням вида
[
{column: номер столбца, по которому осуществляется сортировка,
direction: порядок сортировки (true по убыванию, false по возрастанию)
},
...
]
*/
const createSortArr = (data) => {
let sortArr = [];
const sortSelects = data.getElementsByTagName('select');
for (const item of sortSelects) {
// получаем номер выбранной опции
const keySort = item.value;
// в случае, если выбрана опция Нет, заканчиваем формировать массив
if (keySort == 0) {
break;
}
// получаем порядок сортировки очередного уровня
// имя флажка сформировано как имя поля SELECT и слова Desc
const desc = document.getElementById(item.id + 'Desc').checked;
// очередной элемент массива - по какому столбцу и в каком порядке сортировать
sortArr.push(
{
column: keySort - 1,
direction: desc
}
);
}
return sortArr;
};
const numberColumns = [4, 5]
const sortTable = (idTable, formData) => {
// формируем управляющий массив для сортировки
const sortArr = createSortArr(formData);
// сортировать таблицу не нужно, во всех полях выбрана опция Нет
if (sortArr.length === 0) {
clearTable(idTable)
return false;
}
//находим нужную таблицу
let table = document.getElementById(idTable);
// преобразуем строки таблицы в массив
let rowData = Array.from(table.rows);
// удаляем элемент с заголовками таблицы
const headerRow = rowData.shift();
//сортируем данные по всем уровням сортировки
rowData.sort((first, second) => {
for (let { column, direction } of sortArr) {
const firstCell = first.cells[column].innerHTML;
const secondCell = second.cells[column].innerHTML;
// используем localeCompare для корректного сравнения
let comparison = null;
if (numberColumns.includes(column)) {
comparison = Number(firstCell) - Number(secondCell);
}
else {
comparison = firstCell.localeCompare(secondCell);
}
// учитываем направление сортировки
if (comparison !== 0) {
return (direction ? -comparison : comparison);
}
}
return 0;
});
clearTable(idTable)
//выводим отсортированную таблицу на страницу
let tbody = document.createElement('tbody');
rowData.forEach(item => {
tbody.append(item);
});
table.append(tbody);
return true;
}

View File

@@ -0,0 +1,50 @@
const createTable = (data, idTable) => {
const table = document.getElementById(idTable);
if (data.length == 0) {
return;
}
const header = Object.keys(data[0]);
/* создание шапки таблицы */
if (!table.firstElementChild) {
const headerRow = createHeaderRow(header);
table.append(headerRow);
}
/* создание тела таблицы */
const bodyRows = createBodyRows(data);
table.append(bodyRows);
};
const clearTable = (idTable) => {
const table = document.getElementById(idTable);
if (table.children.length > 1) {
table.removeChild(table.children[1]);
}
}
const createHeaderRow = (headers) => {
const tr = document.createElement('tr');
headers.forEach(header => {
const th = document.createElement('th');
th.innerHTML = header;
tr.append(th);
});
const thead = document.createElement('thead')
thead.appendChild(tr)
return thead;
};
const createBodyRows = (rows) => {
const body = document.createElement('tbody');
rows.forEach(row => {
const rowElement = document.createElement('tr');
for (let key in row) {
const td = document.createElement('td');
td.innerHTML = row[key];
rowElement.appendChild(td);
}
body.appendChild(rowElement);
})
return body;
}

76
labs/lab1/index.html Normal file
View File

@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Фильтры и сортировка</title>
<link rel="stylesheet" href="CSS/style.css">
<script src="JavaScript/data.js"></script>
<script src="JavaScript/main.js"></script>
<script src="JavaScript/table.js"></script>
<script src="JavaScript/filter.js"></script>
<script src="JavaScript/sort.js"></script>
</head>
<body>
<div>
<h3>Фильтр</h3>
<form id="filter" name="filter">
<p>
<label for="structure">Название:</label>
<input type="text" id="structure">
</p>
<p>
<label for="category">Тип:</label>
<input type="text" id="category">
</p>
<p>
<label for="country">Страна:</label>
<input type="text" id="country">
</p>
<p>
<label for="city">Город:</label>
<input type="text" id="city">
</p>
<p>
<label for="yearFrom">Год: </label>
от <input type="number" id="yearFrom">
до <input type="number" id="yearTo">
</p>
<p>
<label for="heightFrom">Высота:</label>
от <input type="number" id="heightFrom">
до <input type="number" id="heightTo">
</p>
<input id="applyFiltersButton" type="button" value="Найти">
<input id="clearFiltersButton" type="button" value="Очистить фильтры">
</form>
</div>
<div>
<h3>Сортировка</h3>
<form id="sort">
<p> Сортировать по</p>
<p>
<select id="fieldsFirst">
</select>
по убыванию? <input type="checkbox" id="fieldsFirstDesc">
</p>
<p>
<select id="fieldsSecond">
</select>
по убыванию? <input type="checkbox" id="fieldsSecondDesc">
</p>
<input type="button" value="Сортировать" id="doSortButton">
<input type="button" value="Сбросить сортировку" id="resetSortButton">
</form>
<br>
</div>
<table id="list">
</table>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -1,2 +0,0 @@
h2= 'Hello World!'
img(src= require("../images/img1.jpg"))

View File

@@ -1,17 +0,0 @@
function updateDict(dict, update) {
let key, value = update.entries()[0];
dict[key] = value + (key in dict) ? dict[key] : 0;
}
aboba={"asd":123}
upd={"asd":123}
upd1={"asd":123}
updateDict(aboba,upd1)
console.log(aboba)
updateDict(aboba,upd1)
console.log(aboba)

112
old/hw/hw6/hw6.js Normal file
View File

@@ -0,0 +1,112 @@
let templates = [
[
"X--X----",
"-XXX-X--",
"----X---",
"----X---",
"------XX",
"----XX--",
"X-------",
"-XX--X--"
],
[
"---XX---",
"----X-X-",
"---XX---",
"---X----",
"-X------",
"X----X-X",
"--X--X--",
"-X----XX"
],
[
"-X-X----",
"---X-X--",
"X-XX--X-",
"--X-X---",
"------X",
"--------",
"X-----X-",
"-X-X---X"
],
[
"-XX-X---",
"-----X--",
"----X---",
"-----X-X",
"-X-X--X-",
"-XX----X",
"-X------",
"XX------"
], [
"----XX-X",
"X-------",
"--------",
"-----XX-",
"---X-X--",
"-X---XX-",
"-X-X----",
"----XXX-"
], [
"XX------",
"-----X--",
"-------X",
"-X-X----",
"X-X----X",
"-X-X-X-X",
"----X-X-",
"-X------"
],
];
const squareSize = templates[0].length;
//convert to arrays for mutability
let temp = []
for (let n = 0; n < templates.length; n++) {
temp.push([])
for (let i = 0; i < squareSize; i++) {
temp[n].push([]);
for (let j = 0; j < squareSize; j++) {
temp[n][i].push(templates[n][i][j] == "X" ? 1 : 0);
}
}
}
templates = temp;
const encodedMsg = "Р_НАЙА_СЛЗДЕОСЖСТОИКНОЛЬЛЬТКУЮО__КЗАЕВАОКАЧОЖЗ_УЧАСМОДУ_ТЮЖЕ";
function rotateTemplate(template) {
for (let i = 0; i < squareSize; i++) {
for (let j = 0; j < i; j++) {
let temp = template[i][j];
template[i][j] = template[j][i];
template[j][i] = temp;
}
}
for (let i = 0; i < squareSize; i++) {
for (let j = 0; j < squareSize / 2; j++) {
let temp = template[i][j];
template[i][j] = template[i][(squareSize - 1) - j];
template[i][(squareSize - 1) - j] = temp;
}
}
}
for (let n = 0; n < templates.length; n++) {
let out = ""
for (let rot = 0; rot < 4; rot++) {
for (let i = 0; i < squareSize; i++) {
for (let j = 0; j < squareSize; j++) {
if (templates[n][i][j]) {
out += encodedMsg[i * squareSize + j];
}
}
}
rotateTemplate(templates[n]);
}
console.log(out);
console.log("=======");
}

BIN
old/hw/hw7/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

108
old/hw/hw7/hw7.css Normal file
View File

@@ -0,0 +1,108 @@
.desctription-heading{
font-size: medium;
text-align: center;
}
.main-container {
display: flex;
gap: 20px;
align-items: flex-start;
}
.scheme-image{
flex: 1;
max-width: 400px;
height: auto;
object-fit: contain;
}
.controls-container {
display: flex;
flex-direction: column;
gap: 20px;
flex: 1;
min-width: 300px;
max-width: 400px;
}
.inputs{
min-width: 300px;
}
.outputs{
min-width: 300px;
}
.radio-label{
display: inline-block;
}
p{
line-height: 0;
}
.max-w{
width: 100%;
}
.bad-input-tooltip {
display: block;
background: #ffffff;
color: #721c24;
border: 1px solid #8f0c19;
padding: 4px 8px;
max-width: 220px;
white-space: normal;
}
.bad-input-highlight {
outline: 2px solid #990917;
}
.hidden{
display: none;
}
body{
display: flex;
flex-direction: column;
gap: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin: 16px 0;
}
th, td {
border: 1px solid #ccc;
text-align: left;
}
th {
background-color: #f5f5f5;
font-weight: bold;
}
tr:nth-child(even) {
background-color: #fafafa;
}
@media (max-width: 800px) {
.main-container {
flex-direction: column;
align-items: center;
}
.scheme-image {
max-width: 100%;
width: 100%;
}
.controls-container {
width: 100%;
max-width: none;
}
.inputs, .outputs {
min-width: unset;
width: 100%;
}
}

71
old/hw/hw7/hw7.html Normal file
View File

@@ -0,0 +1,71 @@
<html>
<head>
<title>калькулятор равнобедренного треугольника</title>
<link rel="stylesheet" href="./hw7.css">
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="https://unpkg.com/xp.css/dist/98.css"
>
</head>
<body>
<h3 class="desctription-heading">калькулятор равнобедренного треугольника</h3>
<div class="main-container">
<div class="image-container">
<img src="./imgs/type1.png" class="scheme-image" id="schemeImageA">
<img src="./imgs/type2.png" class="scheme-image hidden" id="schemeImageB">
</div>
<div class="controls-container">
<div class="inputs" id="inputsForm">
<p>Выберете варинат входных данных:</p>
<input type="radio" name="input-type" id="radioButtonA" checked>
<label class="radio-label" for="radioButtonA">
<span>боковая сторона и угол при основании</span>
</label><br>
<input type="radio" name="input-type" id="radioButtonB">
<label class="radio-label" for="radioButtonB">
<span>основание и прилежащий к нему угол</span>
</label>
<form>
<fieldset id="inputTypeFieldsetA">
<legend>входные данные</legend>
<label for="equalSideLength">Длина боковой стороны B:<span class="bad-input-tooltip hidden" id="equalSideLengthErr"></span></label><br>
<input class="max-w" type="number" min="0" id="equalSideLength">
<br>
<label for="baseAngle">Угол при основании α (в градусах):<span class="bad-input-tooltip hidden" id="baseAngleErr"></span></label><br>
<input class="max-w" type="number" min="0" max="180" id="baseAngle">
</fieldset>
<fieldset id="inputTypeFieldsetB" class="hidden">
<legend>входные данные</legend>
<label for="baseSideLength">Длина основания A:<span class="bad-input-tooltip hidden" id="baseSideLengthErr"></span></label><br>
<input class="max-w" type="number" min="0" id="baseSideLength">
<br>
<label for="baseAdjacentAngle">Угол прилежащий основанию β:<span class="bad-input-tooltip hidden" id="baseAdjacentAngleErr"></span></label><br>
<input class="max-w" type="number" min="0" max="180" id="baseAdjacentAngle">
</fieldset>
<fieldset id="outputsFieldset">
<legend>что вычислить</legend>
<span class="bad-input-tooltip hidden" id="outputValuesErr"><br></span>
<input type="checkbox" name="output-valuesR" id="outputValuesR" checked>
<label for="outputValuesR">радиус вписанной окружности</label><br>
<input type="checkbox" name="output-valuesH" id="outputValuesH" checked>
<label for="outputValuesH">высоты треугольника</label><br>
<input type="checkbox" name="output-valuesL" id="outputValuesL" checked>
<label for="outputValuesL">длины сторон треугольника</label><br>
</fieldset>
<button id="calculateButton" disabled>Вычислить</button>
<button id="clearButton">Отчислить</button>
</form>
</div>
<table class="outputs hidden" id="outputsTable">
</table>
</div>
</div>
</body>
<script src="./hw7.js">
</script>
</html>

357
old/hw/hw7/hw7.js Normal file
View File

@@ -0,0 +1,357 @@
let elements = {
radioA: document.getElementById('radioButtonA'),
radioB: document.getElementById('radioButtonB'),
fieldsetA: document.getElementById('inputTypeFieldsetA'),
fieldsetB: document.getElementById('inputTypeFieldsetB'),
imageA: document.getElementById('schemeImageA'),
imageB: document.getElementById('schemeImageB'),
inputsForm: document.getElementById('inputsForm'),
equalSideLength: document.getElementById('equalSideLength'),
equalSideLengthErr: document.getElementById('equalSideLengthErr'),
baseAngle: document.getElementById('baseAngle'),
baseAngleErr: document.getElementById('baseAngleErr'),
baseSideLength: document.getElementById('baseSideLength'),
baseSideLengthErr: document.getElementById('baseSideLengthErr'),
baseAdjacentAngle: document.getElementById('baseAdjacentAngle'),
baseAdjacentAngleErr: document.getElementById('baseAdjacentAngleErr'),
outputsFieldset: document.getElementById('outputsFieldset'),
outputValuesErr: document.getElementById('outputValuesErr'),
outputR: document.getElementById('outputValuesR'),
outputH: document.getElementById('outputValuesH'),
outputL: document.getElementById('outputValuesL'),
calculateButton: document.getElementById('calculateButton'),
clearButton: document.getElementById('clearButton'),
outputsTable: document.getElementById('outputsTable')
}
console.log("loaded js!");
let currentModeIsA = true;
let outputFields = {};
let inputsA = {
l: null,
angle: null
};
let inputsB = {
l: null,
angle: null
};
function highlightErrorElement(errorFieldIndex, add = true) {
let fields = [
elements.equalSideLength,
elements.baseAngle,
elements.baseSideLength,
elements.baseAdjacentAngle,
outputsFieldset
];
if (fields[errorFieldIndex]) {
if (add) {
fields[errorFieldIndex].classList.add("bad-input-highlight");
}
else {
fields[errorFieldIndex].classList.remove("bad-input-highlight");
}
}
}
function setErrTooltip(errorFieldIndex, tooltip) {
let errElem = [
elements.equalSideLengthErr,
elements.baseAngleErr,
elements.baseSideLengthErr,
elements.baseAdjacentAngleErr,
elements.outputValuesErr
][errorFieldIndex];
if (errElem) {
highlightErrorElement(errorFieldIndex, tooltip !== "");
if (tooltip !== "") {
errElem.classList.remove("hidden");;
}
else {
errElem.classList.add("hidden");;
}
if (errorFieldIndex == 4) {
tooltip += "<br>"
}
errElem.innerHTML = tooltip;
}
}
function deg2rad(degrees) {
return degrees * (Math.PI / 180);
}
function getCalculations() {
let heights = [];//base related, side realted
let lengths = [];// base side
let radius = 0;
let baseAngle = 0;
let sideAngle = 0;
if (currentModeIsA) {
lengths[0] = 2 * Math.sin(deg2rad(inputsA.angle) / 2) * inputsA.l;
lengths[1] = inputsA.l;
baseAngle = inputsA.angle;
sideAngle = (180 - baseAngle) / 2;
}
else {
lengths[0] = inputsB.l;
lengths[1] = inputsB.l / (2 * Math.cos(deg2rad(inputsB.angle)));
sideAngle = inputsB.angle;
baseAngle = 180 - 2 * sideAngle;
}
let a = lengths[0];
let b = lengths[1];
let p = (a + b + b) / 2;
radius = Math.sqrt((p - a) * (p - b) * (p - b) / p);
heights[0] = lengths[1] * Math.sin(deg2rad(sideAngle));
heights[1] = lengths[0] * Math.sin(deg2rad(baseAngle));
return {
radius: radius,
heights: heights,
lengths: lengths
};
}
function updateCheckboxes() {
outputFields["radius"] = elements.outputR.checked;
outputFields["heights"] = elements.outputH.checked;
outputFields["lengths"] = elements.outputL.checked;
let ret = !outputFields.radius && !outputFields.heights && !outputFields.lengths;
if (ret) {
setErrTooltip(4, "Выберите хотя бы один параметр для вывода.");
} else {
setErrTooltip(4, "");
}
updateCalculateButton();
}
function updateCalculateButton() {
let ret = false;
if (currentModeIsA) {
ret = inputsA["l"] !== null && inputsA["angle"] !== null
}
else {
ret = inputsB["l"] !== null && inputsB["angle"] !== null
}
ret &= elements.outputR.checked || elements.outputH.checked || elements.outputL.checked;
elements.calculateButton.disabled = !ret;
}
function switchInputs(selectA) {
if (selectA) {
elements.imageA.classList.remove("hidden");
elements.imageB.classList.add("hidden");
elements.fieldsetA.classList.remove("hidden");
elements.fieldsetB.classList.add("hidden");
}
else {
elements.imageA.classList.add("hidden");
elements.imageB.classList.remove("hidden");
elements.fieldsetA.classList.add("hidden");
elements.fieldsetB.classList.remove("hidden");
}
updateCalculateButton();
}
function displayTable(calcResults) {
let table = elements.outputsTable;
table.innerHTML = ""; // Clear previous content
let header = "<tr><th>Параметр</th><th>Значение</th></tr>";
let rows = "";
if (outputFields.radius) {
rows += `<tr><td>R</td><td>${calcResults.radius.toFixed(3)}</td></tr>`;
}
if (outputFields.heights) {
rows += `<tr><td>h1</td><td>${calcResults.heights[0].toFixed(3)}</td></tr>`;
rows += `<tr><td>h2</td><td>${calcResults.heights[1].toFixed(3)}</td></tr>`;
}
if (outputFields.lengths) {
rows += `<tr><td>A</td><td>${calcResults.lengths[0].toFixed(3)}</td></tr>`;
rows += `<tr><td>B</td><td>${calcResults.lengths[1].toFixed(3)}</td></tr>`;
}
table.innerHTML = header + rows;
if (rows === "") {
table.innerHTML = `<h3>Выберите параметры для вычислений, сейчас таблица пустая</h3>`;
}
table.classList.remove("hidden");
}
function clearCurrentInputs() {
if (currentModeIsA) {
elements.equalSideLength.value = null;
elements.baseAngle.value = null;
setErrTooltip(0, "");
setErrTooltip(1, "");
inputsA = {
l: null,
angle: null
};
}
else {
inputsB = {
l: null,
angle: null
};
setErrTooltip(2, "");
setErrTooltip(3, "");
elements.baseSideLength.value = null;
elements.baseAdjacentAngle.value = null;
}
elements.outputsTable.classList.add("hidden");
updateCalculateButton()
}
function check180Angle(angleString) {
let angle = parseFloat(angleString);
if (isNaN(angle)) {
return "Введите корректное число";
}
if (angle <= 0) {
return "Угол должен быть больше 0";
}
if (angle >= 180) {
return "Угол должен быть меньше 180";
}
return "";
}
function check90Angle(angleString) {
let angle = parseFloat(angleString);
if (isNaN(angle)) {
return "Введите корректное число";
}
if (angle <= 0) {
return "Угол должен быть больше 0";
}
if (angle >= 90) {
return "Угол должен быть меньше 90";
}
return "";
}
function checkLength(lengthString) {
let length = parseFloat(lengthString);
if (!isFinite(length)) {
return "Введите корректное число";
}
if (length <= 0) {
return "Длина должна быть больше 0";
}
return "";
}
function handleSwitchInputs(event) {
if (event.target.id[event.target.id.length - 1].toLowerCase() == "a") {
currentModeIsA = true;
switchInputs(true);
console.log("Switching inputs to A");
}
else {
currentModeIsA = false;
switchInputs(false);
console.log("Switching inputs to B");
}
}
function handleInputsUpdate(event) {
switch (event.target.id) {
case "equalSideLength":
{
const err = checkLength(event.target.value);
setErrTooltip(0, err);
if (err === "") {
inputsA.l = parseFloat(event.target.value);
} else {
inputsA.l = null;
}
}
break;
case "baseAngle":
{
const err = check180Angle(event.target.value);
setErrTooltip(1, err);
if (err === "") {
inputsA.angle = parseFloat(event.target.value);
} else {
inputsA.angle = null;
}
}
break;
case "baseSideLength":
{
const err = checkLength(event.target.value);
setErrTooltip(2, err);
if (err === "") {
inputsB.l = parseFloat(event.target.value);
} else {
inputsB.l = null;
}
}
break;
case "baseAdjacentAngle":
{
const err = check90Angle(event.target.value);
setErrTooltip(3, err);
if (err === "") {
inputsB.angle = parseFloat(event.target.value);
} else {
inputsB.angle = null;
}
}
break;
default:
console.log(event.target.id)
break;
}
updateCalculateButton();
}
function handleFieldsetEvent(event) {
if (event.target.type === 'radio') {
handleSwitchInputs(event);
} else if (event.target.type === 'number') {
handleInputsUpdate(event);
}
}
elements.inputsForm.addEventListener('change', handleFieldsetEvent);
elements.inputsForm.addEventListener('input', handleFieldsetEvent);
elements.outputsFieldset.addEventListener('change', (event) => {
if (event.target.type === 'checkbox') {
updateCheckboxes();
}
});
elements.clearButton.addEventListener('click', (event) => {
event.preventDefault();
clearCurrentInputs()
});
elements.calculateButton.addEventListener('click', (event) => {
event.preventDefault();
displayTable(getCalculations());
});
// чтобы не сконфузило
updateCheckboxes();
switchInputs(elements.radioA.checked);

BIN
old/hw/hw7/imgs/type1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
old/hw/hw7/imgs/type2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 162 KiB

After

Width:  |  Height:  |  Size: 162 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -29,21 +29,23 @@ div.images
grid-template-columns repeat(5, 1fr) grid-template-columns repeat(5, 1fr)
grid-gap 0.5% grid-gap 0.5%
back(1) back(1)
overflow hidden
& img & img
width: 100% width: 100%
@media (max-width: 600px) @media (max-width: 600px)
grid-template-rows repeat(5, 1fr) grid-template-rows repeat(5, 1fr)
grid-template-columns 1fr grid-template-columns 1fr
& img justify-items center
width 80%
margin auto
article article
width 80% width 80%
margin auto margin auto
display grid display grid
grid-template-columns repeat(3, 1fr) grid-template-columns repeat(3, 1fr)
grid-gap 4% grid-gap 4%
overflow hidden
@media (max-width: 600px) @media (max-width: 600px)
grid-template-rows repeat(3, 1fr) grid-template-rows repeat(3, 1fr)
grid-template-columns 1fr grid-template-columns 1fr

Some files were not shown because too many files have changed in this diff Show More