PageSourceSearch

https://www.pfarrverein.ch/_kirchenweb/js/classJs/Blue/Core/KwInternetExplorerMessage.min.js

js pfarrverein.ch collected 2026-10-02 22:06:31 UTC 8,156 bytes, 57 lines download raw bytes

1"use strict";
2
3/**
4 * Core/KwInternetExplorerMessage.js
5 *
6 * @description: shows an message, if someone uses the internet-explorer
7 *
8 * @author rw
9 * @since 04.09.2019
10 *
11 * Updates:
12 * @update
13 */
14const bannerDe = "\n\t\t<div class=\"ie-banner\">Warnung: Sie ben\xFCtzen den Internet Explorer. <span class=\"more\">Mehr erfahren</span></div>\n\t";
15const bannerFr = "\n\t\t<div class=\"ie-banner\">Attention : vous utilisez Internet Explorer. <span class=\"more\">En savoir plus</span></div>\n\t";
16const popupDe = "\n\t\t<div class=\"ie-message\">\n\t\t\t<div class=\"close\" title=\"Warnung schliessen\">\xD7</div>\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<div class=\"title\">Warnung!</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<p>\n\t\t\t\t\tDas kirchenweb mein Konto ist nicht f\xFCr den Microsoft Internet Explorer optimiert. \n\t\t\t\t\tMicrosoft selbst warnt vor der Verwendung des Programmes: <a href=\"https://techcommunity.microsoft.com/t5/Windows-IT-Pro-Blog/The-perils-of-using-Internet-Explorer-as-your-default-browser/ba-p/331732\" target=\"_blank\">hier</a>.<br>Weshalb, k\xF6nnen Sie <a href=\"https://www.kirchenweb.ch/internet-explorer\" target=\"_blank\">hier</a> nachlesen.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t\t<div class=\"subtitle\">Wir empfehlen Ihnen einen dieser modernen Web-Browser:</div>\n\t\t\t\t<div class=\"browsers\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.mozilla.org/de/firefox/browsers/\" target=\"_blank\" title=\"Mozilla Firefox\" class=\"browser\"><i class=\"fab fa-firefox-browser\"></i><br>Mozilla Firefox</a>\n\t\t\t\t\t\t<a href=\"https://www.mozilla.org/de/firefox/browsers/\" target=\"_blank\" class=\"button\">Herunterladen</a><br>\n\t\t\t\t\t\t<a href=\"https://support.mozilla.org/de/kb/lesezeichen-aus-internet-explorer-importieren\" target=\"_blank\" class=\"button\">Favoriten \xFCbertragen</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.google.com/chrome/\" target=\"_blank\" title=\"Google Chrome\" class=\"browser\"><i class=\"fab fa-chrome\"></i><br>Google Chrome</a>\n\t\t\t\t\t\t<a href=\"https://www.google.com/chrome/\" target=\"_blank\" class=\"button\">Herunterladen</a><br>\n\t\t\t\t\t\t<a href=\"https://support.google.com/chrome/answer/96816?hl=de\" target=\"_blank\" class=\"button\">Favoriten \xFCbertragen</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.opera.com/de\" target=\"_blank\" title=\"Opera\" class=\"browser\"><i class=\"fab fa-opera\"></i><br>Opera</a>\n\t\t\t\t\t\t<a href=\"https://www.opera.com/de/computer/thanks?ni=stable\" target=\"_blank\" class=\"button\">Herunterladen</a><br>\n\t\t\t\t\t\t<a href=\"https://www.opera.com/de/features/bookmarks\" target=\"_blank\" class=\"button\">Favoriten \xFCbertragen</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.microsoft.com/de-de/edge\" target=\"_blank\" title=\"Microsoft Edge\" class=\"browser\"><i class=\"fab fa-edge\"></i><br>Microsoft Edge</a>\n\t\t\t\t\t\t<a href=\"https://www.microsoft.com/de-de/edge\" target=\"_blank\" class=\"button\">Herunterladen</a><br>\n\t\t\t\t\t\t<a href=\"https://support.microsoft.com/de-ch/help/4028355/microsoft-edge-import-favorites\" target=\"_blank\" class=\"button\">Favoriten \xFCbertragen</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"note\">Falls Sie den Web-Browser nicht selbst verwalten/installieren d\xFCrfen, setzen Sie sich mit Ihrem IT-Zust\xE4ndigen in Verbindung.</div>\n\t\t\t</div>\n\t\t</div>\n\t";
17const popupFr = "\n\t\t<div class=\"ie-message\">\n\t\t\t<div class=\"close\" title=\"Fermer l'alerte\">\xD7</div>\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<div class=\"title\">Attention !</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<p>\n\t\t\t\t\tMicrosoft Internet Explorer n'est pas optimis\xE9 pour le \"mon compte\" de kirchenweb.ch. \n\t\t\t\t\tMicrosoft lui-m\xEAme d\xE9conseille l'utilisation de ce programme : <a href=\"https://techcommunity.microsoft.com/t5/Windows-IT-Pro-Blog/The-perils-of-using-Internet-Explorer-as-your-default-browser/ba-p/331732\" target=\"_blank\">ici</a>.\n\t\t\t\t\t<br>Pourquoi exactement, vous pouvez lire <a href=\"https://www.kirchenweb.ch/internet-explorer\" target=\"_blank\">ici</a>.\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t\t\t<div class=\"subtitle\">Les navigateurs web modernes suivants sont une bonne alternative :</div>\n\t\t\t\t<div class=\"browsers\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.mozilla.org/fr/firefox/browsers/\" target=\"_blank\" title=\"Mozilla Firefox\" class=\"browser\"><i class=\"fab fa-firefox-browser\"></i><br>Mozilla Firefox</a>\n\t\t\t\t\t\t<a href=\"https://www.mozilla.org/fr/firefox/browsers/\" target=\"_blank\" class=\"button\">T\xE9l\xE9charger</a><br>\n\t\t\t\t\t\t<a href=\"https://support.mozilla.org/fr/kb/importer-favoris-et-autres-donnees-internet-explorer-ou-edge\" target=\"_blank\" class=\"button\">Transf\xE9rer les favoris</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.google.com/chrome/\" target=\"_blank\" title=\"Google Chrome\" class=\"browser\"><i class=\"fab fa-chrome\"></i><br>Google Chrome</a>\n\t\t\t\t\t\t<a href=\"https://www.google.com/chrome/\" target=\"_blank\" class=\"button\">T\xE9l\xE9charger</a><br>\n\t\t\t\t\t\t<a href=\"https://support.google.com/chrome/answer/96816?hl=fr\" target=\"_blank\" class=\"button\">Transf\xE9rer les favoris</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.opera.com/fr\" target=\"_blank\" title=\"Opera\" class=\"browser\"><i class=\"fab fa-opera\"></i><br>Opera</a>\n\t\t\t\t\t\t<a href=\"https://www.opera.com/fr/computer/thanks?ni=stable\" target=\"_blank\" class=\"button\">T\xE9l\xE9charger</a><br>\n\t\t\t\t\t\t<a href=\"https://www.opera.com/fr/features/bookmarks\" target=\"_blank\" class=\"button\">Transf\xE9rer les favoris</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href=\"https://www.microsoft.com/fr-fr/edge\" target=\"_blank\" title=\"Microsoft Edge\" class=\"browser\"><i class=\"fab fa-edge\"></i><br>Microsoft Edge</a>\n\t\t\t\t\t\t<a href=\"https://www.microsoft.com/fr-fr/edge\" target=\"_blank\" class=\"button\">T\xE9l\xE9charger</a><br>\n\t\t\t\t\t\t<a href=\"https://support.microsoft.com/fr-fr/help/4028355/microsoft-edge-import-favorites\" target=\"_blank\" class=\"button\">Transf\xE9rer les favoris</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"note\">Si vous n'\xEAtes pas autoris\xE9 \xE0 g\xE9rer/installer vous-m\xEAme le navigateur web, contactez votre repr\xE9sentant informatique.</div>\n\t\t\t</div>\n\t\t</div>\n\t";
18function getContentLanguage() {
19  return $('html').attr('lang').substr(0, 2);
20}
21function isLoginMaskPage() {
22  return $('.loginwrapper').length > 0 || $('.login').length > 0;
23}
24
25/* function that returns boolean in case the browser is Internet Explorer*/
26function isIE() {
27  let ua = navigator.userAgent;
28  /* MSIE used to detect old browsers and Trident used to newer ones*/
29  return ua.indexOf('MSIE ') > -1 || ua.indexOf('Trident/') > -1;
30}
31
32/* dedect if it's an internet explorer and print out message */
33$(function () {
34  if (!isIE()) {
35    return;
36  }
37  let $body = $('body');
38  if (!isLoginMaskPage()) {
39    $body.addClass('hide-ie-message');
40  }
41  $body.addClass('is-ie').prepend(getContentLanguage() === 'fr' ? bannerFr : bannerDe).prepend(getContentLanguage() === 'fr' ? popupFr : popupDe).on('click', '.ie-banner .more', () => {
42    $body.removeClass('hide-ie-message');
43  }).on('click', '.ie-message .close', () => {
44    $body.addClass('hide-ie-message');
45    $.post('/_kirchenweb/ajaxIELogger.php', {
46      'action': 'closePopup',
47      'domain': window.location.hostname + window.location.pathname
48    });
49  }).on('click', '.loginform input[type="submit"], .login input[type="submit"]', e => {
50    $.post('/_kirchenweb/ajaxIELogger.php', {
51      'action': 'loginAttempt',
52      'domain': window.location.hostname + window.location.pathname,
53      'username': $('input[name="benutzername"]').val()
54    });
55  });
56});
57window.append('Kw.Blue.Core.InternetExplorerMessage', function KwInternetExplorerMessage() {}); // dummy for frontend libraries

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.