PageSourceSearch

https://www.thebereancall.org/sites/2014.thebereancall.org/files/j…5rIzWF_3gRQdbczangZkHD-TNXhn_eyRf1TjjRII.js

js thebereancall.org collected 2026-09-24 18:59:52 UTC 9,947 bytes, 332 lines download raw bytes

1(function ($) {
2
3Drupal.behaviors.bible = {
4  attach : function (context, settings) {
5    var span = $("<span></span>");
6    span.attr("id", "SNData");
7    span.css('top', '0');
8    span.css('left', '0');
9    span.css('border-style', 'ridge');
10    span.css('zIndex', '999');
11    span.css('textAlign', 'left');
12    span.css('position', 'absolute');
13    span.hide();
14
15    for (i=0; i<6; i++) {
16      var img = $('<img class=vset />');
17      img.attr("id", "vsetimg"+i);
18      img.css('cursor', 'pointer');
19      span.append(img);
20    }
21    var baseurl = Drupal.settings.baseurl;
22    var bibleimgurl = Drupal.settings.bibleimgurl;
23    var chapverse;
24
25    span.append($('<div id=sntext />'));
26    $('body').append(span);
27    var ajaxobj;
28
29    $("span.biblesn a").each(function () {
30      $(this).mouseover(function(E) {
31        var dat = ($(this).attr("href")).split('/');
32        var SN = dat[dat.length-1];
33        if (this.SN==SN) return;
34        this.SN = SN;
35
36        for (i=0; i<6; i++) {
37          $("#vsetimg"+i).hide();
38        }
39        span.width(300);
40        span.height(200);
41        span.css('color', '#FFFFFF');
42        span.css('background', 'green');
43        span.css('border-color', 'black');
44        span.css('border-width', '5px');
45        $('#sntext').html("Wait...["+SN+"]");
46        span.css('left', $(this).offset().left + $(this).width());
47        span.css('top', $(this).offset().top);
48        span.show();
49        ajaxobj = $.ajax({
50          type: "GET",
51          url: baseurl+"bible/snajax/"+SN,
52          success: function (data) {
53            // Parse back result
54            var HTMLStr = '';
55            if (data=='""') {
56              HTMLStr = 'No Data of ['+SN+']';
57            }
58            else {
59              data = data.substring(1, data.length-2);
60              lines = data.split('|');
61              for (i=0; i<lines.length; i++)
62                HTMLStr += lines[i]+"<br/>";
63            }
64            $('#sntext').html(HTMLStr);
65            $('#sntext').show();
66          },
67          error: function (xmlhttp) {
68            //alert('An HTTP error '+ xmlhttp.status +' occured.\n');
69          }
70        });
71        return false;
72      })
73      .mouseout(function() {
74        span.hide();
75        this.SN = "";
76        ajaxobj.abort();
77      })
78    });
79
80    $('span.chap-verse').each(function () {
81      $(this).mouseover(function () {
82        chapverse = $(this);
83        var alink = $(this).children("verse");
84
85        $("#sntext").hide();
86        span.width(16*6);
87        span.height(16);
88        span.css('color', '#000000');
89        span.css('background', 'silver');
90        span.css('border-color', 'black');
91        span.css('border-width', '1px');
92        var vsetpara = $(this).attr("vset");
93        for (i=0; i<6; i++) {
94          var imgsrc = bibleimgurl+ 'vset_'+i;
95           if (vsetpara.substr(i,1)=='1') imgsrc += '_dis';
96           imgsrc += '.gif';
97          $("#vsetimg"+i).css('top', 0);
98          $("#vsetimg"+i).attr("src", imgsrc);
99          $("#vsetimg"+i).show();
100        }
101        span.css('left', alink.offset().left + alink.width());
102        span.css('top', alink.offset().top);
103        span.show();
104      })
105      .mouseout(function() {
106        span.hide();
107      })
108    });
109
110    $("#SNData").each(function () {
111      $(this).mouseover(function() {
112        span.show();
113      })
114      .mouseout(function() {
115        span.hide();
116      });
117    });
118
119    $("img.vset").each(function () {
120      $(this).click(function(E) {
121        span.show();
122        var dat = (chapverse.children("verse").attr("para")).split('/');
123        var bls = dat[dat.length-1];
124        var bid = dat[dat.length-2];
125        var vsetno = E.target.id.substr(E.target.id.length-1,1);
126        $.ajax({
127          type: "GET",
128          url: baseurl+"bible/vset/ajax/"+bls+"/"+vsetno,
129          success: function (data) {
130            data = data.replace(/"/g, '');
131            chapverse.attr("vset", data);
132            chapverse.children("span").empty();
133            var HTMLStr = '';
134            for (i=0; i<data.length; i++) {
135              if (data.substr(i,1)=='1') {
136                HTMLStr += '<img src='+ bibleimgurl+ 'vset_'+ i+ '.gif />';
137              }
138            }
139            chapverse.children("span").html(HTMLStr);
140            // refresh span
141            for (i=0; i<6; i++) {
142              var imgsrc = bibleimgurl+ 'vset_'+i;
143               if (data.substr(i,1)=='1') imgsrc += '_dis';
144               imgsrc += '.gif';
145              $("#vsetimg"+i).css('top', 0);
146              $("#vsetimg"+i).attr("src", imgsrc);
147              $("#vsetimg"+i).show();
148            }
149          },
150          error: function (xmlhttp) {
151            //alert('An HTTP error '+ xmlhttp.status +' occured.\n');
152          }
153        });
154        return false;
155      })
156      .mouseout(function() {
157        span.hide();
158      })
159    });
160
161    $("span.vref").each(function () {
162      $(this).hover(function(E) {
163        for (i=0; i<6; i++) {
164          $("#vsetimg"+i).hide();
165        }
166        span.width(200);
167        span.height(100);
168        span.css('color', '#000000');
169        span.css('background', 'lightblue');
170        span.css('border-color', 'blue');
171        span.css('border-width', '5px');
172        span.css('left', $(this).offset().left + $(this).width() + 5);
173        span.css('top', $(this).offset().top);
174        span.show();
175        ajaxobj = $.ajax({
176          type: "GET",
177          url: baseurl+"bible/ajax/vcontent/"+E.target.id,
178          success: function (data) {
179            data = data.replace(/"/g, '');
180            $('#sntext').html(data);
181            $('#sntext').show();
182          },
183          error: function (xmlhttp) {
184            //alert('An HTTP error '+ xmlhttp.status +' occured.\n');
185          }
186        });
187        return false;
188      },
189      function() {
190        span.hide();
191        $('#sntext').html('');
192      })
193    });
194
195    $("img.note").each(function () {
196       $(this).hover(function(E) {
197        for (i=0; i<6; i++) {
198          $("#vsetimg"+i).hide();
199        }
200        span.width(250);
201        span.height(200);
202        span.css('color', '#000000');
203        span.css('background', 'yellow');
204        span.css('border-color', 'orange');
205        span.css('border-width', '5px');
206        span.css('left', $(this).offset().left + $(this).width() + 5);
207        span.css('top', $(this).offset().top);
208        span.show();
209        var dat = this.id.split('-');
210        ajaxobj = $.ajax({
211          type: "GET",
212          url: baseurl+"bible/note/ajax/"+dat[1],
213          success: function (data) {
214            data = data.replace(/"/g, '');
215            $('#sntext').html(data);
216            $('#sntext').show();
217          },
218          error: function (xmlhttp) {
219            alert('An HTTP error '+ xmlhttp.status +' occured.\n');
220          }
221        });
222        return false;
223      },
224      function() {
225        span.hide();
226        $('#sntext').html('');
227      })
228    });
229
230    $("input.selectall").each(function () {
231        $(this).click(function() {
232        var chk = $(this).attr("checked");
233        $("input.mr_check").each(function() {
234          this.checked = chk;
235        })
236      })
237    });
238
239  }
240};
241
242})(jQuery);
243;
244(function ($) {
245
246Drupal.behaviors.biblebls = {
247
248  attach : function (context, settings) {
249    $('span.bls', context).each(function () {
250      $(this).hover(function(E) {
251        var scrollTop = parseInt($(document).scrollTop());
252        var scrollLeft = parseInt($(document).scrollLeft());
253        var docWidth = parseInt($(window).width());
254        var docHeight = parseInt($(window).height());
255        var winRight = scrollLeft + docWidth;
256        var winBottom = scrollTop + docHeight;
257
258        var popup = $('#popup-'+this.id);
259        var leftShift = $(this).offset().left - $(this).position().left;
260        var topShift = $(this).offset().top - $(this).position().top;
261
262        popup.css('visibility', 'visible');
263
264        var popupwidth = parseInt(popup.css('width'));
265        var posX = $(this).offset().left - scrollLeft - leftShift;
266        if (posX + popupwidth + leftShift > docWidth) {
267          posX = docWidth - popupwidth - leftShift - 5;
268        }
269        popup.css('left', posX);
270
271        var popupheight = parseInt(popup.css('height'));
272        var posY = $(this).offset().top + $(this).height() - topShift;
273        if (posY + popupheight + topShift > winBottom) {
274          posY = winBottom - popupheight - topShift - 5;
275        }
276        popup.css('top', posY);
277      },
278      function() {
279        $('#popup-'+this.id).css('visibility', 'hidden');
280      });
281
282      $('span.popup').hover(function(E) {
283        E.target.style.visibility = "visible";
284      },
285      function(E) {
286        $('span.popup').css('visibility', 'hidden');
287      });
288    })
289  }
290};
291
292})(jQuery);
293;
294(function ($) {
295
296Drupal.behaviors.biblewebimport = {
297  attach : function (context, settings) {
298    $('#progress').each(function () {
299      var holder = this;
300      var url = Drupal.settings.bibleurl;
301      var para = Drupal.settings.biblepara;
302      var inimsg = Drupal.settings.bibleimsg;
303      var errmsg = Drupal.settings.bibleemsg;
304      if (!url) return;  
305
306      // Success: redirect to the summary.
307      var updateCallback = function (progress, status, pb) {
308        if (progress == 100) {
309          pb.stopMonitoring();
310          window.location = url;
311        }
312      }
313  
314      // Failure: point out error message and provide link to the summary.
315      var errorCallback = function (pb) {
316        var div = document.createElement('p');
317        div.className = 'error';
318        $(div).html(errmsg);
319        $(holder).prepend(div);
320        $('#wait').hide();
321      }
322  
323      var progress = new Drupal.progressBar('updateprogress', updateCallback, "POST", errorCallback);
324      progress.setProgress(-1, inimsg);
325      $(holder).append(progress.element);
326      progress.startMonitoring(url + para + "&op=bible_webimport", 0);
327    });
328  }
329};
330
331})(jQuery);
332;

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.