Wikibooks plwikibooks https://pl.wikibooks.org/wiki/Wikibooks:Strona_g%C5%82%C3%B3wna MediaWiki 1.39.0-wmf.21 first-letter Media Specjalna Dyskusja Wikipedysta Dyskusja wikipedysty Wikibooks Dyskusja Wikibooks Plik Dyskusja pliku MediaWiki Dyskusja MediaWiki Szablon Dyskusja szablonu Pomoc Dyskusja pomocy Kategoria Dyskusja kategorii Wikijunior Dyskusja Wikijuniora TimedText TimedText talk Moduł Dyskusja modułu Gadżet Dyskusja gadżetu Definicja gadżetu Dyskusja definicji gadżetu C/Zaawansowane operacje matematyczne 0 3206 435639 434921 2022-07-25T19:20:19Z Adam majewski 1978 /* Mnożenie */ format i link wikitext text/x-wiki ==Liczby== ===Rodzaje liczb=== * całkowite ** [[C/Zmienne#int|int]] ** [[C/Zmienne#char|char]] * wymierne ** z pomocą typu mpq_t z biblioteki [[Programowanie w systemie UNIX/GMP|GMP ( GNU Multiple Precision Arithmetic Library )]] ** z użyciem struktur <ref>[http://www.scit.wlv.ac.uk/~in8297/CP4044/cbook/chap8/ The Rational Number Class in C by Peter Burden]</ref><ref>[http://www.cs.princeton.edu/courses/archive/spr01/cs126/assignments/rat.html Rational Arithmetic by R. Sedgewick]</ref> * zmiennoprzecinkowe ** [[C/Zmienne#float|float]] ** [[C/Zmienne#double|double]] ** wartości specjalne * [[C/Zaawansowane_operacje_matematyczne#Liczby_zespolone|zespolone]] * kwaterniony Dodatkowo rodzaj liczby definiują : * [[C/Zmienne#Specyfikatory|specyfikatory]] * [[C/Zmienne#int|podstawa systemu liczbowego]] ** [[C/Zaawansowane_operacje_matematyczne#liczby_binarne|binarne]] ** ósemkowe (oktalne) ** dziesiętne ** szesnastkowe Jak widać nie ma : * Liczb niewymiernych ( chyba że korzystamy z obliczeń symbolicznych) ====liczby binarne ==== Sposoby : * [[C/itoa|itoa]] * [[C/printf|snprintf]] <ref>[http://stackoverflow.com/questions/190229/where-is-the-itoa-function-in-linux Where is the itoa function in Linux?]</ref> * Binarna stała całkowita''' z użyciem rozszerzenia gcc * za pomoc [[C/Operatory#Operacje_bitowe|operacji na bitach]], np. shift '''Binarna stała całkowita''' z użyciem rozszerzenia gcc <ref> [https://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html#Binary-constants gcc - Binary-constants]</ref> * prefix ‘0b’ lub ‘0B’ * sekwencja cyfr ‘0’ lub ‘1’ * suffix ‘L’ lub ‘UL’ Następujące zapisy są identyczne: <syntaxhighlight lang="c"> i = 42; // decimal i = 0x2a; // hexadecimal i = 052; // octal i = 0b101010; // binary </syntaxhighlight> int i = 1 << 9; /* binary 1 followed by 9 binary 0's */ <ref>[http://codereply.com/answer/4s2umm/c-represent-int-base-2.html Code Replay : C represent int in base 2]</ref> === Prezentacja liczb rzeczywistych w pamięci komputera === [[File:IEEE 754 Double Floating Point Format.svg|thumb|right|Format liczby podwójnej precyzji]] W wielu książkach nie ma w ogóle tego tematu. Być może ten temat może wydać Ci się niepotrzebnym, lecz dzięki niemu zrozumiesz, jak komputer radzi sobie z przecinkiem <ref>[http://blog.reverberate.org/2014/09/what-every-computer-programmer-should.html what-every-computer-programmer-should by Josh Haberman]</ref>oraz dlaczego niektóre obliczenia dają niezbyt dokładne wyniki.<ref>[http://wazniak.mimuw.edu.pl/index.php?title=Metody_numeryczne Metody numeryczne - autorzy : Piotr Krzyżanowski i Leszek Plaskota — Uniwersytet Warszawski, Wydział Matematyki, Informatyki i Mechaniki ]</ref> <br/> Na początek trochę teorii. Do przechowywania liczb rzeczywistych przeznaczone są 3 typy: <tt>float</tt>, <tt>double</tt> oraz <tt>long double</tt>. Zajmują one odpowiednio 32, 64 oraz 80 bitów. Wiemy też, że komputer nie ma fizycznej możliwości zapisania przecinka. Spróbujmy teraz zapisać jakąś liczbę wymierną w formie liczb binarnych. Nasza liczba to powiedzmy 4.25. Spróbujmy ją rozbić na sumę potęg dwójki: 4 = 1*2<sup>2</sup> + 0*2<sup>1</sup>+0*2<sup>0</sup>. Dobra - rozpisaliśmy liczbę 4, ale co z częścią dziesiętną? Skorzystajmy z zasad matematyki - 0.25 = 2<sup>-2</sup>. Zatem nasza liczba powinna wyglądać tak: :100.01 Ponieważ komputer nie jest w stanie przechować pozycji przecinka, ktoś wpadł na prosty ale sprytny pomysł ustawienia przecinka jak najbliżej początku liczby i tylko mnożenia jej przez odpowiednią potęgę dwójki. Taki sposób przechowywania liczb nazywamy '''zmiennoprzecinkowym''', a proces przekształcania naszej liczby z postaci czytelnej przez człowieka na format zmiennoprzecinkowy nazywamy '''normalizacją'''. Wróćmy do naszej liczby - 4.25. W postaci binarnej wygląda ona tak: 100.01, natomiast po normalizacji będzie wyglądała tak: 1.0001*2<sup>2</sup>. W ten sposób w pamięci komputera znajdą się dwie informacje: liczba zakodowana w pamięci z "wirtualnym" przecinkiem oraz numer potęgi dwójki. Te dwie informacje wystarczają do przechowania wartości liczby. Jednak pojawia się inny problem - co się stanie, jeśli np. będziemy chcieli przełożyć liczbę typu <math>\frac{1}{3}</math>? Otóż tutaj wychodzą na wierzch pewne niedociągnięcia komputera w dziedzinie samej matematyki. 1/3 daje w rozwinięciu dziesiętnym 0.(3). Jak zatem zapisać taką liczbę? Otóż nie możemy przechować całego jej rozwinięcia (wynika to z ograniczeń typu danych - ma on niestety skończoną liczbę bitów). Dlatego przechowuje się tylko pewne przybliżenie liczby. Jest ono tym bardziej dokładne im dany typ ma więcej bitów. Zatem do obliczeń wymagających dokładnych danych powinniśmy użyć typu double lub long double. Na szczęście w większości przeciętnych programów tego typu problemy zwykle nie występują. A ponieważ początkujący programista nie odpowiada za tworzenie programów sterujących np. lotem statku kosmicznego, więc drobne przekłamania na odległych miejscach po przecinku nie stanowią większego problemu. Program wyświetlający wewnętrzną reprezentację liczby podwójnej precyzji:<ref>[http://bytes.com/topic/c/answers/688073-get-memory-representation-double How to get memory representation-double]</ref><ref>[https://www.h-schmidt.net/FloatConverter/IEEE754.html IEEE-754 Floating Point Converter]</ref> <syntaxhighlight lang="c"> #include <stdio.h> int main(void) { double a = 1.0 / 3; size_t i; size_t iMax= sizeof a; printf("bytes are numbered from 0 to %x\n", (unsigned)iMax -1); for (i = 0; i < iMax ; ++i) { printf("byte number %u = %x\n", (unsigned)i, ((unsigned char *)&a)[i]); } printf("hex memory representation of %f is : \n", a); for (i = iMax; i>0 ; --i) { printf("%x", ((unsigned char *)&a)[i-1]); } printf(" \n"); return 0; } </syntaxhighlight> Daje wynik: bytes are numbered from 0 to 7 byte number 0 = 55 byte number 1 = 55 byte number 2 = 55 byte number 3 = 55 byte number 4 = 55 byte number 5 = 55 byte number 6 = d5 byte number 7 = 3f hex memory representation of 0.333333 is : 3fd5555555555555 Zobacz również: * dumpfp<ref>[http://blog.reverberate.org/2012/11/dumpfp-tool-to-inspect-floating-point.html dumpfp: A Tool to Inspect Floating-Point Numbers by Joshua Haberman]</ref> ==Konwersja zapisu matematycznego na program == ===sumowanie=== W zapisie matematycznym do przedstawiania w zwarty sposób sumowania wielu podobnych wyrazów ( serii) stosuje się ''symbol sumowania '' <math>\Sigma</math>, wywodzący się z wielkiej greckiej litery sigma. Jest on zdefiniowany jako: : <math>\sum_{i=m}^n x_i = x_m + x_{m+1} + x_{m+2} +\ldots+ x_{n-1} + x_n,</math> gdzie * <math>i</math> oznacza '''indeks sumowania''' * <math>x_i</math> to zmienna przedstawiająca każdy kolejny wyraz w szeregu * <math>m</math> to '''dolna granica sumowania''' * <math>n</math> to '''górna granica sumowania'''. Wyrażenie „i = m” pod symbolem sumowania oznacza, że indeks <math>i</math> rozpoczyna się od wartości <math>m.</math> Następnie dla każdego kolejnego wyrazu indeks <math>i</math> jest zwiększany o 1, aż <math>i</math> osiągnie wartość <math>n</math> (tj. <math>i = n</math>), który jest ostatnim wyrazem sumowania. <syntaxhighlight lang="c"> #include <stdio.h> int summation(const int m, const int n ) { int s = 0; for(int i=m; i<=n; ++i) { s += i; } return s; } int main() { int sum; int m = 1; // lower index int n = 100; // upper index sum = summation(m,n); printf("sum of integer numbers from %d to %d is %d\n", m, n, sum); return 0; } </syntaxhighlight> <syntaxhighlight lang="bash"> gcc s.c -Wall -Wextra ./a.out sum of integer numbers from 1 to 100 is 5050 </syntaxhighlight> ===produkt ( iloczyn) === W zapisie matematycznym do przedstawiania w zwarty sposób iloczynu wielu podobnych wyrazów ( serii) stosuje się ''symbol iloczynu '' <math>\Pi</math>, wywodzący się z wielkiej greckiej litery pi. Jest on zdefiniowany jako: :<math>\prod_{i=1}^{n} x_i = x_1 \cdot x_2 \cdot x_3 \cdot \ldots \cdot x_n</math> <syntaxhighlight lang="c"> #include <stdio.h> int product(const int m, const int n ) { int p = 1; for(int i=m; i<=n; ++i) { p *= i; } return p; } int main() { int p; int m = 1; // lower index int n = 10; // upper index p = product(m,n); printf("product of integer numbers from %d to %d is %d\n", m, n, p); } </syntaxhighlight> Dla zakresu [1,10] program działa poprawnie <syntaxhighlight lang="bash"> gcc p.c -Wall -Wextra ./a.out product of integer numbers from 1 to 10 is 3628800 </syntaxhighlight> Dla zakresu [1,100] program daje dziwny wynik: <syntaxhighlight lang="bash"> gcc p.c -Wall -Wextra ./a.out product of integer numbers from 1 to 100 is 0 </syntaxhighlight> Wartość iloczynu możemy obliczyć za pomoca [https://www.wolframalpha.com/input?i=Product%5Bk%2C+%7Bk%2C+1%2C+100%7D%5D wolfram alfa]. <pre> Product[k, {k, 1, 100}] = 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000 </pre> Liczba ma 159 cyfr, to więcej niż [[C/Zaawansowane_operacje_matematyczne#całkowitych|zakres dostępnych standardowych liczb całkowitych]]. [[C/Zaawansowane_operacje_matematyczne#Przekroczenie_zakresu_liczb_całkowitych|Przekroczenie zakresu]] powoduje błędny wynik. Jeśli dolny zakres wynosi 1 to wynik jest równy silni ( ang factorial). Wartość silnii rośnie szybciej niż wzrost funkcji wykładniczej. :<math>n! = \prod_{i = 1}^n i.</math> Sprawdzenie czy nie będzie przekroczenia zakresu liczb powinniśmy wykonać '''przed''' wykonaniem działania: <syntaxhighlight lang="c"> #include <stdio.h> #include <limits.h> // INT_MAX /* http://c-faq.com/misc/sd26.html functions for ``careful'' multiplication. */ int chkmul(int a, int b) { int sign = 1; if(a == 0 || b == 0) return 0; if(a < 0) { a = -a; sign = -sign; } if(b < 0) { b = -b; sign = -sign; } if(INT_MAX / b < a) { fprintf(stdout,"int overflow\t"); return (sign > 0) ? INT_MAX : INT_MIN; } return sign*a*b; } int product(const int m, const int n ) { int p = 1; for(int i=m; i<=n; ++i) { fprintf(stdout,"i = %d \t", i); p = chkmul(p,i); fprintf(stdout,"p = %d \n", p); } return p; } int main() { int p; int m = 1; // lower index int n = 100; // upper index p = product(m,n); printf("product of integer numbers from %d to %d is %d\n", m, n, p); } </syntaxhighlight> <syntaxhighlight lang="bash"> gcc p.c -Wall -Wextra ./a.out i = 1 p = 1 i = 2 p = 2 i = 3 p = 6 i = 4 p = 24 i = 5 p = 120 i = 6 p = 720 i = 7 p = 5040 i = 8 p = 40320 i = 9 p = 362880 i = 10 p = 3628800 i = 11 p = 39916800 i = 12 p = 479001600 i = 13 int overflow p = 2147483647 i = 14 int overflow p = 2147483647 i = 15 int overflow p = 2147483647 i = 16 int overflow p = 2147483647 i = 17 int overflow p = 2147483647 i = 18 int overflow p = 2147483647 i = 19 int overflow p = 2147483647 i = 20 int overflow p = 2147483647 i = 21 int overflow p = 2147483647 i = 22 int overflow p = 2147483647 i = 23 int overflow p = 2147483647 i = 24 int overflow p = 2147483647 i = 25 int overflow p = 2147483647 i = 26 int overflow p = 2147483647 i = 27 int overflow p = 2147483647 i = 28 int overflow p = 2147483647 i = 29 int overflow p = 2147483647 i = 30 int overflow p = 2147483647 i = 31 int overflow p = 2147483647 i = 32 int overflow p = 2147483647 i = 33 int overflow p = 2147483647 i = 34 int overflow p = 2147483647 i = 35 int overflow p = 2147483647 i = 36 int overflow p = 2147483647 i = 37 int overflow p = 2147483647 i = 38 int overflow p = 2147483647 i = 39 int overflow p = 2147483647 i = 40 int overflow p = 2147483647 i = 41 int overflow p = 2147483647 i = 42 int overflow p = 2147483647 i = 43 int overflow p = 2147483647 i = 44 int overflow p = 2147483647 i = 45 int overflow p = 2147483647 i = 46 int overflow p = 2147483647 i = 47 int overflow p = 2147483647 i = 48 int overflow p = 2147483647 i = 49 int overflow p = 2147483647 i = 50 int overflow p = 2147483647 i = 51 int overflow p = 2147483647 i = 52 int overflow p = 2147483647 i = 53 int overflow p = 2147483647 i = 54 int overflow p = 2147483647 i = 55 int overflow p = 2147483647 i = 56 int overflow p = 2147483647 i = 57 int overflow p = 2147483647 i = 58 int overflow p = 2147483647 i = 59 int overflow p = 2147483647 i = 60 int overflow p = 2147483647 i = 61 int overflow p = 2147483647 i = 62 int overflow p = 2147483647 i = 63 int overflow p = 2147483647 i = 64 int overflow p = 2147483647 i = 65 int overflow p = 2147483647 i = 66 int overflow p = 2147483647 i = 67 int overflow p = 2147483647 i = 68 int overflow p = 2147483647 i = 69 int overflow p = 2147483647 i = 70 int overflow p = 2147483647 i = 71 int overflow p = 2147483647 i = 72 int overflow p = 2147483647 i = 73 int overflow p = 2147483647 i = 74 int overflow p = 2147483647 i = 75 int overflow p = 2147483647 i = 76 int overflow p = 2147483647 i = 77 int overflow p = 2147483647 i = 78 int overflow p = 2147483647 i = 79 int overflow p = 2147483647 i = 80 int overflow p = 2147483647 i = 81 int overflow p = 2147483647 i = 82 int overflow p = 2147483647 i = 83 int overflow p = 2147483647 i = 84 int overflow p = 2147483647 i = 85 int overflow p = 2147483647 i = 86 int overflow p = 2147483647 i = 87 int overflow p = 2147483647 i = 88 int overflow p = 2147483647 i = 89 int overflow p = 2147483647 i = 90 int overflow p = 2147483647 i = 91 int overflow p = 2147483647 i = 92 int overflow p = 2147483647 i = 93 int overflow p = 2147483647 i = 94 int overflow p = 2147483647 i = 95 int overflow p = 2147483647 i = 96 int overflow p = 2147483647 i = 97 int overflow p = 2147483647 i = 98 int overflow p = 2147483647 i = 99 int overflow p = 2147483647 i = 100 int overflow p = 2147483647 product of integer numbers from 1 to 100 is 2147483647 </syntaxhighlight> Widać że każdy produkt powyżej górnego zakresu=12 jest błędny. Rozwiązaniem jest: * użycie bibliotek o dowolnej precyzji ( [[Programowanie_w_systemie_UNIX/GMP|GMP]] ) * użycie typu zmiennoprzecinkowego (double ) <syntaxhighlight lang="c"> #include <stdio.h> double double_product(const int m, const int n ) { double p = 1.0; for(int i=m; i<=n; ++i) { p*=i; } return p; } int main() { double p; int m = 1; // lower index int n = 100; // upper index p = double_product(m,n); printf("product of integer numbers from %d to %d is %.16e\n", m, n, p); } </syntaxhighlight> <syntaxhighlight lang="bash"> gcc d.c -Wall -Wextra ./a.out product of integer numbers from 1 to 100 is 9.3326215443944102e+157 </syntaxhighlight> Jak widać pierwsze 17 cyfr znaczących się zgadza. Błąd wynosi około 10^140 czyli jest mniejszy niż 1% ==Obliczenia numeryczne== Obliczenia numeryczne<ref>[http://wazniak.mimuw.edu.pl/index.php?title=Metody_numeryczne|Metody numeryczne - Wydziału MIM UW]</ref> <ref>[https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#arithmetic Cpp Core Guidelines : arithmetic]</ref>są to obliczenia na liczbach. Ich przeciwieństwem są obliczenia symboliczne wykonywane na symbolach ( zobacz [[Maxima|Maxima CAS]] ) <ref>[http://mst.mimuw.edu.pl/lecture.php?lecture=ona&part=Ch1|Potrzeba i ból obliczeń numerycznych -Piotr Krzyżanowski ]</ref> {{Uwaga|Należy brać pod uwagę, że w komputerze liczby rzeczywiste nie są tym samym, czym w matematyce. Komputery nie potrafią przechować każdej liczby zmiennoprzecinkowej, w związku z tym obliczenia prowadzone przy użyciu komputera mogą być niedokładne i odbiegać od prawidłowych wyników.<ref>[http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html|What Every Computer Scientist Should Know About Floating-Point Arithmetic, by David Goldberg]</ref> Szczególnie ważne jest to przy programowaniu aplikacji inżynieryjnych oraz w medycynie, gdzie takie błędy mogą skutkować katastrofą i/lub narażeniem ludzkiego życia oraz zdrowia.<ref>[http://www.ima.umn.edu/~arnold/455.f97/notes.html Two disasters caused by computer arithmetic errors]</ref>}} ===Epsilon maszynowy=== '''Epsilon maszynowy''' jest wartością określającą precyzję obliczeń numerycznych wykonywanych na liczbach zmiennoprzecinkowych.<ref>[http://wazniak.mimuw.edu.pl/index.php?title=MN03#Praktyczne_wyznaczanie_precyzji_arytmetyki Praktyczne wyznaczanie precyzji arytmetyki - autorzy : Piotr Krzyżanowski i Leszek Plaskota — Uniwersytet Warszawski, Wydział Matematyki, Informatyki i Mechaniki]</ref> Jest to najmniejsza liczba nieujemna, której dodanie do jedności daje wynik nierówny 1. Innymi słowy, jest to najmniejszy ε, dla którego następujący warunek jest uznawany za niespełniony (przyjmuje wartość ''fałsz''): 1 + ε = 1 Im mniejsza wartość epsilona maszynowego, tym większa jest względna precyzja obliczeń. {{Uwaga|Wartości tej nie należy mylić ze (zwykle dużo niższą) [[C/Zaawansowane_operacje_matematyczne#Limity_dla_oblicze.C5.84_zmiennoprzecinkowych| najmniejszą liczbą uznawaną przez maszynę za różną od zera ( np. DBL_MIN dla typu double )]].}} Obliczmy epsilon dla liczb '''podwójnej precyzji''' : <syntaxhighlight lang="c"> /* http://en.wikipedia.org/wiki/Machine_epsilon The following C program does not actually determine the machine epsilon; rather, it determines a number within a factor of two (one order of magnitude) of the true machine epsilon, using a linear search. --- The difference between 1 and the least value greater than 1 that is representable in the given floating-point type, b1-p. ------------------------------- http://stackoverflow.com/questions/1566198/how-to-portably-get-dbl-epsilon-in-c-c gcc m.c -Wall ./a.out */ #include <stdio.h> #include <float.h> // DBL_EPSILON int main() { double epsilon = 1.0; printf( "epsilon; 1 + epsilon\n" ); do { printf( "%G\t%.20f\n", epsilon, (1.0 + epsilon) ); epsilon /= 2.0f; } // If next epsilon yields 1, then break while ((1.0 + (epsilon/2.0)) != 1.0); // // because current epsilon is the calculated machine epsilon. printf( "\nCalculated Machine epsilon: %G\n", epsilon ); //check value from float.h , Steve Jessop if ((1.0 + DBL_EPSILON) != 1.0 && (1.0 + DBL_EPSILON/2) == 1.0) printf("DBL_EPSILON = %g \n", DBL_EPSILON); else printf("DBL_EPSILON is not good !!! \n"); return 0; } </syntaxhighlight> Wynik programu : <pre> epsilon; 1 + epsilon 1 2.00000000000000000000 0.5 1.50000000000000000000 0.25 1.25000000000000000000 0.125 1.12500000000000000000 0.0625 1.06250000000000000000 0.03125 1.03125000000000000000 0.015625 1.01562500000000000000 0.0078125 1.00781250000000000000 0.00390625 1.00390625000000000000 0.00195312 1.00195312500000000000 0.000976562 1.00097656250000000000 0.000488281 1.00048828125000000000 0.000244141 1.00024414062500000000 0.00012207 1.00012207031250000000 6.10352E-05 1.00006103515625000000 3.05176E-05 1.00003051757812500000 1.52588E-05 1.00001525878906250000 7.62939E-06 1.00000762939453125000 3.8147E-06 1.00000381469726562500 1.90735E-06 1.00000190734863281250 9.53674E-07 1.00000095367431640625 4.76837E-07 1.00000047683715820312 2.38419E-07 1.00000023841857910156 1.19209E-07 1.00000011920928955078 5.96046E-08 1.00000005960464477539 2.98023E-08 1.00000002980232238770 1.49012E-08 1.00000001490116119385 7.45058E-09 1.00000000745058059692 3.72529E-09 1.00000000372529029846 1.86265E-09 1.00000000186264514923 9.31323E-10 1.00000000093132257462 4.65661E-10 1.00000000046566128731 2.32831E-10 1.00000000023283064365 1.16415E-10 1.00000000011641532183 5.82077E-11 1.00000000005820766091 2.91038E-11 1.00000000002910383046 1.45519E-11 1.00000000001455191523 7.27596E-12 1.00000000000727595761 3.63798E-12 1.00000000000363797881 1.81899E-12 1.00000000000181898940 9.09495E-13 1.00000000000090949470 4.54747E-13 1.00000000000045474735 2.27374E-13 1.00000000000022737368 1.13687E-13 1.00000000000011368684 5.68434E-14 1.00000000000005684342 2.84217E-14 1.00000000000002842171 1.42109E-14 1.00000000000001421085 7.10543E-15 1.00000000000000710543 3.55271E-15 1.00000000000000355271 1.77636E-15 1.00000000000000177636 8.88178E-16 1.00000000000000088818 4.44089E-16 1.00000000000000044409 Calculated Machine epsilon: 2.22045E-16 DBL_EPSILON = 2.22045e-16 </pre> Obliczmy epsilon dla liczb '''pojedynczej precyzji''' : <syntaxhighlight lang="c"> #include <stdio.h> int main() { float epsilon = 1.0f; printf( "epsilon; 1 + epsilon\n" ); do { printf( "%G\t%.20f\n", epsilon, (1.0f + epsilon) ); epsilon /= 2.0f; } // If next epsilon yields 1, then break while ((float)(1.0 + (epsilon/2.0)) != 1.0); // // because current epsilon is the machine epsilon. printf( "\nCalculated Machine epsilon: %G\n", epsilon ); return 0; } </syntaxhighlight> Wynik : <pre> Calculated Machine epsilon: 1.19209E-07 </pre> Obliczmy epsilon dla liczb '''long double''' : <syntaxhighlight lang="c"> #include <stdio.h> int main() { long double epsilon = 1.0; printf( "epsilon; 1 + epsilon\n" ); do { printf( "%LG \t %.25LG \n", epsilon, (1.0 + epsilon) ); epsilon /= 2.0; } // If next epsilon yields 1, then break while ((1.0 + (epsilon/2.0)) != 1.0); // // because current epsilon is the machine epsilon. printf( "\n Calculated Machine epsilon: %LG\n", epsilon ); return 0; } </syntaxhighlight > Wynik : <pre> Calculated Machine epsilon: 1.0842E-19 </pre> ===Limity dla obliczeń=== ==== zmiennoprzecinkowych==== '''Definicje''' W pliku [[C/Biblioteka_standardowa/Indeks_tematyczny#float.h|float.h]] są zdefiniowane stałe :<ref>[http://www.geeksforgeeks.org/floating-point-representation-basics/|Floating Point Representation - Basics from : geeksforgeeks.org ]</ref> * DBL_MIN , czyli najmniejszą dodatnia liczbą typu double uznawaną przez maszynę za różną od zera <ref>[https://www3.ntu.edu.sg/home/ehchua/programming/java/DataRepresentation.html|A Tutorial on Data Representation by Chua Hock-Chuan]</ref> * DBL_MAX, czyli największa dodatnia liczbą typu double, która może być używana przez komputer W pliku [[C/Biblioteka_standardowa/Indeks_tematyczny#math.h|math.h]] są zdefiniowane : * [[C/nan|NAN]] <syntaxhighlight lang=c> // gcc -lm -Wall l.c #include <stdio.h> #include <math.h> // infinity, nan #include <float.h>//DBL_MIN int main(void) { printf("DBL_MIN = %g \n", DBL_MIN); printf("DBL_MAX = %g \n", DBL_MAX); printf("INFINITY = %g \n", INFINITY); #ifdef NAN printf("NAN= %g \n", NAN ); #endif return 0; } </syntaxhighlight> Wynik działania : <pre> DBL_MIN = 2.22507e-308 DBL_MAX = 1.79769e+308 INFINITY = inf NAN= nan </pre> ====całkowitych==== <syntaxhighlight lang=c> /* gcc l.c -lm -Wall ./a.out http://stackoverflow.com/questions/29592898/do-long-long-and-long-have-same-range-in-c-in-64-bit-machine */ #include <stdio.h> #include <math.h> // M_PI; needs -lm also #include <limits.h> // INT_MAX, http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html int main(){ double lMax; lMax = log2(INT_MAX); printf("INT_MAX \t= %25d ; lMax = log2(INT_MAX) \t= %.0f \n",INT_MAX, lMax); lMax = log2(UINT_MAX); printf("UINT_MAX \t= %25u ; lMax = log2(UINT_MAX) \t= %.0f \n", UINT_MAX, lMax); lMax = log2(LONG_MAX); printf("LONG_MAX \t= %25ld ; lMax = log2(LONG_MAX) \t= %.0f \n",LONG_MAX, lMax); lMax = log2(ULONG_MAX); printf("ULONG_MAX \t= %25lu ; lMax = log2(ULONG_MAX) \t= %.0f \n",ULONG_MAX, lMax); lMax = log2(LLONG_MAX); printf("LLONG_MAX \t= %25lld ; lMax = log2(LLONG_MAX) \t= %.0f \n",LLONG_MAX, lMax); lMax = log2(ULLONG_MAX); printf("ULLONG_MAX \t= %25llu ; lMax = log2(ULLONG_MAX) \t= %.0f \n",ULLONG_MAX, lMax); return 0; } </syntaxhighlight> Wynik : <pre> INT_MAX = 2147483647 ; lMax = log2(INT_MAX) = 31 UINT_MAX = 4294967295 ; lMax = log2(UINT_MAX) = 32 LONG_MAX = 9223372036854775807 ; lMax = log2(LONG_MAX) = 63 ULONG_MAX = 18446744073709551615 ; lMax = log2(ULONG_MAX) = 64 LLONG_MAX = 9223372036854775807 ; lMax = log2(LLONG_MAX) = 63 ULLONG_MAX = 18446744073709551615 ; lMax = log2(ULLONG_MAX) = 64 </pre> =====Przekroczenie zakresu liczb całkowitych ===== Przekroczenie zakresu liczb całkowitych ( ang. integer overflow ) <ref>[[w:Przekroczenie zakresu liczb całkowitych|Przekroczenie zakresu liczb całkowitych w wikipedii]]</ref> może dotyczyć liczb całkowitych :<ref>[http://www.fefe.de/intof.html|Catching Integer Overflows in C ]</ref> * bez znaku ( " Unsigned integers are defined to wrap around. " ) * ze znakiem ( powoduje zachowanie niezdefiniowane - może to powodować Złe Rzeczy czyli zagrożenie bezpieczeństwa komputera <ref>[http://blog.regehr.org/archives/213|A Guide to Undefined Behavior in C and C++, Part 1 by John Regehr ]</ref> ) ** [[C/abs|abs]](INT_MIN)<ref>[https://stackoverflow.com/questions/22700260/function-abs-returning-negative-number-in-c stackoverflow question: function-abs-returning-negative-number-in-c]</ref> <syntaxhighlight lang=c> #include <stdio.h> /* a signed integer overflow is undefined behaviour in C check b^i to compile : gcc i.c -Wall to run : ./a.out */ int main() { int i; int b=2; // base int p=1; // p = b^i for ( i=0 ; i<40; i++){ printf(" b^i = %d ^ %d = %d \n", b, i, p); p *= b; } return 0; } </syntaxhighlight> Program kompiluje się i uruchamia bez komunikatów o błędach ale wynik nie jest taki jak naiwnie moglibyśmy się spodziewać : <pre> b^i = 2 ^ 0 = 1 b^i = 2 ^ 1 = 2 b^i = 2 ^ 2 = 4 b^i = 2 ^ 3 = 8 b^i = 2 ^ 4 = 16 b^i = 2 ^ 5 = 32 b^i = 2 ^ 6 = 64 b^i = 2 ^ 7 = 128 b^i = 2 ^ 8 = 256 b^i = 2 ^ 9 = 512 b^i = 2 ^ 10 = 1024 b^i = 2 ^ 11 = 2048 b^i = 2 ^ 12 = 4096 b^i = 2 ^ 13 = 8192 b^i = 2 ^ 14 = 16384 b^i = 2 ^ 15 = 32768 b^i = 2 ^ 16 = 65536 b^i = 2 ^ 17 = 131072 b^i = 2 ^ 18 = 262144 b^i = 2 ^ 19 = 524288 b^i = 2 ^ 20 = 1048576 b^i = 2 ^ 21 = 2097152 b^i = 2 ^ 22 = 4194304 b^i = 2 ^ 23 = 8388608 b^i = 2 ^ 24 = 16777216 b^i = 2 ^ 25 = 33554432 b^i = 2 ^ 26 = 67108864 b^i = 2 ^ 27 = 134217728 b^i = 2 ^ 28 = 268435456 b^i = 2 ^ 29 = 536870912 b^i = 2 ^ 30 = 1073741824 b^i = 2 ^ 31 = -2147483648 b^i = 2 ^ 32 = 0 b^i = 2 ^ 33 = 0 b^i = 2 ^ 34 = 0 b^i = 2 ^ 35 = 0 b^i = 2 ^ 36 = 0 b^i = 2 ^ 37 = 0 b^i = 2 ^ 38 = 0 b^i = 2 ^ 39 = 0 </pre> Na podstawie wyniku możemy ocenić że zmienna int jest typu 32 bitowego , ponieważ obliczenia do 2^30 są poprawne. Dla liczb bez znaku przekroczenie zakresu powoduje inny efekt ( modulo ) : <syntaxhighlight lang = c> #include <stdio.h> /* Unsigned integers are defined to wrap around. "When you work with unsigned types, modular arithmetic (also known as "wrap around" behavior) is taking place." http://stackoverflow.com/questions/7221409/is-unsigned-integer-subtraction-defined-behavior */ int main() { unsigned int i; unsigned int old=0; // unsigned int new=0; // unsigned int p=1000000000; // // unsigned long long int lnew= 0; // unsigned long long int lold = (unsigned long long int) old; // unsigned long long int lp = (unsigned long long int) p; // printf("unsigned long long int \tunsigned int \n"); // header for ( i=0 ; i<20; i++){ printf("lnew = %12llu \tnew = %12u", lnew, new); // check overflow // http://stackoverflow.com/questions/2633661/how-to-check-integer-overflow-in-c/ if ( new < old) printf(" unsigned integer overflow = wrap \n"); else printf("\n"); // unsigned int old=new; // save old value for comparison = overflow check new = old + p ; // simple addition ; new value should be greater then old value // unsigned long long int lold=lnew; lnew=lold+lp; } return 0; } </syntaxhighlight> Wynik : <pre> unsigned long long int unsigned int lnew = 0 new = 0 lnew = 1000000000 new = 1000000000 lnew = 2000000000 new = 2000000000 lnew = 3000000000 new = 3000000000 lnew = 4000000000 new = 4000000000 lnew = 5000000000 new = 705032704 unsigned integer overflow = wrap lnew = 6000000000 new = 1705032704 lnew = 7000000000 new = 2705032704 lnew = 8000000000 new = 3705032704 lnew = 9000000000 new = 410065408 unsigned integer overflow = wrap lnew = 10000000000 new = 1410065408 lnew = 11000000000 new = 2410065408 lnew = 12000000000 new = 3410065408 lnew = 13000000000 new = 115098112 unsigned integer overflow = wrap lnew = 14000000000 new = 1115098112 lnew = 15000000000 new = 2115098112 lnew = 16000000000 new = 3115098112 lnew = 17000000000 new = 4115098112 lnew = 18000000000 new = 820130816 unsigned integer overflow = wrap lnew = 19000000000 new = 1820130816 </pre> =====Zapobieganie===== * sprawdzanie danych :<ref>[http://blog.reverberate.org/2012/12/testing-for-integer-overflow-in-c-and-c.html Testing for Integer Overflow in C and C++ by Josh Haberman]</ref> ** przed wykonaniem działań <ref>[http://c-faq.com/misc/intovf.html comp.lang.c FAQ list · Question 20.6b : How can I ensure that integer arithmetic doesn't overflow ?]</ref><ref>[https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html GCC : Built-in Functions to Perform Arithmetic with Overflow Checking ]</ref> *** użycie makr<ref>[https://www.gnu.org/software/gnulib/manual/html%20node/Checking-Integer-Overflow.html gnulib : Checking-Integer-Overflow]</ref> ** po wykonaniu działań ( może być niebezpieczne dla liczb ze znakiem ponieważ niezdefiniowane zachowanie zagraża bezpieczeństwu komputera ) * zwiększenie limitów poprzez : ** zmianę typu ( int , long int, long long int ) ** użycie biblioteki o dowolnej precyzji ( np. [[Programowanie_w_systemie_UNIX/GMP|GMP]] ) ===rozmiar === <syntaxhighlight lang=c> /* Here is a small C program that will print out the size in bytes of some basic C types on your machine. Paul Gribble | Summer 2012 This work is licensed under a Creative Commons Attribution 4.0 International License http://gribblelab.org/CBootcamp/3_Basic_Types_Operators_And_Expressions.html gcc b.c -Wall ./a.out */ #include <stdio.h> int main(int argc, char *argv[]) { printf("a char is %ld bytes\n", sizeof(char)); printf("an int is %ld bytes\n", sizeof(int)); printf("an float is %ld bytes\n", sizeof(float)); printf("a double is %ld bytes\n", sizeof(double)); printf("a short int is %ld bytes\n", sizeof(short int)); printf("a long int is %ld bytes\n", sizeof(long int)); printf("a long double is %ld bytes\n", sizeof(long double)); return 0; } </syntaxhighlight> <pre> a char is 1 bytes an int is 4 bytes an float is 4 bytes a double is 8 bytes a short int is 2 bytes a long int is 8 bytes a long double is 16 bytes </pre> ====Liczba cyfr==== Liczba cyfr w liczbie zmiennoprzecinkowej <ref>[http://stackoverflow.com/questions/2151302/counting-digits-in-a-float?rq=1 Stackoverflow : Counting digits in a float]</ref> <syntaxhighlight lang=c> // http://ubuntuforums.org/showthread.php?t=986212 // http://www.cplusplus.com/reference/cfloat/ // gcc d.c -lm -Wall // ./a.out #include <stdio.h> #include <float.h> int main(void) { printf("Float can ensure %d decimal places\n", FLT_DIG); printf("Double can ensure %d decimal places\n", DBL_DIG); printf("Long double can ensure %d decimal places\n", LDBL_DIG); return 0; } </syntaxhighlight> Wynik : <pre> Float can ensure 6 decimal places Double can ensure 15 decimal places Long double can ensure 18 decimal places </pre> ====Liczby subnormalne==== =====przybliżenia DBL_MIN i liczby subnormalnej ===== Korzystając z funkcji [[C/isnormal|isnormal]] zdefiniowanej w pliku math.h możemy samodzielnie poszukać przybliżenia DBL_MIN i liczby subnormalnej. <syntaxhighlight lang=c> /* isnormal example ISO C99 http://www.cplusplus.com/reference/cmath/isnormal/ http://www.gnu.org/software/libc/manual/html_node/Floating-Point-Classes.html http://docs.oracle.com/cd/E19957-01/806-3568/ncg_math.html compile with: gcc -std=c99 s.c -lm run : ./a.out */ #include <stdio.h> /* printf */ #include <math.h> /* isnormal */ int TestNumber(double x) { int f; // flag f= isnormal(x); if (f) printf (" = %g ; number is normal \n",x); else printf (" = %g ; number is not normal = denormal \n",x); return f; } int main() { double d ; double MinNormal; int flag; d = 1.0 ; // normal flag = TestNumber(d); do { MinNormal=d; d /=2.0; // look for subnormal flag = TestNumber(d); } while (flag); printf ("number %f = %g = %e is a approximation of minimal positive double normal \n",MinNormal, MinNormal, MinNormal); printf ("number %f = %g = %e is not normal ( subnormal) \n",d, d , d); return 0; } </syntaxhighlight> Wynik działania : <pre> number 0.000000 = 2.22507e-308 = 2.225074e-308 is a approximation of minimal positive double normal number 0.000000 = 1.11254e-308 = 1.112537e-308 is not normal ( subnormal) </pre> =====eliminacja liczb subnormalnych===== Ten program generuje liczby subnormale: <syntaxhighlight lang=c> /* https://blogs.oracle.com/d/subnormal-numbers gcc -O0 f.c */ #include <stdio.h> void main() { double d=1.0; while (d>0) {printf("%e\\n",d); d=d/2.0;} } </syntaxhighlight> wynik: <syntaxhighlight lang=bash> 1.000000e+00 5.000000e-01 2.500000e-01 1.250000e-01 6.250000e-02 3.125000e-02 ... 3.162020e-322 1.581010e-322 7.905050e-323 3.952525e-323 1.976263e-323 9.881313e-324 4.940656e-324 </syntaxhighlight> Jeśli jednak skompilujemy go z opcję: gcc -O0 -ffast-math f.c to otrzymamy: <syntaxhighlight lang=bash> ... 3.560118e-307 1.780059e-307 8.900295e-308 4.450148e-308 2.225074e-308 </syntaxhighlight> Liczby subnormalne są zaokrąglane do zera. =====Jaki wpływ na obliczenia mają liczby subnormalne?===== * wydłużają czas obliczeń<ref>[https://cseweb.ucsd.edu/~dkohlbre/papers/subnormal-slides.pdf O N SUBNORMAL FLOATING POINT AND ABNORMAL TIMING by Marc Andrysco, David Kohlbrenner, Keaton Mowery, Ranjit Jhala, Sorin Lerner, and Hovav Shacham]</ref> ===część ułamkowa=== Za pomocą:<ref>[https://stackoverflow.com/questions/499939/extract-decimal-part-from-a-floating-point-number-in-c stackoverflow question : extract-decimal-part-from-a-floating-point-number-in-c]</ref> * funkcji modf * konwersji int <syntaxhighlight lang=c> double frac = r - (int)r ; </syntaxhighlight> ===Błędy w obliczeniach numerycznych=== Typy:<ref>[https://www.sci.brooklyn.cuny.edu/~mate/nml/numanal.pdf INTRODUCTION TO NUMERICAL ANALYSIS WITH C PROGRAMS by Attila Mate]</ref><ref>[https://people.eecs.berkeley.edu/~demmel/cs267/lecture21/lecture21.html Basic Issues in Floating Point Arithmetic and Error Analysis by Jim Demmel ]</ref> * wg etapu operacji :<ref>[https://www.securecoding.cert.org/confluence/display/c/FLP32-C.+Prevent+or+detect+domain+and+range+errors+in+math+functions securecoding.cert.org : Prevent+or+detect+domain+and+range+errors+in+math+functions]</ref> ** blędne dane wejściowe : niezgodne z oczekiwanym typem ** dane wejściowe powodują błąd rezultatu * wg rodzaju operacji ** zmiennoprzecinkowych<ref>[http://stackoverflow.com/questions/2100490/floating-point-inaccuracy-examples?rq=1| Floating point inaccuracy examples]</ref> <ref>[https://github.com/gmarkall/PitfallsFP Catastrophic Cancellation: The Pitfalls of Floating Point Arithmetic by Graham Markall]</ref><ref>[https://math.stackexchange.com/questions/2453939/is-this-characteristic-of-tent-map-usually-observed math.stackexchange question: is-this-characteristic-of-tent-map-usually-observed]</ref> *** porównywanie <ref>[http://stackoverflow.com/questions/10334688/how-dangerous-is-it-to-compare-floating-point-values?rq=1|How dangerous is it to compare floating point values?]</ref> *** odejmowanie podobnych liczb<ref>[http://stackoverflow.com/questions/28474339/is-it-possible-to-get-0-by-subtracting-two-unequal-floating-point-numbers?rq=1|Is it possible to get 0 by subtracting two unequal floating point numbers?]</ref><ref>[http://fdang.fr/articles/numerical/solve-quadratic-equation.html How to solve quadratic equations numerically by FLORIAN DANG]</ref> *** błędy zaokrąglania <ref>[http://www.exploringbinary.com/double-rounding-errors-in-floating-point-conversions/ Double Rounding Errors in Floating-Point Conversions By Rick Regan (Published August 11th, 2010)]</ref> *** przekroczenie limitu ( underflow, overflow)<ref>[http://stackoverflow.com/questions/42277132/when-does-underflow-occur#comment71710792_42277132 stackoverflow question when-does-underflow-occur]</ref><ref>[http://stackoverflow.com/questions/27439503/how-to-define-underflow-for-an-implementationieee754-which-support-subnormal-n stackoverflow question: how-to-define-underflow-for-an-implementationieee754-which-support-subnormal-n]</ref> *** mnożenie Efekt: * zachowanie niezdefiniowane : ( ang. undefined behavior = UB)<ref>[[:w:en:Undefined_behavior|Undefined_behavior w ang. wikipedii]]</ref> <ref>[https://www.nayuki.io/page/undefined-behavior-in-c-and-cplusplus-programs undefined-behavior-in-c-and-cplusplus-programs by Nayuki]</ref> ====Mnożenie ==== * [[C/Zaawansowane_operacje_matematyczne#produkt_(_iloczyn)|obliczanie silni]] <syntaxhighlight lang=c> #include <stdio.h> #include <stdlib.h> #include <time.h> /* https://math.stackexchange.com/questions/2453939/is-this-characteristic-of-tent-map-usually-observed */ /* ------------ constans ---------------------------- */ double m = 2.0; /* parameter of tent map */ double a = 1.0; /* upper bound for randum number generator */ int iMax = 100; /* ------------------- functions --------------------------- */ /* tent map https://en.wikipedia.org/wiki/Tent_map */ double f(double x0, double m){ double x1; if (x0 < 0.5) x1 = m*x0; else x1 = m*(1.0 - x0); return x1; } /* random double from 0.0 to a https://stackoverflow.com/questions/13408990/how-to-generate-random-float-number-in-c */ double GiveRandom(double a){ srand((unsigned int)time(NULL)); return (((double)rand()/(double)(RAND_MAX)) * a); } int main(void){ int i = 0; double x = GiveRandom(a); /* x0 = random */ for (i = 0; i<iMax; i++){ printf("i = %3d \t x = %.16f\n",i, x); x = f(x,m); /* iteration of the tent map */ } return 0; } </syntaxhighlight> Kompilacja i uruchomienie: gcc t.c -Wall ./a.out Wynik: <pre> i = 0 x = 0.1720333817284710 i = 1 x = 0.3440667634569419 i = 2 x = 0.6881335269138839 i = 3 x = 0.6237329461722323 i = 4 x = 0.7525341076555354 i = 5 x = 0.4949317846889292 i = 6 x = 0.9898635693778584 i = 7 x = 0.0202728612442833 i = 8 x = 0.0405457224885666 i = 9 x = 0.0810914449771332 i = 10 x = 0.1621828899542663 i = 11 x = 0.3243657799085327 i = 12 x = 0.6487315598170653 i = 13 x = 0.7025368803658694 i = 14 x = 0.5949262392682613 i = 15 x = 0.8101475214634775 i = 16 x = 0.3797049570730451 i = 17 x = 0.7594099141460902 i = 18 x = 0.4811801717078197 i = 19 x = 0.9623603434156394 i = 20 x = 0.0752793131687213 i = 21 x = 0.1505586263374425 i = 22 x = 0.3011172526748851 i = 23 x = 0.6022345053497702 i = 24 x = 0.7955309893004596 i = 25 x = 0.4089380213990808 i = 26 x = 0.8178760427981615 i = 27 x = 0.3642479144036770 i = 28 x = 0.7284958288073540 i = 29 x = 0.5430083423852921 i = 30 x = 0.9139833152294159 i = 31 x = 0.1720333695411682 i = 32 x = 0.3440667390823364 i = 33 x = 0.6881334781646729 i = 34 x = 0.6237330436706543 i = 35 x = 0.7525339126586914 i = 36 x = 0.4949321746826172 i = 37 x = 0.9898643493652344 i = 38 x = 0.0202713012695312 i = 39 x = 0.0405426025390625 i = 40 x = 0.0810852050781250 i = 41 x = 0.1621704101562500 i = 42 x = 0.3243408203125000 i = 43 x = 0.6486816406250000 i = 44 x = 0.7026367187500000 i = 45 x = 0.5947265625000000 i = 46 x = 0.8105468750000000 i = 47 x = 0.3789062500000000 i = 48 x = 0.7578125000000000 i = 49 x = 0.4843750000000000 i = 50 x = 0.9687500000000000 i = 51 x = 0.0625000000000000 i = 52 x = 0.1250000000000000 i = 53 x = 0.2500000000000000 i = 54 x = 0.5000000000000000 i = 55 x = 1.0000000000000000 i = 56 x = 0.0000000000000000 i = 57 x = 0.0000000000000000 i = 58 x = 0.0000000000000000 i = 59 x = 0.0000000000000000 i = 60 x = 0.0000000000000000 i = 61 x = 0.0000000000000000 i = 62 x = 0.0000000000000000 i = 63 x = 0.0000000000000000 i = 64 x = 0.0000000000000000 i = 65 x = 0.0000000000000000 i = 66 x = 0.0000000000000000 i = 67 x = 0.0000000000000000 i = 68 x = 0.0000000000000000 i = 69 x = 0.0000000000000000 i = 70 x = 0.0000000000000000 i = 71 x = 0.0000000000000000 i = 72 x = 0.0000000000000000 i = 73 x = 0.0000000000000000 i = 74 x = 0.0000000000000000 i = 75 x = 0.0000000000000000 i = 76 x = 0.0000000000000000 i = 77 x = 0.0000000000000000 i = 78 x = 0.0000000000000000 i = 79 x = 0.0000000000000000 i = 80 x = 0.0000000000000000 i = 81 x = 0.0000000000000000 i = 82 x = 0.0000000000000000 i = 83 x = 0.0000000000000000 i = 84 x = 0.0000000000000000 i = 85 x = 0.0000000000000000 i = 86 x = 0.0000000000000000 i = 87 x = 0.0000000000000000 i = 88 x = 0.0000000000000000 i = 89 x = 0.0000000000000000 i = 90 x = 0.0000000000000000 i = 91 x = 0.0000000000000000 i = 92 x = 0.0000000000000000 i = 93 x = 0.0000000000000000 i = 94 x = 0.0000000000000000 i = 95 x = 0.0000000000000000 i = 96 x = 0.0000000000000000 i = 97 x = 0.0000000000000000 i = 98 x = 0.0000000000000000 i = 99 x = 0.0000000000000000 </pre> ====Porównywanie==== Sprawdźmy czy liczba x jest równa zero : if (x==0.0) Czy takie porównanie jest bezpieczne dla liczb zmiennoprzecinkowych ?<ref>[https://stackoverflow.com/questions/20362304/c-floating-point-zero-comparison stackoverflow question: c-floating-point-zero-comparison]</ref> <syntaxhighlight lang=c> // gcc c1.c -Wall -lm #include <math.h> /* isnormal */ #include <float.h>//DBL_MIN #include <stdio.h> int main () { double x = 1.0; int i; for ( i=0; i < 334; i++) { x/=10; printf ("i = %3d ; x= %.16lf = %e so ", i, x,x); // if (x<DBL_MIN) printf ("x < DBL_MIN and "); else printf ("x > DBL_MIN and "); // if (isnormal(x)) printf ("x is normal and "); else printf ("x is subnormal and "); // if (x==0.0) printf ("equal to 0.0\n"); else printf ("not equal to 0.0\n"); } return 0; } </syntaxhighlight> Wynik : <pre> i = 0 ; x= 0.1000000000000000 = 1.000000e-01 so x > DBL_MIN and x is normal and not equal to 0.0 i = 1 ; x= 0.0100000000000000 = 1.000000e-02 so x > DBL_MIN and x is normal and not equal to 0.0 i = 2 ; x= 0.0010000000000000 = 1.000000e-03 so x > DBL_MIN and x is normal and not equal to 0.0 i = 3 ; x= 0.0001000000000000 = 1.000000e-04 so x > DBL_MIN and x is normal and not equal to 0.0 i = 4 ; x= 0.0000100000000000 = 1.000000e-05 so x > DBL_MIN and x is normal and not equal to 0.0 i = 5 ; x= 0.0000010000000000 = 1.000000e-06 so x > DBL_MIN and x is normal and not equal to 0.0 i = 6 ; x= 0.0000001000000000 = 1.000000e-07 so x > DBL_MIN and x is normal and not equal to 0.0 i = 7 ; x= 0.0000000100000000 = 1.000000e-08 so x > DBL_MIN and x is normal and not equal to 0.0 i = 8 ; x= 0.0000000010000000 = 1.000000e-09 so x > DBL_MIN and x is normal and not equal to 0.0 i = 9 ; x= 0.0000000001000000 = 1.000000e-10 so x > DBL_MIN and x is normal and not equal to 0.0 i = 10 ; x= 0.0000000000100000 = 1.000000e-11 so x > DBL_MIN and x is normal and not equal to 0.0 i = 11 ; x= 0.0000000000010000 = 1.000000e-12 so x > DBL_MIN and x is normal and not equal to 0.0 i = 12 ; x= 0.0000000000001000 = 1.000000e-13 so x > DBL_MIN and x is normal and not equal to 0.0 i = 13 ; x= 0.0000000000000100 = 1.000000e-14 so x > DBL_MIN and x is normal and not equal to 0.0 i = 14 ; x= 0.0000000000000010 = 1.000000e-15 so x > DBL_MIN and x is normal and not equal to 0.0 i = 15 ; x= 0.0000000000000001 = 1.000000e-16 so x > DBL_MIN and x is normal and not equal to 0.0 i = 16 ; x= 0.0000000000000000 = 1.000000e-17 so x > DBL_MIN and x is normal and not equal to 0.0 i = 17 ; x= 0.0000000000000000 = 1.000000e-18 so x > DBL_MIN and x is normal and not equal to 0.0 i = 18 ; x= 0.0000000000000000 = 1.000000e-19 so x > DBL_MIN and x is normal and not equal to 0.0 i = 19 ; x= 0.0000000000000000 = 1.000000e-20 so x > DBL_MIN and x is normal and not equal to 0.0 i = 20 ; x= 0.0000000000000000 = 1.000000e-21 so x > DBL_MIN and x is normal and not equal to 0.0 ... i = 290 ; x= 0.0000000000000000 = 1.000000e-291 so x > DBL_MIN and x is normal and not equal to 0.0 i = 291 ; x= 0.0000000000000000 = 1.000000e-292 so x > DBL_MIN and x is normal and not equal to 0.0 i = 292 ; x= 0.0000000000000000 = 1.000000e-293 so x > DBL_MIN and x is normal and not equal to 0.0 i = 293 ; x= 0.0000000000000000 = 1.000000e-294 so x > DBL_MIN and x is normal and not equal to 0.0 i = 294 ; x= 0.0000000000000000 = 1.000000e-295 so x > DBL_MIN and x is normal and not equal to 0.0 i = 295 ; x= 0.0000000000000000 = 1.000000e-296 so x > DBL_MIN and x is normal and not equal to 0.0 i = 296 ; x= 0.0000000000000000 = 1.000000e-297 so x > DBL_MIN and x is normal and not equal to 0.0 i = 297 ; x= 0.0000000000000000 = 1.000000e-298 so x > DBL_MIN and x is normal and not equal to 0.0 i = 298 ; x= 0.0000000000000000 = 1.000000e-299 so x > DBL_MIN and x is normal and not equal to 0.0 i = 299 ; x= 0.0000000000000000 = 1.000000e-300 so x > DBL_MIN and x is normal and not equal to 0.0 i = 300 ; x= 0.0000000000000000 = 1.000000e-301 so x > DBL_MIN and x is normal and not equal to 0.0 i = 301 ; x= 0.0000000000000000 = 1.000000e-302 so x > DBL_MIN and x is normal and not equal to 0.0 i = 302 ; x= 0.0000000000000000 = 1.000000e-303 so x > DBL_MIN and x is normal and not equal to 0.0 i = 303 ; x= 0.0000000000000000 = 1.000000e-304 so x > DBL_MIN and x is normal and not equal to 0.0 i = 304 ; x= 0.0000000000000000 = 1.000000e-305 so x > DBL_MIN and x is normal and not equal to 0.0 i = 305 ; x= 0.0000000000000000 = 1.000000e-306 so x > DBL_MIN and x is normal and not equal to 0.0 i = 306 ; x= 0.0000000000000000 = 1.000000e-307 so x > DBL_MIN and x is normal and not equal to 0.0 i = 307 ; x= 0.0000000000000000 = 1.000000e-308 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 308 ; x= 0.0000000000000000 = 1.000000e-309 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 309 ; x= 0.0000000000000000 = 1.000000e-310 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 310 ; x= 0.0000000000000000 = 1.000000e-311 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 311 ; x= 0.0000000000000000 = 1.000000e-312 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 312 ; x= 0.0000000000000000 = 1.000000e-313 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 313 ; x= 0.0000000000000000 = 1.000000e-314 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 314 ; x= 0.0000000000000000 = 1.000000e-315 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 315 ; x= 0.0000000000000000 = 1.000000e-316 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 316 ; x= 0.0000000000000000 = 9.999997e-318 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 317 ; x= 0.0000000000000000 = 9.999987e-319 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 318 ; x= 0.0000000000000000 = 9.999889e-320 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 319 ; x= 0.0000000000000000 = 9.999889e-321 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 320 ; x= 0.0000000000000000 = 9.980126e-322 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 321 ; x= 0.0000000000000000 = 9.881313e-323 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 322 ; x= 0.0000000000000000 = 9.881313e-324 so x < DBL_MIN and x is subnormal and not equal to 0.0 i = 323 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 324 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 325 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 326 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 327 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 328 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 329 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 330 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 331 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 332 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 i = 333 ; x= 0.0000000000000000 = 0.000000e+00 so x < DBL_MIN and x is subnormal and equal to 0.0 </pre> Jak powinno się porównywać liczby zmienno przecinkowe ?<ref>[https://bitbashing.io/comparing-floats.html Comparing Floating-Point Numbers Is Tricky by Matt Kline]</ref> * wartość bezwględna róznicy : if( abs(a-b) < epsilon) // wrong - don't do this<ref>[https://floating-point-gui.de/errors/comparison/ | floating-point-gui.de : comparison/]</ref> * if( abs((a-b)/b) < epsilon ) // still not right! * wartości graniczne * stałe <ref>[https://stackoverflow.com/questions/9542391/float-double-equality-with-exact-zero stackoverflow question : float-double-equality-with-exact-zero]</ref> if (fpclassify(x) == FP_ZERO ) lub if (x == FP_ZERO) Wartości służące do testo wania porównań : * wg Michael Borgwardt<ref>[http://floating-point-gui.de/errors/NearlyEqualsTest.java Michael Borgwardt : Nearly Equals Test in java]</ref> ====Sumowanie==== Na ile poważny jest to problem? Spróbujmy przyjrzeć się działaniu, polegającym na 1000-krotnym dodawaniu do liczby wartości 1/3. Oto kod: <syntaxhighlight lang="c"> #include <stdio.h> int main () { float a = 0; int i = 0; for (;i<1000;i++) { a += 1.0/3.0; } printf ("%f\n", a); } </syntaxhighlight> Z matematyki wynika, że 1000*(1/3) = 333.(3), podczas gdy komputer wypisze wynik, nieco różniący się od oczekiwanego (w moim przypadku): <pre> 333.334106 </pre> Błąd pojawił się na cyfrze części tysięcznej liczby. Nie jest to może poważny błąd, jednak zastanówmy się, czy ten błąd nie będzie się powiększał. Zamieniamy w kodzie ilość iteracji z 1000 na 100 000. Tym razem mój komputer wskazał już nieco inny wynik: <pre> 33356.554688 </pre> Błąd przesunął się na cyfrę dziesiątek w liczbie. Tak więc nie należy do końca polegać na prezentacji liczb zmiennoprzecinkowych w komputerze. ====Utrata precyzji==== Utrata precyzji, utrata cyfr znaczących ( ang. Loss of significance, catastrophic cancellation of significant digits) * sumowanie dużej liczby z małą * odejmowanie prawie równych liczb<ref>[https://www.nayuki.io/page/numerically-stable-law-of-cosines numerically-stable-law-of-cosines by Nayuki]</ref> ==Biblioteki matematyczne == ===float.h=== [[C/Biblioteka_standardowa/Indeks_tematyczny#float.h|opis]] ===Standardowa : math.h=== Aby móc korzystać z wszystkich dobrodziejstw funkcji matematycznych musimy na początku dołączyć plik [[C/Biblioteka standardowa/Indeks tematyczny#math.h|math.h]]: <syntaxhighlight lang="c"> #include <math.h> </syntaxhighlight> a w procesie kompilacji (dotyczy kompilatora GCC) musimy dodać flagę "-lm" '''po''' nazwie pliku wynikowego<ref>[http://stackoverflow.com/questions/8671366/undefined-reference-to-pow-and-floor Stackoverflow : Undefined reference to `pow' and `floor']</ref>, czyli na końcu linii :<ref>[http://stackoverflow.com/questions/16344445/im-using-math-h-and-the-library-link-lm-but-undefined-reference-to-pow-st?rq=1 I'm using math.h and the library link -lm, but “undefined reference to `pow'” still happening]</ref> gcc plik.c -o plik -lm Funkcje matematyczne, które znajdują się w bibliotece standardowej ( plik libm.a ) możesz znaleźć [[C/Biblioteka standardowa/Indeks tematyczny#math.h|tutaj]]. Przy korzystaniu z nich musisz wziąć pod uwagę m.in. to, że biblioteka matematyczna prowadzi kalkulację w oparciu o [[w:Radian|radiany]] a nie stopnie. ==== Stałe matematyczne: pi, e ... ==== W pliku [[C/Biblioteka standardowa/Indeks tematyczny#math.h|math.h]] zdefiniowane są pewne stałe, które mogą być przydatne do obliczeń. Są to m.in.: * M_E - podstawa logarytmu naturalnego (e, liczba Eulera) * M_LOG2E - logarytm o podstawie 2 z liczby e * M_LOG10E - logarytm o podstawie 10 z liczby e * M_LN2 - logarytm naturalny z liczby 2 * M_LN10 - logarytm naturalny z liczby 10 * M_PI - liczba π * M_PI_2 - liczba π/2 * M_PI_4 - liczba π/4 * M_1_PI - liczba 1/π * M_2_PI - liczba 2/π Możemy to sprawdzić: grep -i pi /usr/include/math.h i otrzymamy: # define M_PI 3.14159265358979323846 /* pi */ # define M_PI_2 1.57079632679489661923 /* pi/2 */ # define M_PI_4 0.78539816339744830962 /* pi/4 */ # define M_1_PI 0.31830988618379067154 /* 1/pi */ # define M_2_PI 0.63661977236758134308 /* 2/pi */ # define M_2_SQRTPI 1.12837916709551257390 /* 2/sqrt(pi) */ # define M_PIl 3.1415926535897932384626433832795029L /* pi */ # define M_PI_2l 1.5707963267948966192313216916397514L /* pi/2 */ # define M_PI_4l 0.7853981633974483096156608458198757L /* pi/4 */ # define M_1_PIl 0.3183098861837906715377675267450287L /* 1/pi */ # define M_2_PIl 0.6366197723675813430755350534900574L /* 2/pi */ # define M_2_SQRTPIl 1.1283791670955125738961589031215452L /* 2/sqrt(pi) */ /* When compiling in strict ISO C compatible mode we must not use the ===Liczby zespolone === * _Complex * complex.h * biblioteki: ** mpc ** arb <ref>[http://fredrikj.net/arb/acb.html arb library ]</ref> ==== różnica pomiędzy _complex a complex ==== * _Complex jest słowem kluczowym, możemy go używać bez dyrektywy include dołączającej plik nagłówkowy complex.h * complex jest makrem z pliku nagłówkowego complex.h <syntaxhighlight lang=c> float _Complex double _Complex long double _Complex </syntaxhighlight> <syntaxhighlight lang=c> #include <complex.h> float complex double complex long double complex </syntaxhighlight> ====complex.h==== '''Operacje na liczbach zespolonych są częścią uaktualnionego standardu języka C o nazwie [[C/C99|C99]], który jest obsługiwany jedynie przez część kompilatorów''' {{Infobox|Podane tutaj informacje zostały sprawdzone na systemie Gentoo Linux z biblioteką GNU libc w wersji 2.3.5 i kompilatorem GCC w wersji 4.0.2}} Dotychczas korzystaliśmy tylko z liczb rzeczywistych, lecz najnowsze standardy języka C umożliwiają korzystanie także z innych liczb - np. z [[Liczby zespolone|liczb zespolonych]]. Aby móc korzystać z liczb zespolonych w naszym programie należy w nagłówku programu umieścić następującą linijkę: <syntaxhighlight lang="c"> #include <complex.h> </syntaxhighlight> która powoduje dołączenie [[C/Biblioteka_standardowa|standardowej biblioteki obsługującej liczny zespolenie]] Wiemy, że liczba zespolona zdeklarowana jest następująco: z = a+b*i, gdzie a, b są liczbami rzeczywistymi, a i jest [[Liczby_zespolone/Liczby_urojone|jednostką urojoną]] i*i = (-1). W pliku complex.h liczba i zdefiniowana jest jako I. Zatem wypróbujmy możliwości liczb zespolonych: <syntaxhighlight lang="c"> #include <math.h> #include <complex.h> #include <stdio.h> int main () { float _Complex z = 4+2.5*I; printf ("Liczba z: %f+%fi\n", creal(z), cimag (z)); return 0; } </syntaxhighlight> następnie kompilujemy nasz program: gcc plik1.c -o plik1 -lm Po wykonaniu naszego programu powinniśmy otrzymać: Liczba z: 4.00+2.50i W programie zamieszczonym powyżej użyliśmy dwóch funkcji - creal i cimag. * creal - zwraca część rzeczywistą liczby zespolonej * cimag - zwraca część urojoną liczby zespolonej Więcej: <syntaxhighlight lang=c> // https://stackoverflow.com/questions/6418807/how-to-work-with-complex-numbers-in-c // program by user870774 #include <stdio.h> /* Standard Library of Input and Output */ #include <complex.h> /* Standard Library of Complex Numbers */ int main() { double complex z1 = 1.0 + 3.0 * I; double complex z2 = 1.0 - 4.0 * I; printf("Working with complex numbers:\n\v"); printf("Starting values: Z1 = %.2f + %.2fi\tZ2 = %.2f %+.2fi\n", creal(z1), cimag(z1), creal(z2), cimag(z2)); double complex sum = z1 + z2; printf("The sum: Z1 + Z2 = %.2f %+.2fi\n", creal(sum), cimag(sum)); double complex difference = z1 - z2; printf("The difference: Z1 - Z2 = %.2f %+.2fi\n", creal(difference), cimag(difference)); double complex product = z1 * z2; printf("The product: Z1 x Z2 = %.2f %+.2fi\n", creal(product), cimag(product)); double complex quotient = z1 / z2; printf("The quotient: Z1 / Z2 = %.2f %+.2fi\n", creal(quotient), cimag(quotient)); double complex conjugate = conj(z1); printf("The conjugate of Z1 = %.2f %+.2fi\n", creal(conjugate), cimag(conjugate)); return 0; } </syntaxhighlight> ====MPC==== [[Programowanie w systemie UNIX/MPC | Opis MPC]] ===Dodatkowe === *[[Programowanie w systemie UNIX/GSL | GSL - biblioteka naukowa GNU ( ang. GNU Scientific Library) ]] * [[Programowanie_w_systemie_UNIX/GMP | GMP]] *[[Programowanie w systemie UNIX/MPFR | MPFR]] ==Zobacz również== * [[C/carg|carg]] * [[C/fenv|fenv.h]] * [[:en:Floating_Point/Epsilon|Epsilon w ang Podręcznikach]] * [https://fredrikj.net/blog/2021/01/developing-mathematical-software-in-c/ developing-mathematical-software-in-c by Fredrik Johansson] == Źródła == <references/> {{BrClear}} <noinclude> {{Nawigacja|C| [[C/Więcej o kompilowaniu|Więcej o kompilowaniu]]| [[C/Powszechne praktyki|Powszechne praktyki]]| }} {{Wolumin}} </noinclude> 3xr20pbd2b9g8ps4ctguwhne7ftv30f Slovio/Pytania 0 8776 435615 404351 2022-07-25T15:45:34Z Caslonc 33900 wikitext text/x-wiki {{Slovio}} =Lekcja 3 - Pytania = Pytania w Slovio tworzymy poprzez dodanie słowa "li" na początku zdania lub poprzez zaimki pytające. ===Dialog=== <div style="width:25%;font-size:small;float:right; border:1px solid black;padding:0.5em;background:#FFFFE5"> <span style="color:orange;font-weight:bold;font-size:large">Pytania</span>&nbsp; * '''kak''' = jak * '''sxto''' = co * '''kai''' = jaki * '''gdef''' = gdzie * '''kto''' = kto * '''gda''' = kiedy * '''pocx''' = dlaczego </div> Proszę zwrócić uwagę na tę rozmowę: {| style="padding-left:10px" cellpadding="10" cellspacing="1" |bgcolor="#99CCCC"|Marek: Zdrav Katia, <span style="font-weight:bold;font-style:italic">kak</span> ti cxutijsx? |- |bgcolor="#99CCCC"|Katia: Cxutijm dobruo. <span style="font-weight:bold;font-style:italic">Sxto</span> derzxijsx vo tvoi ruk? |- |bgcolor="#99CCCC"|Marek: To es brosxur. |- |bgcolor="#99CCCC"|Katia: <span style="font-weight:bold;font-style:italic">Kai</span> brosxur? |- |bgcolor="#99CCCC"|Marek: To es turistju brosxur. |- |bgcolor="#99CCCC"|Katia: Interesju! <span style="font-weight:bold;font-style:italic">Gdef</span> ti putovajsx? |- |bgcolor="#99CCCC"|Marek: Idijm vo Praguf. |- |bgcolor="#99CCCC"|Katia: <span style="font-weight:bold;font-style:italic">Kto</span> idijt so te? |- |bgcolor="#99CCCC"|Marek: Nikto. Putovajm samuo. |- |bgcolor="#99CCCC"|Katia: <span style="font-weight:bold;font-style:italic">Pocx</span> idijsx vo Praguf? |- |bgcolor="#99CCCC"|Marek: Tapocx Prag es krasju. |- |bgcolor="#99CCCC"|Katia: Da, ja tozxe hcejm vo Cxehju Republikuf putovat. <span style="font-weight:bold;font- style:italic">Gda</span> idijsx? |- |bgcolor="#99CCCC"|Marek: Idijm sledju mesiac. |} ===Słownictwo=== <div style="font-size:small;border:1px solid black;padding:0.5em;background:#FFFFE5"> * zdrav - cześć * cxutijsx - czujesz się * cxutijm - czuję się * dobruo - dobrze * derzxijsx - trzymasz * vo - do * tvoi - twój * ruk - ręka * to - to * brosxur - broszura * turistju - turystyczny/a * interesju - interesujący * ti - ty * Gdef ti putovajsx? - gdzie się wybierasz * idijm - jadę * Praguf - Praga * idijt - idzie * so - z * te - tobą * nikto - nikt * putovajm - podróżuje * samuo - samotnie * idijsx - jedziesz * tapocx - ponieważ * krasju - piękny * da - tak * ja - ja * tozxe - też * hcejm - chce * Cxehju Republikuf - Republika Czeska * putovat - pojechać * sledju - następny </div> {{Slovio}} hprep86ugk4edfm8wmmy552gulsz2j8 Szablon:StronaStart 10 19820 435571 435550 2022-07-25T12:10:33Z Persino 2851 wikitext text/x-wiki <includeonly><templatestyles src="Szablon:StronaStart/stronastart.css" /><templatestyles src="Szablon:TOC_limit/styles.css" />{{#if:{{{formatowanie|}}}|<templatestyles src="Szablon:StronaStart/styles.css" />{{#if:{{{boczne menu|}}}|{{#if:{{{spis treści|TOC}}}{{{wykaz modułów|WYKAZ}}}|<templatestyles src="Szablon:TOC/styles.css" />}}}}}}{{#ifeq:{{{boczne menu|}}}{{{spis treści|TOC}}}|||{{Mniejszy}}div class="strona_start" style="min-width:822px;width:auto;max-width:100%;height:auto;box-sizing:border-box;overflow:hidden"{{Większy}}{{Mniejszy}}div style="display:flex;flex-direction:column;"{{Większy}}{{#if:{{{podręcznik|tak}}}|{{Podręcznik|styl=order:1;}}}}{{Mniejszy}}div style="order:2;"{{Większy}} {{{nagłówek|}}}{{Mniejszy}}/div{{Większy}}{{Mniejszy}}div style="order:4;"{{Większy}} {{{stopka|}}}{{Mniejszy}}/div{{Większy}}{{Mniejszy}}div class="noprint" class="główna_strona tło" style="order:3;position:relative;top:0px;left:0px;display:flex;flex-direction:row;{{#if:{{{margines zewnętrzny|0}}}|margin:{{{margines zewnętrzny|0}}};}}"{{Większy}}{{#if:{{{boczne menu|}}}|__NOTOC__}}{{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}{{{nagłówek prawy|}}}{{{stopka prawa|}}}| <div style="order:1;width:100%;" class="strona_lewa"><!-- --><div style="position:relative;height:100%;display:flex;flex-direction:column;box-sizing:border-box;z-index:1"><!-- -->{{#if:{{{nagłówek lewy|}}}|<!-- -->{{Tabela nawigacyjna | funkcja = PokazanaNiewikitabelowaListaMenu | styl = position:absolute;left:0;display:block; | styl tytułu = background-color:white; | tytuł = | bez dodatkowych sprawdzeń = tak | spis = {{Div|styl=position:absolute;left:0;|{{{nagłówek lewy}}}}} }}<!-- -->{{DivClear}}<!-- -->}}<!-- -->{{Div|styl=height:100%;box-sizing:border-box;}}<!-- -->{{#if:{{{stopka lewa|}}}|{{DivClear}}<!-- -->{{Tabela nawigacyjna | funkcja = PokazanaNiewikitabelowaListaMenu | styl = position:absolute;left:0;display:block; | styl tytułu = background-color:white; | tytuł = | bez dodatkowych sprawdzeń = tak | spis = {{Div|styl=position:absolute;left:0;|{{{stopka lewa}}}}} }}<!-- -->}}<!-- --> </div><!-- --></div><!-- --><div style="width:100%;order:3;" class="strona_prawa"><div class="mw-sticky-y toclimit {{#if:{{{limit|}}}|toclimit-{{{limit}}}}} {{#if:{{{formatowanie|}}}|fonty_rodzina_sans {{#if:{{{boczne menu|}}}|fonty_poboczna_kolumna|fonty_toc}}}} spis" style="display:flex;flex-direction:column;;z-index:2;position:absolute;right:0;top:0;width:{{#if:{{{boczne menu|}}}|700px|auto}};max-width:700px;box-sizing:border-box;height:auto;{{#if:{{{margines zewnętrzny poboczny|0}}}|margin:{{{margines zewnętrzny poboczny|0}}};}}{{#if:{{{margines wewnętrzny poboczny|0}}}|padding:{{{margines wewnętrzny poboczny|0}}};}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{rozmiar czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-size:{{{rozmiar czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{wysokość linii czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|line-height:{{{wysokość linii czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{rodzina czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-family:{{{rodzina czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{wariant czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-variant:{{{wariant czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{rozciągnięcie czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-stretch:{{{rozciągnięcie czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{waga czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-weight:{{{waga czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{styl czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-style:{{{styl czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}};"><!-- -->{{#if:{{{boczne menu|}}}<!-- -->|{{#invoke:StronicowyParser|PierwszaStrona|{{{nazwa modułu|NAZWA MODUŁU}}}|{{{licencja|LICENCJA}}}|{{{wykaz modułów|WYKAZ}}}|{{{spis treści|TOC}}}|rozciągnij=tak|wysokość=calc( 100vh - 80px )|bez marginesu dolnego=tak}}<!-- -->|{{#switch:{{#invoke:Pudełko|Typ jednostki|obsługiwane jednostki użytkownika=tak|obsługiwane jednostki brudnopisu projektu=tak|obsługiwane strony jako niebrudnopisowe jednostki programowe=tak}}<!-- -->|podręcznik|podręcznik dla dzieci|podręcznik brudnopisu projektu|podręcznik użytkownika={{Jeśli niepuste|{{#invoke:StronicowyParser|WykazModolow|spis książkowy=tak|spis rzeczy=tak|nagłówki=tak|wysokość=calc( 100vh - 260px )}}|__NOTOC__{{TOC/silnik|funkcja=PokazanaNiewikitabelowaListaMenu|spis treści=Spis treści|spis artykułu=tak|limit={{{limit|}}}|bez dodatkowych sprawdzeń=tak|bez komunikatu błędu=tak|wysokość=calc( 100vh - 85px )}}|przed lewy={{Div start|styl=width:700px;background-color:white;display:flex;flex-direction:column;overflow:auto;}}{{StronaTytułowa|rozmiar=100%}}__NOTOC__|po lewy={{Div koniec}}}}<!-- -->|strona szablonu={{TOC/silnik|funkcja=PokazanaNiewikitabelowaListaMenu|spis treści=Spis treści|spis artykułu=tak|limit={{{limit|}}}|bez dodatkowych sprawdzeń=tak|bez komunikatu błędu=tak|wysokość=calc( 100vh - 85px )}}<!-- -->|#default=__NOTOC__{{TOC/silnik|funkcja=PokazanaNiewikitabelowaListaMenu|spis treści=Spis treści|spis artykułu=tak|limit={{{limit|}}}|bez dodatkowych sprawdzeń=tak|bez komunikatu błędu=tak|wysokość=calc( 100vh - 85px )}}<!-- -->}}<!-- -->}}<!-- --></div> <!-- --><div style="position:relative;height:auto;display:flex;flex-direction:column;position:relative;margin-top:360px;box-sizing:border-box;z-index:1;"><!-- -->{{#if:{{{nagłówek prawy|}}}|<!-- -->{{Tabela nawigacyjna | funkcja = PokazanaNiewikitabelowaListaMenu | styl = position:absolute;right:0;display:block; | styl tytułu = background-color:white; | tytuł = | bez dodatkowych sprawdzeń = tak | spis = {{Div|styl=position:absolute;right:0;|{{{nagłówek prawy}}}}} }}<!-- -->{{DivClear}}<!-- -->}}<!-- -->{{Div|styl=height:100%;box-sizing:border-box;}}<!-- -->{{#if:{{{stopka prawa|}}}|{{DivClear}}<!-- -->{{Tabela nawigacyjna | funkcja = PokazanaNiewikitabelowaListaMenu | styl = position:absolute;right:0;display:block; | styl tytułu = background-color:white; | tytuł = | bez dodatkowych sprawdzeń = tak | spis = {{Div|styl=position:absolute;right:0;|{{{stopka prawa}}}}} }}<!-- -->}}<!-- --> </div><!-- --></div>}}<!-- -->}}{{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}|{{Mniejszy}}div style="order:2;display:flex;flex-direction:column;" class="strona_środkowa"{{Większy}}<!-- --><div style="order:1">{{{wstęp|}}}</div><!-- --><div style="order:3">{{{zakończenie|}}}</div><!-- -->}}{{Mniejszy}}div id="strona" {{#if:{{{formatowanie|}}}|class="strona mw-overflow-x print fonty_rodzina_sans fonty_główna_kolumna {{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}||strona_start}}"|class="strona {{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}||strona_start}}"}} style="{{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}|order:2;}}display:flex;flex-direction:column;position:relative;left:0px;top:0px;min-width:{{{minimalna szerokość strony|{{{szerokość strony|822px}}}}}};max-width:{{{maksymalna szerokość strony|{{{szerokość strony|822px}}}}}};width:{{{szerokość strony|822px}}};height:{{{wysokość strony|100%}}};{{#if:{{{obramowanie|tak}}}|border: solid #aaa 1px;}}{{#if:{{{margines wewnętrzny|10px 10px 10px 10px}}}|padding:{{{margines wewnętrzny|10px 10px 10px 10px}}};}}{{#if:{{{margines zewnętrzny główny|0}}}|margin:{{{margines zewnętrzny główny|0}}};}}{{#ifeq:{{{boczne menu|}}}{{{spis treści|TOC}}}||{{#if:{{{margines zewnętrzny|5px 0 0 0}}}|margin:{{{margines zewnętrzny|5px 0 0 0}}};}}}}{{#if:{{{pasek przewijania|hidden}}}|overflow-x:{{{pasek przewijania|hidden}}};overflow-y:visible;}}{{#if:{{{margines wewnętrzny|10px 10px 10px 10px}}}{{{obramowanie|tak}}}|box-sizing:border-box;}}{{#if:{{{czcionka strony|}}}|font:{{{czcionka strony|}}};}}{{#if:{{{czcionka strony|}}}||{{#if:{{{rozmiar czcionki strony|}}}|font-size:{{{rozmiar czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{wysokość linii czcionki strony|}}}|line-height:{{{wysokość linii czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{rodzina czcionki strony|}}}|font-family:{{{rodzina czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{wariant czcionki strony|}}}|font-variant:{{{wariant czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{rozciągnięcie czcionki strony|}}}|font-stretch:{{{rozciągnięcie czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{waga czcionki strony|}}}|font-weight:{{{waga czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{styl czcionki strony|}}}|font-style:{{{styl czcionki strony|}}};}}}}background-color:white;"{{Większy}}<!-- -->{{Mniejszy}}div id="ciało_kontener" class="ciało_kontener" style="display:flex;flex-direction:column"{{Większy}}<!-- -->{{Mniejszy}}div style="order:1;flex:0 1 auto;max-width:100%;"{{Większy}}{{{nagłówek strony|}}}{{Mniejszy}}/div{{Większy}}<!-- -->{{Mniejszy}}div style="order:3;flex:0 1 auto;max-width:100%;"{{Większy}}{{{stopka strony|}}}{{Mniejszy}}/div{{Większy}}<!-- -->{{Mniejszy}}div id="ciało_strona" class="ciało_strona" style="order:2;flex:0 1 auto;max-width:100%;"{{Większy}}<!-- --></includeonly><noinclude>{{Dokumentacja}}</noinclude> 01qwiblgtqmhopfez2qsppr0xyd40zj 435618 435571 2022-07-25T16:01:09Z Persino 2851 wikitext text/x-wiki <includeonly><templatestyles src="Szablon:StronaStart/stronastart.css" /><templatestyles src="Szablon:TOC_limit/styles.css" />{{#if:{{{formatowanie|}}}|<templatestyles src="Szablon:StronaStart/styles.css" />{{#if:{{{boczne menu|}}}|{{#if:{{{spis treści|TOC}}}{{{wykaz modułów|WYKAZ}}}|<templatestyles src="Szablon:TOC/styles.css" />}}}}}}{{#ifeq:{{{boczne menu|}}}{{{spis treści|TOC}}}|||{{Mniejszy}}div class="strona_start" style="min-width:822px;width:auto;max-width:100%;height:auto;box-sizing:border-box;overflow:hidden"{{Większy}}{{Mniejszy}}div style="display:flex;flex-direction:column;"{{Większy}}{{#if:{{{podręcznik|tak}}}|{{Podręcznik|styl=order:1;}}}}{{Mniejszy}}div style="order:2;"{{Większy}} {{{nagłówek|}}}{{Mniejszy}}/div{{Większy}}{{Mniejszy}}div style="order:4;"{{Większy}} {{{stopka|}}}{{Mniejszy}}/div{{Większy}}{{Mniejszy}}div class="noprint" class="główna_strona tło" style="order:3;position:relative;top:0px;left:0px;display:flex;flex-direction:row;{{#if:{{{margines zewnętrzny|0}}}|margin:{{{margines zewnętrzny|0}}};}}"{{Większy}}{{#if:{{{boczne menu|}}}|__NOTOC__}}{{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}{{{nagłówek prawy|}}}{{{stopka prawa|}}}| <div style="order:1;width:100%;" class="strona_lewa"><!-- --><div style="position:relative;height:100%;display:flex;flex-direction:column;box-sizing:border-box;z-index:1"><!-- -->{{#if:{{{nagłówek lewy|}}}|<!-- -->{{Div|klasa=mw-optimal-x|styl=position:absolute;left:0|{{{nagłówek lewy}}}}}<!-- -->{{DivClear}}<!-- -->}}<!-- -->{{Div|styl=height:100%;box-sizing:border-box;}}<!-- -->{{#if:{{{stopka lewa|}}}|{{DivClear}}<!-- -->{{Div|klasa=mw-optimal-x|styl=position:absolute;left:0|{{{stopka lewa}}}}}<!-- -->}}<!-- --> </div><!-- --></div><!-- --><div style="width:100%;order:3;" class="strona_prawa"><div class="mw-sticky-y toclimit {{#if:{{{limit|}}}|toclimit-{{{limit}}}}} {{#if:{{{formatowanie|}}}|fonty_rodzina_sans {{#if:{{{boczne menu|}}}|fonty_poboczna_kolumna|fonty_toc}}}} spis" style="display:flex;flex-direction:column;;z-index:2;position:absolute;right:0;top:0;width:{{#if:{{{boczne menu|}}}|700px|auto}};max-width:700px;box-sizing:border-box;height:auto;{{#if:{{{margines zewnętrzny poboczny|0}}}|margin:{{{margines zewnętrzny poboczny|0}}};}}{{#if:{{{margines wewnętrzny poboczny|0}}}|padding:{{{margines wewnętrzny poboczny|0}}};}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{rozmiar czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-size:{{{rozmiar czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{wysokość linii czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|line-height:{{{wysokość linii czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{rodzina czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-family:{{{rodzina czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{wariant czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-variant:{{{wariant czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{rozciągnięcie czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-stretch:{{{rozciągnięcie czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{waga czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-weight:{{{waga czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}}{{#if:{{{czcionka {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}||{{#if:{{{styl czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}}|font-style:{{{styl czcionki {{#if:{{{boczne menu|}}}|bocznego menu|TOC}}|}}};}}}};"><!-- -->{{#if:{{{boczne menu|}}}<!-- -->|{{#invoke:StronicowyParser|PierwszaStrona|{{{nazwa modułu|NAZWA MODUŁU}}}|{{{licencja|LICENCJA}}}|{{{wykaz modułów|WYKAZ}}}|{{{spis treści|TOC}}}|rozciągnij=tak|wysokość=calc( 100vh - 80px )|bez marginesu dolnego=tak}}<!-- -->|{{#switch:{{#invoke:Pudełko|Typ jednostki|obsługiwane jednostki użytkownika=tak|obsługiwane jednostki brudnopisu projektu=tak|obsługiwane strony jako niebrudnopisowe jednostki programowe=tak}}<!-- -->|podręcznik|podręcznik dla dzieci|podręcznik brudnopisu projektu|podręcznik użytkownika={{Jeśli niepuste|{{#invoke:StronicowyParser|WykazModolow|spis książkowy=tak|spis rzeczy=tak|nagłówki=tak|wysokość=calc( 100vh - 260px )}}|__NOTOC__{{TOC/silnik|funkcja=PokazanaNiewikitabelowaListaMenu|spis treści=Spis treści|spis artykułu=tak|limit={{{limit|}}}|bez dodatkowych sprawdzeń=tak|bez komunikatu błędu=tak|wysokość=calc( 100vh - 85px )}}|przed lewy={{Div start|styl=width:700px;background-color:white;display:flex;flex-direction:column;overflow:auto;}}{{StronaTytułowa|rozmiar=100%}}__NOTOC__|po lewy={{Div koniec}}}}<!-- -->|strona szablonu={{TOC/silnik|funkcja=PokazanaNiewikitabelowaListaMenu|spis treści=Spis treści|spis artykułu=tak|limit={{{limit|}}}|bez dodatkowych sprawdzeń=tak|bez komunikatu błędu=tak|wysokość=calc( 100vh - 85px )}}<!-- -->|#default=__NOTOC__{{TOC/silnik|funkcja=PokazanaNiewikitabelowaListaMenu|spis treści=Spis treści|spis artykułu=tak|limit={{{limit|}}}|bez dodatkowych sprawdzeń=tak|bez komunikatu błędu=tak|wysokość=calc( 100vh - 85px )}}<!-- -->}}<!-- -->}}<!-- --></div> <!-- --><div style="position:relative;height:auto;display:flex;flex-direction:column;position:relative;margin-top:360px;box-sizing:border-box;z-index:1;"><!-- -->{{#if:{{{nagłówek prawy|}}}|<!-- -->{{Div|klasa=mw-optimal-x|styl=position:absolute;right:0|{{{nagłówek prawy}}}}}<!-- -->{{DivClear}}<!-- -->}}<!-- -->{{Div|styl=height:100%;box-sizing:border-box;}}<!-- -->{{#if:{{{stopka prawa|}}}|{{DivClear}}<!-- -->{{Div|klasa=mw-optimal-x|styl=position:absolute;right:0|{{{stopka prawa}}}}}<!-- -->}}<!-- --> </div><!-- --></div>}}<!-- -->}}{{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}|{{Mniejszy}}div style="order:2;display:flex;flex-direction:column;" class="strona_środkowa"{{Większy}}<!-- --><div style="order:1">{{{wstęp|}}}</div><!-- --><div style="order:3">{{{zakończenie|}}}</div><!-- -->}}{{Mniejszy}}div id="strona" {{#if:{{{formatowanie|}}}|class="strona mw-overflow-x print fonty_rodzina_sans fonty_główna_kolumna {{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}||strona_start}}"|class="strona {{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}||strona_start}}"}} style="{{#if:{{{boczne menu|}}}{{{spis treści|TOC}}}|order:2;}}display:flex;flex-direction:column;position:relative;left:0px;top:0px;min-width:{{{minimalna szerokość strony|{{{szerokość strony|822px}}}}}};max-width:{{{maksymalna szerokość strony|{{{szerokość strony|822px}}}}}};width:{{{szerokość strony|822px}}};height:{{{wysokość strony|100%}}};{{#if:{{{obramowanie|tak}}}|border: solid #aaa 1px;}}{{#if:{{{margines wewnętrzny|10px 10px 10px 10px}}}|padding:{{{margines wewnętrzny|10px 10px 10px 10px}}};}}{{#if:{{{margines zewnętrzny główny|0}}}|margin:{{{margines zewnętrzny główny|0}}};}}{{#ifeq:{{{boczne menu|}}}{{{spis treści|TOC}}}||{{#if:{{{margines zewnętrzny|5px 0 0 0}}}|margin:{{{margines zewnętrzny|5px 0 0 0}}};}}}}{{#if:{{{pasek przewijania|hidden}}}|overflow-x:{{{pasek przewijania|hidden}}};overflow-y:visible;}}{{#if:{{{margines wewnętrzny|10px 10px 10px 10px}}}{{{obramowanie|tak}}}|box-sizing:border-box;}}{{#if:{{{czcionka strony|}}}|font:{{{czcionka strony|}}};}}{{#if:{{{czcionka strony|}}}||{{#if:{{{rozmiar czcionki strony|}}}|font-size:{{{rozmiar czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{wysokość linii czcionki strony|}}}|line-height:{{{wysokość linii czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{rodzina czcionki strony|}}}|font-family:{{{rodzina czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{wariant czcionki strony|}}}|font-variant:{{{wariant czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{rozciągnięcie czcionki strony|}}}|font-stretch:{{{rozciągnięcie czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{waga czcionki strony|}}}|font-weight:{{{waga czcionki strony|}}};}}}}{{#if:{{{czcionka strony|}}}||{{#if:{{{styl czcionki strony|}}}|font-style:{{{styl czcionki strony|}}};}}}}background-color:white;"{{Większy}}<!-- -->{{Mniejszy}}div id="ciało_kontener" class="ciało_kontener" style="display:flex;flex-direction:column"{{Większy}}<!-- -->{{Mniejszy}}div style="order:1;flex:0 1 auto;max-width:100%;"{{Większy}}{{{nagłówek strony|}}}{{Mniejszy}}/div{{Większy}}<!-- -->{{Mniejszy}}div style="order:3;flex:0 1 auto;max-width:100%;"{{Większy}}{{{stopka strony|}}}{{Mniejszy}}/div{{Większy}}<!-- -->{{Mniejszy}}div id="ciało_strona" class="ciało_strona" style="order:2;flex:0 1 auto;max-width:100%;"{{Większy}}<!-- --></includeonly><noinclude>{{Dokumentacja}}</noinclude> d8dln1l3h65fv7njggbk7rrs70a3v9f Szablon:StronaStart/opis 10 19925 435578 430406 2022-07-25T12:34:36Z Persino 2851 /* Użycie */ wikitext text/x-wiki {{Podstrona dokumentacji}} {{Szablony stronicowe (otwierające i zamykające)}} <!-- DODAWAJ KATEGORIE NA DOLE STRONY --> == Instrukcja obsługi == Jest to szablon stronicowy {{#switch:{{ROOTPAGENAME}}|StronaStart=otwierający|StronaKoniec=zamykający|#default=otwierający}} stronę. Szablon dodawany na początek danego modułu, czyli z opisywanym tutaj {{s|StronaStart}} wraz z szablonem {{s|StronaKoniec}}, który jest dodawany na sam koniec tego samego modułu, po to by uczynić daną stronę bardziej książkową, by zawartość głównej kolumny nie rozłaziła się na całą szerokość strony. Po użyciu tychże szablonów dany moduł ma szerokość domyślnie 800 pikseli (licząc bez marginesów wewnętrznych i obramowania, a z nimi to 822 pikseli) (lub inną szerokość podaną w argumentach tego szablonu). Szablony {{s|StronaStart}} i {{s|StronaKoniec}} są używane do budowy innych szablonów stronicowych. Oto opis zestawu szablonów stronicowych: ; Szablon stronicowy wykorzystywany do budowy innych szablonów stronicowych * {{s|StronaStart}} równej zawartości tego szablonu, szablon otwierający. * {{s|StronaKoniec}}, szablon zamykający szablon {{s|StronaStart}}. ; Ze formatowanym spisem treści Wikimedia i zawartością: * {{s|UnikatowaStronaStart}} = szablon otwierający: {{PreWikikod|UnikatowaStronaStart}} * {{s|UnikatowaStronaKoniec}} = szablon zamykający szablon {{s|UnikatowaStronaStart}}: {{PreWikikod|UnikatowaStronaKoniec}} ; Ze formatowanym spisem treści Wikimedia i zawartością, wyświetlający górny nagłówek: * {{s|UnikalnaStronaStart}} = szablon otwierający: {{PreWikikod|UnikalnaStronaStart}} * {{s|UnikalnaStronaKoniec}} = szablon zamykający szablon: {{s|UnikalnaStronaStart}}: {{PreWikikod|UnikalnaStronaKoniec}} ; Ze sformatowanymi: ale z bocznym menu: nazwą modułu, licencją, spisem modułów i spisem treści, oraz zawartością: * {{s|SkomplikowanaStronaStart}} = szablon otwierający: {{PreWikikod|SkomplikowanaStronaStart}} * {{s|SkomplikowanaStronaKoniec}} = szablon zamykający szablon {{s|SkomplikowanaStronaStart}}: {{PreWikikod|SkomplikowanaStronaKoniec}} ; Ze sformatowaną jedną kolumną z marginesami wewnętrznymi: * {{s|StandardowaStronaStart}} = szablon otwierający: {{PreWikikod|StandardowaStronaStart}} * {{s|StandardowaStronaKoniec}} = szablon zamykający szablon {{s|StandardowaStronaStart}}: {{PreWikikod|StandardowaStronaKoniec}} ; Ze sformatowaną jedną kolumną bez marginesów wewnętrznych: * {{s|PodstawowaStronaStart}} = szablon otwierający: {{PreWikikod|PodstawowaStronaStart}} * {{s|PodstawowaStronaKoniec}} = szablon zamykający szablon {{s|PodstawowaStronaStart}}: {{PreWikikod|PodstawowaStronaKoniec}} ; Ze sformatowaną jedną kolumną bez marginesów wewnętrznych i obramowania: * {{s|ProstaStronaStart}} = szablon otwierający: {{PreWikikod|ProstaStronaStart}} * {{s|ProstaStronaKoniec}} = szablon zamykający szablon {{s|ProstaStronaStart}}: {{PreWikikod|ProstaStronaKoniec}} == Opis parametrów == Szablony {{s|StronaStart}} i {{s|StronaKoniec}} są używane bez żadnych argumentów, lub ten pierwszy szablon też jest używany z parametrami wskazanymi na dole w sekcji '''[[#Użycie|Użycie]]''', a ten drugi ewentualnie jest używany z parametrem '''NoFlex''', w odpowiednich przypadkach użycia szablonów stronicowych {{s|StronaStart}} i jego pokrewnych. == Użycie == Normalnie szablon {{s|StronaStart}} może być wywołany bez parametrów lub z parametrami podanymi poniżej: ; Podstawowe opcje dotyczące czcionek * {{Code|czcionka (toc, bocznego menu, strony)}} = (rozmiar, wysokość linii, rodzina, wariant, rozciągnięcie, waga i styl) czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny). ; Dalsze opcje dotyczące czcionek: * {{Code|rozmiar czcionki (TOC, bocznego menu, strony)}} = rozmiar czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów), * {{Code|wysokość linii czcionki (TOC, bocznego menu, strony)}} = wysokość linii wiersza czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów), * {{Code|rodzina czcionki (TOC, bocznego menu, strony)}} = rodzina czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów), * {{Code|wariant czcionki (TOC, bocznego menu, strony)}} = wariant czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów), * {{Code|rozciągnięcie czcionki (TOC, bocznego menu, strony)}} = rozciągnięcie czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów) , * {{Code|waga czcionki (TOC, bocznego menu, strony)}} = waga czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów), * {{Code|styl czcionki (TOC, bocznego menu, strony)}} = styl czcionki (wbudowanego spisu treści TOC, bocznego menu, strony) (opcjonalny domyślnie ustawione przez przeglądarkę lub za pomocą stylów). ; Opcje dotyczące szerokości i wysokości: * {{Code|szerokość strony}} = szerokość strony (opcjonalny domyślnie ustawionym na {{Code|800px}}), * {{Code|minimalna szerokość strony}} = minimalna szerokość strony (opcjonalny domyślnie ustawionym na: {{Code|szerokość strony}}), * {{Code|maksymalna szerokość strony}} = maksymalna szerokość strony (opcjonalny domyślnie ustawionym na: {{Code|szerokość strony}}), * {{Code|wysokość strony}} = wysokość strony (opcjonalnie ustawiony na {{Code|100%}}). ; Dalsze opcje trybu uproszczonego * {{Code|spis treści}} = wartość niepusta - włącza wbudowany w Wikimedia spis treści po prawej stronie pierwszej kolumny artykułu, jeśli {{Code|wartość pusta}} i {{Parametr|boczne menu}}, to spis treści jest domyślnie w głównej kolumnie artykułu, a nie po prawej jego stronie, (domyślnie wartość niepusta, opcjonalny). ; Dalsze opcje trybu nieuproszczonego * {{Code|nazwa modułu}} = wartość niepusta - włącza wyświetlanie nazwy modułu (opcjonalny domyślnie ustawiony na wartość niepustą), * {{Code|licencja}} = wartość niepusta - włącza tekstową wersję licencji (opcjonalny domyślnie ustawiony na wartość niepustą), * {{Code|wykaz modułów}} = wartość niepusta - włącza wykaz modułów w książce (opcjonalny domyślnie ustawiony na wartość niepustą), * {{Code|spis treści}} = wartość niepusta - włącza spis treści niewbudowany w Wikimedia (opcjonalny domyślnie ustawiony na wartość niepustą), * {{Code|podręcznik}} = wartość niepusta - włącza wyświetlanie nagłówka i stopki (opcjonalny, domyślnie ustawiony na wartość niepustą). ; Opcje ogólne * {{Code|obramowanie}} = wartość niepusta, włącza obramowanie (opcjonalny, domyślnie wartość niepusta), * {{Code|formatowanie}} = wartość niepusta - włącza tryb formatowania zawartości pomiędzy wywołaniami szablonów stronicowych otwierającego i zamykającego, (opcjonalny domyślnie ustawiony na wartość pustą), * {{Code|boczne menu}} = wartość niepusta - włącza własne: nazwę modułu, licencję, wykaz modułu i spis treści po prawej stronie pierwszej kolumny, (opcjonalny, domyślnie ustawiony na wartość pustą), * {{Code|margines zewnętrzny}} = ustawia margines zewnętrzny (opcjonalny, domyślnie ustawiony na: {{Code|0}}), * {{Code|margines zewnętrzny poboczny}} = ustawia margines zewnętrzny elementu pobocznego po prawej względem głównej kolumny (opcjonalny, domyślnie ustawiony na: {{Code|0}}), * {{Code|margines zewnętrzny główny}} = margines zewnętrzny głównej kolumny, gdy jest element poboczny po prawej, (opcjonalny, domyślnie ustawiony na: {{Code|0}}, gdy z prawej strony jest wbudowany w Wikimedia spis treści, lub wartość pusta w innym przypadku), * {{Code|margines wewnętrzny}} = ustawia margines wewnętrzny głównej kolumny (opcjonalny, domyślnie ustawiony na: {{Code|10px}}), * {{Code|margines wewnętrzny poboczny}} = ustawia margines wewnętrzny elementu pobocznego względem głównej kolumny innej niż wbudowany spis treści Wikimedia (opcjonalny, domyślnie ustawiony na: {{Code|0}}), * {{Code|pasek przewijania}} = {{Code|{{!(}}hidden{{!}}visible{{!}}scroll{{!}}auto{{)!}}}} lub wartość pusta - ustawia wartość właściwości overflow (opcjonalny, domyślnie ustawiony na: {{Code|hidden}}). ; Nagłówki, stopki wstępy i zakończenia * {{Code|wstęp}} - nagłówek szablonowy na główną częścią strony, w tej samej kolumnie, * {{Code|zakończenie}} - stopka szablonowa pod główną częścią strony, w tej samej kolumnie, * {{Code|nagłówek}} - nagłówek nad główną częścią podręcznikową, a pod szablonem {{s|Podręcznik}}, w danym wierszu, * {{Code|stopka}} - stopka pod główną częścią podręcznikową, w danym wierszu, patrz jego odpowiednik {{Parametr|nagłówek}}, * {{Code|nagłówek strony}} - nagłówek w części, na górze, górnej głównej podręcznikowej, * {{Code|stopka strony}} - stopka w części, na dole, głównej podręcznikowej, * {{Code|nagłówek lewy}} - nagłówek w przestrzeni lewej, na górze, wolnej części strony, * {{Code|stopka lewa}} - stopka w przestrzeni lewej, na dole, wolnej części strony, * {{Code|nagłówek prawy}} - nagłówek w przestrzeni prawej, na górze, wolnej części strony, * {{Code|stopka prawa}} - stopka w przestrzeni prawej, na dole, wolnej części strony, Nagłówek, czy wstęp występuje na górze jakieś przestrzeni, a stopka na jego dole. ---- Napisy szablonu {{s|StronaStart}} i jego pokrewnych uwzględniający mena boczne lub spisy treści: (wstęp, czy nagłówek) - na górze w danej przestrzeni, (zakończenie, czy stopka) - na dole w danej przestrzeni,gdy występuje menu boczne, to nie dotyczy zmiennych {{Parametr|nagłówek strony}}, {{Parametr|stopka strony}}. == Przykład == Na samym początku modułu piszemy: * w postaci bez użycia w nim parametrów: {{Pre|{{Span|styl=color:green|'''<nowiki><noinclude></nowiki>'''}}{{s|StronaStart}}{{Span|styl=color:green|'''<nowiki></noinclude></nowiki>'''}}}} * lub z parametrami: {{Pre|{{Span|styl=color:green|'''<nowiki><noinclude></nowiki>'''}}{{s|StronaStart|...}}{{Span|styl=color:green|'''<nowiki></noinclude></nowiki>'''}}}} a na samym jego końcu: {{Pre|{{Span|styl=color:green|'''<nowiki><noinclude></nowiki>'''}}{{s|StronaKoniec}}{{Span|styl=color:green|'''<nowiki></noinclude></nowiki>'''}}}} ---- ---- ; Przykład {{Pre| {{Span|styl=color:green|'''<nowiki><noinclude></nowiki>'''}}{{s|StronaStart}}{{Span|styl=color:green|'''<nowiki></noinclude></nowiki>'''}} {{s|ArtykułSubst}} {{Span|styl=color:green|'''<nowiki><noinclude></nowiki>'''}}{{s|Kreska nawigacja|{{s|AktualnaKsiążka}}|{{s|NastępnyArtykuł}}|{{s|PoprzedniArtykuł}}}}{{Span|styl=color:green|'''<nowiki></noinclude></nowiki>'''}} {{Span|styl=color:green|'''<nowiki><noinclude></nowiki>'''}}{{s|StronaKoniec}}{{Span|styl=color:green|'''<nowiki></noinclude></nowiki>'''}} }} ---- Na stronie {{LinkSzablon2|Podręcznik/Ustawienia/Szablon:StronaStart/config}} są zmienne, by załadować odpowiedni artykuł. Ten szablon ustawień wygląda następująco: {{ŹródłoKodu|{{LuaSubst|Szablon:Podręcznik/Ustawienia/Szablon:StronaStart/config|inkludowana=tak}}}} Parametr {{Code|książka}}, czyli {{Parametr|książka|{{PobierzUstawienia|Podręcznik/Ustawienia/Szablon:StronaStart|książka}}}} jest nazw książki, a {{Code|artykuł}}, czyli {{Parametr|artykuł|{{PobierzUstawienia|Podręcznik/Ustawienia/Szablon:StronaStart|artykuł}}}}, jest nazwą artykułu. Szablon {{s|PobierzUstawienia}} pobiera ustawienia, jaki artykuł i książkę ma symulować, zobacz dokumentację tego szablonu, tzn. {{s|PobierzUstawienia/opis}}. Zmienna {{Code|tytuł}}, czyli {{Parametr|tytuł|{{PobierzUstawienia|Podręcznik/Ustawienia/Szablon:StronaStart|tytuł}}}}, przedstawia tytuł podręcznika, używany przez szablon {{s|Podręcznik}}. ----- ----- ; Wynik {{StronaStart}} {{ArtykułSubst}} {{Kreska nawigacja|{{AktualnaKsiążka}}|{{NastępnyArtykuł}}|{{PoprzedniArtykuł}}}} {{StronaKoniec}} == Błędy == Błędy należy zgłaszać na stronie {{kwestie techniczne}}. == Parametry szablonu ({{Strukturyzacja Wizualnego Edytora}}) == <templatedata> { "params": { "czcionka TOC": { "description": "(Rozmiar, wysokość linii, rodzina, wariant, rozciągnięcie, waga i styl) czcionki wbudowanego menu spisu treści strony.", "type": "string" }, "czcionka bocznego menu": { "description": "(Rozmiar, wysokość linii, rodzina, wariant, rozciągnięcie, waga i styl) czcionki bocznego menu strony.", "type": "string" }, "czcionka strony": { "description": "(rozmiar, wysokość linii, rodzina, wariant, rozciągnięcie, waga i styl) czcionki strony.", "type": "string" }, "rozmiar czcionki TOC": { "description": "Rozmiar czcionki bocznego menu TOC wbudowanego spisu treści strony.", "type": "string" }, "rozmiar czcionki bocznego menu": { "description": "Rozmiar czcionki bocznego menu strony.", "type": "string" }, "rozmiar czcionki strony": { "description": "Rozmiar czcionki strony.", "type": "string" }, "wysokość linii czcionki TOC": { "description": "Wysokość linii czcionki spisu treści strony wbudowanego spisu treści w bocznym menu.", "type": "string" }, "wysokość linii czcionki bocznego menu": { "description": "Wysokość linii czcionki bocznego menu strony.", "type": "string" }, "wysokość linii czcionki strony": { "description": "Wysokość linii czcionki strony.", "type": "string" }, "rodzina czcionki TOC": { "description": "Rodzina czcionki TOC wbudowanego menu strony.", "type": "string" }, "rodzina czcionki bocznego menu": { "description": "Rodzina czcionki bocznego menu strony.", "type": "string" }, "rodzina czcionki strony": { "description": "Rodzina czcionki strony.", "type": "string" }, "wariant czcionki TOC": { "description": "Waga czcionki TOC wbudowanego spisu treści strony.", "type": "string" }, "wariant czcionki bocznego menu": { "description": "Wariant czcionki bocznego menu.", "type": "string" }, "wariant czcionki strony": { "description": "Wariant czcionki bocznego menu.", "type": "string" }, "rozciągnięcie czcionki TOC": { "description": "Rozciągnięcie czcionki TOC wbudowanego spisu treści strony.", "type": "string" }, "rozciągnięcie czcionki bocznego menu": { "description": "Rozciągnięcie czcionki bocznego menu strony.", "type": "string" }, "rozciągnięcie czcionki strony": { "description": "Rozciągnięcie czcionki strony.", "type": "string" }, "waga czcionki TOC": { "description": "Waga czcionki TOC wbudowanego menu czcionki strony.", "type": "string" }, "waga czcionki bocznego menu": { "description": "Waga czcionki bocznego menu.", "type": "string" }, "waga czcionki strony": { "description": "Waga czcionki strony.", "type": "string" }, "styl czcionki TOC": { "description": "Styl czcionki TOC wbudowanego spisu treści strony.", "type": "string" }, "styl czcionki bocznego menu": { "description": "Styl czcionki bocznego menu.", "type": "string" }, "styl czcionki strony": { "description": "Styl czcionki strony.", "type": "string" }, "szerokość strony": { "description": "szerokość strony", "type": "string", "default": "800px" }, "minimalna szerokość strony": { "description": "Minimalna szerokość strony.", "type": "string", "default": "Na zmienną: szerokość strony." }, "maksymalna szerokość strony": { "description": "Maksymalna szerokość strony.", "type": "string", "default": "Na zmienną: szerokość strony." }, "wysokość strony": { "description": "Wysokość strony.", "type": "string", "default": "100%" }, "spis treści": { "description": "Wartość niepusta - włącza wbudowany w Wikimedia spis treści po prawej stronie pierwszej kolumny artykułu, jeśli wartość pusta i | boczne menu = , to spis treści jest domyślnie w głównej kolumnie artykułu, a nie po prawej jego stronie,", "type": "string", "default": "TOC" }, "nazwa modułu": { "description": "Wartość niepusta - włącza wyświetlanie nazwy modułu", "type": "string", "default": "NAZWA MODUŁU" }, "licencja": { "description": "Licencja książki, a w nim artykułu.", "type": "string", "default": "LICENCJA" }, "wykaz modułów": { "description": "Wartość niepusta - włącza wykaz modułów w książce .", "type": "string", "default": "WYKAZ" }, "podręcznik": { "description": "Wartość niepusta - włącza wyświetlanie nagłówka i stopki.", "type": "string", "default": "tak" }, "formatowanie": { "description": "Włącza tryb formatowania zawartości pomiędzy wywołaniami szablonów stronicowych otwierającego i zamykającego.", "type": "string" }, "boczne menu": { "description": "Wartość niepusta - włącza własne: nazwę modułu, licencję, wykaz modułu i spis treści po prawej stronie pierwszej kolumny.", "type": "string" }, "margines zewnętrzny": { "description": "Ustawia margines zewnętrzny.", "type": "string" }, "margines zewnętrzny poboczny": { "description": "Ustawia margines zewnętrzny elementu pobocznego po prawej względem głównej kolumny.", "type": "string", "default": "0 0 0 5px" }, "margines zewnętrzny główny": { "description": "Margines zewnętrzny głównej kolumny, gdy jest element poboczny po prawej.", "type": "string" }, "margines wewnętrzny": { "description": "Ustawia margines wewnętrzny głównej kolumny.", "type": "string", "default": "10px 10px 10px 10px" }, "margines wewnętrzny poboczny": { "description": "Ustawia margines wewnętrzny elementu pobocznego względem głównej kolumny innej niż wbudowany spis treści Wikimedia.", "type": "string", "default": "10px 10px 10px 10px" }, "pasek przewijania": { "description": "[hidden|visible|scroll|auto] lub wartość pusta - ustawia wartość właściwości overflow.", "type": "string", "default": "hidden" }, "obramowanie": { "description": "Wartość niepusta, włącza obramowanie.", "type": "string", "default": "tak" }, "wstęp": { "description": "Nagłówek szablonowy na główną częścią strony, części podręcznikowej, w tej samej kolumnie.", "type": "unbalanced-wikitext" }, "zakończenie": { "description": "Stopka szablonowa pod główną częścią strony, części podręcznikowej, w tej samej kolumnie.", "type": "unbalanced-wikitext" }, "nagłówek": { "description": "Nagłówek nad główną częścią podręcznikową, a pod szablonem {{Podręcznik}}, jeżeli włączono jego wyświetlanie, w danym wierszu.", "type": "unbalanced-wikitext" }, "stopka": { "description": "Stopka pod główną częścią podręcznikową, w danym wierszu.", "type": "unbalanced-wikitext" }, "nagłówek strony": { "description": "Nagłówek w części, na górze, głównej podręcznikowej.", "type": "unbalanced-wikitext" }, "stopka strony": { "description": "Stopka w części, na dole, głównej podręcznikowej.", "type": "unbalanced-wikitext" }, "nagłówek lewy": { "description": "Nagłówek w przestrzeni lewej, na górze, wolnej części strony.", "type": "unbalanced-wikitext" }, "stopka lewa": { "description": "Stopka w przestrzeni lewej, na dole, wolnej części strony.", "type": "unbalanced-wikitext" }, "nagłówek prawy": { "description": "Nagłówek w przestrzeni prawej, na górze, wolnej części strony.", "type": "unbalanced-wikitext" }, "stopka prawa": { "description": "Stopka w przestrzeni prawej, na dole, wolnej części strony.", "type": "unbalanced-wikitext" } }, "paramOrder": [ "czcionka TOC", "czcionka bocznego menu", "czcionka strony", "rozmiar czcionki TOC", "rozmiar czcionki bocznego menu", "rozmiar czcionki strony", "wysokość linii czcionki TOC", "wysokość linii czcionki bocznego menu", "wysokość linii czcionki strony", "rodzina czcionki TOC", "rodzina czcionki bocznego menu", "rodzina czcionki strony", "wariant czcionki TOC", "wariant czcionki bocznego menu", "wariant czcionki strony", "rozciągnięcie czcionki TOC", "rozciągnięcie czcionki bocznego menu", "rozciągnięcie czcionki strony", "waga czcionki TOC", "waga czcionki bocznego menu", "waga czcionki strony", "styl czcionki TOC", "styl czcionki bocznego menu", "styl czcionki strony", "szerokość strony", "minimalna szerokość strony", "maksymalna szerokość strony", "wysokość strony", "spis treści", "nazwa modułu", "licencja", "wykaz modułów", "podręcznik", "obramowanie", "formatowanie", "boczne menu", "margines zewnętrzny", "margines zewnętrzny poboczny", "margines zewnętrzny główny", "margines wewnętrzny", "margines wewnętrzny poboczny", "pasek przewijania", "wstęp", "zakończenie", "nagłówek", "stopka", "nagłówek strony", "stopka strony", "nagłówek lewy", "stopka lewa", "nagłówek prawy", "stopka prawa" ], "description": "Szablon kombajn do budowy innych szablonów stronicowych." } </templatedata> == Zobacz też == ; Szablony konieczne * {{s|StronaStart}} i {{s|StronaKoniec}} - szablon stronicowy, kolejno otwierający i zamykający, do tego szablonu. ; Szablony wykorzystywane choćby pośrednio przez ten szablon * Szablon spisu treści w artykule, tzn. {{s|TOC}}, przeciwnie niż w artykule głównym książki: {{s|SpisTreści}}. * {{s|HNumer}} - szablon, jak również {{s|SpisTreści}}, uwzględnia nagłówki i rozdziały od jeden wzwyż (a w szczególności od siedem wzwyż). {{BrClear}} <includeonly><!-- ++++ DODAWAJ KATEGORIE PONIŻEJ TEJ LINII --> {{Kategoria|Szablony stronicowe (otwierające i zamykające)}} </includeonly> ins40hbx7f9yrtfq6dcns751u21oc9c Moduł:StronicowyParser 828 34347 435600 435551 2022-07-25T13:31:24Z Persino 2851 Scribunto text/plain local p = {} function p.SpreparowanyWikikodStrony(nazwa_modolu,dokumentacja) local stronicowyparser_dalszefunkcje=require("Module:StronicowyParser/DalszeFunkcje") return stronicowyparser_dalszefunkcje.SpreparowanyWikikodStrony(nil,nazwa_modolu,dokumentacja); end; function p.PrzekierowanieDoStrony(frame) local parametry_modul=require("Module:Parametry"); local PobierzParametr=parametry_modul.PobierzParametr(frame); local nazwa_modulu=PobierzParametr(1); local latki_modul=require("Module:Łatki"); return latki_modul.contentMatch{args={ [1]="^%s*#REDIRECT%s+%[%[(.+)%]%]%s*", [2]="^%s*#PATRZ%s+%[%[(.+)%]%]%s*", [3]="^%s*#TAM%s+%[%[(.+)%]%]%s*", namespace="", pagename=nazwa_modulu, }, }; end; p["TekstRozdziałuStrony"]=function(frame) local stronicowyparser_rozdzialy=require("Module:StronicowyParser/Rozdziały"); return stronicowyparser_rozdzialy.TekstRozdzialuStrony(frame); end; p["KtóraSekcjaStrony"]=function(frame) local stronicowyparser_rozdzialy=require("Module:StronicowyParser/Rozdziały"); return stronicowyparser_rozdzialy.KtoraSekcjaStrony(frame); end; p["ZwróćSekcjęNagłówkaStrony"]=function(frame) local stronicowyparser_rozdzialy=require("Module:StronicowyParser/Rozdziały"); return stronicowyparser_rozdzialy.ZwrocSekcjeNaglowkaStrony(frame); end; p["NastępnyArtykuł"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); local numer=tonumber(args[1]) or 0; local naglowek=parametry_modul.CzyTak(args["nagłówek"]); local nazwa_artykulu_z_naglowkiem_match=mw.ustring.match(nazwa_artykulu,"^([^#]*)#.*$"); local nazwa_artykulu_z_opcja_naglowek=(not naglowek) and nazwa_artykulu_z_naglowkiem_match or nazwa_artykulu; local nadstrona_artykulu=(numer>0) and stronicowyparser_potrzebne_modul.NazwaNadStrony(nazwa_artykulu,numer) or nil; local i=0; local tab_artykul={}; for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie_element in ipairs(tab_lista[2])do local artykul_w_bazie;local artykul_bez_naglowka_w_bazie;local artykul_z_naglowkiem_w_bazie; local czy_table=parametry_modul.TypeTable(artykul_w_bazie_element[1]); if(czy_table)then artykul_w_bazie=artykul_w_bazie_element[1][1]; else artykul_w_bazie=artykul_w_bazie_element[1]; end; local artykul_z_naglowkiem_w_bazie_match=mw.ustring.match(artykul_w_bazie,"^([^#]*)#.*$"); artykul_bez_naglowka_w_bazie=artykul_z_naglowkiem_w_bazie_match or artykul_w_bazie; if(naglowek or not tab_artykul[artykul_bez_naglowka_w_bazie])then if(not naglowek)then tab_artykul[artykul_bez_naglowka_w_bazie]=true; end if(not naglowek)then artykul_z_naglowkiem_w_bazie=artykul_bez_naglowka_w_bazie; else artykul_z_naglowkiem_w_bazie=artykul_w_bazie; end; local numer_artykulu_w_bazie; if(numer>0)then numer_artykulu_w_bazie=stronicowyparser_potrzebne_modul.PoziomAdresu(artykul_bez_naglowka_w_bazie); end; local function Nastepny() if(not nazwa)then return artykul_z_naglowkiem_w_bazie; end; if(czy_table)then return artykul_w_bazie[1][2]; else return artykul_z_naglowkiem_w_bazie; end; end; if(i==1)then if(numer>0)then local nadstrona_artykulu_w_bazie=stronicowyparser_potrzebne_modul.NazwaNadStrony(artykul_bez_naglowka,numer); if((numer==numer_artykulu_w_bazie)and(nadstrona_artykulu==nadstrona_artykulu_w_bazie))then return Nastepny(); end; else return Nastepny(); end; else if((not naglowek)and(artykul_bez_naglowka_w_bazie==nazwa_artykulu_z_opcja_naglowek) or(((naglowek) and ((nazwa_artykulu_z_naglowkiem_match and artykul_z_naglowkiem_w_bazie_match)or(not nazwa_artykulu_z_naglowkiem_match and not artykul_z_naglowkiem_w_bazie_match))) and (artykul_z_naglowkiem_w_bazie==nazwa_artykulu) ))then i=1; end; end; end; end; end; end; if(i==1)then return ""; end; return "(błąd)"; end; p["PoprzedniArtykuł"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); local numer=tonumber(args[1]) or 0; local naglowek=parametry_modul.CzyTak(args["nagłówek"]); local nazwa_artykulu_z_naglowkiem_match=mw.ustring.match(nazwa_artykulu,"^([^#]*)#.*$") local nazwa_artykulu_z_opcja_naglowek=(not naglowek) and nazwa_artykulu_z_naglowkiem_match or nazwa_artykulu; local nadstrona_artykulu=(numer>0) and stronicowyparser_potrzebne_modul.NazwaNadStrony(nazwa_artykulu,numer) or nil; local artykul; local tab_artykul={}; for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie in ipairs(tab_lista[2])do local artykul_z_naglowkiem_w_bazie;local artykul_bez_naglowka_w_bazie; local czy_table=parametry_modul.TypeTable(artykul_w_bazie[1]); if(czy_table)then artykul_z_naglowkiem_w_bazie=artykul_w_bazie[1][1]; else artykul_z_naglowkiem_w_bazie=artykul_w_bazie[1]; end; local artykul_z_naglowkiem_w_bazie_match=mw.ustring.match(artykul_z_naglowkiem_w_bazie,"^([^#]*)#.*$") artykul_bez_naglowka_w_bazie=artykul_z_naglowkiem_w_bazie_match or artykul_z_naglowkiem_w_bazie; if(naglowek or not tab_artykul[artykul_bez_naglowka_w_bazie])then if(not naglowek)then tab_artykul[artykul_bez_naglowka_w_bazie]=true; end; if((not naglowek)and(artykul_bez_naglowka_w_bazie==nazwa_artykulu_z_opcja_naglowek) or(((naglowek) and ((nazwa_artykulu_z_naglowkiem_match and artykul_z_naglowkiem_w_bazie_match)or(not nazwa_artykulu_z_naglowkiem_match and not artykul_z_naglowkiem_w_bazie_match)))and(artykul_z_naglowkiem_w_bazie==nazwa_artykulu)))then if(not artykul)then return "";end; local czy_table_artykul=parametry_modul.TypeTable(artykul); if(czy_table_artykul)then if(not nazwa)then if(naglowek)then return artykul[1]; end; artykul,_=mw.ustring.gsub(artykul[1],"^([^#]+)#(.*)$","%1"); return artykul; else return artykul[2]; end; else if(naglowek)then return artykul; end; artykul,_=mw.ustring.gsub(artykul,"^([^#]+)#(.*)$","%1"); return artykul; end; end if(numer>0)then local numer_artykulu_poprzedni=stronicowyparser_potrzebne_modul.PoziomAdresu(artykul_bez_naglowka_w_bazie); local nadstrona_artykulu_w_bazie=stronicowyparser_potrzebne_modul.NazwaNadStrony(artykul_bez_naglowka_w_bazie,numer); if((numer==numer_artykulu_poprzedni)and(nadstrona_artykulu==nadstrona_artykulu_w_bazie))then artykul=artykul_w_bazie[1]; end; else artykul=artykul_w_bazie[1]; end; end; end; end; end; return "(błąd)"; end; p["PoziomNazwyArtykułu"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); return stronicowyparser_potrzebne_modul.PoziomAdresu(nazwa_artykulu); end; p["PierwszyArtykuł"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local naglowek=parametry_modul.CzyTak(args["nagłówek"]); for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie in ipairs(tab_lista[2])do if(not nazwa)then local artykul=parametry_modul.TypeTable(artykul_w_bazie[1]) and artykul_w_bazie[1][1] or artykul_w_bazie[1]; return (not naglowek) and mw.ustring.gsub(artykul,"^([^#]*)#(.*)$","%1") or artykul; else return parametry_modul.TypeTable(artykul_w_bazie[1]) and artykul_w_bazie[1][2] or ((not naglowek) and mw.ustring.gsub(artykul_w_bazie[1],"^([^#]*)#(.*)$","%1") or artykul_w_bazie[1]); end; end; end; end; end; p["OstatniArtykuł"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local naglowek=parametry_modul.CzyTak(args["nagłówek"]); local ostatni_artykul; for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie in ipairs(tab_lista[2])do if(not nazwa)then ostatni_artykul=parametry_modul.TypeTable(artykul_w_bazie[1]) and artykul_w_bazie[1][1] or artykul_w_bazie[1]; else ostatni_artykul=parametry_modul.TypeTable(artykul_w_bazie[1]) and artykul_w_bazie[1][2] or artykul_w_bazie[1]; end; end; end; end; if(ostatni_artykul)then return (not naglowek) and mw.ustring.gsub(ostatni_artykul,"^([^#]*)#(.*)$","%1") or ostatni_artykul; end; return "(błąd)"; end; p["PomiędzyArtykuł"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); local val=stronicowyparser_potrzebne_modul:ObliczeniaInformacje(frame); if(not val)then return "(błąd)";end; local element=stronicowyparser_potrzebne_modul:PomiedzyArtykul(frame) or nil; if(not element)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local czy_table=parametry_modul.TypeTable(element); local element=czy_table and element[1] or element; if(not nazwa)then return (not naglowek) and mw.ustring.gsub(element,"^([^#]*)#(.*)$","%1") or element;end; return czy_table and element[2] or ((not naglowek) and mw.ustring.gsub(element,"^([^#]*)#(.*)$","%1") or element); end; p["LosowyArtykuł"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); local val=stronicowyparser_potrzebne_modul:ObliczeniaInformacje(frame); if(not val)then return "(błąd)";end; local element=stronicowyparser_potrzebne_modul:LosowyArtykul(frame); if(not element)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local nazwa=parametry_modul.CzyTak(args["nazwa"]); local czy_table=parametry_modul.TypeTable(element); local element=czy_table and element[1] or element; if(not nazwa)then return mw.ustring.gsub(element,"^([^#]*)#(.*)$","%1") or element;end; return czy_table and element[2] or mw.ustring.gsub(element,"^([^#]*)#(.*)$","%1") or element; end; local function PobiezNumerLubNazweNaglowka(frame,__FUNKCJA,typ) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local poziomowo=parametry_modul.CzyTak(args["poziomowo"]); local ktory=(tonumber(args["który"]) or 1); local parametr_pierwszy_szablonu=typ and ((not poziomowo) and (tonumber(args[1]) or 1) or args[1]) or args[1]; if(not typ)then parametr_pierwszy_szablonu,_=mw.ustring.gsub(parametr_pierwszy_szablonu,"^[%s_]+",""); parametr_pierwszy_szablonu,_=mw.ustring.gsub(parametr_pierwszy_szablonu,"[%s_]+$",""); parametr_pierwszy_szablonu,_=mw.ustring.gsub(parametr_pierwszy_szablonu,"[%s_]+"," "); end; local HNumer=stronicowyparser_potrzebne_modul.LiczonyHNumer(); local HNumer_2=nil; local tab_numer_2=nil; local tab_numer={}; local i=(not poziomowo) and 0 or nil; local i_2=nil; local juz_nie_rozwazaj_spisu_tresci=nil; local juz_nie_rozwazaj_rozdzialu_spisu_tresci=nil; local stronicowyparser_obiekty=mw.loadData("Module:StronicowyParser/obiekty"); local tab_rozdzialow_glownych_spisow_tresci_ksiazek=stronicowyparser_obiekty.tab_rozdzialow_glownych_spisow_tresci_ksiazek; local tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek=stronicowyparser_obiekty.tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek; local poziom_spisu_tresci=nil; local pierwszy_dodatni_spis_tresci=nil; for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do local rozdzial=tab_lista[1][1]; local poziom_rozdzialu=tab_lista[1][2][1]; if(poziom_rozdzialu>0)then local czy_nie_ten_rozdzial=nil; local czy_jest_teraz_spis_tresci=tab_rozdzialow_glownych_spisow_tresci_ksiazek[rozdzial];local czy_nie_ten_rozdzial; if((not juz_nie_rozwazaj_spisu_tresci)and(not juz_nie_rozwazaj_rozdzialu_spisu_tresci)and(czy_jest_teraz_spis_tresci))then poziom_spisu_tresci=poziom_rozdzialu; juz_nie_rozwazaj_rozdzialu_spisu_tresci=true; czy_nie_ten_rozdzial=tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek[rozdzial]; elseif((not juz_nie_rozwazaj_spisu_tresci)and(juz_nie_rozwazaj_rozdzialu_spisu_tresci))then if((poziom_spisu_tresci<poziom_rozdzialu))then czy_nie_ten_rozdzial=false; else juz_nie_rozwazaj_spisu_tresci=true; czy_nie_ten_rozdzial=tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek[rozdzial]; end; else local juz_nie_rozwazaj_spisu_tresci=nil; local juz_nie_rozwazaj_rozdzialu_spisu_tresci=nil; czy_nie_ten_rozdzial=tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek[rozdzial]; end; if(not czy_nie_ten_rozdzial)then if(poziomowo)then local hnumer=HNumer(poziom_rozdzialu); if(#tab_numer<hnumer)then for i=#tab_numer+1,hnumer,1 do table.insert(tab_numer,1); end; elseif(#tab_numer>hnumer)then for i=#tab_numer, hnumer+1,-1 do table.remove(tab_numer,i); end; tab_numer[#tab_numer]=tab_numer[#tab_numer]+1; else tab_numer[#tab_numer]=tab_numer[#tab_numer]+1; end; ---- local wartosc=__FUNKCJA(poziomowo,i,tab_numer,ktory,parametr_pierwszy_szablonu,rozdzial); ---- if(wartosc)then return wartosc;end; ---- if((czy_jest_teraz_spis_tresci)and(not pierwszy_dodatni_spis_tresci))then HNumer_2=HNumer; HNumer=stronicowyparser_potrzebne_modul.LiczonyHNumer(); tab_numer_2=tab_numer; tab_numer={}; pierwszy_dodatni_spis_tresci=true; elseif((pierwszy_dodatni_spis_tresci)and(poziom_spisu_tresci>=poziom_rozdzialu))then HNumer=HNumer_2; HNumer_2=nil; tab_numer=tab_numer_2; tab_numer_2=nil; pierwszy_dodatni_spis_tresci=false; end; else i=i+1; ---- local wartosc=__FUNKCJA(poziomowo,i,tab_numer,ktory,parametr_pierwszy_szablonu,rozdzial); --- if(wartosc)then return wartosc;end; --- if((czy_jest_teraz_spis_tresci)and(not pierwszy_dodatni_spis_tresci))then i_2=i; i=0; pierwszy_dodatni_spis_tresci=true; elseif((pierwszy_dodatni_spis_tresci)and(poziom_spisu_tresci>=poziom_rozdzialu))then i=i_2; i_2=nil; pierwszy_dodatni_spis_tresci=false; end; end; end; end; end; end; p["PobierzNumerNagłówka"]=function(frame) local s=1; local function __FUNKCJA(poziomowo,i,tab_numer,ktory,naglowek,rozdzial) if(naglowek==rozdzial)then if(s==ktory)then if(poziomowo)then if(#tab_numer==0)then return;end; return table.concat(tab_numer,"."); else return i; end; end; s=s+1; end; end; return PobiezNumerLubNazweNaglowka(frame,__FUNKCJA,false); end; p["PobierzNazwęNagłówka"]=function(frame) local s=1; local function __FUNKCJA(poziomowo,i,tab_numer,ktory,numer,rozdzial) if(poziomowo)then if(#tab_numer==0)then return;end; if(numer==table.concat(tab_numer,"."))then if(s==ktory)then return rozdzial; else s=s+1; end; end; elseif(numer==i)then if(s==ktory)then return rozdzial; else s=s+1; end; end end; return PobiezNumerLubNazweNaglowka(frame,__FUNKCJA,true); end; local function PobierzNumerLubNazweArtykulu(frame,__FUNKCJA,typ) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local parametry_modul=require("Module:Parametry"); local naglowek=parametry_modul.CzyTak(args["nagłówek"]); local tab_artykul=(not naglowek)and {} or nil; local poziomowo=parametry_modul.CzyTak(args["poziomowo"]); local tab_poziomowo={}; local tab_poziomowo_1={}; local tab_poziomowo_2={}; local html_modul=require("Module:Html"); local pierwszy_parametr_szablonu=args[1] and (typ and ((not poziomowo) and (tonumber(args[1]) or 1) or args[1]) or ((not naglowek) and mw.ustring.gsub(html_modul["PoprawAdresNagłówkaStronyAdresu"](html_modul["TransformacjaKoduZnakuDoZnakuŁancucha"](args[1])),"^([^#]*)#(.*)$","%1") or html_modul["PoprawAdresNagłówkaStronyAdresu"](html_modul["TransformacjaKoduZnakuDoZnakuŁancucha"](args[1]))) ) or (typ and 1 or "Przykładowy artykuł"); local ktory=(tonumber(args["ktory"]) or 1); local i=(not poziomowo) and 1 or nil; local stronicowyparser_obiekty=mw.loadData("Module:StronicowyParser/obiekty"); local tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek=stronicowyparser_obiekty.tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek; local tab_rozdzialow_glownych_spisow_tresci_ksiazek=stronicowyparser_obiekty.tab_rozdzialow_glownych_spisow_tresci_ksiazek; --local HNumer=poziomowo and stronicowyparser_potrzebne_modul.LiczonyHNumer() or nil; local HNumerPoziomow_4=nil--poziomowo and stronicowyparser_potrzebne_modul.LiczonyHNumer() or nil; local HNumerPoziomow_3=nil local HNumerPoziomow_2=nil; local HNumerPoziomow_1=nil; local HNumerPoziomow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); local HNumerPoziomowNaglowkow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); local HNumerPoziomowNaglowkow_1=nil; local HNumerPoziomowNaglowkow_2=nil; --local HNumerPoziomowInnychNaglowkow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); local tab_numer=poziomowo and {} or nil; tab_numer_1=nil; tab_numer_3=nil tab_numer_4=nil;--poziomowo and {} or nil; local spis=false; local czy_poziom_spisu_tresci=nil; local pierwszy_dodatni_naglowek=nil; local pierwszy_ujemny_naglowek=nil; local juz_nie_rozwazaj_spisu_tresci=nil; local juz_nie_rozwazaj_rozdzialu_spisu_tresci=nil; local poprzedni_poziom_znakowy_rozdzialu=nil; local poprzedni_tab_poziomowo=nil; local poziom_pierwszego_dodatniego_naglowka=0; local poziom_pierwszego_ujemnego_naglowka=0; local poziom_zerowego_naglowka=0; local poziom_spisu_tresci_naglowka=0; local numer_poziomu=nil; local ostatni_rozdzial_dodatni=nil; local pierwszy_rozdzial_dodatni=nil; local glowny_dodatni_rozdzial=nil; local glowny_ujemny_rozdzial=nil; local spis_tresci=nil; local poziom_pierwszego_ujemnego_spisu_tresci=nil; local ostatni_poczatek_artykulu=nil; local pierwszy_rowny_rozdzial=nil; local artykuly_w_rozdziale=nil; local spis_tresci_zerowy; local poziom_zerowy; local rozdzial; if(poziomowo and tab_lista_artykulow_w_ksiazce[1])then rozdzial=tab_lista_artykulow_w_ksiazce[1][1][1]; rozdzial,_=mw.ustring.gsub(rozdzial,"'+",""); spis_tresci_zerowy=tab_rozdzialow_glownych_spisow_tresci_ksiazek[rozdzial]; poziom_zerowy=tab_lista_artykulow_w_ksiazce[1][1][2][1]; end; for m,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do local tab_poprzedni_artykul_w_bazie=nil; local poziom_rozdzialu; local poziom_poczatku_rozdzialu=nil; local poziom_znakowy_rozdzialu=nil; local poziom_naglowka=nil; if(poziomowo)then poziom_rozdzialu=tab_lista[1][2][1]; poziom_poczatku_rozdzialu=tab_lista[1][2][2]; if(m>1)then rozdzial=tab_lista[1][1]; rozdzial,_=mw.ustring.gsub(rozdzial,"'+",""); end; tab_poziomowo={}; local czy_jest_teraz_spis_tresci=((m>1)and(not spis_tresci_zerowy or not poziom_zerowy)or((m==1)and(spis_tresci_zerowy))) and ((m==1) and true or tab_rozdzialow_glownych_spisow_tresci_ksiazek[rozdzial]) local czy_nie_ten_rozdzial; if((not juz_nie_rozwazaj_spisu_tresci)and(not juz_nie_rozwazaj_rozdzialu_spisu_tresci)and(czy_jest_teraz_spis_tresci))then poziom_spisu_tresci=poziom_rozdzialu; juz_nie_rozwazaj_rozdzialu_spisu_tresci=true; czy_nie_ten_rozdzial=tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek[rozdzial]; elseif((not juz_nie_rozwazaj_spisu_tresci)and(juz_nie_rozwazaj_rozdzialu_spisu_tresci))then if((poziom_spisu_tresci<poziom_rozdzialu))then czy_nie_ten_rozdzial=false; else juz_nie_rozwazaj_spisu_tresci=true; czy_nie_ten_rozdzial=tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek[rozdzial]; end; else czy_nie_ten_rozdzial=tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek[rozdzial]; end; --if(not czy_nie_ten_rozdzial)then poprzedni_poziom_znakowy_rozdzialu=poziom_znakowy_rozdzialu; poziom_znakowy_rozdzialu=poziom_rozdzialu; poziom_rozdzialu=math.abs(poziom_rozdzialu); artykuly_w_rozdziale=nil; if(poziom_znakowy_rozdzialu>0)then poziom_naglowka=poziom_rozdzialu; poziom_pierwszego_ujemnego_spisu_tresci=nil; poprzedni_tab_poziomowo=nil; poziom_zerowego_naglowka=0; if(glowny_ujemny_rozdzial)then HNumerPoziomow=HNumerPoziomow_4; HNumerPoziomow_4=nil; tab_numer=tab_numer_4; poziom_pierwszego_ujemnego_naglowka=nil; glowny_ujemny_rozdzial=nil; end; if(pierwszy_ujemny_spis_tresci)then HNumerPoziomow=HNumerPoziomow_2; HNumerPoziomow_2=nil; tab_numer=tab_numer_2; tab_numer_2=nil; pierwszy_ujemny_spis_tresci=nil; czy_poziom_ujemny_spisu_tresci=nil; end; if(not glowny_dodatni_rozdzial)then if((juz_nie_rozwazaj_rozdzialu_spisu_tresci)and(not juz_nie_rozwazaj_spisu_tresci)and(not czy_jest_teraz_spis_tresci)and(not spis_tresci))then numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu,1); spis_tresci=true; else if(not pierwszy_rozdzial_dodatni)then pierwszy_rozdzial_dodatni=1; numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu,1); else numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu); end; end; else numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu,1); glowny_dodatni_rozdzial=false; end; ostatni_rozdzial_dodatni=poziom_rozdzialu; elseif(poziom_znakowy_rozdzialu<0)then if(not pierwszy_rowny_rozdzial)then if((ostatni_poczatek_artykulu) and(#ostatni_poczatek_artykulu==#poziom_poczatku_rozdzialu) and(ostatni_poczatek_artykulu~=poziom_poczatku_rozdzialu) and(mw.ustring.match(ostatni_poczatek_artykulu,"^*")) and(mw.ustring.match(poziom_poczatku_rozdzialu,"^:")) )then poziom_rozdzialu=poziom_rozdzialu+1; poziom_znakowy_rozdzialu=-poziom_rozdzialu; pierwszy_rowny_rozdzial=1; poziom_naglowka=poziom_rozdzialu+(ostatni_rozdzial_dodatni or 0)+poziom_zerowego_naglowka; else poziom_naglowka=poziom_rozdzialu+(ostatni_rozdzial_dodatni or 0)+poziom_zerowego_naglowka; end; else if((#ostatni_poczatek_artykulu==#poziom_poczatku_rozdzialu) and(ostatni_poczatek_artykulu==poziom_poczatku_rozdzialu) )then pierwszy_rowny_rozdzial=0;end; poziom_rozdzialu=poziom_rozdzialu+pierwszy_rowny_rozdzial; poziom_znakowy_rozdzialu=-poziom_rozdzialu; poziom_naglowka=poziom_rozdzialu+(ostatni_rozdzial_dodatni or 0)+poziom_zerowego_naglowka; end; if(not glowny_ujemny_rozdzial)then --if((juz_nie_rozwazaj_rozdzialu_spisu_tresci)and(not juz_nie_rozwazaj_spisu_tresci)and(not spis_tresci))then -- numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu,1); -- spis_tresci=true; --else numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu+(ostatni_rozdzial_dodatni or 0)+poziom_zerowego_naglowka); --end; else numer_rozdzialu=HNumerPoziomow(poziom_rozdzialu+(ostatni_rozdzial_dodatni or 0)+poziom_zerowego_naglowka,1); glowny_ujemny_rozdzial=false; end; else if((m>1)or((m==1)and(not czy_jest_teraz_spis_tresci)))then poziom_zerowego_naglowka=1; numer_rozdzialu=HNumerPoziomow( 1 + (ostatni_rozdzial_dodatni or 0) + 0); poziom_znakowy_rozdzialu=-1; poziom_rozdzialu=1; poziom_naglowka= 1 + (ostatni_rozdzial_dodatni or 0) + 0; else poziom_zerowego_naglowka=0; numer_rozdzialu=0; poziom_naglowka=(ostatni_rozdzial_dodatni or 0) + 0; end; end; local numer; if(poziom_znakowy_rozdzialu>0)then local numer=HNumerPoziomowNaglowkow(poziom_znakowy_rozdzialu); --HNumerPoziomowInnychNaglowkow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); elseif(poziom_znakowy_rozdzialu<0)then --local numer=HNumerPoziomowInnychNaglowkow(-poziom_znakowy_rozdzialu); end; if((m>1) and(tab_lista_artykulow_w_ksiazce[m-1]) and(tab_lista_artykulow_w_ksiazce[m-1][2]) and(#tab_lista_artykulow_w_ksiazce[m-1][2][1]>0) and(tab_lista_artykulow_w_ksiazce[m-1][2][#tab_lista_artykulow_w_ksiazce[m-1][2]][2][1]==0) )then local lens_tab_numer=#tab_numer; local roznica=math.min(#poprzedni_tab_poziomowo+#tab_numer,numer_rozdzialu)-#tab_numer; roznica=((roznica>0) and roznica or 0); for i=1,roznica,1 do tab_numer[i+lens_tab_numer]=poprzedni_tab_poziomowo[i]; end; end; if((czy_jest_teraz_spis_tresci)and(juz_nie_rozwazaj_rozdzialu_spisu_tresci))then if(poziom_znakowy_rozdzialu>0)then poziom_spisu_tresci_naglowka=poziom_rozdzialu; else poziom_pierwszego_ujemnego_spisu_tresci=poziom_rozdzialu; end; end; if(poziom_rozdzialu>0)then if((((czy_poziom_dodatni_spisu_tresci)and(poziom_znakowy_rozdzialu>0))or((czy_poziom_ujemny_spisu_tresci)and(poziom_znakowy_rozdzialu<0))) and(poziom_spisu_tresci)and(poziom_spisu_tresci>=poziom_rozdzialu) )then if(poziom_znakowy_rozdzialu>0)then tab_numer=tab_numer_1; tab_poziomowo={}; poziom_spisu_tresci=nil; HNumerPoziomow=HNumerPoziomow_1; HNumerPoziomowNaglowkow=HNumerPoziomowNaglowkow_1; czy_poziom_dodatni_spisu_tresci=false; elseif(poziom_znakowy_rozdzialu<0)then tab_numer=tab_numer_2; tab_poziomowo={}; poziom_spisu_tresci=nil; HNumerPoziomow=HNumerPoziomow_2; --HNumerPoziomowNaglowkow=HNumerPoziomowNaglowkow_2; czy_poziom_ujemny_spisu_tresci=false; pierwszy_ujemny_spis_tresci=nil; end; end; local hnumer=numer_rozdzialu; if(poprzedni_tab_poziomowo)then local lens=math.min(#poprzedni_tab_poziomowo,hnumer-#tab_numer); local len_tab_numer=#tab_numer; for i=1,lens,1 do tab_numer[len_tab_numer+i]=poprzedni_tab_poziomowo[i]; end; for i=lens+1,#tab_numer do tab_numer[len_tab_numer+i]=nil; end; end; if(#tab_numer<hnumer)then for i=#tab_numer+1,hnumer,1 do table.insert(tab_numer,1); end; elseif(#tab_numer>hnumer)then for i=#tab_numer, hnumer+1,-1 do table.remove(tab_numer,i); end; tab_numer[#tab_numer]=(tab_numer[#tab_numer] or 0) + 1; else tab_numer[#tab_numer]=(tab_numer[#tab_numer] or 0) + 1; end; else --[[if(poziom_rozdzialu==0)then if(tab_lista_artykulow_w_ksiazce[m+1])then if(tab_lista_artykulow_w_ksiazce[m+1][1][2]>0)then tab_numer={0,}; elseif(tab_lista_artykulow_w_ksiazce[m+1][1][2]<0)then tab_numer={}; end; else tab_numer={}; end; end;]] end; --end; if((czy_jest_teraz_spis_tresci)and(((not pierwszy_dodatni_spis_tresci)and(poziom_znakowy_rozdzialu>0))or((not pierwszy_ujemny_spis_tresci)and(poziom_znakowy_rozdzialu<0))))then function Poziom_dodatni() for s,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(s>m)then if(tab_lista[1][2][1]>0)then if(math.abs(tab_lista[1][2][1])>poziom_rozdzialu)then return true; else return false; end; end; end; end; return true; end; local id=nil; if(tab_lista_artykulow_w_ksiazce[m][2])then for p,artykul_w_bazie in ipairs(tab_lista_artykulow_w_ksiazce[m][2])do id=tab_lista_artykulow_w_ksiazce[m][2][p][4]; if(id)then break; end; end; end; if((poziom_znakowy_rozdzialu>0)and((id)or(Poziom_dodatni())))then tab_poziomowo_1=tab_poziomowo; tab_poziomowo={}; czy_poziom_dodatni_spisu_tresci=true; HNumerPoziomow_1=HNumerPoziomow; HNumerPoziomow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); HNumerPoziomowNaglowkow_1=HNumerPoziomowNaglowkow; HNumerPoziomowNaglowkow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); tab_numer_1=tab_numer; tab_numer={}; pierwszy_dodatni_spis_tresci=true; elseif((poziom_znakowy_rozdzialu<0) and((id)or((tab_lista_artykulow_w_ksiazce[m+1]) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]<0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])>poziom_rozdzialu))))then tab_poziomowo_2=tab_poziomowo; tab_poziomowo={}; czy_poziom_ujemny_spisu_tresci=true; HNumerPoziomow_2=HNumerPoziomow; HNumerPoziomow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); --HNumerPoziomowNaglowkow_2=HNumerPoziomowNaglowkow; --HNumerPoziomowNaglowkow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); tab_numer_2=tab_numer; tab_numer={}; pierwszy_ujemny_spis_tresci=true; end; end; local function OTakimSamymLubMniejszymPoziomie(m) if(poziom_rozdzialu==0)then return true;end; local lens=parametry_modul["LiczbaElementówNumerowanychTablicy"](tab_lista_artykulow_w_ksiazce); if(m==lens)then return true;end; if(poziom_znakowy_rozdzialu>0)then for k=m+1,lens,1 do if(tab_lista_artykulow_w_ksiazce[k])then if(tab_lista_artykulow_w_ksiazce[k][1][2][1]>0)then if(math.abs(tab_lista_artykulow_w_ksiazce[k][1][2][1])<=poziom_rozdzialu)then return true; end; end; end; end; elseif(((m==1)or((tab_lista_artykulow_w_ksiazce[m-1])and(tab_lista_artykulow_w_ksiazce[m-1][1][2][1]>0)))and(poziom_znakowy_rozdzialu<0))then local poziom_zerowego_naglowka_innego=0; for k=m+1,lens,1 do if(tab_lista_artykulow_w_ksiazce[k])then if(tab_lista_artykulow_w_ksiazce[k][1][2][1]<=0)then local ile=tab_lista_artykulow_w_ksiazce[k][1][2][1]; if(ile==0)then if((czy_jest_teraz_spis_tresci)and(m==1))then poziom_zerowego_naglowka_innego=poziom_zerowego_naglowka; else poziom_zerowego_naglowka_innego=1; end; end; if(math.abs(tab_lista_artykulow_w_ksiazce[k][1][2][1])+poziom_zerowego_naglowka_innego<=poziom_rozdzialu)then return true; end; else break; end; end; end; else return true; end; end; -- if(not czy_nie_ten_rozdzial)then if((tab_lista[2]) and(tab_lista[2][1]) and(tab_lista[2][1][2][1]==0) and(not tab_lista[2][1][4]) and(tab_lista_artykulow_w_ksiazce[m+1]) and(((poziom_znakowy_rozdzialu>0) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]>0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])>poziom_rozdzialu) )or( ((poziom_znakowy_rozdzialu<0) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]<0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])+poziom_zerowego_naglowka>poziom_rozdzialu) ) )or( (poziom_znakowy_rozdzialu==0)and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]~=0) )) )then if(m==1)then tab_numer={0,} else table.insert(tab_numer,0); end; elseif((m==1)and(not tab_lista_artykulow_w_ksiazce[m+1]))then tab_numer={}; elseif((poziomowo)and(m==1)and(poziom_zerowego_naglowka==0)and(poziom_znakowy_rozdzialu==0)and(tab_lista_artykulow_w_ksiazce[m+1])and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]<0))then tab_numer={}; elseif((poziomowo)and(m==1)and(poziom_zerowego_naglowka==0)and(poziom_znakowy_rozdzialu==0)and(tab_lista_artykulow_w_ksiazce[m+1])and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]>0))then tab_numer={0,} elseif((poziomowo)and(m==2)and(poziom_zerowego_naglowka==0)and(poziom_znakowy_rozdzialu<0)and(tab_lista_artykulow_w_ksiazce[m-1])and(tab_lista_artykulow_w_ksiazce[m-1][1][2][1]==0))then if(poprzedni_tab_poziomowo)then local min=math.min(math.abs(numer_rozdzialu),#poprzedni_tab_poziomowo); for i=#poprzedni_tab_poziomowo,min+1,-1 do table.remove(poprzedni_tab_poziomowo,i) end; tab_numer=poprzedni_tab_poziomowo; tab_numer[#tab_numer]=(tab_numer[#tab_numer] or 0)+1; end; elseif((not czy_jest_teraz_spis_tresci)and(((not pierwszy_dodatni_naglowek)and(poziom_znakowy_rozdzialu>0))or((not pierwszy_ujemny_naglowek)and(poziom_znakowy_rozdzialu<0))))then if(poziom_rozdzialu>0)then if(not OTakimSamymLubMniejszymPoziomie(m))then if(poziom_znakowy_rozdzialu>0)then HNumerPoziomowNaglowkow_2=HNumerPoziomowNaglowkow; HNumerPoziomowNaglowkow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); tab_numer_3=tab_numer; tab_numer={0,}; HNumerPoziomow_3=HNumerPoziomow; HNumerPoziomow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); pierwszy_dodatni_naglowek=true; poziom_pierwszego_dodatniego_naglowka=poziom_rozdzialu; glowny_dodatni_rozdzial=true; else tab_numer_4=tab_numer; tab_numer=parametry_modul["KopiujTabelęElementów"](tab_numer); tab_numer[#tab_numer]=nil; HNumerPoziomow_4=HNumerPoziomow; HNumerPoziomow=stronicowyparser_potrzebne_modul.LiczonyHNumer(); if(poziom_naglowka or 0>0)then HNumerPoziomow(poziom_naglowka,#tab_numer); end; pierwszy_ujemny_naglowek=true; poziom_pierwszego_ujemnego_naglowka=poziom_rozdzialu; glowny_ujemny_rozdzial=true; end; else if(poziom_znakowy_rozdzialu>0)then pierwszy_dodatni_naglowek=true;else pierwszy_ujemny_naglowek=true;end; end; end; elseif((czy_jest_teraz_spis_tresci)and(not czy_nie_ten_rozdzial))then if((not spis)and(poziom_rozdzialu>0) and(tab_lista_artykulow_w_ksiazce[m+1]) and(( (poziom_znakowy_rozdzialu>0) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]>0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])>poziom_rozdzialu) )or( (poziom_znakowy_rozdzialu<0) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]<0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])>poziom_rozdzialu) )) )then tab_numer={0,}; spis=true; end elseif((tab_lista_artykulow_w_ksiazce[m+1]) and(( (poziom_znakowy_rozdzialu>0) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]>0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])>poziom_rozdzialu) )--[[or( (poziom_znakowy_rozdzialu<0) and(tab_lista_artykulow_w_ksiazce[m+1][1][2][1]<0) and(math.abs(tab_lista_artykulow_w_ksiazce[m+1][1][2][1])>poziom_rozdzialu) )]]) )then table.insert(tab_numer,0); end; -- end; end; if(tab_lista[2])then local HNumerArtykulu=stronicowyparser_potrzebne_modul.LiczonyHNumer(); local HNumerPoziomu=stronicowyparser_potrzebne_modul.LiczonyHNumer(); local czy_tytul_rozdzial=nil;local poprzedni_b=nil;local ile_odjac=0; local HNumerB=nil; local poprzedni_poziom_artykulu=nil; local czy_ma_elementy=nil; local poziom_poprzedni_artykulu=nil; for p,artykul_w_bazie in ipairs(tab_lista[2])do local artykul=artykul_w_bazie[1][1] or artykul_w_bazie[1]; artykul=(not naglowek)and mw.ustring.gsub(artykul,"^([^#]*)#(.*)$","%1") or artykul; if(naglowek or not tab_artykul[artykul])then pierwszy_rowny_rozdzial=nil; czy_ma_elementy=true; if(not naglowek)then tab_artykul[artykul]=true; end; local tab_artykul_w_bazie; if(poziomowo)then local poziom_artykulu=artykul_w_bazie[2][1]; local poziom_poczatku_artykulu=artykul_w_bazie[2][2]; local w_rozdziale=artykul_w_bazie[2][4]; if(w_rozdziale)then if((w_rozdziale)and(not tab_lista[2][p+1]))then local wartosc=__FUNKCJA(poziomowo,i,ktory,pierwszy_parametr_szablonu,artykul,tab_numer,{}); if(wartosc)then return wartosc;end; end; function Dalej() for s,artykul_w_bazie in ipairs(tab_lista[2])do if(s>p)then if((tab_lista[2][s])and(not tab_lista[2][s][2][4]))then return true; end; end; end; return false; end; if(Dalej())then tab_numer[#tab_numer+1]=0; artykuly_w_rozdziale=true; end; elseif(artykuly_w_rozdziale)then artykuly_w_rozdziale=nil; table.remove(tab_numer,#tab_numer); tab_poziomowo={}; end; ostatni_poczatek_artykulu=poziom_poczatku_artykulu; local function ToNumberPoziomArtykulu(poziom_artykulu) local numer=tonumber(poziom_artykulu) or 1; if(numer<1)then numer=1;end; return numer; end; poziom_artykulu=ToNumberPoziomArtykulu(poziom_artykulu); poziom_artykulu=poziom_artykulu+(ostatni_rozdzial_dodatni or 0)+poziom_zerowego_naglowka; local numer_poziomu=HNumerPoziomow(poziom_artykulu); if(p>1)then local numer_poprzedni=tonumber(tab_lista[2][p-1][2][1]) or 1; local id_poprzednie=tab_lista[2][p-1][4]; local numer=tonumber(tab_lista[2][p][2][1]) or 1; local id=tab_lista[2][p][4]; if((numer_poprzedni==0)and(not id_poprzednie)and(not id)and(numer>0))then if(#tab_numer>(HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka)then tab_numer[#tab_numer]=(tab_numer[#tab_numer] or 0)+1; tab_poziomowo={}; end; end; end; local prefix_poziom_artykulu=poziom_artykulu; local b=0; local tab_artykul_w_bazie=mw.text.split(artykul,"/"); if(tab_poprzedni_artykul_w_bazie)then if(poprzedni_poziom_artykulu)then if(poprzedni_poziom_artykulu==poziom_artykulu)then for c=1,#tab_artykul_w_bazie,1 do local podstrona_artykul=tab_artykul_w_bazie[c]; local podstrona_nazwy_artykulu=tab_poprzedni_artykul_w_bazie[c]; if(podstrona_artykul==podstrona_nazwy_artykulu)then b=b+1; end; end; else b=0; end; end; if(poziom_znakowy_rozdzialu<0)then if(#tab_numer~=0)then if(poziom_artykulu<=(poziom_pierwszego_ujemnego_naglowka or 0))then tab_poziomowo=tab_numer_4; tab_numer={}; HNumerArtykulu=HNumerPoziomow_4; elseif((poziom_poprzedni_artykulu)and(poziom_artykulu>(poziom_pierwszego_ujemnego_naglowka or 0))and(poziom_poprzedni_artykulu>(poziom_pierwszego_ujemnego_spisu_tresci or 0))and(poziom_artykulu<=(poziom_pierwszego_ujemnego_spisu_tresci or 0)))then HNumerArtykulu=stronicowyparser_potrzebne_modul.LiczonyHNumer(); for i=#tab_poziomowo,numer_poziomu+1,-1 do table.remove(tab_numer,i); end; tab_numer[#tab_numer]=(tab_numer[#tab_numer] or 0 ) + 1; tab_poziomowo=tab_numer; tab_numer={}; elseif((poziom_naglowka>=poziom_artykulu)or((poziom_rozdzialu==poziom_artykulu) and((numer_poziomu<numer_rozdzialu) or((numer_poziomu==numer_rozdzialu) and(poziom_poczatku_rozdzialu==poziom_poczatku_artykulu) )) ))then local tab_numer2={}; for i=1,(HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka,1 do tab_numer2[i]=tab_numer[i]; end; local tab_poziomowo2={}; for i=(HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka+1,#tab_numer,1 do tab_poziomowo2[i-(HNumerPoziomowNaglowkow(0) or 0)-poziom_zerowego_naglowka]=tab_numer[i]; end; local indeks=(((HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka+1>#tab_numer) and 0 or (#tab_numer-(HNumerPoziomowNaglowkow(0) or 0)-poziom_zerowego_naglowka)); for i=1,numer_poziomu,1 do tab_poziomowo2[i+indeks]=tab_poziomowo[i]; end; tab_numer=tab_numer2; tab_poziomowo=tab_poziomowo2; --[[tab_poziomowo=tab_numer; tab_numer={};]] HNumerArtykulu=stronicowyparser_potrzebne_modul.LiczonyHNumer(); --local numer_poziomu=HNumerPoziomow(poziom_artykulu+(ostatni_rozdzial_dodatni or 0),#tab_poziomowo+1); end; end; end; elseif(#tab_numer>numer_poziomu)then tab_poziomowo={}; tab_poziomowo[1]=tab_numer[numer_poziomu]; for i=#tab_numer,numer_poziomu,-1 do table.remove(tab_numer,i); end; elseif((#tab_numer<=numer_rozdzialu)and(numer_rozdzialu>=numer_poziomu))then local numer_rozdzialu_dodatniego=(HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka; if((numer_rozdzialu_dodatniego>0)or((numer_rozdzialu==numer_poziomu)and(poziom_poczatku_rozdzialu==poziom_poczatku_artykulu)))then if(#tab_numer>=numer_rozdzialu_dodatniego)then local tab_numer2={}; for i=1,numer_rozdzialu_dodatniego,1 do tab_numer2[i]=tab_numer[i]; end; tab_poziomowo={}; for i=numer_rozdzialu_dodatniego+1,#tab_numer,1 do tab_poziomowo[i-numer_rozdzialu_dodatniego]=tab_numer[i]; end; tab_numer=tab_numer2; end; end; end; poprzedni_poziom_artykulu=poziom_artykulu; local czy_z_rozdzialem=(tab_artykul_w_bazie[1]==rozdzial); if((p==1)and(czy_z_rozdzialem))then b=1;end; czy_tytul_rozdzial=((p==1)and true or czy_tytul_rozdzial) and (czy_z_rozdzialem); local dodatek=b-((czy_tytul_rozdzial)and 0 or 1); dodatek=((dodatek>0)and dodatek or 0); if((poziomowo)and(poziom_znakowy_rozdzialu<0))then if(poziom_naglowka>=poziom_artykulu)then local numer_poziomu=HNumerPoziomu(poziom_naglowka,numer_rozdzialu-(HNumerPoziomowNaglowkow(0) or 0)); end; end; local stala=poziom_artykulu; local numer_poziomu=HNumerPoziomu(stala); poziom_artykulu=stala+dodatek; local numer=HNumerArtykulu(poziom_artykulu); local roznica=numer_poziomu-numer; if(roznica>0)then numer=HNumerArtykulu(poziom_artykulu,numer_poziomu); end; if(#tab_poziomowo<numer)then for i=#tab_poziomowo+1,numer,1 do table.insert(tab_poziomowo,1); end; else if(#tab_poziomowo>numer)then for i=#tab_poziomowo,numer+1,-1 do table.remove(tab_poziomowo,i); end; end; tab_poziomowo[#tab_poziomowo]=(tab_poziomowo[#tab_poziomowo] or 0)+1; end; tab_poprzedni_artykul_w_bazie=tab_artykul_w_bazie; poziom_poprzedni_artykulu=poziom_artykulu; end; local wartosc=__FUNKCJA(poziomowo,i,ktory,pierwszy_parametr_szablonu,artykul,tab_numer,tab_poziomowo); if(poziomowo)then if(tab_lista[2][p+1])then local numer_nastepny=tonumber(tab_lista[2][p+1][2][1]) or 1; local id_nastepny=tab_lista[2][p+1][4]; local numer=tonumber(tab_lista[2][p][2][1]) or 1; local id=tab_lista[2][p][4]; if((numer_nastepny==0)and(not id_nastepny)and(not id)and(numer>0))then tab_poziomowo={tab_numer[(HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka+1],}; for i=#tab_numer,(HNumerPoziomowNaglowkow(0) or 0)+poziom_zerowego_naglowka+1,-1 do table.remove(tab_numer,i); end; end; end; poprzedni_tab_poziomowo=tab_poziomowo; end; if(wartosc)then return wartosc;end; if(not poziomowo)then i=i+1; end; end; end; if(not czy_ma_elementy)then poprzedni_tab_poziomowo=nil; end; else poprzedni_tab_poziomowo=nil; end; end; return; end; p["PobierzNazwęArtykułu"]=function(frame) local s=1; local function __FUNKCJA(poziomowo,i,ktory,numer,artykul,tab_numer,tab_poziomowo) if((not poziomowo)and(i==numer))then if(s==ktory)then return artykul; else s=s+1; end; elseif(poziomowo)then if((table.concat(tab_numer,".") ..((#tab_numer>0) and "." or "") ..table.concat(tab_poziomowo,"."))==numer)then if(s==ktory)then return artykul; else s=s+1; end; end; end; end; return PobierzNumerLubNazweArtykulu(frame,__FUNKCJA,true); end; p["PobierzNumerArtykułu"]=function(frame) local s=1; local function __FUNKCJA(poziomowo,i,ktory,nazwa_artykulu,artykul,tab_numer,tab_poziomowo) if(nazwa_artykulu==artykul)then if(s==ktory)then if(poziomowo)then return (table.concat(tab_numer,".")..((#tab_numer>0) and ((#tab_poziomowo>0) and "." or "") or "")..table.concat(tab_poziomowo,".")); else return i; end; end; s=s+1; end; end; return PobierzNumerLubNazweArtykulu(frame,__FUNKCJA,false); end; p["SubNazwaNadArtykułu"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local numer=tonumber(args[1]) or 0; local krok=tonumber(args[2])or 1; local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); return stronicowyparser_potrzebne_modul.SubNazwaNadStrony(nazwa_artykulu,numer,krok); end; p["NazwaNadArtykułu"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local args=stronicowyparser_potrzebne_modul:Args(frame); local numer=tonumber(args[1]) or 1; local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); return stronicowyparser_potrzebne_modul.SubNazwaNadStrony(nazwa_artykulu,1,numer); end; p["NazwaLinkuArtykułu"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); local ostatni_artykul; for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie in ipairs(tab_lista[2])do if(type(artykul_w_bazie[1])~="table")then if(artykul_w_bazie[1]==nazwa_artykulu)then return artykul_w_bazie[1]; end; elseif(artykul_w_bazie[1][1]==nazwa_artykulu)then return artykul_w_bazie[1][2]; end; end; end; end; return "(błąd)"; end; p["LiczbaArtykułówKsiążki"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local parametry_modul=require("Module:Parametry"); local args=stronicowyparser_potrzebne_modul:Args(); local naglowek=parametry_modul.CzyTak(args["nagłówek"]); local tab_artykul=(not naglowek) and {} or nil; local i=0; for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie in ipairs(tab_lista[2])do local nazwa_artykulu=artykul_w_bazie[1][1] or artykul_w_bazie[1]; local artykul=(not naglowek) and mw.ustring.gsub(nazwa_artykulu,"^([^#]*)#(.*)$","%1") or nazwa_artykulu; if(naglowek or not tab_artykul[artykul])then if(not naglowek)then tab_artykul[artykul]=true; end; i=i+1; end; end; end; end; return i; end; p["LiniaArtykułuKsiążki"]=function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local nazwa_artykulu=stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame); local parametry_modul=require("Module:Parametry"); local args=stronicowyparser_potrzebne_modul:Args(); local czy_analiza=parametry_modul.CzyTak(args["analiza"]); for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do if(tab_lista[2])then for _,artykul_w_bazie in ipairs(tab_lista[2])do local artykul_ksiazki=artykul_w_bazie[1][1] or artykul_w_bazie[1]; if(artykul_ksiazki==nazwa_artykulu)then if(not czy_analiza)then return artykul_w_bazie[3]; else local function AnalizaLiniiArtykolow() local czy_spis_tresci=mw.ustring.match(artykul_w_bazie[3],"({{%s*[Ss]pisTreści%s*|[^{}]*}})"); if(czy_spis_tresci)then local techniczne_modul=require("Module:Techniczne"); local parametry_szablony=techniczne_modul["ParsujWywołanieSzablonu"](czy_spis_tresci); local nazwa_artykulu=parametry_szablony[1]; ------ local nazwa_ksiazki=stronicowyparser_potrzebne_modul:PelnaNazwaKsiazki(frame); local pelna_nazwa_strony=(nazwa_artykulu=="")and nazwa_ksiazki or nazwa_ksiazki.."/"..nazwa_artykulu; local link= "[["..pelna_nazwa_strony.."|"..nazwa_artykulu.."]]"; local linia2,_=mw.ustring.gsub(artykul_w_bazie[3],"({{%s*[Ss]pisTreści%s*|[^{}]*}})",link); return linia2; else local czy_spis_tresci=mw.ustring.match(artykul_w_bazie[3],"({{%s*[Ss]ekcja[%s_]+referencyjna%s*|[^{}]*}})"); if(czy_spis_tresci)then local linia2,_=mw.ustring.gsub(artykul_w_bazie[3],"({{%s*[Ss]ekcja[%s_]+referencyjna%s*|)","%1astandardowo=tak|"); return linia2; else local nazwa_ksiazki=stronicowyparser_potrzebne_modul:PelnaNazwaKsiazki(frame); local function adresuj_linki(a,b) return "[["..nazwa_ksiazki.."/"..a..(b or "").."]]"; end; local artykul=mw.ustring.gsub(artykul_w_bazie[3],"%[%[%s*/([^%[%]|]-)/*%s*(|.*)%]%]",adresuj_linki); artykul=mw.ustring.gsub(artykul,"%[%[%s*/([^%[%]|]-)/*%s*%]%]",adresuj_linki); return artykul; end; end; end; return AnalizaLiniiArtykolow(); end end; end; end; end; local uzupelniaj_sekcje_artykulow=parametry_modul.CzyTak(args["uzupełniaj sekcje artykułów"]); if(uzupelniaj_sekcje_artykulow)then if(mw.ustring.match(nazwa_artykulu,"^[^#]*#(.+)$"))then local naglowek=mw.ustring.match(nazwa_artykulu,"^[^#]*#(.+)$"); if(parametry_modul["CzyTakCiąg"](naglowek))then local pelna_nazwa_ksiazki=stronicowyparser_potrzebne_modul:PelnaNazwaKsiazki(frame) return "[["..pelna_nazwa_ksiazki..((nazwa_artykulu~="")and("/"..nazwa_artykulu) or "").."|"..naglowek.."]]"; end; end; end; end; p["AktualnaKsiążka"]=function(frame,__error) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); return stronicowyparser_potrzebne_modul:PelnaNazwaKsiazki(frame) or ((not __error)and "(błąd)" or nil); end; p["NazwaAktualnyArtykuł"]=function(frame,__error) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); return stronicowyparser_potrzebne_modul:NazwaArtykuluKsiazki(frame) or ((not __error)and "(błąd)" or nil); end; p["ListaNagłówkówKsiążki"] = function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); stronicowyparser_potrzebne_modul:AnalizujArgumentySzablonu(frame); stronicowyparser_potrzebne_modul:ParametryPudelkaKsiazki(frame); local tab_lista_artykulow_w_ksiazce=stronicowyparser_potrzebne_modul:TabelaListyArtykulowKsiazki(frame); if(not tab_lista_artykulow_w_ksiazce)then return "(błąd)";end; local stronicowyparser_obiekty=mw.loadData("Module:StronicowyParser/obiekty"); local tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek=stronicowyparser_obiekty.tab_rozdzialow_pomijanych_w_rozwazaniach_na_stronach_glownych_ksiazek; local tab_rozdzialow_glownych_spisow_tresci_ksiazek=stronicowyparser_obiekty.tab_rozdzialow_glownych_spisow_tresci_ksiazek; local czy_sa_rozdzialy=nil; local pelna_nazwa_ksiazki=stronicowyparser_potrzebne_modul:PelnaNazwaKsiazki(frame); local args=stronicowyparser_potrzebne_modul:Args(); local wikikod=""; local linki_modul=require("Module:Linki"); for _,tab_lista in ipairs(tab_lista_artykulow_w_ksiazce)do local rozdzial=tab_lista[1][1]; local numer_rozdzialu=tab_lista[1][2][1]; if(numer_rozdzialu>0)then if(not tab_rozdzialow_glownych_spisow_tresci_ksiazek[rozdzial])then wikikod=((wikikod~="")and (wikikod.." &nbsp;—&nbsp; ") or "") ..linki_modul["Link wewnętrzny"]{ ["strona"]=pelna_nazwa_ksiazki, ["nagłówek"]=rozdzial, ["nazwa"]=rozdzial, ["bez znaczników"]=args["bez znaczników"], ["bez przetwarzania"]=args["bez przetwarzania"], }; end; czy_sa_rozdzialy=true; end; end; if(not czy_sa_rozdzialy)then return "(błąd: brak rozdziałów)";end; return wikikod; end; p["ArtykułSubst"] = function(frame) local tabela_listy_danych_analizy_ksiazki=mw.loadData("Module:StronicowyParser/informacje").tablica_zebranych_danych_ksiazkowych; local nazwa_przestrzeni;local nazwa_ksiazki;local nazwa_artykulu; if(not tabela_listy_danych_analizy_ksiazki.zastepczy)then nazwa_przestrzeni=tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni; nazwa_ksiazki=tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki; nazwa_artykulu=tabela_listy_danych_analizy_ksiazki.nazwa_artykulu; else nazwa_przestrzeni=tabela_listy_danych_analizy_ksiazki.normalna_nazwa_przestrzeni; nazwa_ksiazki=tabela_listy_danych_analizy_ksiazki.normalna_nazwa_ksiazki; nazwa_artykulu=tabela_listy_danych_analizy_ksiazki.normalna_nazwa_artykulu; end; local parametry_modul=require("Module:Parametry"); local PobierzParametr=parametry_modul.PobierzParametr(frame); local pobierz_nazwa_artykulu=PobierzParametr("pobierz pełną nazwę artykułu"); local pobierz_adres_ksiazki=PobierzParametr("pobierz pełną nazwę książki"); local czy_pobierz_pelna_nazwa_artykulu=parametry_modul.CzyTak(pobierz_nazwa_artykulu); local czy_pobierz_pelna_nazwa_ksiazki=parametry_modul.CzyTak(pobierz_adres_ksiazki); if(czy_pobierz_pelna_nazwa_artykulu and not czy_pobierz_pelna_nazwa_ksiazki)then return ((nazwa_przestrzeni~="")and(nazwa_przestrzeni..":") or "")..nazwa_ksiazki..((nazwa_artykulu~="") and "/" or "")..nazwa_artykulu; elseif(not czy_pobierz_pelna_nazwa_artykulu and czy_pobierz_pelna_nazwa_ksiazki)then return ((nazwa_przestrzeni~="")and(nazwa_przestrzeni..":") or "")..nazwa_ksiazki; elseif(czy_pobierz_pelna_nazwa_artykulu and czy_pobierz_pelna_nazwa_ksiazki)then return "(błąd)"; end; local nazwa_strony=((nazwa_przestrzeni~="")and(nazwa_przestrzeni..":") or "")..nazwa_ksiazki..((nazwa_artykulu~="") and "/" or "")..nazwa_artykulu; local techniczne_modul=require("Module:Techniczne"); local szablon=techniczne_modul.NazwaSzablonu(nazwa_strony); return frame:expandTemplate{title=szablon,args={},}; end; p["KsiążkaSubst"] = function(frame) local tabela_listy_danych_analizy_ksiazki=mw.loadData("Module:StronicowyParser/informacje").tablica_zebranych_danych_ksiazkowych; local str=tabela_listy_danych_analizy_ksiazki["KsiążkaSubst"]; return str; end; p["StronaSubst"] = function(frame) local parametry_modul=require("Module:Parametry"); local args=frame and ((frame.getParent and ((parametry_modul.CzyTak(frame.args["wyspecjalizowana"]))and frame or frame:getParent()) or frame).args or frame) or {}; local tabela_listy_danych_analizy_ksiazki=mw.loadData("Module:StronicowyParser/informacje").tablica_zebranych_danych_ksiazkowych; local tab_stronasubst=tabela_listy_danych_analizy_ksiazki["StronaSubst"]; if(not tab_stronasubst)then return;end; local pierwszy,_=mw.ustring.gsub(args[1],"[%s_]+"," "); local tab_strona=tab_stronasubst[pierwszy]; if(not tab_strona)then return;end; local link=args["link"]; local czy_link=parametry_modul.CzyTak(link); local stronasubst=tab_strona[(czy_link and "tak" or "")]; return stronasubst; end; p["CzyStronęNumerować"] = function(frame) local strona=frame.args[1]; local nazwy_modul=require("Module:Nazwy"); strona=nazwy_modul["PEŁNANAZWASTRONY"](strona); local pudelko_modul=require("Module:Pudełko"); if(strona==pudelko_modul["Strona główna tego projektu"](frame))then return; end; if(strona==pudelko_modul["Strona główna dla dzieci tego projektu"](frame))then return; end; if(mw.ustring.match(strona,"^Szablon:SG/"))then return; end; local zbiory={ ["Szablon:Nowe podręczniki miesiąca/Zwycięzca"]=true, ["Wikibooks:Polecane książki"]=true, ["Szablon:Wyróżnienia książek miesiąca/Wyróżniony"]=true, } if(zbiory[strona])then return; end; if(mw.ustring.match(strona,"^Szablon:Polecane książki/") or(mw.ustring.match(strona,"^Szablon:Nowe podręczniki miesiąca/")) or(mw.ustring.match(strona,"^Szablon:Wyróżnienia książek miesiąca/")) )then return; end; return "tak"; end; function p.HNumer(frame) local p=frame.args["wyspecjalizowana"] and frame or frame:getParent(); if((not p) or (not p.args[1]))then local blad_module=require("Module:Błąd"); local frame2=p:newChild{args={[1]="Podano złe parametry w szablonie: [[Szablon:HLiczba]].",["tag"]="span",},} blad_module.error(frame2); return; end; local stronicowyparser_rozdzialy_modul=require("Module:StronicowyParser/Rozdziały"); local naglowek,licznik=stronicowyparser_rozdzialy_modul.PodajRozdzial(p.args[1]); local id2,_=mw.ustring.gsub(naglowek,"^[%s_]",""); id2,_=mw.ustring.gsub(id2,"[%s_]$",""); id2,_=mw.ustring.gsub(id2,"[%s_]","_"); local id3,_=mw.ustring.gsub(mw.uri.encode(mw.text.encode(id2),"WIKI"),"(%%)","."); if(licznik>6)then local id=p.args["id"]; local styl=p.args["styl"]; local klasa=p.args["klasa"]; local atrybuty=p.args["atrybuty"]; local parametry_modul=require("Module:Parametry"); return "<h6"..(parametry_modul.CzyTak(id)and " id=\""..id.."\"" or "") ..(parametry_modul.CzyTak(styl)and " style=\""..styl.."\"" or "") .." class=\"mw-hnumber mw-hnumber-"..licznik..((parametry_modul.CzyTak(klasa)) and (" "..klasa) or "").."\"" ..(parametry_modul.CzyTak(atrybuty)and " "..atrybuty or "") ..">"..((id2~=id3) and ("<span id=\""..id3.."\"></span>") or "").."<span id=\""..id2.."\" class=\"mw-headline\">"..naglowek.."</span></h6>"; elseif(licznik<1)then local blad_module=require("Module:Błąd"); local frame2=pf:newChild{args={[1]="Nie podano nagłówka w szablonie: [[Szablon:HLiczba]].",["tag"]="span",},} blad_module.error(frame2); else local id=p.args["id"]; local styl=p.args["styl"]; local klasa=p.args["klasa"]; local atrybuty=p.args["atrybuty"]; local parametry_modul=require("Module:Parametry"); return "<h"..licznik..(parametry_modul.CzyTak(id)and " id=\""..id.."\"" or "") ..(parametry_modul.CzyTak(styl)and " style=\""..styl.."\"" or "") .." class=\""..((parametry_modul.CzyTak(klasa)) and klasa or "").."\"" ..(parametry_modul.CzyTak(atrybuty)and " "..atrybuty or "")..">"..((id2~=id3) and ("<span id=\""..id3.."\"></span>") or "").."<span id=\""..id2.."\" class=\"mw-headline\">"..naglowek.."</span></h"..licznik..">"; end; end; function p.TOC(frame,czy_rozciagnij,gdy_pusty_spis_tresci) local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; local nazwy_modul=require("Module:Nazwy"); local parametry_modul=require("Module:Parametry"); local ksiazkowe_modul=require("Module:Książkowe"); local args=(frame)and (parametry_modul.CzyTak(frame.args["wyspecjalizowana"])and frame.args or frame:getParent().args) or {}; local nazwa_przestrzeni=args[2] and nazwy_modul["NAZWAPRZESTRZENI"](args[2]) or tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni; local nazwa_ksiazki=args[2] and ksiazkowe_modul["NazwaKsiążki"](args[2]) or tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki; local nazwa_artykulu=args[1] and args[1] or tabela_listy_danych_analizy_ksiazki.nazwa_artykulu; local czy_nie_aktualny=( (nazwa_przestrzeni~=tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni) or(nazwa_ksiazki~=tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki) or (nazwa_artykulu~=tabela_listy_danych_analizy_ksiazki.nazwa_artykulu) ); local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); if ((tabela_listy_danych_analizy_ksiazki.TOC_StronaZbiorcza)or(tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu and tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni] and tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni][nazwa_ksiazki] and tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni][nazwa_ksiazki].lista_artykolow[nazwa_artykulu] and tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni][nazwa_ksiazki].lista_artykolow[nazwa_artykulu].TOC)) then mw.log(tabela_listy_danych_analizy_ksiazki.TOC_StronaZbiorcza); local spis_tresci_artykulu=stronicowyparser_potrzebne_modul.TOC(frame,tabela_listy_danych_analizy_ksiazki.TOC_StronaZbiorcza or tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni][nazwa_ksiazki].lista_artykolow[nazwa_artykulu].TOC,czy_nie_aktualny,czy_rozciagnij); return spis_tresci_artykulu; elseif(not gdy_pusty_spis_tresci)then local spis_tresci_artykulu=stronicowyparser_potrzebne_modul.TOC(frame,nil,czy_nie_aktualny,czy_rozciagnij); return spis_tresci_artykulu; end; end; function p.WykazModolow(frame,czy_rozciagnij) local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; local nazwa_ksiazki=tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki; local nazwa_przestrzeni=tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni; local lista_ksiazek_w_przestrzeni_nazw=tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni]; if(not lista_ksiazek_w_przestrzeni_nazw)then return nil;end; local tab_lista_artykulow_w_ksiazce_w_ksiazce=lista_ksiazek_w_przestrzeni_nazw[nazwa_ksiazki]; if(not tab_lista_artykulow_w_ksiazce_w_ksiazce)then return nil;end; local spis=tab_lista_artykulow_w_ksiazce_w_ksiazce.spis; if(not spis)then return nil;end; local parametry_modul=require("Module:Parametry"); local spis_ksiazkowy=parametry_modul.CzyTak(frame.args["spis książkowy"]); local spis_rzeczy=parametry_modul.CzyTak(frame.args["spis rzeczy"]); local tylko_naglowki=parametry_modul.CzyTak(frame.args["nagłówki"]); local wysokosc=frame.args["wysokość"]; local wykaz_modolow_w_liscie=""; local i=1; for _,tab_artykul in ipairs(spis)do if(tab_artykul[2])then for _,tab_pozycja in ipairs(tab_artykul[2])do if(type(tab_pozycja[1])~="table")then sformatowana_nazwa_artykulu,_=mw.ustring.gsub(tab_pozycja[1],"_"," "); else sformatowana_nazwa_artykulu,_=mw.ustring.gsub(tab_pozycja[1][1],"_"," "); end; local id=tab_pozycja[4] if(not tylko_naglowki or id)then if(not spis_ksiazkowy)then wykaz_modolow_w_liscie=((wykaz_modolow_w_liscie~="") and (wykaz_modolow_w_liscie.."\n") or "")..'<li>[['..((not spis_rzeczy or not id)and (((nazwa_przestrzeni=="")and nazwa_ksiazki or nazwa_przestrzeni..":"..nazwa_ksiazki).."/") or "#")..sformatowana_nazwa_artykulu.."|<span class=\"tocnumber\">"..i.."</span><span class=\"toctext\">"..sformatowana_nazwa_artykulu..'</span>]]</li>'; else wykaz_modolow_w_liscie=((wykaz_modolow_w_liscie~="") and (wykaz_modolow_w_liscie.."\n") or "")..'{{SpisZw||[['..((not spis_rzeczy or not id)and (((nazwa_przestrzeni=="")and nazwa_ksiazki or nazwa_przestrzeni..":"..nazwa_ksiazki).."/") or "#")..sformatowana_nazwa_artykulu.."|"..sformatowana_nazwa_artykulu.."]]|"..i.."|100%}}"; end; i=i+1; end; end; end; end; if(wykaz_modolow_w_liscie=="")then return nil;end; if(not spis_ksiazkowy)then wykaz_modolow_w_liscie="<ul>"..wykaz_modolow_w_liscie.."</ul>"; wykaz_modolow_w_liscie='<div class="toc_ogólnie_spis toc_wykaz" style="width:100%;max-height:400px;overflow:auto;">'..wykaz_modolow_w_liscie.."</div>"; wykaz_modolow_w_liscie='{{Tabela nawigacyjna|styl=width:'..(czy_rozciagnij and "100%" or "auto")..';font-size:14px;line-height:1.2em;background-color:white;|tytuł=<div style="font-size:14px;line-height:1.2em;background-color:white;text-align:left;white-space:nowrap;">Wykaz modułów w książce</div>|spis='..wykaz_modolow_w_liscie..'|funkcja=UkrytaWikitabelowaListaMenu}}'; else wykaz_modolow_w_liscie="<div class=\"toc_wykaz mw-overflow-y\" style=\""..(wysokosc and ("max-height:"..wysokosc..";overflow:auto;") or "").."border:solid #aaa 1px;padding:10px;width:auto;background-color:white;\">"..wykaz_modolow_w_liscie.."</div>"; end; local rozwiniety_wikikod=frame:preprocess(wykaz_modolow_w_liscie); return rozwiniety_wikikod; end; function p.NazwaModolu() local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; local nazwy_np_modul=mw.loadData('Moduł:Nazwy/Np'); local nazwa_artykulu=tabela_listy_danych_analizy_ksiazki.nazwa_artykulu; if(nazwa_artykulu==nil)then return "[["..nazwy_np_modul.Category..": Nie można wygenerować nazwy strony]]"; else return nazwa_artykulu; end; end; function p.Wstep_do_licencji(frame) local element_licencji_1='<strong>Autor:</strong> '..frame.args[1]..'<BR>'; local element_licencji_2; if((frame.args[2]~='')and(frame.args[2]~=nil))then element_licencji_2=frame.args[2]..'<BR>'; end; local element_licencji_3; if((frame.args[3]~='')and(frame.args[3]~=nil))then element_licencji_3='<strong>Email:</strong> '..frame.args[3]..'<BR>'; end; local element_licencji_4; if((frame.args[4]~='')and(frame.args[4]~=nil))then element_licencji_4='<strong>Dotyczy:</strong> '..frame.args[4].."<BR>"; else element_licencji_4='<strong>Dotyczy:</strong> książki, do której należy ta strona, oraz w niej zawartych stron i w nich podstron, a także w nich kolumn, wraz z zawartościami.<BR>'; end; if((frame.args[5]~='')and(frame.args[5]~=nil))then element_licencji_5=frame.args[5].."<BR>"; else element_licencji_5='Użytkownika książki, do której należy ta strona, oraz w niej zawartych stron i w nich podstron, a także w nich kolumn, wraz z zawartościami nie zwalnia z odpowiedzialności prawnoautorskiej nieprzeczytanie warunków licencjonowania.<BR>'; end; local element_licencji_6; if((frame.args[6]~='')and(frame.args[6]~=nil))then element_licencji_6='<strong>Umowa prawna:</strong> '..frame.args[6]..'<BR>'; else element_licencji_6='<strong>Umowa prawna:</strong> [http://creativecommons.org/licenses/by-sa/3.0/deed.pl Creative Commons: uznanie autorstwa oraz miejsca pochodzenia książki i jej jakikolwiek części, a także treści, teksty, tabele, wykresy, rysunki, wzory i inne elementy oraz ich części zawarte w książce, i tą książkę, nawet w postaci przerobionej nie można umieszczać w jakikolwiek formie na czasopismach naukowych, archiwach prac, itp.]<BR>'; end; if((frame.args[7]~='')and(frame.args[7]~=nil))then element_licencji_7=frame.args[7].."<BR>"; else element_licencji_7='Autor tej książki dołożył wszelką staranność, aby informacje zawarte w książce były poprawne i najwyższej jakości, jednakże nie udzielana jest żadna gwarancja, czy też rękojma. Autor nie jest odpowiedzialny za wykorzystanie informacji zawarte w książce nawet jeśli wywołaby jakąś szkodę, straty w zyskach, zastoju w prowadzeniu firmy, przedsiębiorstwa lub spółki bądź utraty informacji niezależnie, czy autor (a nawet [https://pl.wikibooks.org Wikibooks]) został powiadomiony o możliwości wystąpienie szkód. Informacje zawarte w książce mogą być wykorzystane tylko na własną odpowiedzialność.<BR>'; end; local licencja=element_licencji_1..((element_licencji_2)and element_licencji_2 or "")..((element_licencji_3)and element_licencji_3 or "") ..element_licencji_4..element_licencji_5..element_licencji_6..element_licencji_7; return licencja; end; function p.Licencja(frame,czy_rozciagnij) local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; local menu_z_licencja; local nazwa_przestrzeni=tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni; local nazwa_ksiazki=tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki; local licencja=tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni][nazwa_ksiazki].licencja; if(licencja)then if(licencja[1])then local frame={}; frame.args={licencja[1],licencja[2],licencja[3],licencja[4],licencja[5],licencja[6],licencja[7]}; local ramka_z_licencja='<div style="margin-left:0px;padding:3px;width:100%;height:auto;box-sizing:border-box;">'..p.Wstep_do_licencji(frame)..'</div>'; menu_z_licencja='{{Tabela nawigacyjna|styl=width:'..(czy_rozciagnij and "100%" or "auto")..';font-size:14px;line-height:1.2em;background-color:white;|tytuł=<div style="font-size:14px;line-height:1.2em;background-color:white;text-align:left;white-space:nowrap;">Licencja</div>|spis='..ramka_z_licencja..'|funkcja=StatycznaWikitabelowaListaMenu}}'; else return nil; end; local frame=mw.getCurrentFrame(); local rozwiniety_wikikod=frame:preprocess(menu_z_licencja); return rozwiniety_wikikod; else return nil; end; end; function p.Autor(frame) local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; local nazwa_przestrzeni=tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni; local nazwa_ksiazki=tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki; local licencja=tabela_listy_danych_analizy_ksiazki.dane_analizy_artykulu[nazwa_przestrzeni][nazwa_ksiazki].licencja; if(tabela_listy_danych_analizy_ksiazki.licencja)then return licencja[1]; end; end; function p.PierwszaStrona(frame) local prawe_menu=""; local parametry_modul=require("Module:Parametry"); local czy_rozciagnij=parametry_modul.CzyTak(frame.args["rozciągnij"]) if(parametry_modul.CzyTak(frame.args[1]))then prawe_menu='<div style="margin-top:5px;font-size:1.9em;line-height:25px;text-align:left;">'..p.NazwaModolu()..'</div><hr style=\"margin:5px 0\"/>'; end; if(parametry_modul.CzyTak(frame.args[2]))then local licencja=p.Licencja(frame,czy_rozciagnij); if(licencja~=nil)then prawe_menu=prawe_menu..licencja; else local obiekty_modul=mw.loadData("Module:StronicowyParser/obiekty"); local uchwyt_strony=mw.title.getCurrentTitle(); local nazwy_np_modul=mw.loadData("Module:Nazwy/Np"); local nazwa_przestrzeni_nazw_strony=require("Module:Nazwy")["NAZWAPRZESTRZENI"](); local element_zdania_kategorii=(nazwa_przestrzeni_nazw_strony==nazwy_np_modul.Main)and "na stronach głównych, książek" or ((nazwa_przestrzeni_nazw_strony==nazwy_np_modul.Wikijunior)and "na stronach głównych, książek dla dzieci" or ((nazwa_przestrzeni_nazw_strony==nazwy_np_modul.User)and "na stronach głównych, książek użytkowników" or((nazwa_przestrzeni_nazw_strony==nazwy_np_modul.Wikibooks)and "na stronach głównych, książek brudnopisu projektu" or "na stronach głównych, publikacji"))); local tabela_listy_danych_analizy_ksiazki=mw.loadData("Module:StronicowyParser/informacje").tablica_zebranych_danych_ksiazkowych; local kategoria_braku_licencji=(not tabela_listy_danych_analizy_ksiazki.korzystane_strona_glowna_nie_istnieje)and"[["..nazwy_np_modul.Category..": Brak licencji, "..element_zdania_kategorii.."]]" or ""; prawe_menu=prawe_menu..kategoria_braku_licencji; end; end; if(parametry_modul.CzyTak(frame.args[3]))then local wykaz_artykulow=p.WykazModolow(frame,czy_rozciagnij); if(wykaz_artykulow~=nil)then prawe_menu=prawe_menu.."<hr style=\"margin:5px 0\"/>"..wykaz_artykulow; end; end; if(parametry_modul.CzyTak(frame.args[4]))then local spis_tresci=p.TOC(frame,czy_rozciagnij,true); if(spis_tresci~=nil)then prawe_menu=prawe_menu.."<hr style=\"margin:5px 0\"/>"..spis_tresci; end; end; local wysokosc=frame.args["wysokość"]; return "<div style=\"padding:10px;border: solid #aaa 1px;background-color:white;box-sizing:border-box;width:700px;\"><div class=\"pierwsza_strona mw-overflow-y\" style=\"max-height:"..(wysokosc or "100%")..";overflow:auto;height:100%;box-sizing:border-box;\"><div style=\"display:flex;flex-direction:column;width:auto;height:auto;\">"..prawe_menu.."</div></div></div>"; end; function p.SpisTresci(frame) local parametry_modul=require("Module:Parametry"); local args=parametry_modul.PobierzArgsParametry(frame); local nazwa_artykulu=args["artykuł"] or args[1]; local nazwa_ksiazki=args["książka"] or args[2]; if(not parametry_modul.CzyTak(nazwa_ksiazki))then local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; local uzyskana_nazwa_przestrzeni=tabela_listy_danych_analizy_ksiazki.nazwa_przestrzeni; local uzyskana_nazwa_ksiazki=tabela_listy_danych_analizy_ksiazki.nazwa_ksiazki; nazwa_ksiazki=((uzyskana_nazwa_przestrzeni~=nil) and (uzyskana_nazwa_przestrzeni..":") or "")..uzyskana_nazwa_ksiazki; end; local brak=(nazwa_artykulu and mw.ustring.match(nazwa_artykulu,"[|<>{}%[%]]") or nil) or (nazwa_ksiazki and mw.ustring.match(nazwa_ksiazki,"[|<>{}%[%]]") or nil); if(brak~=nil)then local nazwy_np_modul=mw.loadData("Module:Nazwy/Np"); local nazwa_przestrzeni_nazw_strony=require("Module:Nazwy")["NAZWAPRZESTRZENI"](); local element_zdania_kategorii=(nazwa_przestrzeni_nazw_strony==nazwy_np_modul.Main)and "artykułów," or ((nazwa_przestrzeni_nazw_strony==nazwy_np_modul.Wikijunior)and "artykułów dla dzieci," or ((nazwa_przestrzeni_nazw_strony==nazwy_np_modul.User)and "stron użytkowników," or ((nazwa_przestrzeni_nazw_strony==nazwy_np_modul.Wikibooks)and "stron brudnopisu projektu," or "stron,"))); return "[["..nazwy_np_modul.Category..":Nazwy "..element_zdania_kategorii.." w spisach treści, zawierają niedozwolone znaki]]"; end; local html_modul=require("Module:Html"); local nazwy_modul=require("Module:Nazwy"); local ksiazkowe_modul=require("Module:Książkowe"); local nazwa_przestrzeni=nazwy_modul["NAZWAPRZESTRZENI"](nazwa_ksiazki); local nazwa_ksiazki=ksiazkowe_modul["NazwaKsiążki"](nazwa_ksiazki); nazwa_ksiazki=html_modul.TransformacjaKlasyZnakowej(nazwa_ksiazki); local nazwa_artykulu=html_modul.TransformacjaKlasyZnakowej(nazwa_artykulu); local nazwa_strony=(nazwa_artykulu=="")and nazwa_ksiazki or nazwa_ksiazki.."/"..nazwa_artykulu; local pelna_nazwa_strony=(nazwa_przestrzeni=="")and nazwa_strony or nazwa_przestrzeni..":"..nazwa_strony; local tekst_artykulu=p.SpreparowanyWikikodStrony(pelna_nazwa_strony); local nazwa=args["nazwa"] or args[3]; local nazwa_strony_artykulu=parametry_modul.CzyTak(nazwa) and nazwa or mw.ustring.gsub(mw.ustring.match(nazwa_artykulu,"[^/]*$"),"_"," "); local dodatek=args["dodatek"] or args[4]; if(not tekst_artykulu)then if(nazwa_artykulu~="")then return "\n"..mw.ustring.rep("=",6).."<span style=\"color:red\">[["..pelna_nazwa_strony.."|"..nazwa_strony_artykulu.."]]</span>"..mw.ustring.rep("=",6).."\n"; else return frame:getParent():preprocess("{{Błąd|Wywołano szablon z argumentem pierwszym pustym.}}"); end; else local twor_spisu_tresci="[["..pelna_nazwa_strony.."|"..nazwa_strony_artykulu.."]]"..(((dodatek)and(dodatek~="")) and (" "..dodatek) or ""); twor_spisu_tresci=mw.ustring.rep("=",6)..twor_spisu_tresci..mw.ustring.rep("=",6).."\n"; local stronicowyparser_dalszefunkcje_modul=require("Module:StronicowyParser/DalszeFunkcje"); local ulozenia_w_menu_spisu_tresci=stronicowyparser_dalszefunkcje_modul:SpisTresciWstep(tekst_artykulu, pelna_nazwa_strony); local atrybuty="style=\"margin-left:20px\""; local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); local toc=stronicowyparser_potrzebne_modul.TOCSilnik(ulozenia_w_menu_spisu_tresci, atrybuty); local limit=args["limit"]; local czy_limit=parametry_modul.CzyTak(limit); return '<div class="toc_ogólnie_spis toc_artykuł toclimit '..(czy_limit and ("toclimit-"..limit) or "")..'">\n'..twor_spisu_tresci..(toc and toc or "")..'</div>'; end; end; function IteratorFunkcja() local obiekty_modul=mw.loadData("Module:StronicowyParser/obiekty"); local tabela_wypowiedzi=obiekty_modul.tablica_obiektow; local licznik=1; return function() local tabela_obiektu=tabela_wypowiedzi[licznik]; if(not tabela_obiektu)then return nil;end; local wartosc1=mw.ustring.gsub(tabela_obiektu[1],"%d+$",""); local wartosc2=tabela_obiektu[4]; licznik=licznik+1; return wartosc1,wartosc2; end; end; local iterator=IteratorFunkcja(); for nazwa_obiektu,czesc_nazwy_funkcji in iterator do p["Numer"..czesc_nazwy_funkcji] = function(frame) local stronicowyparser_potrzebne_modul=require("Module:StronicowyParser/Potrzebne"); return stronicowyparser_potrzebne_modul.NumerObiektu(frame,nazwa_obiektu); end; end; p["AnalizujSzablonemStronicowymArtykuł"]=function(frame) local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; return ""; end; function p.formatowanie() local tabela_listy_danych_analizy_ksiazki=mw.loadData('Module:StronicowyParser/informacje').tablica_zebranych_danych_ksiazkowych; return tabela_listy_danych_analizy_ksiazki.formatowanie; end; function p.WstawKategorie(frame) local stronicowyparser_kategorie_modul=require("Module:StronicowyParser/Kategorie"); return stronicowyparser_kategorie_modul.WstawKategorie(frame); end; function p.CzyStronaSubst(frame,pelnanazwastrony,czy_wymusic) if(czy_wymusic)then local nazwy_modul=require("Module:Nazwy"); local pelnanazwastronyaktualnej=nazwy_modul["PEŁNANAZWASTRONY"](); if(pelnanazwastrony~=pelnanazwastronyaktualnej)then local stronicowyparser_stronasubst_modul=require("Module:StronicowyParser/StronaSubst"); local TakFun=function(frame) return "tak";end;local NieFun=function(frame) return "";end; return stronicowyparser_stronasubst_modul.AnalizaStronaSubst(nil,pelnanazwastrony,TakFun,NieFun,nil); end; end; local tabela_listy_danych_analizy_ksiazki=mw.loadData("Module:StronicowyParser/informacje").tablica_zebranych_danych_ksiazkowych; if(tabela_listy_danych_analizy_ksiazki["CzyStronaSubst"])then return "tak"; end; return ""; end; return p; l66yx2m56kmhklunkja9cra3gk5thno Wikipedysta:Persino/vector-2022.css 2 58229 435640 435569 2022-07-25T19:31:09Z Persino 2851 css text/css body.skin-vector-search-vue .mw-page-container{ max-width:100%; min-width:988px; padding-left:0; padding-right:0; border-left: 0; border-right: 0; box-sizing:border-box; display:table; width:100%; background-color:white; height:auto; } body.skin-vector-search-vue .mw-content-container{ max-width:100%; box-sizing:border-box; padding-left:0 !important; } body.skin-vector-search-vue .mw-logo-container{ margin-left: 10px; margin-right:0; } body.skin-vector-search-vue #p-lang-btn-label{ font-size:14px !important; line-height:1.2em !important; white-space:nowrap; } body.skin-vector-search-vue .mw-indicators{ font-size: calc( 14px * 0.875 ); line-height: 2.0em; white-space:nowrap; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{ display:grid; grid: 'aa aa aa' auto 'dd dd dd' auto 'bb bb bb' auto 'cc cc cc' auto '.. .. ff' auto 'ee ee ee' auto / minmax(auto,1fr) auto auto } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{ grid-area:dd; margin:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ grid-area:cc; top:0; width:auto !important; height:auto !important; margin:0; margin-right:10px; box-sizing:border-box; border-bottom: 1px solid #a2a9b1; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{ grid-area:ff; height:20px; width:auto; height:auto; margin-left:auto; top:0; margin: auto 5px 0 5px; padding-bottom:8px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{ grid-area:ee; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ display:grid; grid: 'aa bb' auto / minmax(auto,1fr) auto; width:100%; min-height: 46px; box-sizing: border-box; position: relative; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{ display:block !important; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; margin-bottom:2px; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom: 0; margin-top: auto; border-bottom: none; padding-left: 3px; padding-right: 3px; border-bottom: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{ grid-area: bb; width: auto; height: 1.6em; margin-bottom: 5px; margin-top: auto; margin-right: 5px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{ padding-bottom:2px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{ grid-area:bb; right:0; margin:0; height:auto; width:auto; margin-top: auto; margin-bottom:0; padding: 0 3px; box-sizing:border-box; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ display:grid; grid:'aa bb' auto / minmax(auto,100%) auto; border-bottom:1px solid #a2a9b1; margin-top:auto; margin-bottom:0; min-height:46px; box-sizing:border-box; position:relative; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom:0; margin-top:auto; border-bottom:none; padding-left:3px; padding-right:3px; border-bottom:0; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{ grid-area:bb; right:0; margin:0; height:auto; width:100%; margin:auto 0 0 auto; padding: 0 10px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator, body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{ padding: 2px 0 2px 0; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content, body.skin-vector-search-vue.action-view.ns-special #content, body.skin-vector-search-vue:not(.action-view) #content{ display:grid; grid:'aa' auto 'cc' auto 'bb' auto 'dd' auto 'ee' auto / auto; width:100%; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top, body.skin-vector-search-vue.action-view.ns-special #content > #top, body.skin-vector-search-vue:not(.action-view) #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice, body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice, body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar, body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar, body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{ grid-area:cc; } body.skin-vector-search-vue .mw-body-header::after{ display:none; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ grid-area:dd; margin:0; margin-right:10px; width:auto; padding-bottom:0; } body.skin-vector-search-vue .mw-body-subheader{ border-bottom:0; } /*body.skin-vector-search-vue #siteSub,*/ body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{ display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } body.skin-vector-search-vue .firstHeading{ text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA; } body.skin-vector-search-vue .firstHeading > .plainlinks{ text-shadow:none; } body.skin-vector-search-vue .firstHeading:not(:hover){ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:0; } body.skin-vector-search-vue .firstHeading:hover{ display:block; border:1px solid #eaecf0; border-radius:10px; background-color:white; position:absolute; top:5px; left:-3px; width:auto; padding:5px; z-index:1 !important; } body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{ display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{ margin: 2px 0 3px 0; min-height:1.6em; } body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader, body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{ margin: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{ margin:0; margin-top: -2.0em; font-size: 1.2em; height: 2em; margin-bottom:5px; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{ display:table !important; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{ margin-left:5px; margin-right:3px; display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{ display:block; } body.skin-vector-search-vue .firstHeading, body.skin-vector-search-vue .firstHeading > .plainlinks{ max-width:100%; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent, body.skin-vector-search-vue.action-view.ns-special #content #bodyContent, body.skin-vector-search-vue:not(.action-view) #content #bodyContent{ grid-area:ee; } body.skin-vector-search-vue .mw-article-toolbar-container, body.skin-vector-search-vue .mw-content-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-page-container-inner{ display:grid; grid:'aa aa aa' auto 'bb cc dd' auto 'bb ee ee' minmax(auto,1fr) / auto minmax(auto,1fr) auto; width:auto; box-sizing:border-box; row-gap:0; } body.skin-vector-search-vue .mw-page-container-inner > .mw-header{ grid-area:aa; } body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{ grid-area:bb; } body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{ grid-area:cc; grid-column:auto !important; } body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{ grid-area:dd; } body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{ grid-area:ee; } /**/ body.skin-vector-search-vue .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content, body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{ width:100%; box-sizing:border-box; } body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views { display: block; } body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item { display: none; } body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{ margin-left:0; background-color: white; padding:0; margin-top:0; } body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ display:block; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ visibility: visible; opacity: 1; transform: none; } body.skin-vector-search-vue .ui-dialog{ font-size:75%; } body.skin-vector-search-vue .mw-body-content .error{ font-size:96%; } body.skin-vector-search-vue.action-purge .firstHeading{ padding-bottom:3px; } body.skin-vector-search-vue .firstHeading .plainlinks{ line-height:1.2em !important; } body.skin-vector-search-vue #mw-panel{ width:140px; box-sizing:border-box; } body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{ display:block; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{ width:0; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{ width:140px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:absolute; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:relative; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:-140px; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:0; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ max-width:100%; box-sizing:border-box; position:relative; z-index:1; } body.skin-vector-search-vue .mw-footer-container{ padding-top:0; } body.skin-vector-search-vue .mw-content-container > .mw-body{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-footer-container .mw-footer{ margin-left:10px; margin-right:0; padding: 0.75em 5px; } body.skin-vector-search-vue .mw-header { display:flex; flex-direction: row; margin: 8px 5px 0 5px; } body.skin-vector-search-vue .mw-workspace-container #mw-head{ min-width:832px; margin-right:5px; box-sizing:border-box; } body.skin-vector-search-vue .mw-logo-icon{ display:block; } body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item { display: block; } body.skin-vector-search-vue .vector-search-box-collapses > div{ display:block; } body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{ display:none; } body.skin-vector-search-vue .vector-sticky-header{ height:3.2em; padding: 6px 25px; display:flex; flex-direction:row; min-width:700px; margin-left:auto; margin-right:auto; width:90%; text-align:center; box-sizing:border-box; } @media screen and (max-width: 830px){ body.skin-vector-search-vue .vector-sticky-header{ display: none; } } html.client-nojs body.skin-vector-search-vue .vector-sticky-header{ display:none !important; } body.skin-vector-search-vue .wvui-typeahead-suggestion{ padding-top:4px; padding-bottom:4px; text-align:left; } body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{ flex-basis: 460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{ width: 36px; height: 36px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{ left:13px; width:37px; } body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{ width:calc( 460px - 64px); } body.skin-vector-search-vue .wvui-button{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; width:64px; border-left:0; box-sizing:border-box; } body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search__wrapper{ margin-right:0; } body.skin-vector-search-vue .wvui-typeahead-suggestion__title{ display: table-cell; vertical-align: middle; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{ margin-left:0; box-sizing:border-box; width:460px; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{ left:0; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{ margin-left:10px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ width:460px; box-sizing:border-box; } body.skin-vector-search-vue .vector-search-box-vue .searchButton{ background-size: 20px auto; } .client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input { border-right-color: #a2a9b1; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{ border-right-color: #a2a9b1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input { width: 460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input { width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{ position:relative; padding-left: 62px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); top:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:460px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ max-width:460px; } body.skin-vector-search-vue .mw-logo{ min-width:144px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{ display:none; } body.skin-vector-search-vue .wvui-button{ padding-left:0; padding-right:0; } body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{ font-size:14px; } body.skin-vector-search-vue .mw-sidebar-action{ display:none; } body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{ font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif; font-stretch:normal; font-variant:normal; font-style:normal; font-weight:normal; font-size-adjust:none; letter-spacing:normal; word-spacing:normal; text-align:left; word-wrap:break-word; hyphens:auto; } body.skin-vector-search-vue{ font-size:calc( 14px * 1.042 ); line-height:1.2em; background-color:#ffffff; } body.skin-vector-search-vue .mw-editsection{ font-size:12px; line-height:1.2em; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub, body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{ margin:0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty, body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty), body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2, body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){ margin:2px 0 3px 0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty{ margin:2px 0 3px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty), body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{ margin: 2px 0 2px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){ margin: 2px 0 3px 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub, body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{ margin:0; } body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{ margin-top:0; } body.skin-vector-search-vue.action-view #pwContent, body.skin-vector-search-vue:not(.action-view) #pwContent, body.skin-vector-search-vue.action-view .subpages, body.skin-vector-search-vue:not(.action-view) .subpages{ margin:0; font-size:12px; line-height:1.2em; margin-bottom:6px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox, body.skin-vector-search-vue:not(.action-view) .warningbox{ margin:10px 0; } body.skin-vector-search-vue #mw-previewheader{ margin-top:14px; margin-bottom:10px; } body.skin-vector-search-vue .mw-userconfigpublic{ margin-top:8px; } body.skin-vector-search-vue .mw-contributions-user-tools{ margin-bottom:6px; } body.skin-vector-search-vue:not(.action-view) .mw-body, body.skin-vector-search-vue.action-view.ns-special .mw-body{ padding: 8px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body, body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{ padding: 4px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue #centralNotice:not(:empty){ margin:10px 8px 8px 8px; } body.skin-vector-search-vue .mw-content-container{ min-width:848px; } body.skin-vector-search-vue #content{ margin-left:0px; min-width:848px; box-sizing:border-box; } body.skin-vector-search-vue #mw-content-text{ clear:both; } body.skin-vector-search-vue #bodyContent{ box-sizing:border-box; min-width:832px; height:auto; clear:both; padding: 0 13px 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{ overflow:auto; overflow-x:auto; overflow-y:visible; min-width:822px; box-sizing:border-box; margin-bottom:5px; display:block; height:auto; position:relative; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{ margin-bottom:0 !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{ padding-bottom:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){ padding-bottom:0; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{ padding-right:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){ padding-right:0; } body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type, body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{ margin-top:0 !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{ margin-top:0px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{ margin-top:0.5em !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{ margin-top:0.8em; } body.skin-vector-search-vue .tdg-editscreen-main{ margin-top:9px; margin-bottom:10px; } body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{ margin: 0 0 4px 0; } body.skin-vector-search-vue .mw-rcfilters-head{ margin-bottom:15px; } body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{ min-height: 280px; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{ margin-top:0; box-sizing:border-box; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{ margin-top:10px !important; box-sizing:border-box !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){ margin-top:3px !important; margin-bottom:3px !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{ margin-top:3px !important; margin-bottom:0 !important; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{ display:table; box-sizing:border-box; position:relative; width:100%; height:auto; margin:0; margin-bottom:5px; border-spacing:0; padding:0; border-collapse:collapse; border:0; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{ margin:0; } body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){ margin: 5px 0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{ margin-top:0.3em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{ margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{ margin-bottom:0.3em; } body.skin-vector-search-vue pre{ margin-top:8px; margin-bottom:8px; padding:11px; background-color: #f8f9fa; color: #000; border: 1px solid #eaecf0; box-sizing:border-box; } body.skin-vector-search-vue div.mw-highlight > pre{ margin-top:8px; margin-bottom:8px; } body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:5px; margin-bottom:0; } body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:5px; } body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:0px; margin-bottom:0; } body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{ margin-bottom:0 !important; margin-top:0 !important; } body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{ margin:0 0 8px 0; } body.skin-vector-search-vue .mw-body > h1{ margin-bottom:0; } body.skin-vector-search-vue #central-auth-images{ display:none; } body.skin-vector-search-vue .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{ margin-top:6px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box, body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{ margin-bottom:10px; margin-top:0; } body.skin-vector-search-vue #wikiPreview.ontop{ margin-bottom:5px; } body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{ max-width:100%; } body.skin-vector-search-vue .previewnote{ margin-bottom:10px; } body.skin-vector-search-vue form#editform{ margin-top:5px; margin-bottom:5px; } body.skin-vector-search-vue #editform::after{ display:block; } body.skin-vector-search-vue .editOptions{ margin-bottom:10px; } body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{ margin-bottom:10px; } body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated{ margin-bottom:5px; } body.skin-vector-search-vue .mw-editfooter-list{ margin-bottom:0; } body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{ margin-top:0; } body.skin-vector-search-vue .vector-menu-portal { margin: 0; margin-left:5px; padding: 0.2em 0 0 0; direction: ltr; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{ margin-left: 3px; } body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content { margin-left: 0; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{ margin-left:3px; } body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{ margin-top:0; } body.skin-vector-search-vue .mw-delete-warning-revisions{ display:block; margin-top:10px; } body.skin-vector-search-vue #p-lang-btn-label{ min-height:25px; padding:5px 25px 3px 5px; } body.skin-vector-search-vue .mw-delete-editreasons + h2, body.skin-vector-search-vue .mw-protect-editreasons + h2{ margin-top:0 !important; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right:0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right: 0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right:4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right: 4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{ display: flex; content: ''; width: auto; flex-direction: row; flex: 1 1 auto; box-sizing:border-box; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{ right:0; } body.skin-vector-search-vue .mw-table-of-contents-container{ direction: rtl; align-self:auto; background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); z-index:1; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container{ max-width:200px; box-sizing:border-box; position:static; margin-bottom:5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ width:200px; direction: rtl; overflow:hidden; margin-right:0; margin-left:0; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{ margin-top:0 !important; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:0 !important; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:54px; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{ direction:ltr; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ position:sticky; top:5px; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ top:0; position:absolute; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ max-width:700px; min-width:200px; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{ display:none; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){ width:200px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{ width:auto; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container { margin-left: 0 !important; } /*body.skin-vector-search-vue .vector-body h1, body.skin-vector-search-vue .vector-body h2, body.skin-vector-search-vue .vector-body h3, body.skin-vector-search-vue .vector-body h4, body.skin-vector-search-vue .vector-body h5, body.skin-vector-search-vue .vector-body h6{ margin-top:0.8em; }*/ body.skin-vector-search-vue .mw-history-subtitle{ margin-bottom:6px; } body.skin-vector-search-vue .printfooter{ display:block; margin: 5px 0; padding:5px; white-space:normal; border: 1px solid #eaecf0; box-sizing:border-box; background-color: white; } .client-js body.skin-vector-search-vue .mw-search-form-wrapper { min-height: 112px; } body.skin-vector-search-vue .noarticletext{ margin-bottom:5px; } body.skin-vector-search-vue .mw-menu-active{ background-color:#E6E6FA; } body.skin-vector-search-vue .mw-menu-inactive{ background-color:#EEE8AA; } body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{ padding-left:5px !important; padding-right:5px !important; margin-left:0 !important; display:block; border-radius:5px; border:1px solid #a2a9b1; margin-top:3px; } body.skin-vector-search-vue .mw-items-active{ display:block; border-radius:5px; border:1px solid #a2a9b1; padding: 0 5px; margin-top:2px; } body.skin-vector-search-vue .mw-items-active > ul{ margin-top:0; } body.skin-vector-search-vue .mw-items-inactive{ display:none; } body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{ margin-left:0px !important; } 1edvb220lltp9sgd8orv9pldutuilew 435647 435640 2022-07-25T19:53:52Z Persino 2851 css text/css body.skin-vector-search-vue .mw-page-container{ max-width:100%; min-width:988px; padding-left:0; padding-right:0; border-left: 0; border-right: 0; box-sizing:border-box; display:table; width:100%; background-color:white; height:auto; } body.skin-vector-search-vue .mw-content-container{ max-width:100%; box-sizing:border-box; padding-left:0 !important; } body.skin-vector-search-vue .mw-logo-container{ margin-left: 10px; margin-right:0; } body.skin-vector-search-vue #p-lang-btn-label{ font-size:14px !important; line-height:1.2em !important; white-space:nowrap; } body.skin-vector-search-vue .mw-indicators{ font-size: calc( 14px * 0.875 ); line-height: 2.0em; white-space:nowrap; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{ display:grid; grid: 'aa aa aa' auto 'dd dd dd' auto 'bb bb bb' auto 'cc cc cc' auto '.. .. ff' auto 'ee ee ee' auto / minmax(auto,1fr) auto auto } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{ grid-area:dd; margin:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ grid-area:cc; top:0; width:auto !important; height:auto !important; margin:0; margin-right:10px; box-sizing:border-box; border-bottom: 1px solid #a2a9b1; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{ grid-area:ff; height:20px; width:auto; height:auto; margin-left:auto; top:0; margin: auto 5px 0 5px; padding-bottom:8px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{ grid-area:ee; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ display:grid; grid: 'aa bb' auto / minmax(auto,1fr) auto; width:100%; min-height: 46px; box-sizing: border-box; position: relative; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{ display:block !important; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; margin-bottom:2px; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom: 0; margin-top: auto; border-bottom: none; padding-left: 3px; padding-right: 3px; border-bottom: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{ grid-area: bb; width: auto; height: 1.6em; margin-bottom: 5px; margin-top: auto; margin-right: 5px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{ padding-bottom:2px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{ grid-area:bb; right:0; margin:0; height:auto; width:auto; margin-top: auto; margin-bottom:0; padding: 0 3px; box-sizing:border-box; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ display:grid; grid:'aa bb' auto / minmax(auto,100%) auto; border-bottom:1px solid #a2a9b1; margin-top:auto; margin-bottom:0; min-height:46px; box-sizing:border-box; position:relative; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom:0; margin-top:auto; border-bottom:none; padding-left:3px; padding-right:3px; border-bottom:0; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{ grid-area:bb; right:0; margin:0; height:auto; width:100%; margin:auto 0 0 auto; padding: 0 10px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator, body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{ padding: 2px 0 2px 0; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content, body.skin-vector-search-vue.action-view.ns-special #content, body.skin-vector-search-vue:not(.action-view) #content{ display:grid; grid:'aa' auto 'cc' auto 'bb' auto 'dd' auto 'ee' auto / auto; width:100%; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top, body.skin-vector-search-vue.action-view.ns-special #content > #top, body.skin-vector-search-vue:not(.action-view) #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice, body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice, body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar, body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar, body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{ grid-area:cc; } body.skin-vector-search-vue .mw-body-header::after{ display:none; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ grid-area:dd; margin:0; margin-right:10px; width:auto; padding-bottom:0; } body.skin-vector-search-vue .mw-body-subheader{ border-bottom:0; } /*body.skin-vector-search-vue #siteSub,*/ body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{ display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } body.skin-vector-search-vue .firstHeading{ text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA; } body.skin-vector-search-vue .firstHeading > .plainlinks{ text-shadow:none; } body.skin-vector-search-vue .firstHeading:not(:hover){ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:0; } body.skin-vector-search-vue .firstHeading:hover{ display:block; border:1px solid #eaecf0; border-radius:10px; background-color:white; position:absolute; top:5px; left:-3px; width:auto; padding:5px; z-index:1 !important; } body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{ display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{ margin: 2px 0 3px 0; min-height:1.6em; } body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader, body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{ margin: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{ margin:0; margin-top: -2.0em; font-size: 1.2em; height: 2em; margin-bottom:5px; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{ display:table !important; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{ margin-left:5px; margin-right:3px; display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{ display:block; } body.skin-vector-search-vue .firstHeading, body.skin-vector-search-vue .firstHeading > .plainlinks{ max-width:100%; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent, body.skin-vector-search-vue.action-view.ns-special #content #bodyContent, body.skin-vector-search-vue:not(.action-view) #content #bodyContent{ grid-area:ee; } body.skin-vector-search-vue .mw-article-toolbar-container, body.skin-vector-search-vue .mw-content-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-page-container-inner{ display:grid; grid:'aa aa aa' auto 'bb cc dd' auto 'bb ee ee' minmax(auto,1fr) / auto minmax(auto,1fr) auto; width:auto; box-sizing:border-box; row-gap:0; } body.skin-vector-search-vue .mw-page-container-inner > .mw-header{ grid-area:aa; } body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{ grid-area:bb; } body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{ grid-area:cc; grid-column:auto !important; } body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{ grid-area:dd; } body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{ grid-area:ee; } /**/ body.skin-vector-search-vue .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content, body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{ width:100%; box-sizing:border-box; } body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views { display: block; } body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item { display: none; } body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{ margin-left:0; background-color: white; padding:0; margin-top:0; } body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ display:block; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ visibility: visible; opacity: 1; transform: none; } body.skin-vector-search-vue .ui-dialog{ font-size:75%; } body.skin-vector-search-vue .mw-body-content .error{ font-size:96%; } body.skin-vector-search-vue.action-purge .firstHeading{ padding-bottom:3px; } body.skin-vector-search-vue .firstHeading .plainlinks{ line-height:1.2em !important; } body.skin-vector-search-vue #mw-panel{ width:140px; box-sizing:border-box; } body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{ display:block; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{ width:0; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{ width:140px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:absolute; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:relative; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:-140px; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:0; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ max-width:100%; box-sizing:border-box; position:relative; z-index:1; } body.skin-vector-search-vue .mw-footer-container{ padding-top:0; } body.skin-vector-search-vue .mw-content-container > .mw-body{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-footer-container .mw-footer{ margin-left:10px; margin-right:0; padding: 0.75em 5px; } body.skin-vector-search-vue .mw-header { display:flex; flex-direction: row; margin: 8px 5px 0 5px; } body.skin-vector-search-vue .mw-workspace-container #mw-head{ min-width:832px; margin-right:5px; box-sizing:border-box; } body.skin-vector-search-vue .mw-logo-icon{ display:block; } body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item { display: block; } body.skin-vector-search-vue .vector-search-box-collapses > div{ display:block; } body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{ display:none; } body.skin-vector-search-vue .vector-sticky-header{ height:3.2em; padding: 6px 25px; display:flex; flex-direction:row; min-width:700px; margin-left:auto; margin-right:auto; width:90%; text-align:center; box-sizing:border-box; } @media screen and (max-width: 830px){ body.skin-vector-search-vue .vector-sticky-header{ display: none; } } html.client-nojs body.skin-vector-search-vue .vector-sticky-header{ display:none !important; } body.skin-vector-search-vue .wvui-typeahead-suggestion{ padding-top:4px; padding-bottom:4px; text-align:left; } body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{ flex-basis: 460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{ width: 36px; height: 36px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{ left:13px; width:37px; } body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{ width:calc( 460px - 64px); } body.skin-vector-search-vue .wvui-button{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; width:64px; border-left:0; box-sizing:border-box; } body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search__wrapper{ margin-right:0; } body.skin-vector-search-vue .wvui-typeahead-suggestion__title{ display: table-cell; vertical-align: middle; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{ margin-left:0; box-sizing:border-box; width:460px; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{ left:0; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{ margin-left:10px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ width:460px; box-sizing:border-box; } body.skin-vector-search-vue .vector-search-box-vue .searchButton{ background-size: 20px auto; } .client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input { border-right-color: #a2a9b1; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{ border-right-color: #a2a9b1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input { width: 460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input { width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{ position:relative; padding-left: 62px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); top:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:460px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ max-width:460px; } body.skin-vector-search-vue .mw-logo{ min-width:144px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{ display:none; } body.skin-vector-search-vue .wvui-button{ padding-left:0; padding-right:0; } body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{ font-size:14px; } body.skin-vector-search-vue .mw-sidebar-action{ display:none; } body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{ font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif; font-stretch:normal; font-variant:normal; font-style:normal; font-weight:normal; font-size-adjust:none; letter-spacing:normal; word-spacing:normal; text-align:left; word-wrap:break-word; hyphens:auto; } body.skin-vector-search-vue{ font-size:calc( 14px * 1.042 ); line-height:1.2em; background-color:#ffffff; } body.skin-vector-search-vue .mw-editsection{ font-size:12px; line-height:1.2em; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub, body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{ margin:0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty, body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty), body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2, body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){ margin:2px 0 3px 0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty{ margin:2px 0 3px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty), body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{ margin: 2px 0 2px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){ margin: 2px 0 3px 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub, body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{ margin:0; } body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{ margin-top:0; } body.skin-vector-search-vue.action-view #pwContent, body.skin-vector-search-vue:not(.action-view) #pwContent, body.skin-vector-search-vue.action-view .subpages, body.skin-vector-search-vue:not(.action-view) .subpages{ margin:0; font-size:12px; line-height:1.2em; margin-bottom:6px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox, body.skin-vector-search-vue:not(.action-view) .warningbox{ margin:10px 0; } body.skin-vector-search-vue #mw-previewheader{ margin-top:14px; margin-bottom:10px; } body.skin-vector-search-vue .mw-userconfigpublic{ margin-top:8px; } body.skin-vector-search-vue .mw-contributions-user-tools{ margin-bottom:6px; } body.skin-vector-search-vue:not(.action-view) .mw-body, body.skin-vector-search-vue.action-view.ns-special .mw-body{ padding: 8px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body, body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{ padding: 4px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue #centralNotice:not(:empty){ margin:10px 8px 8px 8px; } body.skin-vector-search-vue .mw-content-container{ min-width:848px; } body.skin-vector-search-vue #content{ margin-left:0px; min-width:848px; box-sizing:border-box; } body.skin-vector-search-vue #mw-content-text{ clear:both; } body.skin-vector-search-vue #bodyContent{ box-sizing:border-box; min-width:832px; height:auto; clear:both; padding: 0 13px 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{ overflow:auto; overflow-x:auto; overflow-y:visible; min-width:822px; box-sizing:border-box; margin-bottom:5px; display:block; height:auto; position:relative; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{ margin-bottom:0 !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{ padding-bottom:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){ padding-bottom:0; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{ padding-right:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){ padding-right:0; } body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type, body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{ margin-top:0 !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{ margin-top:0px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{ margin-top:0.5em !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{ margin-top:0.8em; } body.skin-vector-search-vue .tdg-editscreen-main{ margin-top:9px; margin-bottom:10px; } body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{ margin: 0 0 4px 0; } body.skin-vector-search-vue .mw-rcfilters-head{ margin-bottom:15px; } body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{ min-height: 280px; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{ margin-top:0; box-sizing:border-box; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{ margin-top:10px !important; box-sizing:border-box !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){ margin-top:3px !important; margin-bottom:3px !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{ margin-top:3px !important; margin-bottom:0 !important; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{ display:table; box-sizing:border-box; position:relative; width:100%; height:auto; margin:0; margin-bottom:5px; border-spacing:0; padding:0; border-collapse:collapse; border:0; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{ margin:0; } body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){ margin: 5px 0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{ margin-top:0.3em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{ margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{ margin-bottom:0.3em; } body.skin-vector-search-vue pre{ margin-top:8px; margin-bottom:8px; padding:11px; background-color: #f8f9fa; color: #000; border: 1px solid #eaecf0; box-sizing:border-box; } body.skin-vector-search-vue div.mw-highlight > pre{ margin-top:8px; margin-bottom:8px; } body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:5px; margin-bottom:0; } body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:5px; } body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:0px; margin-bottom:0; } body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{ margin-bottom:0 !important; margin-top:0 !important; } body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{ margin:0 0 8px 0; } body.skin-vector-search-vue .mw-body > h1{ margin-bottom:0; } body.skin-vector-search-vue #central-auth-images{ display:none; } body.skin-vector-search-vue .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{ margin-top:6px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box, body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{ margin-bottom:10px; margin-top:0; } body.skin-vector-search-vue #wikiPreview.ontop{ margin-bottom:5px; } body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{ max-width:100%; } body.skin-vector-search-vue .previewnote{ margin-bottom:10px; } body.skin-vector-search-vue form#editform{ margin-top:5px; margin-bottom:5px; } body.skin-vector-search-vue #editform::after{ display:block; } body.skin-vector-search-vue .editOptions{ margin-bottom:10px; } body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{ margin-bottom:10px; } body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated{ margin-bottom:5px; } body.skin-vector-search-vue .mw-editfooter-list{ margin-bottom:0; } body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{ margin-top:0; } body.skin-vector-search-vue .vector-menu-portal { margin: 0; margin-left:5px; padding: 0.2em 0 0 0; direction: ltr; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{ margin-left: 3px; } body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content { margin-left: 0; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{ margin-left:3px; } body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{ margin-top:0; } body.skin-vector-search-vue .mw-delete-warning-revisions{ display:block; margin-top:10px; } body.skin-vector-search-vue #p-lang-btn-label{ min-height:25px; padding:5px 25px 3px 5px; } body.skin-vector-search-vue .mw-delete-editreasons + h2, body.skin-vector-search-vue .mw-protect-editreasons + h2{ margin-top:0 !important; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right:0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right: 0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right:4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right: 4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{ display: flex; content: ''; width: auto; flex-direction: row; flex: 1 1 auto; box-sizing:border-box; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{ right:0; } body.skin-vector-search-vue .mw-table-of-contents-container{ direction: rtl; align-self:auto; background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); z-index:1; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container{ max-width:200px; box-sizing:border-box; position:static; margin-bottom:5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ width:200px; direction: rtl; overflow:hidden; margin-right:0; margin-left:0; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{ margin-top:0 !important; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:0 !important; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:54px; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{ direction:ltr; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ position:sticky; top:5px; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ top:0; position:absolute; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ max-width:700px; min-width:200px; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{ display:none; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){ width:200px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{ width:auto; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container { margin-left: 0 !important; } /*body.skin-vector-search-vue .vector-body h1, body.skin-vector-search-vue .vector-body h2, body.skin-vector-search-vue .vector-body h3, body.skin-vector-search-vue .vector-body h4, body.skin-vector-search-vue .vector-body h5, body.skin-vector-search-vue .vector-body h6{ margin-top:0.8em; }*/ body.skin-vector-search-vue .mw-history-subtitle{ margin-bottom:6px; } body.skin-vector-search-vue .printfooter{ display:block; margin: 5px 0; padding:5px; white-space:normal; border: 1px solid #eaecf0; box-sizing:border-box; background-color: white; } .client-js body.skin-vector-search-vue .mw-search-form-wrapper { min-height: 112px; } body.skin-vector-search-vue .noarticletext{ margin-bottom:5px; } body.skin-vector-search-vue .mw-menu-active{ background-color:#E6E6FA; } body.skin-vector-search-vue .mw-menu-inactive{ background-color:#EEE8AA; } body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{ padding-left:5px !important; padding-right:5px !important; margin-left:0 !important; display:block; border-radius:5px; border:1px solid #a2a9b1; margin-top:3px; } body.skin-vector-search-vue .mw-items-active{ display:block; border-radius:5px; border:1px solid #a2a9b1; padding: 0 5px; margin-top:2px; } body.skin-vector-search-vue .mw-items-active > ul{ margin-top:0; } body.skin-vector-search-vue .mw-items-inactive{ display:none; } body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{ margin-left:0px !important; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked){ display:none; } trbb4kldtpjwqz9l3t8lx6quzsf11am 435648 435647 2022-07-25T19:54:17Z Persino 2851 css text/css body.skin-vector-search-vue .mw-page-container{ max-width:100%; min-width:988px; padding-left:0; padding-right:0; border-left: 0; border-right: 0; box-sizing:border-box; display:table; width:100%; background-color:white; height:auto; } body.skin-vector-search-vue .mw-content-container{ max-width:100%; box-sizing:border-box; padding-left:0 !important; } body.skin-vector-search-vue .mw-logo-container{ margin-left: 10px; margin-right:0; } body.skin-vector-search-vue #p-lang-btn-label{ font-size:14px !important; line-height:1.2em !important; white-space:nowrap; } body.skin-vector-search-vue .mw-indicators{ font-size: calc( 14px * 0.875 ); line-height: 2.0em; white-space:nowrap; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{ display:grid; grid: 'aa aa aa' auto 'dd dd dd' auto 'bb bb bb' auto 'cc cc cc' auto '.. .. ff' auto 'ee ee ee' auto / minmax(auto,1fr) auto auto } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{ grid-area:dd; margin:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ grid-area:cc; top:0; width:auto !important; height:auto !important; margin:0; margin-right:10px; box-sizing:border-box; border-bottom: 1px solid #a2a9b1; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{ grid-area:ff; height:20px; width:auto; height:auto; margin-left:auto; top:0; margin: auto 5px 0 5px; padding-bottom:8px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{ grid-area:ee; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ display:grid; grid: 'aa bb' auto / minmax(auto,1fr) auto; width:100%; min-height: 46px; box-sizing: border-box; position: relative; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{ display:block !important; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; margin-bottom:2px; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom: 0; margin-top: auto; border-bottom: none; padding-left: 3px; padding-right: 3px; border-bottom: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{ grid-area: bb; width: auto; height: 1.6em; margin-bottom: 5px; margin-top: auto; margin-right: 5px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{ padding-bottom:2px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{ grid-area:bb; right:0; margin:0; height:auto; width:auto; margin-top: auto; margin-bottom:0; padding: 0 3px; box-sizing:border-box; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ display:grid; grid:'aa bb' auto / minmax(auto,100%) auto; border-bottom:1px solid #a2a9b1; margin-top:auto; margin-bottom:0; min-height:46px; box-sizing:border-box; position:relative; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom:0; margin-top:auto; border-bottom:none; padding-left:3px; padding-right:3px; border-bottom:0; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{ grid-area:bb; right:0; margin:0; height:auto; width:100%; margin:auto 0 0 auto; padding: 0 10px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator, body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{ padding: 2px 0 2px 0; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content, body.skin-vector-search-vue.action-view.ns-special #content, body.skin-vector-search-vue:not(.action-view) #content{ display:grid; grid:'aa' auto 'cc' auto 'bb' auto 'dd' auto 'ee' auto / auto; width:100%; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top, body.skin-vector-search-vue.action-view.ns-special #content > #top, body.skin-vector-search-vue:not(.action-view) #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice, body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice, body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar, body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar, body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{ grid-area:cc; } body.skin-vector-search-vue .mw-body-header::after{ display:none; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ grid-area:dd; margin:0; margin-right:10px; width:auto; padding-bottom:0; } body.skin-vector-search-vue .mw-body-subheader{ border-bottom:0; } /*body.skin-vector-search-vue #siteSub,*/ body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{ display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } body.skin-vector-search-vue .firstHeading{ text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA; } body.skin-vector-search-vue .firstHeading > .plainlinks{ text-shadow:none; } body.skin-vector-search-vue .firstHeading:not(:hover){ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:0; } body.skin-vector-search-vue .firstHeading:hover{ display:block; border:1px solid #eaecf0; border-radius:10px; background-color:white; position:absolute; top:5px; left:-3px; width:auto; padding:5px; z-index:1 !important; } body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{ display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{ margin: 2px 0 3px 0; min-height:1.6em; } body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader, body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{ margin: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{ margin:0; margin-top: -2.0em; font-size: 1.2em; height: 2em; margin-bottom:5px; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{ display:table !important; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{ margin-left:5px; margin-right:3px; display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{ display:block; } body.skin-vector-search-vue .firstHeading, body.skin-vector-search-vue .firstHeading > .plainlinks{ max-width:100%; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent, body.skin-vector-search-vue.action-view.ns-special #content #bodyContent, body.skin-vector-search-vue:not(.action-view) #content #bodyContent{ grid-area:ee; } body.skin-vector-search-vue .mw-article-toolbar-container, body.skin-vector-search-vue .mw-content-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-page-container-inner{ display:grid; grid:'aa aa aa' auto 'bb cc dd' auto 'bb ee ee' minmax(auto,1fr) / auto minmax(auto,1fr) auto; width:auto; box-sizing:border-box; row-gap:0; } body.skin-vector-search-vue .mw-page-container-inner > .mw-header{ grid-area:aa; } body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{ grid-area:bb; } body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{ grid-area:cc; grid-column:auto !important; } body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{ grid-area:dd; } body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{ grid-area:ee; } /**/ body.skin-vector-search-vue .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content, body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{ width:100%; box-sizing:border-box; } body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views { display: block; } body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item { display: none; } body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{ margin-left:0; background-color: white; padding:0; margin-top:0; } body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ display:block; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ visibility: visible; opacity: 1; transform: none; } body.skin-vector-search-vue .ui-dialog{ font-size:75%; } body.skin-vector-search-vue .mw-body-content .error{ font-size:96%; } body.skin-vector-search-vue.action-purge .firstHeading{ padding-bottom:3px; } body.skin-vector-search-vue .firstHeading .plainlinks{ line-height:1.2em !important; } body.skin-vector-search-vue #mw-panel{ width:140px; box-sizing:border-box; } body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{ display:block; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{ width:0; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{ width:140px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:absolute; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:relative; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:-140px; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:0; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ max-width:100%; box-sizing:border-box; position:relative; z-index:1; } body.skin-vector-search-vue .mw-footer-container{ padding-top:0; } body.skin-vector-search-vue .mw-content-container > .mw-body{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-footer-container .mw-footer{ margin-left:10px; margin-right:0; padding: 0.75em 5px; } body.skin-vector-search-vue .mw-header { display:flex; flex-direction: row; margin: 8px 5px 0 5px; } body.skin-vector-search-vue .mw-workspace-container #mw-head{ min-width:832px; margin-right:5px; box-sizing:border-box; } body.skin-vector-search-vue .mw-logo-icon{ display:block; } body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item { display: block; } body.skin-vector-search-vue .vector-search-box-collapses > div{ display:block; } body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{ display:none; } body.skin-vector-search-vue .vector-sticky-header{ height:3.2em; padding: 6px 25px; display:flex; flex-direction:row; min-width:700px; margin-left:auto; margin-right:auto; width:90%; text-align:center; box-sizing:border-box; } @media screen and (max-width: 830px){ body.skin-vector-search-vue .vector-sticky-header{ display: none; } } html.client-nojs body.skin-vector-search-vue .vector-sticky-header{ display:none !important; } body.skin-vector-search-vue .wvui-typeahead-suggestion{ padding-top:4px; padding-bottom:4px; text-align:left; } body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{ flex-basis: 460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{ width: 36px; height: 36px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{ left:13px; width:37px; } body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{ width:calc( 460px - 64px); } body.skin-vector-search-vue .wvui-button{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; width:64px; border-left:0; box-sizing:border-box; } body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search__wrapper{ margin-right:0; } body.skin-vector-search-vue .wvui-typeahead-suggestion__title{ display: table-cell; vertical-align: middle; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{ margin-left:0; box-sizing:border-box; width:460px; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{ left:0; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{ margin-left:10px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ width:460px; box-sizing:border-box; } body.skin-vector-search-vue .vector-search-box-vue .searchButton{ background-size: 20px auto; } .client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input { border-right-color: #a2a9b1; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{ border-right-color: #a2a9b1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input { width: 460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input { width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{ position:relative; padding-left: 62px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); top:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:460px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ max-width:460px; } body.skin-vector-search-vue .mw-logo{ min-width:144px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{ display:none; } body.skin-vector-search-vue .wvui-button{ padding-left:0; padding-right:0; } body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{ font-size:14px; } body.skin-vector-search-vue .mw-sidebar-action{ display:none; } body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{ font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif; font-stretch:normal; font-variant:normal; font-style:normal; font-weight:normal; font-size-adjust:none; letter-spacing:normal; word-spacing:normal; text-align:left; word-wrap:break-word; hyphens:auto; } body.skin-vector-search-vue{ font-size:calc( 14px * 1.042 ); line-height:1.2em; background-color:#ffffff; } body.skin-vector-search-vue .mw-editsection{ font-size:12px; line-height:1.2em; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub, body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{ margin:0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty, body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty), body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2, body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){ margin:2px 0 3px 0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty{ margin:2px 0 3px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty), body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{ margin: 2px 0 2px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){ margin: 2px 0 3px 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub, body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{ margin:0; } body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{ margin-top:0; } body.skin-vector-search-vue.action-view #pwContent, body.skin-vector-search-vue:not(.action-view) #pwContent, body.skin-vector-search-vue.action-view .subpages, body.skin-vector-search-vue:not(.action-view) .subpages{ margin:0; font-size:12px; line-height:1.2em; margin-bottom:6px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox, body.skin-vector-search-vue:not(.action-view) .warningbox{ margin:10px 0; } body.skin-vector-search-vue #mw-previewheader{ margin-top:14px; margin-bottom:10px; } body.skin-vector-search-vue .mw-userconfigpublic{ margin-top:8px; } body.skin-vector-search-vue .mw-contributions-user-tools{ margin-bottom:6px; } body.skin-vector-search-vue:not(.action-view) .mw-body, body.skin-vector-search-vue.action-view.ns-special .mw-body{ padding: 8px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body, body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{ padding: 4px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue #centralNotice:not(:empty){ margin:10px 8px 8px 8px; } body.skin-vector-search-vue .mw-content-container{ min-width:848px; } body.skin-vector-search-vue #content{ margin-left:0px; min-width:848px; box-sizing:border-box; } body.skin-vector-search-vue #mw-content-text{ clear:both; } body.skin-vector-search-vue #bodyContent{ box-sizing:border-box; min-width:832px; height:auto; clear:both; padding: 0 13px 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{ overflow:auto; overflow-x:auto; overflow-y:visible; min-width:822px; box-sizing:border-box; margin-bottom:5px; display:block; height:auto; position:relative; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{ margin-bottom:0 !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{ padding-bottom:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){ padding-bottom:0; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{ padding-right:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){ padding-right:0; } body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type, body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{ margin-top:0 !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{ margin-top:0px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{ margin-top:0.5em !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{ margin-top:0.8em; } body.skin-vector-search-vue .tdg-editscreen-main{ margin-top:9px; margin-bottom:10px; } body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{ margin: 0 0 4px 0; } body.skin-vector-search-vue .mw-rcfilters-head{ margin-bottom:15px; } body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{ min-height: 280px; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{ margin-top:0; box-sizing:border-box; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{ margin-top:10px !important; box-sizing:border-box !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){ margin-top:3px !important; margin-bottom:3px !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{ margin-top:3px !important; margin-bottom:0 !important; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{ display:table; box-sizing:border-box; position:relative; width:100%; height:auto; margin:0; margin-bottom:5px; border-spacing:0; padding:0; border-collapse:collapse; border:0; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{ margin:0; } body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){ margin: 5px 0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{ margin-top:0.3em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{ margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{ margin-bottom:0.3em; } body.skin-vector-search-vue pre{ margin-top:8px; margin-bottom:8px; padding:11px; background-color: #f8f9fa; color: #000; border: 1px solid #eaecf0; box-sizing:border-box; } body.skin-vector-search-vue div.mw-highlight > pre{ margin-top:8px; margin-bottom:8px; } body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:5px; margin-bottom:0; } body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:5px; } body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:0px; margin-bottom:0; } body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{ margin-bottom:0 !important; margin-top:0 !important; } body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{ margin:0 0 8px 0; } body.skin-vector-search-vue .mw-body > h1{ margin-bottom:0; } body.skin-vector-search-vue #central-auth-images{ display:none; } body.skin-vector-search-vue .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{ margin-top:6px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box, body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{ margin-bottom:10px; margin-top:0; } body.skin-vector-search-vue #wikiPreview.ontop{ margin-bottom:5px; } body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{ max-width:100%; } body.skin-vector-search-vue .previewnote{ margin-bottom:10px; } body.skin-vector-search-vue form#editform{ margin-top:5px; margin-bottom:5px; } body.skin-vector-search-vue #editform::after{ display:block; } body.skin-vector-search-vue .editOptions{ margin-bottom:10px; } body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{ margin-bottom:10px; } body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated{ margin-bottom:5px; } body.skin-vector-search-vue .mw-editfooter-list{ margin-bottom:0; } body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{ margin-top:0; } body.skin-vector-search-vue .vector-menu-portal { margin: 0; margin-left:5px; padding: 0.2em 0 0 0; direction: ltr; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{ margin-left: 3px; } body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content { margin-left: 0; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{ margin-left:3px; } body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{ margin-top:0; } body.skin-vector-search-vue .mw-delete-warning-revisions{ display:block; margin-top:10px; } body.skin-vector-search-vue #p-lang-btn-label{ min-height:25px; padding:5px 25px 3px 5px; } body.skin-vector-search-vue .mw-delete-editreasons + h2, body.skin-vector-search-vue .mw-protect-editreasons + h2{ margin-top:0 !important; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right:0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right: 0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right:4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right: 4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{ display: flex; content: ''; width: auto; flex-direction: row; flex: 1 1 auto; box-sizing:border-box; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{ right:0; } body.skin-vector-search-vue .mw-table-of-contents-container{ direction: rtl; align-self:auto; background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); z-index:1; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container{ max-width:200px; box-sizing:border-box; position:static; margin-bottom:5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ width:200px; direction: rtl; overflow:hidden; margin-right:0; margin-left:0; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{ margin-top:0 !important; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:0 !important; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:54px; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{ direction:ltr; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ position:sticky; top:5px; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ top:0; position:absolute; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ max-width:700px; min-width:200px; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{ display:none; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){ width:200px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{ width:auto; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container { margin-left: 0 !important; } /*body.skin-vector-search-vue .vector-body h1, body.skin-vector-search-vue .vector-body h2, body.skin-vector-search-vue .vector-body h3, body.skin-vector-search-vue .vector-body h4, body.skin-vector-search-vue .vector-body h5, body.skin-vector-search-vue .vector-body h6{ margin-top:0.8em; }*/ body.skin-vector-search-vue .mw-history-subtitle{ margin-bottom:6px; } body.skin-vector-search-vue .printfooter{ display:block; margin: 5px 0; padding:5px; white-space:normal; border: 1px solid #eaecf0; box-sizing:border-box; background-color: white; } .client-js body.skin-vector-search-vue .mw-search-form-wrapper { min-height: 112px; } body.skin-vector-search-vue .noarticletext{ margin-bottom:5px; } body.skin-vector-search-vue .mw-menu-active{ background-color:#E6E6FA; } body.skin-vector-search-vue .mw-menu-inactive{ background-color:#EEE8AA; } body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{ padding-left:5px !important; padding-right:5px !important; margin-left:0 !important; display:block; border-radius:5px; border:1px solid #a2a9b1; margin-top:3px; } body.skin-vector-search-vue .mw-items-active{ display:block; border-radius:5px; border:1px solid #a2a9b1; padding: 0 5px; margin-top:2px; } body.skin-vector-search-vue .mw-items-active > ul{ margin-top:0; } body.skin-vector-search-vue .mw-items-inactive{ display:none; } body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{ margin-left:0px !important; } body.skin-vector-search-vue #mw-sidebar-checkbox:checked{ display:none; } 6keey1iubrlyxk74eza6rkdjhx715q0 435649 435648 2022-07-25T19:54:54Z Persino 2851 css text/css body.skin-vector-search-vue .mw-page-container{ max-width:100%; min-width:988px; padding-left:0; padding-right:0; border-left: 0; border-right: 0; box-sizing:border-box; display:table; width:100%; background-color:white; height:auto; } body.skin-vector-search-vue .mw-content-container{ max-width:100%; box-sizing:border-box; padding-left:0 !important; } body.skin-vector-search-vue .mw-logo-container{ margin-left: 10px; margin-right:0; } body.skin-vector-search-vue #p-lang-btn-label{ font-size:14px !important; line-height:1.2em !important; white-space:nowrap; } body.skin-vector-search-vue .mw-indicators{ font-size: calc( 14px * 0.875 ); line-height: 2.0em; white-space:nowrap; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{ display:grid; grid: 'aa aa aa' auto 'dd dd dd' auto 'bb bb bb' auto 'cc cc cc' auto '.. .. ff' auto 'ee ee ee' auto / minmax(auto,1fr) auto auto } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{ grid-area:dd; margin:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ grid-area:cc; top:0; width:auto !important; height:auto !important; margin:0; margin-right:10px; box-sizing:border-box; border-bottom: 1px solid #a2a9b1; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{ grid-area:ff; height:20px; width:auto; height:auto; margin-left:auto; top:0; margin: auto 5px 0 5px; padding-bottom:8px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{ grid-area:ee; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ display:grid; grid: 'aa bb' auto / minmax(auto,1fr) auto; width:100%; min-height: 46px; box-sizing: border-box; position: relative; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{ display:block !important; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; margin-bottom:2px; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom: 0; margin-top: auto; border-bottom: none; padding-left: 3px; padding-right: 3px; border-bottom: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{ grid-area: bb; width: auto; height: 1.6em; margin-bottom: 5px; margin-top: auto; margin-right: 5px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{ padding-bottom:2px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{ grid-area:bb; right:0; margin:0; height:auto; width:auto; margin-top: auto; margin-bottom:0; padding: 0 3px; box-sizing:border-box; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ display:grid; grid:'aa bb' auto / minmax(auto,100%) auto; border-bottom:1px solid #a2a9b1; margin-top:auto; margin-bottom:0; min-height:46px; box-sizing:border-box; position:relative; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom:0; margin-top:auto; border-bottom:none; padding-left:3px; padding-right:3px; border-bottom:0; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{ grid-area:bb; right:0; margin:0; height:auto; width:100%; margin:auto 0 0 auto; padding: 0 10px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator, body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{ padding: 2px 0 2px 0; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content, body.skin-vector-search-vue.action-view.ns-special #content, body.skin-vector-search-vue:not(.action-view) #content{ display:grid; grid:'aa' auto 'cc' auto 'bb' auto 'dd' auto 'ee' auto / auto; width:100%; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top, body.skin-vector-search-vue.action-view.ns-special #content > #top, body.skin-vector-search-vue:not(.action-view) #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice, body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice, body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar, body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar, body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{ grid-area:cc; } body.skin-vector-search-vue .mw-body-header::after{ display:none; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ grid-area:dd; margin:0; margin-right:10px; width:auto; padding-bottom:0; } body.skin-vector-search-vue .mw-body-subheader{ border-bottom:0; } /*body.skin-vector-search-vue #siteSub,*/ body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{ display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } body.skin-vector-search-vue .firstHeading{ text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA; } body.skin-vector-search-vue .firstHeading > .plainlinks{ text-shadow:none; } body.skin-vector-search-vue .firstHeading:not(:hover){ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:0; } body.skin-vector-search-vue .firstHeading:hover{ display:block; border:1px solid #eaecf0; border-radius:10px; background-color:white; position:absolute; top:5px; left:-3px; width:auto; padding:5px; z-index:1 !important; } body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{ display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{ margin: 2px 0 3px 0; min-height:1.6em; } body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader, body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{ margin: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{ margin:0; margin-top: -2.0em; font-size: 1.2em; height: 2em; margin-bottom:5px; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{ display:table !important; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{ margin-left:5px; margin-right:3px; display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{ display:block; } body.skin-vector-search-vue .firstHeading, body.skin-vector-search-vue .firstHeading > .plainlinks{ max-width:100%; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent, body.skin-vector-search-vue.action-view.ns-special #content #bodyContent, body.skin-vector-search-vue:not(.action-view) #content #bodyContent{ grid-area:ee; } body.skin-vector-search-vue .mw-article-toolbar-container, body.skin-vector-search-vue .mw-content-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-page-container-inner{ display:grid; grid:'aa aa aa' auto 'bb cc dd' auto 'bb ee ee' minmax(auto,1fr) / auto minmax(auto,1fr) auto; width:auto; box-sizing:border-box; row-gap:0; } body.skin-vector-search-vue .mw-page-container-inner > .mw-header{ grid-area:aa; } body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{ grid-area:bb; } body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{ grid-area:cc; grid-column:auto !important; } body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{ grid-area:dd; } body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{ grid-area:ee; } /**/ body.skin-vector-search-vue .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content, body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{ width:100%; box-sizing:border-box; } body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views { display: block; } body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item { display: none; } body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{ margin-left:0; background-color: white; padding:0; margin-top:0; } body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ display:block; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ visibility: visible; opacity: 1; transform: none; } body.skin-vector-search-vue .ui-dialog{ font-size:75%; } body.skin-vector-search-vue .mw-body-content .error{ font-size:96%; } body.skin-vector-search-vue.action-purge .firstHeading{ padding-bottom:3px; } body.skin-vector-search-vue .firstHeading .plainlinks{ line-height:1.2em !important; } body.skin-vector-search-vue #mw-panel{ width:140px; box-sizing:border-box; } body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{ display:block; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{ width:0; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{ width:140px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:absolute; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:relative; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:-140px; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:0; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ max-width:100%; box-sizing:border-box; position:relative; z-index:1; } body.skin-vector-search-vue .mw-footer-container{ padding-top:0; } body.skin-vector-search-vue .mw-content-container > .mw-body{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-footer-container .mw-footer{ margin-left:10px; margin-right:0; padding: 0.75em 5px; } body.skin-vector-search-vue .mw-header { display:flex; flex-direction: row; margin: 8px 5px 0 5px; } body.skin-vector-search-vue .mw-workspace-container #mw-head{ min-width:832px; margin-right:5px; box-sizing:border-box; } body.skin-vector-search-vue .mw-logo-icon{ display:block; } body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item { display: block; } body.skin-vector-search-vue .vector-search-box-collapses > div{ display:block; } body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{ display:none; } body.skin-vector-search-vue .vector-sticky-header{ height:3.2em; padding: 6px 25px; display:flex; flex-direction:row; min-width:700px; margin-left:auto; margin-right:auto; width:90%; text-align:center; box-sizing:border-box; } @media screen and (max-width: 830px){ body.skin-vector-search-vue .vector-sticky-header{ display: none; } } html.client-nojs body.skin-vector-search-vue .vector-sticky-header{ display:none !important; } body.skin-vector-search-vue .wvui-typeahead-suggestion{ padding-top:4px; padding-bottom:4px; text-align:left; } body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{ flex-basis: 460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{ width: 36px; height: 36px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{ left:13px; width:37px; } body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{ width:calc( 460px - 64px); } body.skin-vector-search-vue .wvui-button{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; width:64px; border-left:0; box-sizing:border-box; } body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search__wrapper{ margin-right:0; } body.skin-vector-search-vue .wvui-typeahead-suggestion__title{ display: table-cell; vertical-align: middle; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{ margin-left:0; box-sizing:border-box; width:460px; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{ left:0; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{ margin-left:10px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ width:460px; box-sizing:border-box; } body.skin-vector-search-vue .vector-search-box-vue .searchButton{ background-size: 20px auto; } .client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input { border-right-color: #a2a9b1; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{ border-right-color: #a2a9b1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input { width: 460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input { width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{ position:relative; padding-left: 62px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); top:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:460px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ max-width:460px; } body.skin-vector-search-vue .mw-logo{ min-width:144px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{ display:none; } body.skin-vector-search-vue .wvui-button{ padding-left:0; padding-right:0; } body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{ font-size:14px; } body.skin-vector-search-vue .mw-sidebar-action{ display:none; } body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{ font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif; font-stretch:normal; font-variant:normal; font-style:normal; font-weight:normal; font-size-adjust:none; letter-spacing:normal; word-spacing:normal; text-align:left; word-wrap:break-word; hyphens:auto; } body.skin-vector-search-vue{ font-size:calc( 14px * 1.042 ); line-height:1.2em; background-color:#ffffff; } body.skin-vector-search-vue .mw-editsection{ font-size:12px; line-height:1.2em; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub, body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{ margin:0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty, body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty), body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2, body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){ margin:2px 0 3px 0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty{ margin:2px 0 3px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty), body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{ margin: 2px 0 2px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){ margin: 2px 0 3px 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub, body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{ margin:0; } body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{ margin-top:0; } body.skin-vector-search-vue.action-view #pwContent, body.skin-vector-search-vue:not(.action-view) #pwContent, body.skin-vector-search-vue.action-view .subpages, body.skin-vector-search-vue:not(.action-view) .subpages{ margin:0; font-size:12px; line-height:1.2em; margin-bottom:6px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox, body.skin-vector-search-vue:not(.action-view) .warningbox{ margin:10px 0; } body.skin-vector-search-vue #mw-previewheader{ margin-top:14px; margin-bottom:10px; } body.skin-vector-search-vue .mw-userconfigpublic{ margin-top:8px; } body.skin-vector-search-vue .mw-contributions-user-tools{ margin-bottom:6px; } body.skin-vector-search-vue:not(.action-view) .mw-body, body.skin-vector-search-vue.action-view.ns-special .mw-body{ padding: 8px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body, body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{ padding: 4px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue #centralNotice:not(:empty){ margin:10px 8px 8px 8px; } body.skin-vector-search-vue .mw-content-container{ min-width:848px; } body.skin-vector-search-vue #content{ margin-left:0px; min-width:848px; box-sizing:border-box; } body.skin-vector-search-vue #mw-content-text{ clear:both; } body.skin-vector-search-vue #bodyContent{ box-sizing:border-box; min-width:832px; height:auto; clear:both; padding: 0 13px 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{ overflow:auto; overflow-x:auto; overflow-y:visible; min-width:822px; box-sizing:border-box; margin-bottom:5px; display:block; height:auto; position:relative; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{ margin-bottom:0 !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{ padding-bottom:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){ padding-bottom:0; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{ padding-right:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){ padding-right:0; } body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type, body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{ margin-top:0 !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{ margin-top:0px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{ margin-top:0.5em !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{ margin-top:0.8em; } body.skin-vector-search-vue .tdg-editscreen-main{ margin-top:9px; margin-bottom:10px; } body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{ margin: 0 0 4px 0; } body.skin-vector-search-vue .mw-rcfilters-head{ margin-bottom:15px; } body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{ min-height: 280px; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{ margin-top:0; box-sizing:border-box; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{ margin-top:10px !important; box-sizing:border-box !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){ margin-top:3px !important; margin-bottom:3px !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{ margin-top:3px !important; margin-bottom:0 !important; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{ display:table; box-sizing:border-box; position:relative; width:100%; height:auto; margin:0; margin-bottom:5px; border-spacing:0; padding:0; border-collapse:collapse; border:0; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{ margin:0; } body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){ margin: 5px 0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{ margin-top:0.3em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{ margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{ margin-bottom:0.3em; } body.skin-vector-search-vue pre{ margin-top:8px; margin-bottom:8px; padding:11px; background-color: #f8f9fa; color: #000; border: 1px solid #eaecf0; box-sizing:border-box; } body.skin-vector-search-vue div.mw-highlight > pre{ margin-top:8px; margin-bottom:8px; } body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:5px; margin-bottom:0; } body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:5px; } body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:0px; margin-bottom:0; } body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{ margin-bottom:0 !important; margin-top:0 !important; } body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{ margin:0 0 8px 0; } body.skin-vector-search-vue .mw-body > h1{ margin-bottom:0; } body.skin-vector-search-vue #central-auth-images{ display:none; } body.skin-vector-search-vue .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{ margin-top:6px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box, body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{ margin-bottom:10px; margin-top:0; } body.skin-vector-search-vue #wikiPreview.ontop{ margin-bottom:5px; } body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{ max-width:100%; } body.skin-vector-search-vue .previewnote{ margin-bottom:10px; } body.skin-vector-search-vue form#editform{ margin-top:5px; margin-bottom:5px; } body.skin-vector-search-vue #editform::after{ display:block; } body.skin-vector-search-vue .editOptions{ margin-bottom:10px; } body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{ margin-bottom:10px; } body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated{ margin-bottom:5px; } body.skin-vector-search-vue .mw-editfooter-list{ margin-bottom:0; } body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{ margin-top:0; } body.skin-vector-search-vue .vector-menu-portal { margin: 0; margin-left:5px; padding: 0.2em 0 0 0; direction: ltr; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{ margin-left: 3px; } body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content { margin-left: 0; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{ margin-left:3px; } body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{ margin-top:0; } body.skin-vector-search-vue .mw-delete-warning-revisions{ display:block; margin-top:10px; } body.skin-vector-search-vue #p-lang-btn-label{ min-height:25px; padding:5px 25px 3px 5px; } body.skin-vector-search-vue .mw-delete-editreasons + h2, body.skin-vector-search-vue .mw-protect-editreasons + h2{ margin-top:0 !important; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right:0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right: 0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right:4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right: 4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{ display: flex; content: ''; width: auto; flex-direction: row; flex: 1 1 auto; box-sizing:border-box; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{ right:0; } body.skin-vector-search-vue .mw-table-of-contents-container{ direction: rtl; align-self:auto; background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); z-index:1; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container{ max-width:200px; box-sizing:border-box; position:static; margin-bottom:5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ width:200px; direction: rtl; overflow:hidden; margin-right:0; margin-left:0; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{ margin-top:0 !important; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:0 !important; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:54px; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{ direction:ltr; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ position:sticky; top:5px; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ top:0; position:absolute; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ max-width:700px; min-width:200px; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{ display:none; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){ width:200px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{ width:auto; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container { margin-left: 0 !important; } /*body.skin-vector-search-vue .vector-body h1, body.skin-vector-search-vue .vector-body h2, body.skin-vector-search-vue .vector-body h3, body.skin-vector-search-vue .vector-body h4, body.skin-vector-search-vue .vector-body h5, body.skin-vector-search-vue .vector-body h6{ margin-top:0.8em; }*/ body.skin-vector-search-vue .mw-history-subtitle{ margin-bottom:6px; } body.skin-vector-search-vue .printfooter{ display:block; margin: 5px 0; padding:5px; white-space:normal; border: 1px solid #eaecf0; box-sizing:border-box; background-color: white; } .client-js body.skin-vector-search-vue .mw-search-form-wrapper { min-height: 112px; } body.skin-vector-search-vue .noarticletext{ margin-bottom:5px; } body.skin-vector-search-vue .mw-menu-active{ background-color:#E6E6FA; } body.skin-vector-search-vue .mw-menu-inactive{ background-color:#EEE8AA; } body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{ padding-left:5px !important; padding-right:5px !important; margin-left:0 !important; display:block; border-radius:5px; border:1px solid #a2a9b1; margin-top:3px; } body.skin-vector-search-vue .mw-items-active{ display:block; border-radius:5px; border:1px solid #a2a9b1; padding: 0 5px; margin-top:2px; } body.skin-vector-search-vue .mw-items-active > ul{ margin-top:0; } body.skin-vector-search-vue .mw-items-inactive{ display:none; } body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{ margin-left:0px !important; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked){ display:none; } trbb4kldtpjwqz9l3t8lx6quzsf11am 435660 435649 2022-07-25T20:33:59Z Persino 2851 css text/css body.skin-vector-search-vue .mw-page-container{ max-width:100%; min-width:988px; padding-left:0; padding-right:0; border-left: 0; border-right: 0; box-sizing:border-box; display:table; width:100%; background-color:white; height:auto; } body.skin-vector-search-vue .mw-content-container{ max-width:100%; box-sizing:border-box; padding-left:0 !important; } body.skin-vector-search-vue .mw-logo-container{ margin-left: 10px; margin-right:0; } body.skin-vector-search-vue #p-lang-btn-label{ font-size:14px !important; line-height:1.2em !important; white-space:nowrap; } body.skin-vector-search-vue .mw-indicators{ font-size: calc( 14px * 0.875 ); line-height: 2.0em; white-space:nowrap; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{ display:grid; grid: 'aa aa aa' auto 'dd dd dd' auto 'bb bb bb' auto 'cc cc cc' auto '.. .. ff' auto 'ee ee ee' auto / minmax(auto,1fr) auto auto } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{ grid-area:dd; margin:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ grid-area:cc; top:0; width:auto !important; height:auto !important; margin:0; margin-right:10px; box-sizing:border-box; border-bottom: 1px solid #a2a9b1; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{ grid-area:ff; height:20px; width:auto; height:auto; margin-left:auto; top:0; margin: auto 5px 0 5px; padding-bottom:8px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{ grid-area:ee; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ display:grid; grid: 'aa bb' auto / minmax(auto,1fr) auto; width:100%; min-height: 46px; box-sizing: border-box; position: relative; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{ display:block !important; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; margin-bottom:2px; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom: 0; margin-top: auto; border-bottom: none; padding-left: 3px; padding-right: 3px; border-bottom: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{ grid-area: bb; width: auto; height: 1.6em; margin-bottom: 5px; margin-top: auto; margin-right: 5px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{ padding-bottom:2px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{ grid-area:bb; right:0; margin:0; height:auto; width:auto; margin-top: auto; margin-bottom:0; padding: 0 3px; box-sizing:border-box; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ display:grid; grid:'aa bb' auto / minmax(auto,100%) auto; border-bottom:1px solid #a2a9b1; margin-top:auto; margin-bottom:0; min-height:46px; box-sizing:border-box; position:relative; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom:0; margin-top:auto; border-bottom:none; padding-left:3px; padding-right:3px; border-bottom:0; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{ grid-area:bb; right:0; margin:0; height:auto; width:100%; margin:auto 0 0 auto; padding: 0 10px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator, body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{ padding: 2px 0 2px 0; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content, body.skin-vector-search-vue.action-view.ns-special #content, body.skin-vector-search-vue:not(.action-view) #content{ display:grid; grid:'aa' auto 'cc' auto 'bb' auto 'dd' auto 'ee' auto / auto; width:100%; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top, body.skin-vector-search-vue.action-view.ns-special #content > #top, body.skin-vector-search-vue:not(.action-view) #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice, body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice, body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar, body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar, body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{ grid-area:cc; } body.skin-vector-search-vue .mw-body-header::after{ display:none; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ grid-area:dd; margin:0; margin-right:10px; width:auto; padding-bottom:0; } body.skin-vector-search-vue .mw-body-subheader{ border-bottom:0; } /*body.skin-vector-search-vue #siteSub,*/ body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{ display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } /*body.skin-vector-search-vue .firstHeading{ text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA; }*/ body.skin-vector-search-vue .firstHeading > .plainlinks{ text-shadow:none; } body.skin-vector-search-vue .firstHeading:not(:hover){ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:0; } body.skin-vector-search-vue .firstHeading:hover{ display:block; border:1px solid #eaecf0; border-radius:10px; background-color:white; position:absolute; top:5px; left:-3px; width:auto; padding:5px; z-index:1 !important; } body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{ display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{ margin: 2px 0 3px 0; min-height:1.6em; } body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader, body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{ margin: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{ margin:0; margin-top: -2.0em; font-size: 1.2em; height: 2em; margin-bottom:5px; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{ display:table !important; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{ margin-left:5px; margin-right:3px; display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{ display:block; } body.skin-vector-search-vue .firstHeading, body.skin-vector-search-vue .firstHeading > .plainlinks{ max-width:100%; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent, body.skin-vector-search-vue.action-view.ns-special #content #bodyContent, body.skin-vector-search-vue:not(.action-view) #content #bodyContent{ grid-area:ee; } body.skin-vector-search-vue .mw-article-toolbar-container, body.skin-vector-search-vue .mw-content-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-page-container-inner{ display:grid; grid:'aa aa aa' auto 'bb cc dd' auto 'bb ee ee' minmax(auto,1fr) / auto minmax(auto,1fr) auto; width:auto; box-sizing:border-box; row-gap:0; } body.skin-vector-search-vue .mw-page-container-inner > .mw-header{ grid-area:aa; } body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{ grid-area:bb; } body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{ grid-area:cc; grid-column:auto !important; } body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{ grid-area:dd; } body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{ grid-area:ee; } /**/ body.skin-vector-search-vue .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content, body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{ width:100%; box-sizing:border-box; } body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views { display: block; } body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item { display: none; } body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{ margin-left:0; background-color: white; padding:0; margin-top:0; } body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ display:block; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ visibility: visible; opacity: 1; transform: none; } body.skin-vector-search-vue .ui-dialog{ font-size:75%; } body.skin-vector-search-vue .mw-body-content .error{ font-size:96%; } body.skin-vector-search-vue.action-purge .firstHeading{ padding-bottom:3px; } body.skin-vector-search-vue .firstHeading .plainlinks{ line-height:1.2em !important; } body.skin-vector-search-vue #mw-panel{ width:140px; box-sizing:border-box; } body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{ display:block; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{ width:0; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{ width:140px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:absolute; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:relative; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:-140px; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:0; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ max-width:100%; box-sizing:border-box; position:relative; z-index:1; } body.skin-vector-search-vue .mw-footer-container{ padding-top:0; } body.skin-vector-search-vue .mw-content-container > .mw-body{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-footer-container .mw-footer{ margin-left:10px; margin-right:0; padding: 0.75em 5px; } body.skin-vector-search-vue .mw-header { display:flex; flex-direction: row; margin: 8px 5px 0 5px; } body.skin-vector-search-vue .mw-workspace-container #mw-head{ min-width:832px; margin-right:5px; box-sizing:border-box; } body.skin-vector-search-vue .mw-logo-icon{ display:block; } body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item { display: block; } body.skin-vector-search-vue .vector-search-box-collapses > div{ display:block; } body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{ display:none; } body.skin-vector-search-vue .vector-sticky-header{ height:3.2em; padding: 6px 25px; display:flex; flex-direction:row; min-width:700px; margin-left:auto; margin-right:auto; width:90%; text-align:center; box-sizing:border-box; } @media screen and (max-width: 830px){ body.skin-vector-search-vue .vector-sticky-header{ display: none; } } html.client-nojs body.skin-vector-search-vue .vector-sticky-header{ display:none !important; } body.skin-vector-search-vue .wvui-typeahead-suggestion{ padding-top:4px; padding-bottom:4px; text-align:left; } body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{ flex-basis: 460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{ width: 36px; height: 36px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{ left:13px; width:37px; } body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{ width:calc( 460px - 64px); } body.skin-vector-search-vue .wvui-button{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; width:64px; border-left:0; box-sizing:border-box; } body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search__wrapper{ margin-right:0; } body.skin-vector-search-vue .wvui-typeahead-suggestion__title{ display: table-cell; vertical-align: middle; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{ margin-left:0; box-sizing:border-box; width:460px; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{ left:0; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{ margin-left:10px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ width:460px; box-sizing:border-box; } body.skin-vector-search-vue .vector-search-box-vue .searchButton{ background-size: 20px auto; } .client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input { border-right-color: #a2a9b1; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{ border-right-color: #a2a9b1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input { width: 460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input { width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{ position:relative; padding-left: 62px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); top:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:460px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ max-width:460px; } body.skin-vector-search-vue .mw-logo{ min-width:144px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{ display:none; } body.skin-vector-search-vue .wvui-button{ padding-left:0; padding-right:0; } body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{ font-size:14px; } body.skin-vector-search-vue .mw-sidebar-action{ display:none; } body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{ font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif; font-stretch:normal; font-variant:normal; font-style:normal; font-weight:normal; font-size-adjust:none; letter-spacing:normal; word-spacing:normal; text-align:left; word-wrap:break-word; hyphens:auto; } body.skin-vector-search-vue{ font-size:calc( 14px * 1.042 ); line-height:1.2em; background-color:#ffffff; } body.skin-vector-search-vue .mw-editsection{ font-size:12px; line-height:1.2em; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub, body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{ margin:0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty, body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty), body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2, body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){ margin:2px 0 3px 0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty{ margin:2px 0 3px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty), body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{ margin: 2px 0 2px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){ margin: 2px 0 3px 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub, body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{ margin:0; } body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{ margin-top:0; } body.skin-vector-search-vue.action-view #pwContent, body.skin-vector-search-vue:not(.action-view) #pwContent, body.skin-vector-search-vue.action-view .subpages, body.skin-vector-search-vue:not(.action-view) .subpages{ margin:0; font-size:12px; line-height:1.2em; margin-bottom:6px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox, body.skin-vector-search-vue:not(.action-view) .warningbox{ margin:10px 0; } body.skin-vector-search-vue #mw-previewheader{ margin-top:14px; margin-bottom:10px; } body.skin-vector-search-vue .mw-userconfigpublic{ margin-top:8px; } body.skin-vector-search-vue .mw-contributions-user-tools{ margin-bottom:6px; } body.skin-vector-search-vue:not(.action-view) .mw-body, body.skin-vector-search-vue.action-view.ns-special .mw-body{ padding: 8px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body, body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{ padding: 4px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue #centralNotice:not(:empty){ margin:10px 8px 8px 8px; } body.skin-vector-search-vue .mw-content-container{ min-width:848px; } body.skin-vector-search-vue #content{ margin-left:0px; min-width:848px; box-sizing:border-box; } body.skin-vector-search-vue #mw-content-text{ clear:both; } body.skin-vector-search-vue #bodyContent{ box-sizing:border-box; min-width:832px; height:auto; clear:both; padding: 0 13px 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{ overflow:auto; overflow-x:auto; overflow-y:visible; min-width:822px; box-sizing:border-box; margin-bottom:5px; display:block; height:auto; position:relative; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{ margin-bottom:0 !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{ padding-bottom:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){ padding-bottom:0; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{ padding-right:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){ padding-right:0; } body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type, body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{ margin-top:0 !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{ margin-top:0px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{ margin-top:0.5em !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{ margin-top:0.8em; } body.skin-vector-search-vue .tdg-editscreen-main{ margin-top:9px; margin-bottom:10px; } body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{ margin: 0 0 4px 0; } body.skin-vector-search-vue .mw-rcfilters-head{ margin-bottom:15px; } body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{ min-height: 280px; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{ margin-top:0; box-sizing:border-box; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{ margin-top:10px !important; box-sizing:border-box !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){ margin-top:3px !important; margin-bottom:3px !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{ margin-top:3px !important; margin-bottom:0 !important; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{ display:table; box-sizing:border-box; position:relative; width:100%; height:auto; margin:0; margin-bottom:5px; border-spacing:0; padding:0; border-collapse:collapse; border:0; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{ margin:0; } body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){ margin: 5px 0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{ margin-top:0.3em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{ margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{ margin-bottom:0.3em; } body.skin-vector-search-vue pre{ margin-top:8px; margin-bottom:8px; padding:11px; background-color: #f8f9fa; color: #000; border: 1px solid #eaecf0; box-sizing:border-box; } body.skin-vector-search-vue div.mw-highlight > pre{ margin-top:8px; margin-bottom:8px; } body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:5px; margin-bottom:0; } body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:5px; } body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:0px; margin-bottom:0; } body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{ margin-bottom:0 !important; margin-top:0 !important; } body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{ margin:0 0 8px 0; } body.skin-vector-search-vue .mw-body > h1{ margin-bottom:0; } body.skin-vector-search-vue #central-auth-images{ display:none; } body.skin-vector-search-vue .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{ margin-top:6px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box, body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{ margin-bottom:10px; margin-top:0; } body.skin-vector-search-vue #wikiPreview.ontop{ margin-bottom:5px; } body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{ max-width:100%; } body.skin-vector-search-vue .previewnote{ margin-bottom:10px; } body.skin-vector-search-vue form#editform{ margin-top:5px; margin-bottom:5px; } body.skin-vector-search-vue #editform::after{ display:block; } body.skin-vector-search-vue .editOptions{ margin-bottom:10px; } body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{ margin-bottom:10px; } body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated{ margin-bottom:5px; } body.skin-vector-search-vue .mw-editfooter-list{ margin-bottom:0; } body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{ margin-top:0; } body.skin-vector-search-vue .vector-menu-portal { margin: 0; margin-left:5px; padding: 0.2em 0 0 0; direction: ltr; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{ margin-left: 3px; } body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content { margin-left: 0; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{ margin-left:3px; } body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{ margin-top:0; } body.skin-vector-search-vue .mw-delete-warning-revisions{ display:block; margin-top:10px; } body.skin-vector-search-vue #p-lang-btn-label{ min-height:25px; padding:5px 25px 3px 5px; } body.skin-vector-search-vue .mw-delete-editreasons + h2, body.skin-vector-search-vue .mw-protect-editreasons + h2{ margin-top:0 !important; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right:0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right: 0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right:4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right: 4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{ display: flex; content: ''; width: auto; flex-direction: row; flex: 1 1 auto; box-sizing:border-box; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{ right:0; } body.skin-vector-search-vue .mw-table-of-contents-container{ direction: rtl; align-self:auto; background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); z-index:1; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container{ max-width:200px; box-sizing:border-box; position:static; margin-bottom:5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ width:200px; direction: rtl; overflow:hidden; margin-right:0; margin-left:0; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{ margin-top:0 !important; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:0 !important; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:54px; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{ direction:ltr; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ position:sticky; top:5px; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ top:0; position:absolute; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ max-width:700px; min-width:200px; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{ display:none; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){ width:200px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{ width:auto; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container { margin-left: 0 !important; } /*body.skin-vector-search-vue .vector-body h1, body.skin-vector-search-vue .vector-body h2, body.skin-vector-search-vue .vector-body h3, body.skin-vector-search-vue .vector-body h4, body.skin-vector-search-vue .vector-body h5, body.skin-vector-search-vue .vector-body h6{ margin-top:0.8em; }*/ body.skin-vector-search-vue .mw-history-subtitle{ margin-bottom:6px; } body.skin-vector-search-vue .printfooter{ display:block; margin: 5px 0; padding:5px; white-space:normal; border: 1px solid #eaecf0; box-sizing:border-box; background-color: white; } .client-js body.skin-vector-search-vue .mw-search-form-wrapper { min-height: 112px; } body.skin-vector-search-vue .noarticletext{ margin-bottom:5px; } body.skin-vector-search-vue .mw-menu-active{ background-color:#E6E6FA; } body.skin-vector-search-vue .mw-menu-inactive{ background-color:#EEE8AA; } body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{ padding-left:5px !important; padding-right:5px !important; margin-left:0 !important; display:block; border-radius:5px; border:1px solid #a2a9b1; margin-top:3px; } body.skin-vector-search-vue .mw-items-active{ display:block; border-radius:5px; border:1px solid #a2a9b1; padding: 0 5px; margin-top:2px; } body.skin-vector-search-vue .mw-items-active > ul{ margin-top:0; } body.skin-vector-search-vue .mw-items-inactive{ display:none; } body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{ margin-left:0px !important; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked){ display:none; } bfgadjr34y2ktwqujnw19e23otz17nr 435662 435660 2022-07-26T11:04:21Z Persino 2851 css text/css body.skin-vector-search-vue .mw-page-container{ max-width:100%; min-width:988px; padding-left:0; padding-right:0; border-left: 0; border-right: 0; box-sizing:border-box; display:table; width:100%; background-color:white; height:auto; } body.skin-vector-search-vue .mw-content-container{ max-width:100%; box-sizing:border-box; padding-left:0 !important; } body.skin-vector-search-vue .mw-logo-container{ margin-left: 10px; margin-right:0; } body.skin-vector-search-vue #p-lang-btn-label{ font-size:14px !important; line-height:1.2em !important; white-space:nowrap; } body.skin-vector-search-vue .mw-indicators{ font-size: calc( 14px * 0.875 ); line-height: 2.0em; white-space:nowrap; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content{ display:grid; grid: 'aa aa aa' auto 'dd dd dd' auto 'bb bb bb' auto 'cc cc cc' auto '.. .. ff' auto 'ee ee ee' auto / minmax(auto,1fr) auto auto } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .vector-article-toolbar{ grid-area:dd; margin:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ grid-area:cc; top:0; width:auto !important; height:auto !important; margin:0; margin-right:10px; box-sizing:border-box; border-bottom: 1px solid #a2a9b1; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #p-lang-btn{ grid-area:ff; height:20px; width:auto; height:auto; margin-left:auto; top:0; margin: auto 5px 0 5px; padding-bottom:8px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > #bodyContent{ grid-area:ee; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header{ display:grid; grid: 'aa bb' auto / minmax(auto,1fr) auto; width:100%; min-height: 46px; box-sizing: border-box; position: relative; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading{ display:block !important; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; margin-bottom:2px; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom: 0; margin-top: auto; border-bottom: none; padding-left: 3px; padding-right: 3px; border-bottom: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #content > .mw-body-header > .mw-indicators{ grid-area: bb; width: auto; height: 1.6em; margin-bottom: 5px; margin-top: auto; margin-right: 5px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading > .plainlinks, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading > .plainlinks body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading > .plainlinks{ padding-bottom:2px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > #p-lang-btn{ grid-area:bb; right:0; margin:0; height:auto; width:auto; margin-top: auto; margin-bottom:0; padding: 0 3px; box-sizing:border-box; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ display:grid; grid:'aa bb' auto / minmax(auto,100%) auto; border-bottom:1px solid #a2a9b1; margin-top:auto; margin-bottom:0; min-height:46px; box-sizing:border-box; position:relative; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .firstHeading:not(:hover), body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .firstHeading:not(:hover){ grid-area:aa; width:100%; max-width:fit-content; max-width:-moz-fit-content; margin-bottom:0; margin-top:auto; border-bottom:none; padding-left:3px; padding-right:3px; border-bottom:0; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header > .mw-indicators, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header > .mw-indicators{ grid-area:bb; right:0; margin:0; height:auto; width:100%; margin:auto 0 0 auto; padding: 0 10px; box-sizing:border-box; } body.skin-vector-search-vue.action-view.ns-special #content .mw-body-header > .mw-indicators > .mw-indicator, body.skin-vector-search-vue:not(.action-view) #content .mw-body-header > .mw-indicators > .mw-indicator{ padding: 2px 0 2px 0; margin: auto 0 0 0; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content, body.skin-vector-search-vue.action-view.ns-special #content, body.skin-vector-search-vue:not(.action-view) #content{ display:grid; grid:'aa' auto 'cc' auto 'bb' auto 'dd' auto 'ee' auto / auto; width:100%; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #top, body.skin-vector-search-vue.action-view.ns-special #content > #top, body.skin-vector-search-vue:not(.action-view) #content > #top{ grid-area:aa; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > #siteNotice, body.skin-vector-search-vue.action-view.ns-special #content > #siteNotice, body.skin-vector-search-vue:not(.action-view) #content > #siteNotice{ grid-area:bb; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .vector-article-toolbar, body.skin-vector-search-vue.action-view.ns-special #content > .vector-article-toolbar, body.skin-vector-search-vue:not(.action-view) #content > .vector-article-toolbar{ grid-area:cc; } body.skin-vector-search-vue .mw-body-header::after{ display:none; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content > .mw-body-header, body.skin-vector-search-vue.action-view.ns-special #content > .mw-body-header, body.skin-vector-search-vue:not(.action-view) #content > .mw-body-header{ grid-area:dd; margin:0; margin-right:10px; width:auto; padding-bottom:0; } body.skin-vector-search-vue .mw-body-subheader{ border-bottom:0; } /*body.skin-vector-search-vue #siteSub,*/ body.skin-vector-search-vue .firstHeading:not(:hover) > .plainlinks{ display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } /*body.skin-vector-search-vue .firstHeading{ text-shadow:0 2px 0 #FFF,0 3px 0 #AAA,0 3px 4px #AAA; }*/ body.skin-vector-search-vue .firstHeading > .plainlinks{ text-shadow:none; } body.skin-vector-search-vue .firstHeading:not(:hover){ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; border-bottom:0; } body.skin-vector-search-vue .firstHeading:hover{ display:block; border:1px solid #eaecf0; border-radius:10px; background-color:white; position:absolute; top:5px; left:-3px; width:auto; padding:5px; z-index:1 !important; } body.skin-vector-search-vue .mw-body-header > .firstHeading:hover > .plainlinks{ display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader{ margin: 2px 0 3px 0; min-height:1.6em; } body.skin-vector-search-vue.action-view.ns-special #bodyContent > .mw-body-subheader, body.skin-vector-search-vue:not(.action-view) #bodyContent > .mw-body-subheader{ margin: 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader{ margin:0; margin-top: -2.0em; font-size: 1.2em; height: 2em; margin-bottom:5px; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #bodyContent > .mw-body-subheader > #siteSub{ display:table !important; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> .mw-indicators{ margin-left:5px; margin-right:3px; display:block; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #bodyContent > .mw-body-subheader> #siteSub{ display:block; } body.skin-vector-search-vue .firstHeading, body.skin-vector-search-vue .firstHeading > .plainlinks{ max-width:100%; width:auto; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #content #bodyContent, body.skin-vector-search-vue.action-view.ns-special #content #bodyContent, body.skin-vector-search-vue:not(.action-view) #content #bodyContent{ grid-area:ee; } body.skin-vector-search-vue .mw-article-toolbar-container, body.skin-vector-search-vue .mw-content-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-page-container-inner{ display:grid; grid:'aa aa aa' auto 'bb cc dd' auto 'bb ee ee' minmax(auto,1fr) / auto minmax(auto,1fr) auto; width:auto; box-sizing:border-box; row-gap:0; } body.skin-vector-search-vue .mw-page-container-inner > .mw-header{ grid-area:aa; } body.skin-vector-search-vue .mw-page-container-inner > .vector-sidebar-container{ grid-area:bb; } body.skin-vector-search-vue .mw-page-container-inner > .mw-content-container{ grid-area:cc; grid-column:auto !important; } body.skin-vector-search-vue .mw-page-container-inner > .mw-table-of-contents-container{ grid-area:dd; } body.skin-vector-search-vue .mw-page-container-inner > .mw-footer-container{ grid-area:ee; } /**/ body.skin-vector-search-vue .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #bodyContent, body.skin-vector-search-vue .mw-workspace-container .mw-content-container #content, body.skin-vector-search-vue .mw-workspace-container .mw-content-container .mw-body-header{ width:100%; box-sizing:border-box; } body.skin-vector-search-vue .mw-article-toolbar-container .mw-portlet-views { display: block; } body.skin-vector-search-vue .mw-article-toolbar-container .vector-more-collapsible-item { display: none; } body.skin-vector-search-vue.vector-toc-enabled .mw-sidebar{ margin-left:0; background-color: white; padding:0; margin-top:0; } body.skin-vector-search-vue.vector-toc-enabled #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ display:block; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked) ~ .mw-workspace-container .mw-sidebar{ visibility: visible; opacity: 1; transform: none; } body.skin-vector-search-vue .ui-dialog{ font-size:75%; } body.skin-vector-search-vue .mw-body-content .error{ font-size:96%; } body.skin-vector-search-vue.action-purge .firstHeading{ padding-bottom:3px; } body.skin-vector-search-vue .firstHeading .plainlinks{ line-height:1.2em !important; } body.skin-vector-search-vue #mw-panel{ width:140px; box-sizing:border-box; } body.skin-vector-search-vue .mw-sidebar #p-navigation .vector-menu-heading{ display:block; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container{ width:0; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container{ width:140px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:absolute; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation{ position:relative; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:-140px; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:not(:checked) ~ .mw-workspace-container.vector-sidebar-container > #mw-navigation > .mw-sidebar{ left:0; position:relative; width:140px; transition: left 250ms ease-out; transition-property: left; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ max-width:100%; box-sizing:border-box; position:relative; z-index:1; } body.skin-vector-search-vue .mw-footer-container{ padding-top:0; } body.skin-vector-search-vue .mw-content-container > .mw-body{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-article-toolbar-container > #left-navigation{ margin-left:0; margin-right:0; } body.skin-vector-search-vue .mw-footer-container .mw-footer{ margin-left:10px; margin-right:0; padding: 0.75em 5px; } body.skin-vector-search-vue .mw-header { display:flex; flex-direction: row; margin: 8px 5px 0 5px; } body.skin-vector-search-vue .mw-workspace-container #mw-head{ min-width:832px; margin-right:5px; box-sizing:border-box; } body.skin-vector-search-vue .mw-logo-icon{ display:block; } body.skin-vector-search-vue .vector-user-links .vector-user-menu-more .vector-menu-content-list li.user-links-collapsible-item { display: block; } body.skin-vector-search-vue .vector-search-box-collapses > div{ display:block; } body.skin-vector-search-vue a.mw-ui-icon-wikimedia-search{ display:none; } body.skin-vector-search-vue .vector-sticky-header{ height:3.2em; padding: 6px 25px; display:flex; flex-direction:row; min-width:700px; margin-left:auto; margin-right:auto; width:90%; text-align:center; box-sizing:border-box; } @media screen and (max-width: 830px){ body.skin-vector-search-vue .vector-sticky-header{ display: none; } } html.client-nojs body.skin-vector-search-vue .vector-sticky-header{ display:none !important; } body.skin-vector-search-vue .wvui-typeahead-suggestion{ padding-top:4px; padding-bottom:4px; text-align:left; } body.skin-vector-search-vue .vector-sticky-header.vector-header-search-toggled{ flex-basis: 460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused){ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail-placeholder, body.skin-vector-search-vue .wvui-typeahead-suggestion__thumbnail{ width: 36px; height: 36px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width), body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__start-icon, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__start-icon{ left:13px; width:37px; } body.skin-vector-search-vue .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .vector-search-box-input, body.skin-vector-search-vue .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input, body.skin-vector-search-vue .vector-search-box, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search__form, body.skin-vector-search-vue #p-search #searchform #simpleSearch{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-suggestion__title, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__wrapper, body.skin-vector-search-vue .vector-search-box-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .vector-search-box-input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search__form{ width:calc( 460px - 64px); } body.skin-vector-search-vue .wvui-button{ font-size:calc( 14px * 1.042 ); line-height:1.2em; height:30px; min-height:30px; width:64px; border-left:0; box-sizing:border-box; } body.skin-vector-search-vue .mw-header #p-search #searchform #simpleSearch{ margin-left:10px; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search__wrapper{ margin-right:0; } body.skin-vector-search-vue .wvui-typeahead-suggestion__title{ display: table-cell; vertical-align: middle; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .vector-search-box-input{ margin-left:0; box-sizing:border-box; width:460px; } .client-js body.skin-vector-search-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton, .client-js .vector-search-box-vue .vector-search-box-show-thumbnail.vector-search-box-auto-expand-width .searchButton{ left:0; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width{ margin-left:10px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ width:460px; box-sizing:border-box; } body.skin-vector-search-vue .vector-search-box-vue .searchButton{ background-size: 20px auto; } .client-js body.skin-vector-search-vue .vector-search-box-input, .client-js .vector-search-box-vue .vector-search-box-input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-input--has-start-icon .wvui-input__input{ padding-left:36px; padding-right:8px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused) .wvui-input__input { border-right-color: #a2a9b1; width:460px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search .wvui-input__input{ border-right-color: #a2a9b1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active) .wvui-input__input { width: 460px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused).wvui-typeahead-search--active .wvui-input__input { width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused .wvui-input__input{ position:relative; padding-left: 62px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-input__input{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width):not(.wvui-typeahead-search--active) .wvui-input__input, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused:not(.wvui-typeahead-search--active) .wvui-input__input{ width:460px; } body.skin-vector-search-vue .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); top:30px; box-sizing:border-box; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--active .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:calc( 460px - 64px ); } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-typeahead-search--expanded .wvui-typeahead-search__suggestions{ width:460px; } body.skin-vector-search-vue .mw-header .vector-search-box.vector-search-box-auto-expand-width > div{ max-width:460px; } body.skin-vector-search-vue .mw-logo{ min-width:144px; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width:not(.wvui-typeahead-search--focused):not(.wvui-typeahead-search--active).wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--auto-expand-width).wvui-typeahead-search--active .wvui-button, body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail.wvui-typeahead-search--auto-expand-width.wvui-typeahead-search--focused.wvui-typeahead-search--active .wvui-button{ display:block; width:64px; z-index:1; } body.skin-vector-search-vue .wvui-typeahead-search--show-thumbnail:not(.wvui-typeahead-search--active) .wvui-button{ display:none; } body.skin-vector-search-vue .wvui-button{ padding-left:0; padding-right:0; } body.skin-vector-search-vue .mw-ui-icon,.mw-ui-icon-before::before{ font-size:14px; } body.skin-vector-search-vue .mw-sidebar-action{ display:none; } body.skin-vector-search-vue, body.skin-vector-search-vue .mw-editsection{ font-family: Arial, Helvetica, "Free Helvetian", FreeSans, sans-serif; font-stretch:normal; font-variant:normal; font-style:normal; font-weight:normal; font-size-adjust:none; letter-spacing:normal; word-spacing:normal; text-align:left; word-wrap:break-word; hyphens:auto; } body.skin-vector-search-vue{ font-size:calc( 14px * 1.042 ); line-height:1.2em; background-color:#ffffff; } body.skin-vector-search-vue .mw-editsection{ font-size:12px; line-height:1.2em; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub, body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna):not(.ns-special) #contentSub ~ #contentSub2{ margin:0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty, body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty), body.skin-vector-search-vue.action-view.ns-special #contentSub:not(:empty) ~ #contentSub2, body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:not(:empty){ margin:2px 0 3px 0; } body.skin-vector-search-vue.action-view.ns-special #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty{ margin:2px 0 3px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:empty{ margin:10px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty), body.skin-vector-search-vue:not(.action-view) #contentSub:not(:empty) ~ #contentSub2{ margin: 2px 0 2px 0; } body.skin-vector-search-vue:not(.action-view) #contentSub:empty ~ #contentSub2:not(:empty){ margin: 2px 0 3px 0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub, body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna #contentSub2{ margin:0; } body.skin-vector-search-vue.action-edit #contentSub:not(:empty) ~ #mw-content-text > form#editform{ margin-top:0; } body.skin-vector-search-vue.action-view #pwContent, body.skin-vector-search-vue:not(.action-view) #pwContent, body.skin-vector-search-vue.action-view .subpages, body.skin-vector-search-vue:not(.action-view) .subpages{ margin:0; font-size:12px; line-height:1.2em; margin-bottom:6px; } body.skin-vector-search-vue.action-view:not(.page-Wikibooks_Strona_główna) .warningbox, body.skin-vector-search-vue:not(.action-view) .warningbox{ margin:10px 0; } body.skin-vector-search-vue #mw-previewheader{ margin-top:14px; margin-bottom:10px; } body.skin-vector-search-vue .mw-userconfigpublic{ margin-top:8px; } body.skin-vector-search-vue .mw-contributions-user-tools{ margin-bottom:6px; } body.skin-vector-search-vue:not(.action-view) .mw-body, body.skin-vector-search-vue.action-view.ns-special .mw-body{ padding: 8px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue.action-view.page-Wikibooks_Strona_główna .mw-body, body.skin-vector-search-vue.action-view:not(.ns-special):not(.page-Wikibooks_Strona_główna) .mw-body{ padding: 4px 0 10px 8px; position:relative; z-index:0; } body.skin-vector-search-vue #centralNotice:not(:empty){ margin:10px 8px 8px 3px; } body.skin-vector-search-vue .mw-content-container{ min-width:848px; } body.skin-vector-search-vue #content{ margin-left:0px; min-width:848px; box-sizing:border-box; } body.skin-vector-search-vue #mw-content-text{ clear:both; } body.skin-vector-search-vue #bodyContent{ box-sizing:border-box; min-width:832px; height:auto; clear:both; padding: 0 13px 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container #bodyContent{ padding: 0 5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace) ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny ~ .mw-content-container .mw-body-header{ margin-right:3px !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output{ overflow:auto; overflow-x:auto; overflow-y:visible; min-width:822px; box-sizing:border-box; margin-bottom:5px; display:block; height:auto; position:relative; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text .mw-container-parser-output.has-mw-parser-output-whitespace{ margin-bottom:0 !important; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-x, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-x{ padding-bottom:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output:not(.mw-scrollbar-overflow-x), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output:not(.mw-scrollbar-overflow-x){ padding-bottom:0; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text .mw-container-parser-output.mw-scrollbar-overflow-y, body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr .mw-container-parser-output.mw-scrollbar-overflow-y{ padding-right:5px; } body.skin-vector-search-vue.action-view #bodyContent #mw-content-text:not(.mw-scrollbar-overflow-y), body.skin-vector-search-vue:not(.action-view) #bodyContent #mw-content-text #wikiPreview .mw-content-ltr:not(.mw-scrollbar-overflow-y){ padding-right:0; } body.skin-vector-search-vue.ns-10 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type, body.skin-vector-search-vue.ns-828 #mw-content-text .mw-parser-output > :not(style):not(link):not(#documentation-meta-data):not(.template-documentation) ~ *:first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):first-child{ margin-top:0 !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(style):not(link) ~ :not(style):not(link):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p):not(.div-linia):first-of-type{ margin-top:5px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.div-linia + *{ margin-top:0px !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6:first-child, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h1:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h2:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h3:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h4:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h5:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(p) + h6:first-of-type{ margin-top:0.5em !important; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h1 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h2 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h3 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h4 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h5 ~ h6, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h1, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h2, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h3, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h4, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h5, body.skin-vector-search-vue #mw-content-text .mw-parser-output > h6 ~ h6{ margin-top:0.8em; } body.skin-vector-search-vue .tdg-editscreen-main{ margin-top:9px; margin-bottom:10px; } body.skin-vector-search-vue .mw-specialpage-summary > p:first-child{ margin: 0 0 4px 0; } body.skin-vector-search-vue .mw-rcfilters-head{ margin-bottom:15px; } body.skin-vector-search-vue.mw-special-Watchlist .mw-rcfilters-head{ min-height: 280px; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output .template-documentation:first-of-type{ margin-top:0; box-sizing:border-box; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output > :not(style):not(link) ~ .template-documentation{ margin-top:10px !important; box-sizing:border-box !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:not(:last-child){ margin-top:3px !important; margin-bottom:3px !important; } body.skin-vector-search-vue .mw-parser-output #documentation-meta-data:last-child{ margin-top:3px !important; margin-bottom:0 !important; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-parser-output{ display:table; box-sizing:border-box; position:relative; width:100%; height:auto; margin:0; margin-bottom:5px; border-spacing:0; padding:0; border-collapse:collapse; border:0; } body.skin-vector-search-vue #bodyContent #mw-content-text .mw-container-parser-output > .mw-parser-output{ margin:0; } body.skin-vector-search-vue .catlinks:not(.catlinks-allhidden){ margin: 5px 0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:first-of-type{ margin-top:0.3em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:empty) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(.blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:-moz-only-whitespace) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p):not(:blank) + p:first-of-type{ margin-top:0.5em; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).floatright + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tleft + p:first-of-type, body.skin-vector-search-vue #mw-content-text .mw-parser-output > :not(p).tright + p:first-of-type{ margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > p:last-child{ margin-bottom:0.3em; } body.skin-vector-search-vue pre{ margin-top:8px; margin-bottom:8px; padding:11px; background-color: #f8f9fa; color: #000; border: 1px solid #eaecf0; box-sizing:border-box; } body.skin-vector-search-vue div.mw-highlight > pre{ margin-top:8px; margin-bottom:8px; } body.ns-828.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:5px; margin-bottom:0; } body.skin-vector-search-vue.action-view #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:5px; } body.ns-828.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-top:0px; margin-bottom:0; } body.skin-vector-search-vue:not(.action-view) #mw-content-text .mw-parser-output > div.mw-highlight:last-child > pre:last-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue #mw-content-text .mw-parser-output > div.mw-highlight:only-child > pre:only-child{ margin-bottom:0 !important; margin-top:0 !important; } body.skin-vector-search-vue .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed{ margin:0 0 8px 0; } body.skin-vector-search-vue .mw-body > h1{ margin-bottom:0; } body.skin-vector-search-vue #central-auth-images{ display:none; } body.skin-vector-search-vue .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub:not(:empty) ~ #mw-content-text > .mw-message-box:first-child{ margin-top:6px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .mw-message-box{ margin-top:10px; margin-bottom:10px; } body.skin-vector-search-vue #contentSub > .subpages ~ .mw-message-box, body.skin-vector-search-vue #contentSub > #pwContent ~ .mw-message-box{ margin-bottom:10px; margin-top:0; } body.skin-vector-search-vue #wikiPreview.ontop{ margin-bottom:5px; } body.skin-vector-search-vue.skin-vector-disable-max-width #wikiPreview{ max-width:100%; } body.skin-vector-search-vue .previewnote{ margin-bottom:10px; } body.skin-vector-search-vue form#editform{ margin-top:5px; margin-bottom:5px; } body.skin-vector-search-vue #editform::after{ display:block; } body.skin-vector-search-vue .editOptions{ margin-bottom:10px; } body.skin-vector-search-vue .mw-category-generated > #mw-pages > h2, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories > h2, body.skin-vector-search-vue .mw-category-generated > #mw-category-media > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated > #mw-pages:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-subcategories:last-child, body.skin-vector-search-vue .mw-category-generated > #mw-category-media:last-child{ margin-bottom:10px; } body.skin-vector-search-vue .mw-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .mw-container-parser-output + .mw-category-generated > p:first-child, body.skin-vector-search-vue .noarticletext + .mw-category-generated > p:first-child{ margin-bottom:0; margin-top:0; } body.skin-vector-search-vue .mw-category-generated > *:first-child > h2{ margin-top:15px !important; } body.skin-vector-search-vue .mw-category-generated{ margin-bottom:5px; } body.skin-vector-search-vue .mw-editfooter-list{ margin-bottom:0; } body.skin-vector-search-vue #mw-clearyourcache:first-child > p:first-child{ margin-top:0; } body.skin-vector-search-vue .vector-menu-portal { margin: 0; margin-left:5px; padding: 0.2em 0 0 0; direction: ltr; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-content{ margin-left: 3px; } body.skin-vector-search-vue #mw-panel nav:first-child .vector-menu-content { margin-left: 0; } body.skin-vector-search-vue .vector-menu-portal .vector-menu-heading{ margin-left:3px; } body.skin-vector-search-vue .mw-undelete-pagetitle > p:first-child{ margin-top:0; } body.skin-vector-search-vue .mw-delete-warning-revisions{ display:block; margin-top:10px; } body.skin-vector-search-vue #p-lang-btn-label{ min-height:25px; padding:5px 25px 3px 5px; } body.skin-vector-search-vue .mw-delete-editreasons + h2, body.skin-vector-search-vue .mw-protect-editreasons + h2{ margin-top:0 !important; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right:0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container{ margin-right: 0; padding-right:0; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right:4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation{ margin-right: 4px; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation::before{ display: flex; content: ''; width: auto; flex-direction: row; flex: 1 1 auto; box-sizing:border-box; } body.skin-vector-search-vue .vector-article-toolbar .mw-article-toolbar-container #right-navigation .vector-menu-content{ right:0; } body.skin-vector-search-vue .mw-table-of-contents-container{ direction: rtl; align-self:auto; background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); z-index:1; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ margin-right:8px; margin-left:5px; } body.skin-vector-search-vue .mw-table-of-contents-container{ max-width:200px; box-sizing:border-box; position:static; margin-bottom:5px; } body.skin-vector-search-vue .mw-table-of-contents-container:not(:-moz-only-whitespace){ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container.sidebar_obecny{ width:200px; max-height:100%; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ width:200px; direction: rtl; overflow:hidden; margin-right:0; margin-left:0; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container:-moz-only-whitespace .sidebar-toc{ margin-top:0 !important; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:0 !important; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ margin-top:54px; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc .sidebar-toc-contents{ direction:ltr; } html.client-nojs body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ position:sticky; top:5px; } html:not(.client-nojs) body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ top:0; position:absolute; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc{ max-width:700px; min-width:200px; display:block; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover) .sidebar-toc-level-2{ display:none; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:not(:hover){ width:200px; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-table-of-contents-container .sidebar-toc:hover{ width:auto; transition: width 250ms ease-out; transition-property: width; transition-duration: 250ms; transition-timing-function: ease-out; transition-delay: 0s; } body.skin-vector-search-vue .mw-article-toolbar-container{ margin-left:0 !important; } body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container .mw-content-container, body.skin-vector-search-vue .mw-checkbox-hack-checkbox:checked ~ .mw-workspace-container #mw-navigation .mw-article-toolbar-container { margin-left: 0 !important; } /*body.skin-vector-search-vue .vector-body h1, body.skin-vector-search-vue .vector-body h2, body.skin-vector-search-vue .vector-body h3, body.skin-vector-search-vue .vector-body h4, body.skin-vector-search-vue .vector-body h5, body.skin-vector-search-vue .vector-body h6{ margin-top:0.8em; }*/ body.skin-vector-search-vue .mw-history-subtitle{ margin-bottom:6px; } body.skin-vector-search-vue .printfooter{ display:block; margin: 5px 0; padding:5px; white-space:normal; border: 1px solid #eaecf0; box-sizing:border-box; background-color: white; } .client-js body.skin-vector-search-vue .mw-search-form-wrapper { min-height: 112px; } body.skin-vector-search-vue .noarticletext{ margin-bottom:5px; } body.skin-vector-search-vue .mw-menu-active{ background-color:#E6E6FA; } body.skin-vector-search-vue .mw-menu-inactive{ background-color:#EEE8AA; } body.skin-vector-search-vue .mw-menu-active,body.skin-vector-search-vue .mw-menu-inactive{ padding-left:5px !important; padding-right:5px !important; margin-left:0 !important; display:block; border-radius:5px; border:1px solid #a2a9b1; margin-top:3px; } body.skin-vector-search-vue .mw-items-active{ display:block; border-radius:5px; border:1px solid #a2a9b1; padding: 0 5px; margin-top:2px; } body.skin-vector-search-vue .mw-items-active > ul{ margin-top:0; } body.skin-vector-search-vue .mw-items-inactive{ display:none; } body.skin-vector-search-vue .mw-items-active,body.skin-vector-search-vue .mw-items-inactive{ margin-left:0px !important; } body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked){ display:none; } dwvxx1miodhaz5kiuf3qc0t7hsolmzs Wikipedysta:Persino/vector-2022.js 2 58546 435641 435450 2022-07-25T19:42:16Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!nic_nie_rob){ if(!tak_ukrywaj_menu_boczne){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ if(!nic_nie_rob){ nic_nie_rob=true; $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); } }); } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); rr9ahrp5q4nhtoz73wu38nu86pd73tq 435642 435641 2022-07-25T19:45:57Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!nic_nie_rob){ if(!tak_ukrywaj_menu_boczne){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ if(!nic_nie_rob){ nic_nie_rob=true; $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); } }); } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); e4wtt1nfqt7aj0csojp8g3pfzcz8q55 435643 435642 2022-07-25T19:50:15Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); 8yhcb53vwrsnsn65tcdqbg60x7ix3lc 435644 435643 2022-07-25T19:51:45Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element_f).hide(); }); function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); 69168hfei8oo88urim33siv3j3ixyxu 435645 435644 2022-07-25T19:52:39Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ $(element_f).hide(); }); function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); qioj2igx1hoelrl5nowul0a4mhc3pvb 435646 435645 2022-07-25T19:53:28Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); 8yhcb53vwrsnsn65tcdqbg60x7ix3lc 435650 435646 2022-07-25T19:59:45Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ $(element).hide(); }); }); } WstepneCzyUkrywajMenuBoczne(); var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); c1pmvs6r8tfa40opq8f3snqruqp38ag 435651 435650 2022-07-25T20:00:23Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); }); }); } WstepneCzyUkrywajMenuBoczne(); var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); 6co5f2yk0ynkd8gll7pibwurckjracf 435652 435651 2022-07-25T20:02:33Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); jrehzqlrp9ok2o0ifyhxtrs5oae2qg4 435653 435652 2022-07-25T20:08:35Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(!tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if(tak_ukrywaj_menu_boczne){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); 0jbu4o7b5exjf794g4gu1d9liq5y1f7 435654 435653 2022-07-25T20:15:26Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if((!tak_ukrywaj_menu_boczne)&&(display=="none")){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if((tak_ukrywaj_menu_boczne)&&(display!="none")){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); fectatqguo9ul6v3byw1zfiiwlxsmig 435655 435654 2022-07-25T20:16:57Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if((!tak_ukrywaj_menu_boczne)/*&&(display=="none")*/){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if((tak_ukrywaj_menu_boczne)/*&&(display!="none")*/){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); dmno3blda1v1comeua6re4emc9b387a 435656 435655 2022-07-25T20:17:44Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if((!tak_ukrywaj_menu_boczne)&&(display=="none")){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if((tak_ukrywaj_menu_boczne)&&(display!="none")){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); fectatqguo9ul6v3byw1zfiiwlxsmig 435657 435656 2022-07-25T20:19:05Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if((!tak_ukrywaj_menu_boczne)&&(display!="none")){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if((tak_ukrywaj_menu_boczne)&&(display=="none")){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); ib23zeyxa9zyjn5mv29rn1do0p9x60n 435658 435657 2022-07-25T20:21:35Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if((!tak_ukrywaj_menu_boczne)&&(display!="none")){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if((tak_ukrywaj_menu_boczne)&&(display=="none")){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); r28zelu0lf4lrc19i4tpvdqp4xow2sp 435659 435658 2022-07-25T20:24:34Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if(display!="none"){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); nic_nie_rob=undefined; },250); } } }); if(display=="none"){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); 5nu1ilfxiibb28urnsa8c4rnkcu41ii 435661 435659 2022-07-25T20:42:27Z Persino 2851 javascript text/javascript function SideBarToc(){ var sidebar=skin_vector_2022[0].querySelector('body.skin-vector-search-vue .mw-table-of-contents-container'); if(sidebar!==null){ var sidebartoc=sidebar.querySelector('.sidebar-toc'); if(sidebartoc!==null){ if(!$(sidebar).hasClass('sidebar_obecny')){ sidebar.classList.add('sidebar_obecny'); } if(sidebar.clientHeight>=sidebartoc.clientHeight+window.scrollY){ sidebartoc.style.top=window.scrollY+"px"; }else if(sidebar.clientHeight>=sidebartoc.clientHeight){ sidebartoc.style.top=(sidebar.clientHeight-sidebartoc.clientHeight)+"px"; } }else{ sidebar.classList.remove('sidebar_obecny'); } } } var tak_ukrywaj_menu_boczne=undefined; var nic_nie_rob=undefined; function UkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ var display=window.getComputedStyle(element, null).getPropertyValue("display"); $('body.skin-vector-search-vue #mw-sidebar-checkbox:not(:checked)').first().each(function(j,element_f){ if((!tak_ukrywaj_menu_boczne)&&(display!="none")){ if(!nic_nie_rob){ nic_nie_rob=true; setTimeout(function(){ $(element).hide(); tak_ukrywaj_menu_boczne=true; nic_nie_rob=undefined; },250); } } }); if((tak_ukrywaj_menu_boczne)&&(display=="none")){ if(!nic_nie_rob){ nic_nie_rob=true; $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).show(); setTimeout(function(){ tak_ukrywaj_menu_boczne=undefined; nic_nie_rob=undefined; },250); }); } } }); } function WstepneCzyUkrywajMenuBoczne(){ $('body.skin-vector-search-vue #mw-navigation').first().each(function (i,element){ $('body.skin-vector-search-vue #mw-sidebar-checkbox:checked').first().each(function(j,element_f){ $(element).hide(); tak_ukrywaj_menu_boczne=true; }); }); } WstepneCzyUkrywajMenuBoczne(); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('click',UkrywajMenuBoczne); $('body.skin-vector-search-vue .mw-checkbox-hack-button').first().on('dblclick',UkrywajMenuBoczne); function Brudnopis(){ var skin_brudnopis=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-edit, body.skin-vector-search-vue.action-submit, body.skin-vector-search-vue.action-history, body.skin-vector-search-vue.action-delete, body.skin-vector-search-vue.action-protect, body.skin-vector-search-vue.action-unprotect, body.skin-vector-search-vue.action-view.mw-special-Movepage'); if((skin_brudnopis===null)||(skin_brudnopis.length<=0)){return;} var user=mw.config.get('wgUserName'); if(!user){return;} var ul_zakladka=skin_brudnopis[0].querySelector('#p-views > .vector-menu-content > .vector-menu-content-list'); var ul_wiecej=skin_brudnopis[0].querySelector('#p-cactions > .vector-menu-content > .vector-menu-content-list'); if((!ul_zakladka)||(!ul_wiecej)){return;} var caption; if ( mw.config.get( 'wgUserLanguage' ) !== 'pl' ) { caption = 'Sandbox'; }else{ caption="Brudnopis"; } var brudnopis="Wikipedysta:"+(user.replace(/[\s_]/g,"_"))+"/brudnopis"; /*Zakładka*/ var node_zakladka=mw.util.addPortletLink( 'p-views', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_zakladka.firstChild); /*Więcej*/ var node_wiecej=mw.util.addPortletLink( 'p-cactions', mw.util.getUrl(brudnopis) + "?redirect=no", caption, 'ca-sandbox', caption, '', ul_wiecej.firstChild); node_wiecej.classList.add('vector-more-collapsible-item'); var strona=mw.config.get('wgPageName').replace(/^Dyskusja_wikipedysty/g,"Wikipedysta"); if(strona==brudnopis){ node_zakladka.classList.add('selected'); node_wiecej.classList.add('selected'); } } $(Brudnopis); var skin_vector_2022=$('body.skin-vector-search-vue.action-view:not(.ns-special), body.skin-vector-search-vue.action-submit'); if((skin_vector_2022!==null)&&(skin_vector_2022.length>0)){ $(SideBarToc); window.addEventListener('scroll', SideBarToc); } function BlankElements(){ var elements=$("body.skin-vector-search-vue *"); if((elements!==null)&&(elements.length>0)){ for(var i=0;i<elements.length;++i){ var h=elements[i]; var wartosc=h.innerHTML.replace(/\n/g,"").replace(/<!--.*-->/g,""); if(/^\s*$/g.test(wartosc)){ h.classList.add("blank"); }else{ h.classList.remove("blank"); } } } } $(BlankElements); function ConintainerParserOut(){ $( "body.skin-vector-search-vue .mw-parser-output" ).wrap(function() { return "<div class='mw-container-parser-output'></div>"; }); } ConintainerParserOut(); function OverflowXConintainerParserOut(){ $('body.skin-vector-search-vue .mw-container-parser-output').addClass('mw-overflow-x'); } OverflowXConintainerParserOut(); function MwContainerParserOutput(){ var container=document.querySelector('body.skin-vector-search-vue .mw-container-parser-output'); if(container!==null){ var height_container=container.clientHeight; if(height_container==0){ var con=document.querySelector('.mw-container-parser-output'); if(con){con.classList.add('has-mw-parser-output-whitespace')} } } } MwContainerParserOutput(); function LewaNawigacja(){ function UstawienieMenuNawigacjiWedlugCookie(menu_portret,czy_nawigacja){ var czy_odkryty=menu_portret.getAttribute("id"); var menu=$(menu_portret).children('.vector-menu-heading'); var nawigacja=mw.cookie.get(czy_odkryty,"Nawigacja"); if((nawigacja==null)||(nawigacja=="")){ if(czy_nawigacja){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } }else{ if(nawigacja=="true"){ menu.addClass('mw-menu-active'); menu.siblings('.vector-menu-content').addClass('mw-items-active'); }else{ menu.addClass('mw-menu-inactive'); menu.siblings('.vector-menu-content').addClass('mw-items-inactive'); } } } var portet_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet.mw-portlet-navigation'); var portet_inne_nawigacja=$('body.skin-vector-search-vue #mw-panel.mw-sidebar .mw-portlet:not(.mw-portlet-navigation)'); if((portet_nawigacja==null)||(portet_nawigacja.length==0)||(portet_inne_nawigacja==null)||(portet_inne_nawigacja.length==0)){return;} portet_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_nawigacja[i],true);}); portet_inne_nawigacja.each(function(i){UstawienieMenuNawigacjiWedlugCookie(portet_inne_nawigacja[i],false);}); function onclick(){ var id=$(this); if(id.hasClass('mw-menu-active')){ id.removeClass('mw-menu-active'); id.addClass('mw-menu-inactive') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"false",{prefix:"Nawigacja"}); }else{ id.removeClass('mw-menu-inactive'); id.addClass('mw-menu-active') var czy_odkryty=id.parent()[0].getAttribute("id"); mw.cookie.set(czy_odkryty,"true",{prefix:"Nawigacja"}); } var items=id.siblings('.vector-menu-content'); if(items.hasClass('mw-items-active')){ items.removeClass('mw-items-active'); items.addClass('mw-items-inactive') }else{ items.removeClass('mw-items-inactive'); items.addClass('mw-items-active'); } } $('#mw-panel.mw-sidebar .mw-portlet > .vector-menu-heading').on("click",onclick); } $(LewaNawigacja); r28zelu0lf4lrc19i4tpvdqp4xow2sp Szablon:StronaStart/stronastart.css 10 58549 435590 435548 2022-07-25T13:15:04Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow:auto; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } kvaz7kyt8naqg9ttfhlrv2dmp0kbat2 435591 435590 2022-07-25T13:16:36Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow:auto; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } mbuuw82d2j4ix4gzzo18yx1za8u9rn2 435592 435591 2022-07-25T13:18:48Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ transition: transform 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } h4qe5ldg3gwvvs38kzbv44vh7sugc5q 435596 435592 2022-07-25T13:25:49Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-height:700px !important; transition: transform 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } kxr9qddmmvmzo1ndyeprob4r0f2x7db 435597 435596 2022-07-25T13:26:59Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } 27e72jbqlrpp5tnhe75kvtty913urw8 435598 435597 2022-07-25T13:28:30Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } pz481aoz164ik44sp1nap4qfn8d3not 435599 435598 2022-07-25T13:29:53Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow:auto; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } q08drzlb8f1ibxsz4s25pqs9lz1w7lx 435601 435599 2022-07-25T13:35:56Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ /*overflow:auto;*/ transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } 2aagafft4nwy8lmyef3ihrqd522ale9 435602 435601 2022-07-25T13:37:00Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:visible; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } ieju11mfx6xx5nxnqldv0e61s8hk3a1 435603 435602 2022-07-25T13:37:28Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, overflow 500ms ease-out; transition-property: transform, overflow; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } p1cslr6gln54frjx3nkgjb10t8yoqsi 435604 435603 2022-07-25T13:46:55Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, width 500ms ease-out; transition-property: transform, width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } bu4c70w8cpgc2hd9jy4d18vr4sro12g 435605 435604 2022-07-25T13:51:17Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, width 500ms ease-out; transition-property: transform, overflow-x; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } oy0ko58uz0w89pr9ah8essx0l7eeycr 435606 435605 2022-07-25T13:52:09Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, width 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } iempab44p43blbwh1n505taquldffdm 435607 435606 2022-07-25T13:55:03Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; padding-left:5px; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, width 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } 0pg2tt5qh9qmc6yczq0e55ixqbjn0ix 435608 435607 2022-07-25T13:55:38Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, width 500ms ease-out; transition-property: transform; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,width 500ms ease-out; transition-property: transform,width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } iempab44p43blbwh1n505taquldffdm 435609 435608 2022-07-25T14:01:34Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } 2ukxn9jlenl9ia3c79m0zcodadh7ejk 435614 435609 2022-07-25T15:45:26Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x.mw-expands-optimal-x, .strona_lewa .mw-optimal-x.mw-expands-optimal-x, .strona_prawa .mw-optimal-y.mw-expands-optimal-y, .strona_lewa .mw-optimal-y.mw-expands-optimal-y{ max-height:none !important; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } esbfijqr5ehu75q7hwacxhvexznqcq6 435616 435614 2022-07-25T15:47:33Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x.mw-expands-optimal-x, .strona_lewa .mw-optimal-x.mw-expands-optimal-x, .strona_prawa .mw-optimal-y.mw-expands-optimal-y, .strona_lewa .mw-optimal-y.mw-expands-optimal-y{ overflow:auto; } .strona_prawa .mw-optimal-x:not(.mw-expands-optimal-x), .strona_lewa .mw-optimal-x:not(.mw-expands-optimal-x), .strona_prawa .mw-optimal-y:not(.mw-expands-optimal-y), .strona_lewa .mw-optimal-y:not(.mw-expands-optimal-y){ max-height:none !important; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } 5jq44dxp60ris9d96qh52chq56lwwvr 435617 435616 2022-07-25T15:49:42Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x.mw-expands-optimal-x, .strona_lewa .mw-optimal-x.mw-expands-optimal-x{ overflow:auto; transition: max-width 500ms ease-out; transition-property: max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x:not(.mw-expands-optimal-x), .strona_lewa .mw-optimal-x:not(.mw-expands-optimal-x){ max-height:none !important; transition: max-width 500ms ease-out; transition-property: max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } bjwctaonek57yuxhie8xiq9hi6irk76 435625 435617 2022-07-25T16:15:57Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x.mw-expands-optimal-x, .strona_lewa .mw-optimal-x.mw-expands-optimal-x{ max-height:none !important; transition: max-width 500ms ease-out; transition-property: max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x:not(.mw-expands-optimal-x), .strona_lewa .mw-optimal-x:not(.mw-expands-optimal-x){ overflow:auto; transition: max-width 500ms ease-out; transition-property: max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } 7fuszweeohffhkkqt4obim8jbm7zf3j 435636 435625 2022-07-25T18:02:55Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; overflow:auto; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x:hover, .strona_lewa .mw-optimal-x:hover{ max-width:none !important; transition: transform, max-width 500ms ease-out; transition-property: transform, max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x:not(:hover), .strona_lewa .mw-optimal-x:not(:hover){ overflow:auto; transform: scale(0.3,0.3) translate(117%,-117%); transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } stg1kjzi7uop4piuj0atn0jm6vqug1x 435637 435636 2022-07-25T18:28:07Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; overflow:auto; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x:hover, .strona_lewa .mw-optimal-x:hover{ max-width:none !important; transition: transform, max-width 500ms ease-out; transition-property: transform, max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x:not(:hover), .strona_lewa .mw-optimal-x:not(:hover){ overflow:auto; transform: scale(0.3,0.3) translate(117%,-117%); transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x, .strona_lewa .mw-optimal-x{ display:flex; flex-direction:column; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } r7z96aohln1499xmyxmoign59hjsrdc 435638 435637 2022-07-25T18:30:40Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis:not(:hover){ overflow-x:auto; overflow-y:hidden; transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; overflow:auto; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x:hover, .strona_lewa .mw-optimal-x:hover{ max-width:none !important; transition: transform, max-width 500ms ease-out; transition-property: transform, max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); } .strona_lewa .mw-optimal-x:not(:hover){ transform: scale(0.3,0.3) translate(-117%,-117%); } .strona_prawa .mw-optimal-x:not(:hover), .strona_lewa .mw-optimal-x:not(:hover){ overflow:auto; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x, .strona_lewa .mw-optimal-x{ display:flex; flex-direction:column; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } d3c3y52bcx03ac23vw97rtnk2qjs49e 435665 435638 2022-07-26T11:26:38Z Persino 2851 sanitized-css text/css .strona_prawa .spis{ display:flex; width:100%; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:first-child > th{ width:calc( 100% - 8px ); margin:0 4px; } .strona_prawa .spis > div:not(.pierwsza_strona){ height:auto; max-height:100%; width:auto; display:flex !important; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści{ height:100%; width:auto; display:flex !important; flex-direction:column; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ display:flex !important; flex-direction:column; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td, .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr:last-child > td > div.toc_spis{ display:flex !important; height:100%; width:100%; box-sizing:border-box; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis{ padding:0 3px; } .strona_prawa .spis > div:not(.pierwsza_strona) > table.spis_treści > tbody > tr > td > div.toc_spis.mw-scrollbar-overflow-y{ height:calc( 100% - 20px ); max-height:100% !important; } .strona_prawa .mw-sticky-y.spis.mw-scrollbar-overflow-x:not(:hover){ overflow-x:auto; overflow-y:hidden; } .strona_prawa .mw-sticky-y.spis:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); /**/ transition: transform, max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 1s; } .strona_prawa .mw-sticky-y.spis:hover{ max-width:700px !important; transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .pierwsza_strona.mw-overflow-y.mw-scrollbar-overflow-y{ padding-right:10px; } .strona_prawa .pierwsza_strona .wikitable{ margin-top:5px; margin-bottom:5px; } .strona_start{ background-color:white; } .strona_start .główna_strona.tło{ background-color:white; background-image: url('//upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Wikibooks_multicolor_open_book_no_text.svg/200px-Wikibooks_multicolor_open_book_no_text.svg.png'); } .strona_prawa .mw-optimal-x:hover, .strona_lewa .mw-optimal-x:hover{ max-width:none !important; transition: transform, max-width 500ms ease-out; transition-property: transform, max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x:not(:hover){ transform: scale(0.3,0.3) translate(117%,-117%); } .strona_lewa .mw-optimal-x:not(:hover){ transform: scale(0.3,0.3) translate(-117%,-117%); } .strona_prawa .mw-optimal-x.mw-scrollbar-overflow-x:not(:hover), .strona_lewa .mw-optimal-x.mw-scrollbar-overflow-x:not(:hover){ overflow:auto; } .strona_prawa .mw-optimal-x:not(:hover), .strona_lewa .mw-optimal-x:not(:hover){ transition: transform,max-width 500ms ease-out; transition-property: transform,max-width; transition-duration: 500ms; transition-timing-function: ease-out; transition-delay: 0s; } .strona_prawa .mw-optimal-x, .strona_lewa .mw-optimal-x{ display:flex; flex-direction:column; } .strona h1, .strona h2,.strona h3,.strona h4,.strona h5,.strona h6{ text-align:left; } .strona > .ciało_kontener > .ciało_strona > p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p) + p, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).noprint + p{ margin-top:0.6em; } .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).floatright + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tleft + p:first-of-type, .strona > .ciało_kontener > .ciało_strona > :not(style):not(link):not(p).tright + p:first-of-type{ margin-top:0; } .strona > .ciało_kontener > .ciało_strona > p:last-of-type{ margin-bottom:0; } @media print{ .noprint{ display:none; } .print{ display:block; } } .gallerytext, .plainlinks{ text-align:left; } .strona.mw-scrollbar-overflow-x{ padding-bottom:5px; } .strona.mw-scrollbar-overflow-y{ padding-right:5px; } hssbkmf9nxop35it9jjjy78tyjqmke0 Wikipedysta:Persino/common.js 2 58552 435572 435570 2022-07-25T12:14:13Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(window.getComputedStyle(rodzic, null).getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } //element_g.style[height]="auto"; //element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); if(sticky_x){ FunStickyXY("left","right","width"); } var sticky_y=$(element_g).hasClass('mw-sticky-y'); if(sticky_y){ FunStickyXY("top","bottom","height"); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('mouseover',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('mouseout',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ 8ml8wz0dwn7npeqbybffq8igsye6j0p 435573 435572 2022-07-25T12:14:50Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(window.getComputedStyle(rodzic, null).getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } //element_g.style[height]="auto"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); if(sticky_x){ FunStickyXY("left","right","width"); } var sticky_y=$(element_g).hasClass('mw-sticky-y'); if(sticky_y){ FunStickyXY("top","bottom","height"); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('mouseover',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('mouseout',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ py4xc53zje5meh3h6a3rc8qqbwz0lb0 435574 435573 2022-07-25T12:17:15Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(window.getComputedStyle(rodzic, null).getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); if(sticky_x){ FunStickyXY("left","right","width"); } var sticky_y=$(element_g).hasClass('mw-sticky-y'); if(sticky_y){ FunStickyXY("top","bottom","height"); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('mouseover',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('mouseout',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ s7fixut3iwr9omlcqoeouztekqh9we1 435575 435574 2022-07-25T12:24:26Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(window.getComputedStyle(rodzic, null).getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); if(sticky_x){ FunStickyXY("left","right","width"); } var sticky_y=$(element_g).hasClass('mw-sticky-y'); if(sticky_y){ FunStickyXY("top","bottom","height"); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ //$("*.mw-sticky-x, *.mw-sticky-y").on('mouseover',StickyXY); //$("*.mw-sticky-x, *.mw-sticky-y").on('mouseout',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ pymm14tc9wb6okkykyihwkcoog6c9dz 435576 435575 2022-07-25T12:26:10Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(window.getComputedStyle(rodzic, null).getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); if(sticky_x){ FunStickyXY("left","right","width"); } var sticky_y=$(element_g).hasClass('mw-sticky-y'); if(sticky_y){ FunStickyXY("top","bottom","height"); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('mouseover',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('mouseout',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ s7fixut3iwr9omlcqoeouztekqh9we1 435577 435576 2022-07-25T12:30:12Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(window.getComputedStyle(rodzic, null).getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); if(sticky_x){ FunStickyXY("left","right","width"); } var sticky_y=$(element_g).hasClass('mw-sticky-y'); if(sticky_y){ FunStickyXY("top","bottom","height"); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ fsflzogf2viiv2z7fapqz4tc27pb69n 435579 435577 2022-07-25T12:58:27Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=0; var comp_rodz=window.getComputedStyle(rodzic, null); for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_y)&&(sticky_y)){ FunStickyXY("top","bottom","height","height"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ e3cedlw9jsnk2ick3k0gy6ty0z5cyw1 435580 435579 2022-07-25T12:59:04Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=0; var comp_rodz=window.getComputedStyle(rodzic, null); for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_y)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ 79lb893fatoin05r6dbb0s2an6s8t3y 435581 435580 2022-07-25T12:59:53Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; var comp_rodz=window.getComputedStyle(rodzic, null); for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_y)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ 0853wuiyyumeoa658am8w7ao8g3fwx1 435582 435581 2022-07-25T13:02:32Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_y)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ a9s359xk0l0ltz65digejbesu1wgmf3 435583 435582 2022-07-25T13:03:44Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ dpyzh9qgehfipvrisxrtlt63bz268qd 435584 435583 2022-07-25T13:04:46Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; alert(width_rodzic) if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ ezgwv93cuwsgxaz0ndmkkdnwc67fet0 435585 435584 2022-07-25T13:05:29Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; alert(width_rodzic+","+width_box) if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ si2j7d4d8dwir79ri76j1azul0635d3 435586 435585 2022-07-25T13:08:19Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; alert(width_rodzic+","+"max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))) if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ 2ubeez2xvebzcajmce689jhmxgvn40x 435587 435586 2022-07-25T13:10:51Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; alert(element_g.style.maxWidth+",p") } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ 8xee97ph1b1tnbqo6nepmks7m5ktvbx 435588 435587 2022-07-25T13:11:39Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic+"px"; alert(element_g.style.maxWidth+",p,"+element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]) } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ 7f3yrwgvnh44pm9vvv71i7wtsrqnn9p 435589 435588 2022-07-25T13:12:24Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ baudb6a9xkmrmh96xb2gk6lt679hfd2 435593 435589 2022-07-25T13:20:51Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style[width_box]=element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ r0xblc8f7w80giumjwamn0oia8dphhd 435594 435593 2022-07-25T13:21:59Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style[width_box]="700px"; element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ g846o9dexpiqx3o0ufv75buvkpur6h7 435595 435594 2022-07-25T13:23:04Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ baudb6a9xkmrmh96xb2gk6lt679hfd2 435610 435595 2022-07-25T15:12:27Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=$(element).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } }; var sticky_x=$(element_g).hasClass('mw-optimal-x'); var sticky_y=$(element_g).hasClass('mw-optimal-y'); if(sticky_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); 0bkb8kn1z2nc4llpn4214tiged6pm79 435611 435610 2022-07-25T15:15:45Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=$(element).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-optimal-x'); var sticky_y=$(element_g).hasClass('mw-optimal-y'); if(sticky_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); q7fmjx04zzp1h0z4axqz4m81tdzjbis 435612 435611 2022-07-25T15:28:34Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=$(element).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-optimal-x'); var sticky_y=$(element_g).hasClass('mw-optimal-y'); if(sticky_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); tny8l6ty5kead1x78e2jylkqiays7s4 435613 435612 2022-07-25T15:29:54Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=$(element).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); levfl0y23pbcz9o6ia9gj1bdh8tgbq1 435619 435613 2022-07-25T16:03:38Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=$(element).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); alert(optimal_x) if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); kupi8n37koqmfsbfsmgz7q48kobz9ku 435620 435619 2022-07-25T16:05:41Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=$(element).getPropertyValue([width]); }); alert(width_rodzic); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); 7j54x2euwf9z12ho1yd5s9hte2nrdxc 435621 435620 2022-07-25T16:06:57Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=element.getPropertyValue([width]); }); alert(width_rodzic); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); 1pv2uczzkgxnf9t26exd3j5nsypqseh 435622 435621 2022-07-25T16:08:38Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); alert(width_rodzic); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); ckxmp49fmweif4uhi6by9zflnk48m78 435623 435622 2022-07-25T16:09:21Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); iy1yj4xt0861zq5cs0oyb87hhkgttht 435624 435623 2022-07-25T16:11:17Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); //$('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); nmm1goxf0810qgy7fixtd1q9p2iuw8e 435626 435624 2022-07-25T16:16:23Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseover",OptimalXY); //$('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); g1un275a4tkj7y8n8vmqchrv2b8t6yu 435627 435626 2022-07-25T17:02:49Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element){ element.addEventListener('mouseover', OptimalXY, false); }); //$('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); o3fqqev677butq41ybenzsp6ghf0vn0 435628 435627 2022-07-25T17:03:32Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element){ element.addEventListener('mouseover', OptimalXY, true); }); //$('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); jnqrx48s98rwye8g1sf5dtg0lli8ds8 435629 435628 2022-07-25T17:05:50Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); lnoweuz25jgthxbld19zl9qrup48u43 435630 435629 2022-07-25T17:10:59Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); $(window).on('resize', OptimalXY); 9p0hnow6sixq25651tbgs1rt5whfilt 435631 435630 2022-07-25T17:13:02Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); lnoweuz25jgthxbld19zl9qrup48u43 435632 435631 2022-07-25T17:21:27Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x:hover, *.mw-optimal-y:hover').on("mouseout",OptimalXY); ka4c9u5zm04pn7wn3vpi7ifeponbq65 435633 435632 2022-07-25T17:23:13Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x, *.mw-optimal-y').on("mouseout",OptimalXY); lnoweuz25jgthxbld19zl9qrup48u43 435634 435633 2022-07-25T17:23:47Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } if($(element_g).hasClass('mw-optimal-x')){ if(!$(element_g).hasClass('mw-expands-optimal-x')){ element_g.classList.add('mw-expands-optimal-x'); }else{ element_g.classList.remove('mw-expands-optimal-x'); } } if($(element_g).hasClass('mw-optimal-y')){ if(!$(element_g).hasClass('mw-expands-optimal-y')){ element_g.classList.add('mw-expands-optimal-y'); }else{ element_g.classList.remove('mw-expands-optimal-y'); } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $('*.mw-optimal-x:not(:hover), *.mw-optimal-y:not(:hover)').on("mouseout",OptimalXY); nltov7sfl76cmagae5fbfwao7vdr3kb 435635 435634 2022-07-25T17:34:03Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $(window).on("resize",OptimalXY); c0ulpkf9lyhqwg37qacqmbvgo5z1udc 435663 435635 2022-07-26T11:16:43Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width_box]<parseFloat(width_rodzic)){ if(width_box=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width_box=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width]<parseFloat(width_rodzic)){ if(width=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $(window).on("resize",OptimalXY); tl5efjyotf0okqmfqif4rbjdd32k7mo 435664 435663 2022-07-26T11:21:15Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width_box]>parseFloat(width_rodzic)){ if(width_box=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width_box=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width]>parseFloat(width_rodzic)){ if(width=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $(window).on("resize",OptimalXY); 9urie863xrvxr9ddz2p5sx6j8ymfl9s 435666 435664 2022-07-26T11:30:29Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ //element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width_box]>parseFloat(width_rodzic)){ if(width_box=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width_box=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ //element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width]>parseFloat(width_rodzic)){ if(width=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $(window).on("resize",OptimalXY); 0gg2zd275gdv7cvpbpyvdjawpvch66w 435667 435666 2022-07-26T11:37:16Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="none"; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width_box]>parseFloat(width_rodzic)){ if(width_box=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width_box=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="none"; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width]>parseFloat(width_rodzic)){ if(width=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } }else{ if(width=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $(window).on("resize",OptimalXY); rj2kyhyenul0nz8jcd3if09fhp59za5 435668 435667 2022-07-26T11:42:34Z Persino 2851 javascript text/javascript mw.loader.load( '//pl.wikibooks.org/w/index.php?action=raw&ctype=text/javascript&title=Wikipedysta:Persino/Gadget-StronicowyParser.js', 'text/javascript', true ); /**/ /*Funkcja do liczenia, czy nastąpiło przepełnienie poziome lub pionowe*/ function ScrollBarOverflow(){ $('*.mw-overflow-x, *.mw-overflow-y').each(function(i,element_g){ /*start overflow*/ var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var overflow=comp.getPropertyValue("overflow"); var overflow_x=$(element_g).hasClass('mw-overflow-x'); if(overflow_x){ var overflowX=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-x")); if((overflowX)&&(overflowX=="auto")){ const hasHorizontalScrollbar = element_g.scrollWidth > element_g.clientWidth; // true lub false if(hasHorizontalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-x"); }else{ element_g.classList.remove("mw-scrollbar-overflow-x"); } } } var overflow_y=$(element_g).hasClass('mw-overflow-y'); if(overflow_y){ var overflowY=(((overflow)&&(overflow!=""))?overflow:comp.getPropertyValue("overflow-y")); if((overflowY)&&(overflowY=="auto")){ const hasVerticalScrollbar = element_g.scrollHeight > element_g.clientHeight; // true lub false if(hasVerticalScrollbar){ element_g.classList.add("mw-scrollbar-overflow-y"); }else{ element_g.classList.remove("mw-scrollbar-overflow-y"); } } } /*koniec overflow*/ }); } $(ScrollBarOverflow); $(window).on('resize', ScrollBarOverflow); /*Funkcja symulująca właściwości position:sticky, wszędzie tam, gdzie nie można go użyć.*/ function StickyXY(){ $('*.mw-sticky-x, *.mw-sticky-y').each(function(i,element_g){ var comp=window.getComputedStyle(element_g, null); function FunStickyXY(top,bottom,height,width_box){ var height_sticky=0; $('#vector-sticky-header').each(function(i,el){ var rect_sticky=el.getBoundingClientRect(); height_sticky=rect_sticky[height]; }); if(element_g.style[top+"Old"]===undefined){ element_g.style[top+"Old"]=parseFloat(comp.getPropertyValue(top)); element_g.style[top+"Old"]=((!isNaN(element_g.style[top+"Old"]))?element_g.style[top+"Old"]:0); } if(!element_g.style[bottom+"Old"]===undefined){ element_g.style[bottom+"Old"]=parseFloat(comp.getPropertyValue(bottom)); element_g.style[bottom+"Old"]=((!isNaN(element_g.style[bottom+"Old"]))?element_g.style[bottom+"Old"]:0); } var topold=element_g.style[top+"Old"]+height_sticky+5; var margintop=parseFloat(comp.getPropertyValue("margin-"+top)); margintop=((!isNaN(margintop))?margintop:0); var marginbottom=parseFloat(comp.getPropertyValue("margin-"+bottom)); marginbottom=((!isNaN(marginbottom))?marginbottom:0); var przodek_height=undefined; var rect_dziecko=element_g.getBoundingClientRect(); var rect_rodzic=element_g.parentNode.getBoundingClientRect(); var top_ab=rect_rodzic[top]-margintop; var bottom_ab=rect_rodzic[bottom]-marginbottom; var height_obj=rect_dziecko[height]+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+margintop+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; var width_rodzic=null; for(var rodzic=element_g.parentNode;((rodzic!=null)&&(rodzic!=document));rodzic=rodzic.parentNode){ var comp_rodz=window.getComputedStyle(rodzic, null); var height_rodzic=parseFloat(comp_rodz.getPropertyValue([height])); if(height_rodzic>=height_obj){ przodek_height=height_rodzic; width_rodzic=width_box?comp_rodz.getPropertyValue([width_box]):null; break; } } if(!przodek_height){ return; } var top_obj=(((top_ab>=0)?0:(-top_ab)))+((top_ab<=0)?(topold):(Math.max(0,topold-top_ab))); var wysokosc=top_obj+margintop+rect_dziecko[height]+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom; if(wysokosc>=przodek_height){ element_g.style[top]="auto"; element_g.style[bottom]=(((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)+"px"; }else{ element_g.style[top]=top_obj+"px"; element_g.style[bottom]="auto"; } element_g.style[height]="auto"; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="100%"; element_g.style[height]=(element_g["scroll"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]+1)+"px"; if(width_rodzic){ element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="none"; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width_box]>parseFloat(width_rodzic)){ if(width_box=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } element_g.style["max"+(width_box.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; }else{ if(width_box=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } var wys=document.documentElement["client"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]; element_g.style["max"+(height.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=Math.min((przodek_height-(((top_ab<=0)?(topold):(Math.max(0,topold-top_ab)))+((bottom_ab<=0)?(element_g.style[bottom+"Old"]):(Math.max(0,element_g.style[bottom+"Old"]-bottom_ab)))+marginbottom)),wys-((rect_rodzic[top]>=0)?(rect_rodzic[top]):(0))-((wys-rect_rodzic[bottom]>=0)?(wys-rect_rodzic[bottom]):(0))-( (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]<=0))?(height_sticky+10): (((rect_rodzic[top]>=0)&&(wys-rect_rodzic[bottom]<=0))?(5): (((rect_rodzic[top]<=0)&&(wys-rect_rodzic[bottom]>=0))?(height_sticky+5):0) ) ) ))+"px"; ScrollBarOverflow(); } var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var sticky_x=$(element_g).hasClass('mw-sticky-x'); var sticky_y=$(element_g).hasClass('mw-sticky-y'); if((sticky_x)&&(!sticky_y)){ FunStickyXY("left","right","width","height"); }else if((!sticky_x)&&(sticky_y)){ FunStickyXY("top","bottom","height","width"); }else{ FunStickyXY("left","right","width",null); FunStickyXY("top","bottom","height",null); } }); } $(StickyXY); $(window).on('scroll', StickyXY); $(window).on('resize', StickyXY); /*Uruchamianie dodatkowych zdarzeń do StickyXY*/ function StickyXYBeginEnd(){ $("*.mw-sticky-x, *.mw-sticky-y").on('transitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionstart',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionrun',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitioncancel',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('transitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('webkittransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('moztransitionend',StickyXY); $("*.mw-sticky-x, *.mw-sticky-y").on('otransitionend',StickyXY); }; $(StickyXYBeginEnd); /*Koniec dodatkowych zdarzeń*/ /*Uruchamianie dodatkowych funkcji, niż standardowe, w href w linkach rozwijanej tabeli TABLE lub ramki DIV, jeśli ona generuje zwiększenie rozmiarów, aby w rodzicu pojawił się pasek przewijania, z dodatkowymi opcjami generowanej przez arkusz kalkulacyjny CSS*/ function RamkiTableIDiv(obiekt,id_tabeli_lub_ramki,id_nazwa_a,fun_obiektu){ $(obiekt).each(function(i,element_f){ return new Promise(function(resolve,reject){ var czas=0; function Czekaj(){ if(czas>30000){ reject(); } var collapsebutton=$(element_f).find('a#'+id_nazwa_a+i); if((collapsebutton!==null)&&(collapsebutton.length>0)){ var tabele_lub_ramki=collapsebutton.parents('#'+id_tabeli_lub_ramki+i); if((tabele_lub_ramki===null)||(tabele_lub_ramki.length==0)){reject();} resolve(i); }else{ czas+=100; setTimeout(Czekaj,100); } } Czekaj(); }).then(function(i){ $('*.mw-overflow-x a#'+id_nazwa_a+i+', *.mw-overflow-y a#'+id_nazwa_a+i).each(function(j,element_g){ var href=element_g.getAttribute('href'); if((href!=null)&&(href!="")){ var col="[\\s;\\(\\,]*javascript:"+fun_obiektu+"\\s*\\(\\s*"+i+"\\s*\\)[\\s;\\)\\,]*"; var re_frame = new RegExp(col,'g'); var re_javascript=new RegExp("^[\\s;]*javascript:"); if((re_javascript.test(href))&&(re_frame.test(href))){ element_g.setAttribute('href',href.replace(/[;\s]*$/g,"")+';javascript:ScrollBarOverflow();javascript:StickyXY();') } } }); }); }); }; /*Dla menu rozwijanego tabeli TABLE zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("table.collapsible",'collapsibleTable','collapseButton','collapseTable'); /*Dla menu rozwijanej ramki DIV zdefiniowanej na stronie MediaWiki:Common.js*/ RamkiTableIDiv("div.NavFrame",'NavFrame','NavToggle','toggleNavigationBar'); /*Koniec dodatkowych funkcji*/ /*Funkcja do ustawiania maksymalnego rozmiaru dziecka, względem rodzica, przy position:absolute*/ function OptimalXY(){ $('*.mw-optimal-x, *.mw-optimal-y').each(function(i,element_g){ function FunOptimalXY(width){ var width_rodzic=null; $(element_g).parent().first().each(function(i,element){ width_rodzic=window.getComputedStyle(element,null).getPropertyValue([width]); }); if(width_rodzic!==null){ element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]="none"; var rect_dziecko=element_g.getBoundingClientRect(); if(rect_dziecko[width]>parseFloat(width_rodzic)){ if(width=="width"){ element_g.classList.add('mw-scrollbar-overflow-x'); }else{ element_g.classList.add('mw-scrollbar-overflow-y'); } element_g.style["max"+(width.replace(/^(.)/g,function(s){return s.toUpperCase();}))]=width_rodzic; }else{ if(width=="width"){ element_g.classList.remove('mw-scrollbar-overflow-x'); }else{ element_g.classList.remove('mw-scrollbar-overflow-y'); } } } }; var comp=window.getComputedStyle(element_g, null); var display=comp.getPropertyValue("display"); if(display=="none"){return;} var position=comp.getPropertyValue("position"); if(position!="absolute"){return;} var optimal_x=$(element_g).hasClass('mw-optimal-x'); var optimal_y=$(element_g).hasClass('mw-optimal-y'); if(optimal_x){ FunOptimalXY("width"); } if(optimal_y){ FunOptimalXY("height"); } }); } $(OptimalXY); $(window).on("resize",OptimalXY); lbqwqusohh1083fz4l0zjxdh3acfm0r