PageSourceSearch

https://www.goblockisland.com/js/foundation/foundation.offcanvas.js

js goblockisland.com collected 2026-09-28 10:05:51 UTC 2,123 bytes, 57 lines download raw bytes

1;(function ($, window, document, undefined) {
2  'use strict';
3
4  Foundation.libs.offcanvas = {
5    name : 'offcanvas',
6
7    version : '5.2.1',
8
9    settings : {},
10
11    init : function (scope, method, options) {
12      this.events();
13    },
14
15    events : function () {
16      var S = this.S;
17
18      S(this.scope).off('.offcanvas')
19        .on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) {
20          e.preventDefault();
21          S(this).closest('.off-canvas-wrap').toggleClass('move-right');
22        })
23        .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
24          e.preventDefault();
25          S(".off-canvas-wrap").removeClass("move-right");
26        })
27        .on('click.fndtn.offcanvas', '.left-off-canvas-menu a', function (e) {
28          e.preventDefault();
29          var href = $(this).attr('href');
30          S('.off-canvas-wrap').on('transitionend webkitTransitionEnd oTransitionEnd', function(e) {
31              window.location = href
32              S('.off-canvas-wrap').off('transitionend webkitTransitionEnd oTransitionEnd');
33          });
34          S(".off-canvas-wrap").removeClass("move-right");
35        })
36        .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) {
37          e.preventDefault();
38          S(this).closest(".off-canvas-wrap").toggleClass("move-left");
39        })
40        .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) {
41          e.preventDefault();
42          S(".off-canvas-wrap").removeClass("move-left");
43        })
44        .on('click.fndtn.offcanvas', '.right-off-canvas-menu a', function (e) {
45          e.preventDefault();
46          var href = $(this).attr('href');
47          S('.off-canvas-wrap').on('transitionend webkitTransitionEnd oTransitionEnd', function(e) {
48              window.location = href
49              S('.off-canvas-wrap').off('transitionend webkitTransitionEnd oTransitionEnd');
50          });
51          S(".off-canvas-wrap").removeClass("move-left");
52        });
53    },
54
55    reflow : function () {}
56  };
57}(jQuery, this, this.document));

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.