PageSourceSearch

https://gaslamp.org/wp-content/plugins/directorist/assets/vendor-j…/crosshairs.js?ver=1790911291

js gaslamp.org collected 2026-10-02 03:23:12 UTC 2,048 bytes, 55 lines download raw bytes

1/*--------------------------------------------------------------------------------
2 * console.log‚ª—˜—p‚Å‚«‚È‚¢ƒuƒ‰ƒEƒU‘Ήž
3 *--------------------------------------------------------------------------------*/
4if (typeof window.console != 'object'){
5 window.console = {log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){},dir:function(){},dirxml:function(){},trace:function(){},group:function(){},groupEnd:function(){},time:function(){},timeEnd:function(){},profile:function(){},profileEnd:function(){},count:function(){}};
6}
7
8OpenLayers.Control.Crosshairs = OpenLayers.Class(OpenLayers.Control, {
9	
10	imgUrl: null,
11	size: null,
12	position: null,
13    autoActivate: true,
14
15
16	initialize: function(options) {
17		OpenLayers.Control.prototype.initialize.apply(this, arguments);
18	},
19
20	draw: function() {
21		OpenLayers.Control.prototype.draw.apply(this, arguments);
22		var px = this.position.clone();
23		var centered = new OpenLayers.Pixel(Math.round(px.x - (this.size.w / 2)), Math.round(px.y - (this.size.h / 2)));
24		this.buttons = new Array();
25		this.div = OpenLayers.Util.createAlphaImageDiv(
26				OpenLayers.Util.createUniqueID("OpenLayers.Control.Crosshairs_"), 
27				centered, 
28				this.size, 
29				this.imgUrl, 
30				"absolute");
31
32		this.map.events.register( 'zoomend', this, this.redraw );
33//		this.map.events.register( 'resize', this, this.redraw );
34
35		return this.div;
36	},
37	
38	setPosition: function(position) {
39		this.position = position;
40		var px = this.position.clone();
41		var centered = new OpenLayers.Pixel(Math.round(px.x - (this.size.w / 2)), Math.round(px.y - (this.size.h / 2)));
42		this.div.style.left = centered.x + "px";
43		this.div.style.top  = centered.y + "px";
44	},
45	
46	redraw: function() {
47		var px = this.map.getSize();
48		
49		var centered = new OpenLayers.Pixel(Math.round(px.w/2 - (this.size.w / 2)), Math.round(px.h/2 - (this.size.h / 2)));
50		this.div.style.left = centered.x + "px";
51		this.div.style.top  = centered.y + "px";
52    },
53	
54	CLASS_NAME: "OpenLayers.Control.Crosshairs"
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.