mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-11-04 01:18:09 +00:00 
			
		
		
		
	Added restore functionality to small logo
This commit is contained in:
		@@ -105,12 +105,11 @@ document.addEventListener("DOMContentLoaded", function() {
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    // Clicking the header's H1 will restore the original view
 | 
			
		||||
    const headerH1 = document.querySelector("header h1");
 | 
			
		||||
    if (headerH1) {
 | 
			
		||||
        headerH1.style.cursor = "pointer";
 | 
			
		||||
        headerH1.addEventListener("click", restoreOriginal);
 | 
			
		||||
    }
 | 
			
		||||
    document.querySelectorAll(".js-restore").forEach(el => {
 | 
			
		||||
        el.style.cursor = "pointer";
 | 
			
		||||
        el.addEventListener("click", restoreOriginal);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    // On full page load, check URL parameters to auto-open an iframe
 | 
			
		||||
    window.addEventListener("load", function() {
 | 
			
		||||
 
 | 
			
		||||
@@ -32,7 +32,7 @@
 | 
			
		||||
      {% endif %}
 | 
			
		||||
    >
 | 
			
		||||
        <div class="container">
 | 
			
		||||
            <header class="header">
 | 
			
		||||
            <header class="header js-restore">
 | 
			
		||||
              <img
 | 
			
		||||
                src="{{ url_for('static', filename=platform.logo.cache) }}"
 | 
			
		||||
                alt="logo"
 | 
			
		||||
 
 | 
			
		||||
@@ -54,7 +54,7 @@
 | 
			
		||||
    </button>
 | 
			
		||||
    <div class="collapse navbar-collapse" id="navbarNav{{menu_type}}">
 | 
			
		||||
        {% if menu_type == "header" %}
 | 
			
		||||
        <a class="navbar-brand d-flex align-items-center d-none" id="navbar_logo" href="/">
 | 
			
		||||
        <a class="navbar-brand d-flex align-items-center d-none js-restore" id="navbar_logo" href="#">
 | 
			
		||||
            <img 
 | 
			
		||||
                src="{{ url_for('static', filename=platform.logo.cache) }}" 
 | 
			
		||||
                alt="{{ platform.titel }}" 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user