Overview
Comment: | Adding to top button to all pages. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | view |
Files: | files | file ages | folders |
SHA3-256: |
69605c9840a8c49f840dd2c8f0ae1419 |
User & Date: | florian 2024-07-17 12:31:35 |
Context
2024-07-17
| ||
12:33 | Tweaked position of search icon in search form. check-in: 06e0f136e7 user: florian tags: view | |
12:31 | Adding to top button to all pages. check-in: 69605c9840 user: florian tags: view | |
12:23 | Centered search icon in search form. check-in: 574071fe99 user: florian tags: view | |
Changes
Changes to luna_lms/webapp.py.
︙ | ︙ | |||
1692 1693 1694 1695 1696 1697 1698 | return_str += content return_str += '</div>' return_str += '<div class="w3-col luna-l2 luna-m2 spacer"></div>' | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 | return_str += content return_str += '</div>' return_str += '<div class="w3-col luna-l2 luna-m2 spacer"></div>' return_str += '''<div class="w3-col luna-l1 luna-m1"> <div id="totop" aria-hidden="true" style="opacity: 0.0;"> <a href="#top"> <span class="totop-icon"></span> </a> </div> </div>''' return_str += '''<script> window.addEventListener('DOMContentLoaded', function() { window.addEventListener("scroll", function(){ var scroll_y = window.scrollY; var max_opacity = 0.9; var opacity = max_opacity; var min_scroll = 120; var max_scroll = 480; if (scroll_y < min_scroll) { opacity = 0.0; } else if (scroll_y < max_scroll) { opacity = max_opacity * (scroll_y - min_scroll) / (max_scroll - min_scroll) ; } document.getElementById('totop').style.opacity = opacity; }); }); </script>''' return_str += '</main>' return_str += HTML_FOOT return return_str |
︙ | ︙ | |||
1803 1804 1805 1806 1807 1808 1809 | return_str += '<a class="button_inactive"><div class="image_spacer"><span class="button-icon account_add-icon"></span></div>{}</a>'.format(_("Konto anlegen")) return_str += '</div>' return_str += '<div class="w3-col luna-l2 luna-m2 spacer"></div>' | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 | return_str += '<a class="button_inactive"><div class="image_spacer"><span class="button-icon account_add-icon"></span></div>{}</a>'.format(_("Konto anlegen")) return_str += '</div>' return_str += '<div class="w3-col luna-l2 luna-m2 spacer"></div>' return_str += '''<div class="w3-col luna-l1 luna-m1"> <div id="totop" aria-hidden="true" style="opacity: 0.0;"> <a href="#top"> <span class="totop-icon"></span> </a> </div> </div>''' return_str += '''<script> window.addEventListener('DOMContentLoaded', function() { window.addEventListener("scroll", function(){ var scroll_y = window.scrollY; var max_opacity = 0.9; var opacity = max_opacity; var min_scroll = 120; var max_scroll = 480; if (scroll_y < min_scroll) { opacity = 0.0; } else if (scroll_y < max_scroll) { opacity = max_opacity * (scroll_y - min_scroll) / (max_scroll - min_scroll) ; } document.getElementById('totop').style.opacity = opacity; }); }); </script>''' return_str += '</main>' return_str += HTML_FOOT return return_str |
︙ | ︙ | |||
2375 2376 2377 2378 2379 2380 2381 | return_str += '</div>' return_str += '</div>' return_str += '</article>' return_str += '<div class="w3-col luna-l1 luna-m0 spacer"></div>' | | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 | return_str += '</div>' return_str += '</div>' return_str += '</article>' return_str += '<div class="w3-col luna-l1 luna-m0 spacer"></div>' return_str += '''<div class="w3-col luna-l1 luna-m1"> <div id="totop" aria-hidden="true" style="opacity: 0.0;"> <a href="#top"> <span class="totop-icon"></span> </a> </div> </div>''' return_str += '''<script> window.addEventListener('DOMContentLoaded', function() { window.addEventListener("scroll", function(){ var scroll_y = window.scrollY; var max_opacity = 0.9; var opacity = max_opacity; var min_scroll = 120; var max_scroll = 480; if (scroll_y < min_scroll) { opacity = 0.0; } else if (scroll_y < max_scroll) { opacity = max_opacity * (scroll_y - min_scroll) / (max_scroll - min_scroll) ; } document.getElementById('totop').style.opacity = opacity; }); }); </script>''' return_str += '</main>' return_str += HTML_FOOT.replace('<a href="/report">', '<a href="/report?course_id={}&content_id={}&mode={}">'.format(course_id, learning_content_id, mode)) return return_str |
︙ | ︙ | |||
2645 2646 2647 2648 2649 2650 2651 | return_str += '<a href="/" class="browse"><div class="image_spacer"><span class="back-icon"></span></div>Zurück zur Start-Seite</a>' return_str += '</div>' return_str += '<div class="w3-col luna-l2 luna-m2 spacer"></div>' | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 | return_str += '<a href="/" class="browse"><div class="image_spacer"><span class="back-icon"></span></div>Zurück zur Start-Seite</a>' return_str += '</div>' return_str += '<div class="w3-col luna-l2 luna-m2 spacer"></div>' return_str += '''<div class="w3-col luna-l1 luna-m1"> <div id="totop" aria-hidden="true" style="opacity: 0.0;"> <a href="#top"> <span class="totop-icon"></span> </a> </div> </div>''' return_str += '''<script> window.addEventListener('DOMContentLoaded', function() { window.addEventListener("scroll", function(){ var scroll_y = window.scrollY; var max_opacity = 0.9; var opacity = max_opacity; var min_scroll = 120; var max_scroll = 480; if (scroll_y < min_scroll) { opacity = 0.0; } else if (scroll_y < max_scroll) { opacity = max_opacity * (scroll_y - min_scroll) / (max_scroll - min_scroll) ; } document.getElementById('totop').style.opacity = opacity; }); }); </script>''' return_str += '</main>' return_str += HTML_FOOT return return_str |
︙ | ︙ |