PageSourceSearch

https://sso.buu.ac.th/js/sso/switchery.js

js buu.ac.th collected 2026-10-01 11:25:45 UTC 1,704 bytes, 59 lines download raw bytes

1(function (global, factory) {
2  if (typeof define === "function" && define.amd) {
3    define('/Plugin/switchery', ['exports', 'Plugin', 'Config'], factory);
4  } else if (typeof exports !== "undefined") {
5    factory(exports, require('Plugin'), require('Config'));
6  } else {
7    var mod = {
8      exports: {}
9    };
10    factory(mod.exports, global.Plugin, global.Config);
11    global.PluginSwitchery = mod.exports;
12  }
13})(this, function (exports, _Plugin2, _Config) {
14  'use strict';
15
16  Object.defineProperty(exports, "__esModule", {
17    value: true
18  });
19
20  var _Plugin3 = babelHelpers.interopRequireDefault(_Plugin2);
21
22  var NAME = 'switchery';
23
24  var SwitcheryPlugin = function (_Plugin) {
25    babelHelpers.inherits(SwitcheryPlugin, _Plugin);
26
27    function SwitcheryPlugin() {
28      babelHelpers.classCallCheck(this, SwitcheryPlugin);
29      return babelHelpers.possibleConstructorReturn(this, (SwitcheryPlugin.__proto__ || Object.getPrototypeOf(SwitcheryPlugin)).apply(this, arguments));
30    }
31
32    babelHelpers.createClass(SwitcheryPlugin, [{
33      key: 'getName',
34      value: function getName() {
35        return NAME;
36      }
37    }, {
38      key: 'render',
39      value: function render() {
40        if (typeof Switchery === 'undefined') {
41          return;
42        }
43        new Switchery(this.$el[0], this.options);
44      }
45    }], [{
46      key: 'getDefaults',
47      value: function getDefaults() {
48        return {
49          color: (0, _Config.colors)('primary', 600)
50        };
51      }
52    }]);
53    return SwitcheryPlugin;
54  }(_Plugin3.default);
55
56  _Plugin3.default.register(NAME, SwitcheryPlugin);
57
58  exports.default = SwitcheryPlugin;
59});

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.