|
14 | 14 |
|
15 | 15 | <script>
|
16 | 16 | // Checks if URL ends with "index.html?dark=true"
|
17 |
| - if (window.location.search.search(/[?&]theme=dark2/) !== -1) { |
| 17 | + if (window.location.search.search(/[?&]theme=dark3/) !== -1) { |
| 18 | + document.write("<link rel=\"stylesheet\" href=\"web/default_dark3.min.css\">"); |
| 19 | + document.write("<link rel=\"stylesheet\" href=\"web/style_dark3.css\">"); |
| 20 | + } |
| 21 | + else if (window.location.search.search(/[?&]theme=dark2/) !== -1) { |
18 | 22 | document.write("<link rel=\"stylesheet\" href=\"web/default_dark2.min.css\">");
|
19 | 23 | document.write("<link rel=\"stylesheet\" href=\"web/style_dark2.css\">");
|
20 |
| - } |
| 24 | + } |
21 | 25 | else if (window.location.search.search(/[?&]theme=dark1/) !== -1) {
|
22 | 26 | document.write("<link rel=\"stylesheet\" href=\"web/default_dark1.min.css\">");
|
23 | 27 | document.write("<link rel=\"stylesheet\" href=\"web/style_dark1.css\">");
|
|
50 | 54 |
|
51 | 55 | <body>
|
52 | 56 | <header>
|
53 |
| - <aside>December 22, 2021</aside> |
| 57 | + <aside>December 24, 2021</aside> |
54 | 58 | <a href="https://gto76.github.io" rel="author">Jure Šorn</a>
|
55 | 59 | </header>
|
56 | 60 |
|
57 |
| - <div><h1 id="comprehensivepythoncheatsheet">Comprehensive Python Cheatsheet</h1><p class="banner"><sup><a href="https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md">Download text file</a>, <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">Buy PDF</a>, <a href="https://github.com/gto76/python-cheatsheet">Fork me on GitHub</a>, <a href="https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions">Check out FAQ</a> or <a href="index.html?theme=dark2">Switch to dark theme</a>. |
| 61 | + <div><h1 id="comprehensivepythoncheatsheet">Comprehensive Python Cheatsheet</h1><p class="banner"><sup><a href="https://raw.githubusercontent.com/gto76/python-cheatsheet/main/README.md">Download text file</a>, <a href="https://transactions.sendowl.com/products/78175486/4422834F/view">Buy PDF</a>, <a href="https://github.com/gto76/python-cheatsheet">Fork me on GitHub</a>, <a href="https://github.com/gto76/python-cheatsheet/wiki/Frequently-Asked-Questions">Check out FAQ</a> or <a href="index.html?theme=dark3">Switch to dark theme</a>. |
58 | 62 | </sup></p><p class="banner"><img src="web/image_888.jpeg" alt="Monty Python"></p><script>
|
59 |
| - // Changes the image and link to theme if URL ends with "index.html?dark=true". |
| 63 | + // Changes the image and link to theme if URL ends with "index.html?theme=dark". |
60 | 64 | if (window.location.search.search(/[?&]theme=dark/) !== -1) {
|
61 | 65 |
|
62 | 66 | var link_to_theme = document.createElement("a")
|
|
67 | 71 | var img_dark = document.createElement("img");
|
68 | 72 | img_dark.src = "web/image_orig_blue6.png";
|
69 | 73 | img_dark.alt = "Monthy Python";
|
70 |
| - if (window.location.search.search(/[?&]theme=dark2/) !== -1) { |
| 74 | + if ((window.location.search.search(/[?&]theme=dark2/) !== -1) || |
| 75 | + (window.location.search.search(/[?&]theme=dark3/) !== -1)) { |
71 | 76 | img_dark.style = "width: 910px;";
|
72 | 77 | } else {
|
73 | 78 | img_dark.style = "width: 960px;";
|
|
2870 | 2875 |
|
2871 | 2876 |
|
2872 | 2877 | <footer>
|
2873 |
| - <aside>December 22, 2021</aside> |
| 2878 | + <aside>December 24, 2021</aside> |
2874 | 2879 | <a href="https://gto76.github.io" rel="author">Jure Šorn</a>
|
2875 | 2880 | </footer>
|
2876 | 2881 |
|
|
0 commit comments