1jQuery(document).ready(function ($) { 2 /* ------------------------------------------------------- 3 OS detect 4 -------------------------------------------------------- */ 5 function getOS() { 6 var platform = window.navigator.platform, 7 macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'], 8 windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'], 9 iosPlatforms = ['iPhone', 'iPad', 'iPod'], 10 userAgent = window.navigator.userAgent, 11 os = null; 12 13 if (macosPlatforms.indexOf(platform) !== -1) { 14 os = 'MacOS'; 15 } else if (iosPlatforms.indexOf(platform) !== -1) { 16 os = 'iOS'; 17 } else if (windowsPlatforms.indexOf(platform) !== -1) { 18 os = 'WinOS'; 19 } else if (/Android/.test(userAgent)) { 20 os = 'Android'; 21 } else if (/Linux/.test(platform)) { 22 os = 'Linux'; 23 } 24 25 if (os) { 26 // Remove d-none from matching OS 27 $('.' + os).removeClass('d-none'); 28 // Remove active class from non-matching tabs 29 $('.WinOS-Tab').removeClass('active show'); 30 // Add active class to matching tab 31 $('.' + os + '-Tab').addClass('active show'); 32 // Remove active class from non-matching sliders 33 $('.WinOS-Slider').removeClass('active'); 34 // Add active class to matching slider 35 $('.' + os + '-Slider').addClass('active'); } 36 } 37 //OS output 38 getOS(); 39 40 // Startet das Modal und gleichzeitig den Download für die OS-Detect Buttons 41// $('.popup_trigger').click(function () { 42// $('#popup_window').modal('show'); 43// }); 44 45 /* ------------------------------------------------------- 46 Smooth scrolling: 47 e.g. freeoffice.com/en/tips-and-tricks-linux 48 -------------------------------------------------------- */ 49 function scrollNav() { 50 $('.js-smooth-scroll a').click(function () { 51 $('.active').removeClass('active'); 52 $(this).addClass("active"); 53 54 $('html, body').stop().animate({ 55 scrollTop: $($(this).attr('href')).offset().top - 120 56 }, 300); 57 return false; 58 }); 59 } 60 scrollNav(); 61 62 // Toggle header visibility when navbar toggler is clicked 63 $('button.navbar-toggler').on('click', function(e) { 64 $('header').toggleClass("d-none"); 65 e.preventDefault(); 66 }); 67 68 // Weitere Funktion für die Tabs hinzufügen 69 function updateTabs() { 70 // Implementieren Sie hier die Logik für die Tabs basierend auf dem Betriebssystem, wenn erforderlich 71 } 72 updateTabs(); // Funktion aufrufen 73}); 74 75/* Aktuelles Jahr automatisch einstellen */ 76/* Aktuelles Jahr automatisch einstellen */ 77document.addEventListener('DOMContentLoaded', function () { 78 const year = new Date().getFullYear(); 79 80 const Year = document.getElementById('current-year'); 81 const Year2 = document.getElementById('current-year2'); 82 83 if (Year) { 84 Year.textContent = year; 85 } 86 87 if (Year2) { 88 Year2.textContent = year; 89 } 90});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.