Datasets:
File size: 48,125 Bytes
9c2670b | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AddBibliography_TestA</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Oswald:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #1a1a2e;
color: #e0e0e0;
padding: 40px 20px;
}
h1 {
text-align: center;
margin-bottom: 8px;
font-size: 28px;
color: #fff;
}
.meta {
text-align: center;
margin-bottom: 40px;
color: #888;
font-size: 14px;
}
.slide-container {
margin: 0 auto 60px auto;
max-width: 100%;
}
.slide-label {
text-align: center;
margin-bottom: 12px;
font-size: 16px;
font-weight: 600;
color: #aaa;
}
.slide-wrapper {
display: flex;
justify-content: center;
overflow-x: auto;
}
.slide {
flex-shrink: 0;
transform-origin: top left;
box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.images-section {
max-width: 1400px;
margin: 60px auto;
}
.images-section h2 {
text-align: center;
margin-bottom: 24px;
color: #fff;
}
.images-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
}
.image-card {
background: #16213e;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.image-card img {
width: 100%;
height: 200px;
object-fit: contain;
background: #0f0f23;
padding: 8px;
}
.image-label {
padding: 8px 12px;
font-size: 11px;
color: #888;
word-break: break-all;
}
@media (max-width: 1920px) {
.slide {
transform: scale(0.5);
margin-bottom: -25%;
}
.slide-wrapper {
max-height: 600px;
}
}
@media (min-width: 1921px) {
.slide {
transform: scale(0.75);
margin-bottom: -12%;
}
}
</style>
</head>
<body>
<h1>AddBibliography_TestA</h1>
<div class="meta">11 slide(s)</div>
<div class="slide-container">
<div class="slide-label">Slide 0 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:36" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:37" style="position: absolute; left: 191.0px; top: 413.0px; width: 769.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Michael Faraday</div></div>
<div class="ft" data-id="1:38" style="position: absolute; left: 191.0px; top: 570.0px; width: 769.0px; height: 50.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; white-space: nowrap; color: rgba(61,56,245,1.0)">Copyright © Samuel Paluba 2026</div></div>
<div data-id="1:39" style="position: absolute; left: 1304.0px; top: 239.0px; width: 488.0px; height: 601.0px; opacity: 1.0; overflow: visible; box-sizing: border-box">
<div data-id="1:40" style="position: absolute; left: -3.504753112792969e-05px; top: 1.1368683772161603e-13px; width: 488.0px; height: 601.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat;; box-shadow: 0.0px 4.0px 10.0px 0px rgba(0,0,0,0.20000000298023224)"></div>
<div data-id="1:41" style="position: absolute; left: 33.0px; top: 45.0px; width: 422.9333190917969px; height: 465.58392333984375px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/bb5cba5a1076dca876179fe2432d35f7a832491e.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
</div>
<div data-id="1:42" style="position: absolute; left: 362.0px; top: 578.0px; width: 37.0px; height: 37.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; border-radius: 8.0px; background-image: url('images/9acde17c5adfd9b1af54072c6360398b2e074e40.png'); background-size: contain; background-position: center; background-repeat: no-repeat;; box-shadow: 0.0px 4.0px 4.0px 0px rgba(255,255,255,0.25)"></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 1 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:43" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:44" style="position: absolute; left: 731.0px; top: 128.0px; width: 457.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Content</div></div>
<div class="ft" data-id="1:45" style="position: absolute; left: 269.0px; top: 360.0px; width: 534.0px; height: 450.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>Introduction</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>Childhood</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>Discoveries</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>Conclusion</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>Sources</li></ul></div></div>
<div data-id="1:46" style="position: absolute; left: 168.0px; top: 312.0px; width: 639.0px; height: 2.0px; background-color: rgba(61,56,245,1.0); opacity: 1.0; transform: matrix(6.198035874846765e-17, 1.0, -1.0, 6.158268339717665e-17, 0, 0); transform-origin: 0 0"></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 2 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:47" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:48" style="position: absolute; left: 680.0px; top: 90.0px; width: 510.0px; height: 230.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; color: rgba(61,56,245,1.0)">Introduction</div></div>
<div class="ft" data-id="1:49" style="position: absolute; left: 255.0px; top: 358.0px; width: 1257.0px; height: 360.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.72px; line-height: 60.0px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>was born on September 22, 1791, into a poor family</li><li>passed away on August 25, 1867 (at the age of 75)</li><li>had only a basic education</li><li>physicist, chemist, writer, professor, and inventor</li><li>conducted many experiments - contributed to the understanding of electromagnetism</li></ul></div></div>
<div data-id="1:50" style="position: absolute; left: 168.0px; top: 312.0px; width: 639.0px; height: 2.0px; background-color: rgba(61,56,245,1.0); opacity: 1.0; transform: matrix(6.198035874846765e-17, 1.0, -1.0, 6.158268339717665e-17, 0, 0); transform-origin: 0 0"></div>
<div data-id="1:51" style="position: absolute; left: 255.0px; top: 751.0px; width: 641.0px; height: 201.22531127929688px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/7d00a9e968d1da9ab31d901c9c55d53782bf4d11.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div class="ft" data-id="1:52" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">https://www.elektrina.cz</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 3 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:53" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:54" style="position: absolute; left: 706.0px; top: 128.0px; width: 508.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Childhood</div></div>
<div class="ft" data-id="1:55" style="position: absolute; left: 268.0px; top: 407.0px; width: 1384.0px; height: 384.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -0.72px; line-height: 47.52000045776367px; text-align: left; color: rgba(61,56,245,1.0)">The third child of James and Margaret Faraday. His father was a blacksmith who struggled with poor physical health. His mother was a servant before marriage.<br>The family lived in poverty.<br><br>Michael Faraday attended a local school until he was 13, where he received a basic education. To earn money for the family, he began working as a courier in a bookstore. After a year, he was promoted to a bookbinding apprentice, which was crucial for his further education!</div></div>
<div data-id="1:56" style="position: absolute; left: 168.0px; top: 312.0px; width: 639.0px; height: 2.0px; background-color: rgba(61,56,245,1.0); opacity: 1.0; transform: matrix(6.198035874846765e-17, 1.0, -1.0, 6.158268339717665e-17, 0, 0); transform-origin: 0 0"></div>
<div class="ft" data-id="1:57" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">https://www.elektrina.cz</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 4 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:58" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:59" style="position: absolute; left: 699.0px; top: 128.0px; width: 521.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Childhood</div></div>
<div class="ft" data-id="1:60" style="position: absolute; left: 261.0px; top: 455.0px; width: 1179.0px; height: 336.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -0.72px; line-height: 47.52000045776367px; text-align: left; color: rgba(61,56,245,1.0)">Thanks to bookbinding, he secured access to an education he would not have otherwise received. While working, he spent his free time reading books, especially volumes on science.<br><br>He was particularly intrigued by two books: the Encyclopædia Britannica (his main source of knowledge) and Conversations on Chemistry by Jane Marcet.</div></div>
<div data-id="1:61" style="position: absolute; left: 1491.0px; top: 302.0px; width: 343.0px; height: 545.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/e71b17b7c2a012f94d50ce45a621123568b6196a.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div data-id="1:62" style="position: absolute; left: 168.0px; top: 312.0px; width: 639.0px; height: 2.0px; background-color: rgba(61,56,245,1.0); opacity: 1.0; transform: matrix(6.198035874846765e-17, 1.0, -1.0, 6.158268339717665e-17, 0, 0); transform-origin: 0 0"></div>
<div class="ft" data-id="1:63" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">https://www.wikipedia.org</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 5 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:64" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div data-id="1:65" style="position: absolute; left: 360.0px; top: 482.0px; width: 1200.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box">
<div class="ft" data-id="1:66" style="position: absolute; left: 0.0px; top: 0.0px; width: 1200.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">DISCOVER</div></div>
</div>
<div data-id="1:67" style="position: absolute; left: 1315.0px; top: 350.0px; width: 710.0px; height: 2.0px; background-color: rgba(61,56,245,1.0); opacity: 1.0; transform: matrix(-1.0, 1.2246468525851679e-16, -1.2246468525851679e-16, -1.0, 0, 0); transform-origin: 0 0"></div>
<div data-id="1:68" style="position: absolute; left: 1315.0px; top: 721.0px; width: 710.0px; height: 2.0px; background-color: rgba(61,56,245,1.0); opacity: 1.0; transform: matrix(-1.0, 1.2246468525851679e-16, -1.2246468525851679e-16, -1.0, 0, 0); transform-origin: 0 0"></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 6 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:69" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:70" style="position: absolute; left: 347.0px; top: 81.0px; width: 1225.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Dynamo and Electric Motor</div></div>
<div class="ft" data-id="1:71" style="position: absolute; left: 124.0px; top: 302.0px; width: 1513.0px; height: 250.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>In his experiments dealing with phenomena associated with electromagnetic induction, Faraday also encountered further applications and properties of this phenomenon.</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>He based his findings on the assumption that induction evidently requires more than just the presence of a magnetic field.</li></ul></div></div>
<div data-id="1:72" style="position: absolute; left: 1198.0px; top: 590.0px; width: 637.8878784179688px; height: 362.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/45fabf7de7a5a685211fb14c5d139d0698122ba0.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div class="ft" data-id="1:73" style="position: absolute; left: 124.0px; top: 633.0px; width: 940.0px; height: 300.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>He placed a rotating copper disk between the poles of a strong permanent magnet, thereby creating a magnetic field on the disk.</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>In his experiment, he found that the magnetic field could be used to generate electricity.</li></ul></div></div>
<div class="ft" data-id="1:74" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">https://www.wikipedia.org</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 7 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:75" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:76" style="position: absolute; left: 362.0px; top: 81.0px; width: 1194.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Electromagnetic induction</div></div>
<div class="ft" data-id="1:77" style="position: absolute; left: 124.0px; top: 330.0px; width: 965.0px; height: 600.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>His coil was made from an iron ring around which two insulated wires were wound.</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>One coil was connected to a galvanometer, and the end of the other coil was connected to a battery.</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>After closing the primary circuit (connecting the battery to the coil), he observed a needle jump on the galvanometer.</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>After breaking the circuit, the needle of the galvanometer deflected in the opposite direction.</li></ul></div></div>
<div data-id="1:78" style="position: absolute; left: 1441.0px; top: 254.0px; width: 310.9439392089844px; height: 328.3322448730469px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/7c197550d54c405e168437af14310e5ca82f6046.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div data-id="1:79" style="position: absolute; left: 1324.0px; top: 608.0px; width: 425.9259338378906px; height: 322.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/1b4fae75dfdd112a7b23eef40ee0e9d2ae1ea594.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div class="ft" data-id="1:80" style="position: absolute; left: 1324.0px; top: 952.0px; width: 503.17242431640625px; height: 114.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 26.830406188964844px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.26830406188964845px; line-height: 37.56256866455078px; text-align: left; color: rgba(61,56,245,1.0)">the device with which Faraday demonstrated the existence of electromagnetic induction</div></div>
<div class="ft" data-id="1:81" style="position: absolute; left: -423.0px; top: 1036.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">https://www.elektrina.cz</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 8 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:82" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:83" style="position: absolute; left: 639.0px; top: 81.0px; width: 641.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Faraday's Law</div></div>
<div class="ft" data-id="1:84" style="position: absolute; left: 146.0px; top: 359.0px; width: 1233.0px; height: 600.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)">Faraday's Law describes the fundamental principle of how electric voltage is generated from a magnetic field. It is one of the most important discoveries in electrical engineering, enabling the development of generators, transformers, and most modern electrical technology.<br><br>The law states that electric voltage is generated whenever there is a change in the magnetic flux passing through a conductive loop or coil. The key word here is "change" - a static magnetic field produces nothing; voltage arises only during a change. The mathematical expression ε = dΦ/dt indicates that the magnitude of the induced voltage (ε) is directly proportional to the rate of change of the magnetic flux (dΦ/dt). The faster you change the magnetic flux, the greater the voltage produced.</div></div>
<div data-id="1:85" style="position: absolute; left: 1465.0px; top: 676.0px; width: 348.0px; height: 246.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/478c4efdbf2b0a9145c9131016b9364137b7d72e.png'); background-size: cover; background-position: center; background-repeat: no-repeat;; border: 3.5944700241088867px solid rgba(0,0,0,1.0);"></div>
<div class="ft" data-id="1:86" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">http://fyzika.jreichl.com</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 9 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:87" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:88" style="position: absolute; left: 655.0px; top: 81.0px; width: 608.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Faraday cage</div></div>
<div class="ft" data-id="1:89" style="position: absolute; left: 128.0px; top: 352.0px; width: 875.0px; height: 500.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>The principle of electromagnetic shielding, where a conductive enclosure (cage, mesh, sheet) surrounding a space prevents external electric fields (and signals) from penetrating inside.</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>This property has been utilized in the production of protective clothing designed for work in aggressive electromagnetic environments (e.g., for electricians working on overhead high and extra-high voltage lines).</li></ul></div></div>
<div data-id="1:90" style="position: absolute; left: 1184.0px; top: 290.0px; width: 560.0px; height: 325.9200134277344px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/ce3bfd38199f2fe1fb26982b152b39061a0853a1.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div data-id="1:91" style="position: absolute; left: 1175.0px; top: 668.0px; width: 577.4146728515625px; height: 321.7850341796875px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/b653c28ed65b8e526db9118e59f3b50f8d1d12a6.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div class="ft" data-id="1:92" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">http://fyzika.jreichl.com</div></div>
</div>
</div>
</div>
<div class="slide-container">
<div class="slide-label">Slide 10 — Frame</div>
<div class="slide-wrapper">
<div class="slide" data-slide-id="1:93" style="width: 1920.0px; height: 1080.0px; background-color: rgba(255,255,255,1.0); background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0)); background-size: auto; background-position: 0 0; background-repeat: repeat; position: relative; overflow: hidden;">
<div class="ft" data-id="1:94" style="position: absolute; left: 514.0px; top: 81.0px; width: 890.0px; height: 115.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 96.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -1.92px; line-height: 115.20000457763672px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">Further Discoveries</div></div>
<div class="ft" data-id="1:95" style="position: absolute; left: 128.0px; top: 380.0px; width: 881.0px; height: 500.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 36.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: -0.36px; line-height: 50.39999771118164px; text-align: left; color: rgba(61,56,245,1.0)"><ul style="margin: 0; padding-left: 2em"><li>Discovered that substances are repelled by a magnetic field (Diamagnetism)</li><li>Found that a magnetic field affects polarized light (Magneto-optical effect)</li></ul><br><ul style="margin: 0; padding-left: 2em"><li>Concepts of field lines and fields</li><li>Discovery of benzene</li><li>Liquefaction of gases</li><li>Explained the bonding of two pieces of ice under pressure (Ice regelation)</li></ul></div></div>
<div data-id="1:96" style="position: absolute; left: 1144.0px; top: 441.0px; width: 659.0px; height: 439.3333435058594px; opacity: 1.0; overflow: visible; box-sizing: border-box; background-image: url('images/9d46c845c434201f5ca0f786777606db16ce388d.png'); background-size: cover; background-position: center; background-repeat: no-repeat;"></div>
<div class="ft" data-id="1:97" style="position: absolute; left: 751.0px; top: 1024.0px; width: 1383.423583984375px; height: 28.0px; opacity: 1.0; overflow: visible; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start"><div style="font-size: 20.0px; font-family: 'Inter', 'Oswald', 'Inter', 'Noto Sans', 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang SC', 'Microsoft YaHei', Helvetica, Arial, sans-serif; font-weight: 400; letter-spacing: 0.0px; line-height: 28.0px; text-align: center; white-space: nowrap; color: rgba(61,56,245,1.0)">http://books.google.com</div></div>
</div>
</div>
</div>
<div class="images-section"><h2>Images</h2><div class="images-grid">
<div class="image-card">
<img src="images/1b4fae75dfdd112a7b23eef40ee0e9d2ae1ea594.png" alt="1b4fae75dfdd112a7b23eef40ee0e9d2ae1ea594">
<div class="image-label">1b4fae75dfdd112a7b23eef40ee0e9d2ae1ea594.png</div>
</div>
<div class="image-card">
<img src="images/45fabf7de7a5a685211fb14c5d139d0698122ba0.png" alt="45fabf7de7a5a685211fb14c5d139d0698122ba0">
<div class="image-label">45fabf7de7a5a685211fb14c5d139d0698122ba0.png</div>
</div>
<div class="image-card">
<img src="images/478c4efdbf2b0a9145c9131016b9364137b7d72e.png" alt="478c4efdbf2b0a9145c9131016b9364137b7d72e">
<div class="image-label">478c4efdbf2b0a9145c9131016b9364137b7d72e.png</div>
</div>
<div class="image-card">
<img src="images/7c197550d54c405e168437af14310e5ca82f6046.png" alt="7c197550d54c405e168437af14310e5ca82f6046">
<div class="image-label">7c197550d54c405e168437af14310e5ca82f6046.png</div>
</div>
<div class="image-card">
<img src="images/7d00a9e968d1da9ab31d901c9c55d53782bf4d11.png" alt="7d00a9e968d1da9ab31d901c9c55d53782bf4d11">
<div class="image-label">7d00a9e968d1da9ab31d901c9c55d53782bf4d11.png</div>
</div>
<div class="image-card">
<img src="images/9acde17c5adfd9b1af54072c6360398b2e074e40.png" alt="9acde17c5adfd9b1af54072c6360398b2e074e40">
<div class="image-label">9acde17c5adfd9b1af54072c6360398b2e074e40.png</div>
</div>
<div class="image-card">
<img src="images/9d46c845c434201f5ca0f786777606db16ce388d.png" alt="9d46c845c434201f5ca0f786777606db16ce388d">
<div class="image-label">9d46c845c434201f5ca0f786777606db16ce388d.png</div>
</div>
<div class="image-card">
<img src="images/b653c28ed65b8e526db9118e59f3b50f8d1d12a6.png" alt="b653c28ed65b8e526db9118e59f3b50f8d1d12a6">
<div class="image-label">b653c28ed65b8e526db9118e59f3b50f8d1d12a6.png</div>
</div>
<div class="image-card">
<img src="images/bb5cba5a1076dca876179fe2432d35f7a832491e.png" alt="bb5cba5a1076dca876179fe2432d35f7a832491e">
<div class="image-label">bb5cba5a1076dca876179fe2432d35f7a832491e.png</div>
</div>
<div class="image-card">
<img src="images/ce3bfd38199f2fe1fb26982b152b39061a0853a1.png" alt="ce3bfd38199f2fe1fb26982b152b39061a0853a1">
<div class="image-label">ce3bfd38199f2fe1fb26982b152b39061a0853a1.png</div>
</div>
<div class="image-card">
<img src="images/e71b17b7c2a012f94d50ce45a621123568b6196a.png" alt="e71b17b7c2a012f94d50ce45a621123568b6196a">
<div class="image-label">e71b17b7c2a012f94d50ce45a621123568b6196a.png</div>
</div>
</div></div>
<script>
// Shrink-to-fit: when a custom font fails to load and the fallback is wider/taller, the rendered text overflows the Figma bbox. The shrink is SLACK-AWARE — each text is allowed to overflow into the empty space between it and its nearest neighbor in the overflow direction. Figma sizes text containers tightly around the original font's glyph extent, but the surrounding layout often leaves visual breathing room (e.g. 56px gaps between nav labels). Squeezing every label into its tight bbox makes them look weak; letting them grow into the gap keeps the design closer to the source while still preventing actual overlap.
(function() {
// Per-element "how far can I overflow before hitting a neighbor" computed once. Position-fixed: depends only on bbox layout, not on font shrink state.
var slackCache = new WeakMap();
function computeSlack(container) {
if (slackCache.has(container)) return slackCache.get(container);
var slide = container.closest('.slide');
var er = container.getBoundingClientRect();
var sliderc = slide ? slide.getBoundingClientRect() : null;
var leftS = Infinity, rightS = Infinity, topS = Infinity, botS = Infinity;
if (slide) {
// Collide against other text labels only — overlapping decorative shapes/backgrounds is usually fine and often intentional. Text-on-text is what creates unreadable layouts.
slide.querySelectorAll('.ft').forEach(function(other) {
if (other === container || container.contains(other) || other.contains(container)) return;
var or = other.getBoundingClientRect();
var vertOverlap = or.top < er.bottom - 0.5 && or.bottom > er.top + 0.5;
var horzOverlap = or.left < er.right - 0.5 && or.right > er.left + 0.5;
if (vertOverlap) {
if (or.left >= er.right - 0.5) rightS = Math.min(rightS, or.left - er.right);
if (or.right <= er.left + 0.5) leftS = Math.min(leftS, er.left - or.right);
}
if (horzOverlap) {
if (or.top >= er.bottom - 0.5) botS = Math.min(botS, or.top - er.bottom);
if (or.bottom <= er.top + 0.5) topS = Math.min(topS, er.top - or.bottom);
}
});
}
if (sliderc) {
leftS = Math.min(leftS, Math.max(0, er.left - sliderc.left));
rightS = Math.min(rightS, Math.max(0, sliderc.right - er.right));
topS = Math.min(topS, Math.max(0, er.top - sliderc.top));
botS = Math.min(botS, Math.max(0, sliderc.bottom - er.bottom));
}
var scale = er.width / (container.clientWidth || 1); // rendered-px → layout-px
var toLayout = function(v) { return v === Infinity ? 99999 : Math.max(0, v / (scale || 1)); };
var s = { left: toLayout(leftS), right: toLayout(rightS), top: toLayout(topS), bottom: toLayout(botS) };
slackCache.set(container, s);
return s;
}
function fitOne(container) {
var inner = container.firstElementChild;
if (!inner) return;
var cw = container.clientWidth, ch = container.clientHeight;
if (!cw || !ch) return;
if (inner.dataset.origFs) {
inner.style.fontSize = inner.dataset.origFs;
if (inner.dataset.origLs) inner.style.letterSpacing = inner.dataset.origLs;
if (inner.dataset.origLh) inner.style.lineHeight = inner.dataset.origLh;
} else {
inner.dataset.origFs = getComputedStyle(inner).fontSize;
inner.dataset.origLs = getComputedStyle(inner).letterSpacing;
inner.dataset.origLh = getComputedStyle(inner).lineHeight;
}
var origFs = parseFloat(inner.dataset.origFs);
var origLs = parseFloat(inner.dataset.origLs) || 0;
var origLh = parseFloat(inner.dataset.origLh) || 0;
// Single-line text (white-space: nowrap, or no <br> in the source) only needs to fit its WIDTH — the fallback font's natural line-box (ascender + descender) is usually a few px taller than the Figma bbox even at the correct font, and that's expected, not an overflow to fix.
var isSingleLine = getComputedStyle(inner).whiteSpace === 'nowrap' || !/<br/i.test(inner.innerHTML);
var slack = computeSlack(container);
var align = getComputedStyle(inner).textAlign;
// Effective allowed width: bbox + slack on the side(s) the text actually overflows toward, per text-align.
var allowedW;
if (align === 'right' || align === 'end') allowedW = cw + slack.left;
else if (align === 'center') allowedW = cw + 2 * Math.min(slack.left, slack.right);
else allowedW = cw + slack.right; // left / start / justify
var allowedH = ch + slack.bottom; // text typically grows downward when wrapping
var fs = origFs;
for (var iter = 0; iter < 8; iter++) {
var iw = inner.scrollWidth, ih = inner.scrollHeight;
var rw = iw > allowedW + 0.5 ? allowedW / iw : 1;
var rh = (!isSingleLine && ih > allowedH + 0.5) ? allowedH / ih : 1;
var r = Math.min(rw, rh);
if (r > 0.998) break;
var newFs = Math.max(6, fs * r);
if (newFs >= fs - 0.05) break;
fs = newFs;
inner.style.fontSize = fs + 'px';
// Scale letter-spacing AND line-height proportionally so they shrink with font-size — otherwise the absolute-px values dominate at small sizes.
if (origLs) inner.style.letterSpacing = (origLs * fs / origFs) + 'px';
if (origLh) inner.style.lineHeight = (origLh * fs / origFs) + 'px';
}
}
function fitAll() { document.querySelectorAll('.ft').forEach(fitOne); }
if (document.fonts && document.fonts.ready) {
document.fonts.ready.then(fitAll);
} else {
window.addEventListener('load', fitAll);
}
var t;
window.addEventListener('resize', function() { clearTimeout(t); t = setTimeout(fitAll, 150); });
})();
</script>
</body>
</html>
|