PageSourceSearch

https://www.ianalysis.com.tw/7_files/js_K3PofwmWUFBaIwaO6Lb5HYHg2ExgmPs7OnqERUS3-ao.js

js ianalysis.com.tw collected 2026-10-08 10:56:05 UTC 2,666 bytes, 93 lines download raw bytes

1/**
2 * theme587 javascript core
3 *
4 * - Provides frequently used extensions to base javascript objects
5 * - jQuery browser detection tweak
6 * - Define functions used in events
7 */
8
9// Add String.trim() method
10String.prototype.trim = function(){
11	return this.replace(/\s+$/, '').replace(/^\s+/, '');
12}
13
14// Add Array.indexOf() method
15if (!Array.prototype.indexOf) {
16  Array.prototype.indexOf = function (obj, fromIndex) {
17    if (fromIndex == null) {
18      fromIndex = 0;
19    } else if (fromIndex < 0) {
20      fromIndex = Math.max(0, this.length + fromIndex);
21    }
22    for (var i = fromIndex, j = this.length; i < j; i++) {
23      if (this[i] === obj){
24        return i;
25      }
26    }
27    return -1;
28  };
29}
30
31// jQuery Browser Detect Tweak For IE7
32jQuery.browser.version = jQuery.browser.msie && parseInt(jQuery.browser.version) == 6 && window["XMLHttpRequest"] ? "7.0" : jQuery.browser.version;
33
34// Console.log wrapper to avoid errors when firebug is not present
35// usage: log('inside coolFunc',this,arguments);
36// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
37window.log = function() {
38  log.history = log.history || [];   // store logs to an array for reference
39  log.history.push(arguments);
40  if (this.console) {
41    console.log(Array.prototype.slice.call(arguments));
42  }
43};
44
45// init object
46var theme587 = theme587 || {};
47
48/**
49 * Image handling functions
50 */
51theme587.image = { _cache : [] };
52
53// preload images
54theme587.image.preload = function() {
55  for (var i = arguments.length; i--;) {
56    var cacheImage = document.createElement('img');
57    cacheImage.src = arguments[i];
58    theme587.image._cache.push(cacheImage);
59  }
60}
61;
62jQuery(window).bind('load', function() {
63	jQuery('.foreground').toggle('slow');
64});
65
66jQuery(function() {
67	jQuery('.view-portfolio .views-field-field-portfolio-image a').hide();
68});
69jQuery(window).bind('load', function() {
70	 var i = 1;
71	 var imgs = jQuery('.view-portfolio .views-field-field-portfolio-image a').length;
72	 var int = setInterval(function() {
73		 //console.log(i); check to make sure interval properly stops
74		 if(i >= imgs) clearInterval(int);
75		 jQuery('.view-portfolio .views-field-field-portfolio-image a:hidden').eq(0).fadeIn(300);
76		 i++;
77	 }, 300);
78});
79
80
81jQuery(function() {
82	jQuery('.kwicks').hide();
83});
84jQuery(window).bind('load', function() {
85	 var i = 1;
86	 var imgs = jQuery('.kwicks').length;
87	 var int = setInterval(function() {
88		 //console.log(i); check to make sure interval properly stops
89		 if(i >= imgs) clearInterval(int);
90		 jQuery('.kwicks:hidden').eq(0).fadeIn(400);
91		 i++;
92	 }, 300);
93});;

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.