PageSourceSearch

https://ourbelovedkin.com/system/application/views/melons/cantaloupe/js/jquery.bootstrap-modal.js

js ourbelovedkin.com collected 2026-09-24 22:50:27 UTC 1,761 bytes, 55 lines download raw bytes

1/**
2 * Scalar
3 * Copyright 2013 The Alliance for Networking Visual Culture.
4 * http://scalar.usc.edu/scalar
5 * [email protected]
6 *
7 * Licensed under the Educational Community License, Version 2.0
8 * (the "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.osedu.org/licenses/ECL-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an "AS IS"
15 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
16 * or implied. See the License for the specific language governing
17 * permissions and limitations under the License.
18 */
19$.fn.bootstrapModal = function(options) {
20
21  var settings = $.extend({
22    title: '',
23    keyboard: true,
24    backdrop: true,
25    show: false,
26    close_tabindex: 0,
27    size_class: ''
28  }, options);
29
30  var html = '\
31  <div class="modal fade" role="dialog">\
32    <div class="modal-dialog '+settings.size_class+'">\
33      <div class="modal-content">\
34        <header class="modal-header">\
35          <h2 class="modal-title heading_font heading_weight">'+settings.title+'</h2>\
36          <button tabindex="'+settings.close_tabindex+'" type="button" class="close" title="Close" data-dismiss="modal"><span aria-hidden="true">&nbsp;</span><span class="sr-only">Close</span></button>\
37        </header>\
38        <div class="modal-body">\
39          '+this.html()+'\
40        </div>\
41      </div><!-- /.modal-content -->\
42    </div>\
43  </div>';
44  var $modal = $(html);
45  $modal.modal({
46    show: settings.show,
47    keyboard: settings.keyboard,
48    backdrop: settings.backdrop
49  });
50  $modal.accessibleBootstrapModal();
51  this.replaceWith($modal);
52
53  return $modal;
54
55};

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.