PageSourceSearch

https://www.stych.fr/js/bootstrap4/button-inline-loader.js?v=1624026567

js stych.fr collected 2026-10-09 22:42:14 UTC 895 bytes, 26 lines download raw bytes

1(function ($) {
2   $.fn.button = function (action) {
3      var method = 'html';
4      if (!this.length)
5         return;
6
7      if (this && this[0].localName == 'input')
8         method = 'val';
9
10      if (action === 'loading' && !$(this).is(':disabled')) {
11         var loadingText = 'Chargement…';
12         if (this.attr('data-loading-text'))
13            loadingText = this.attr('data-loading-text');
14         else if (window.buttonDefaultLoading)
15            loadingText = window.buttonDefaultLoading;
16
17         var oldText = $(this)[method]();
18         $(this).attr('data-original-text', oldText);
19         $(this)[method](loadingText).prop('disabled', true).attr('disabled', 'disabled');
20      }
21
22      if (action === 'reset') {
23         $(this)[method]($(this).attr('data-original-text')).prop('disabled', false).removeAttr('disabled');
24      }
25   };
26}(jQuery));

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.