PageSourceSearch

https://www.arbeitsinspektion.gv.at/.resources/bcisa/resources/not…/scripts~2026-09-30-13-13-33-022~cache.js

js arbeitsinspektion.gv.at collected 2026-10-02 03:57:37 UTC 3,428 bytes, 112 lines download raw bytes

1function scrollToTop() {
2  /* var c = document.documentElement.scrollTop || document.body.scrollTop;
3  if (c > 0) {
4    window.requestAnimationFrame(scrollToTop);
5    window.scrollTo(0, c - c / 15);
6  }*/
7  window.scrollTo(0, 0);
8}
9
10function goBack() {
11  window.history.back();
12}
13
14function toggleFullscreen(targetElemId) {
15  let elem = document.getElementById(targetElemId);
16
17  if (!document.fullscreenElement) {
18    elem.requestFullscreen().catch((err) => {
19      console.error(
20        `Error attempting to enable fullscreen mode: ${err.message} (${err.name})`
21      );
22    });
23  } else {
24    document.exitFullscreen();
25  }
26}
27
28const btnScrollToTop = document.querySelector(".backToTop") !== null;
29
30if (btnScrollToTop) {
31// toggle 'scroll to top' based on scroll position
32window.addEventListener('scroll', e => {
33  const change = document.querySelector(".backToTop").style.display = window.scrollY > 50 ? 'flex' : 'none';
34});
35}
36
37
38$('[data-fancybox-iframe]').fancybox({
39  maxWidth    : 800,
40  maxHeight   : 600,
41  fitToView   : true,
42  openEffect  : 'none',
43  closeEffect : 'none',
44  type: 'iframe',
45  idleTime: 0,
46  buttons: [
47    'close'
48  ],
49  btnTpl: {
50    close:
51      '<button data-fancybox-close class="fancybox-button fancybox-button--close">' +
52      '<span class="icon icon-navigation_pfeil_schliessen_gross"></span>' +
53      '<span class="sr-only">{{CLOSE}}</span>' +
54      '</button>',
55    arrowLeft:
56      '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left">' +
57      '<span class="icon icon-navigation_pfeil_links_gross"></span>' +
58      '<span class="sr-only">{{PREV}}</span>' +
59      '</button>',
60    arrowRight:
61      '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right">' +
62      '<span class="icon icon-navigation_pfeil_rechts_gross"></span>' +
63      '<span class="sr-only">{{NEXT}}</span>' +
64      '</button>',
65  },
66  lang: "de",
67  i18n: {
68    en: {
69      CLOSE: "Close",
70      NEXT: "Next",
71      PREV: "Previous",
72      ERROR: "The requested content cannot be loaded. <br/> Please try again later.",
73      PLAY_START: "Start slideshow",
74      PLAY_STOP: "Pause slideshow",
75      FULL_SCREEN: "Full screen",
76      THUMBS: "Thumbnails",
77      DOWNLOAD: "Download",
78      SHARE: "Share",
79      ZOOM: "Zoom"
80    },
81    de: {
82      CLOSE: "Schließen",
83      NEXT: "Weiter",
84      PREV: "Zurück",
85      ERROR: "Die angeforderten Daten konnten nicht geladen werden. <br/>
85 Bitte versuchen Sie es später nochmal.",
86      PLAY_START: "Diaschau starten",
87      PLAY_STOP: "Diaschau beenden",
88      FULL_SCREEN: "Vollbild",
89      THUMBS: "Vorschaubilder",
90      DOWNLOAD: "Herunterladen",
91      SHARE: "Teilen",
92      ZOOM: "Maßstab"
93    }
94  },
95  // caption: function () {
96  //   return $(this).find('.figure-caption').html() || '';
97  // },
98  beforeLoad: function() {
99    $('.fancybox-container').attr('aria-modal', 'true');
100    $('.fancybox-container').attr('aria-labelledby', 'labelformodal');
101  }
102  // afterLoad : function(instance, current) {
103  //   current.$image.attr('alt', current.opts.$orig.find('img').attr('alt') );
104  // },
105  // afterShow : function(instance, current) {
106  //   setTimeout(function() {
107  //     if (instance.$caption && (instance.$caption.find('.figure-copyright').length || instance.$caption.find('.figure-description').length)) {
108  //       instance.current.$content.append(instance.$caption);
109  //     }
110  //   }, 1)
111  // }
112});

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.