Signin  Pricing  Examples  Support

Libraries > js_IuTl7DtkXVyevV036yLLAuZChN6qF7OjZGteIBXPEgY.js

js_IuTl7DtkXVyevV036yLLAuZChN6qF7OjZGteIBXPEgY.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE https://us.novationmusic.com/sites/default/files/js/js_IuTl7DtkXVyevV036yLLAuZChN6qF7OjZGteIBXPEgY.js


Libraries on us.novationmusic.com


js_hS_xBexh4Wprtyg39AYTgReJkCoMVI40GV4v_3nwcF8.js

js_IuTl7DtkXVyevV036yLLAuZChN6qF7OjZGteIBXPEgY.js

js_paiTaEsc1HNeBS2rkLc1NrprKrFnApv70kuY8awAaTI.js

js_PodJsslv4iz1U8qARY_EhiIPcW-pNgqQ08WcZHXxGj0.js

js_UWQINlriydSoeSiGQxToOUdv493zEa7dpsXC1OtYlZU.js



Explore More


js.js

autocomplete.js

eucookielaw.js

ie6.js

js_IuTl7DtkXVyevV036yLLAuZChN6qF7OjZGteIBXPEgY.js
				
if (!(typeof Drupal.openlayers == "undefined")) {

/**
 * OpenLayers Popup Behavior
 */
Drupal.openlayers.addBehavior('openlayers_behavior_popup', function (data, options) {
	var map = data.openlayers;
	var layers = [];

	// For backwards compatiability, if layers is not
	// defined, then include all vector layers
	if (typeof options.layers == 'undefined' || options.layers.length == 0) {
	    layers = map.getLayersByClass('OpenLayers.Layer.Vector');
	}
	else {
	    for (var i in options.layers) {
		var selectedLayer = map.getLayersBy('drupalID', options.layers[i]);
		if (typeof selectedLayer[0] != 'undefined') {
		    layers.push(selectedLayer[0]);
		}
	    }
	}
	var popupSelect = new OpenLayers.Control.SelectFeature(layers, {
		onSelect: function(feature) {
		    if(feature.cluster.length > 1) {
			map.setCenter(feature.geometry.getBounds().getCenterLonLat());
			map.zoomIn();
		    } else {
									   
			// Create FramedCloud popup.
			popup = new OpenLayers.Popup.FramedCloud(
								 'popup',
								 feature.geometry.getBounds().getCenterLonLat(),
								 null,
								 Drupal.theme('openlayersPopup', feature),
								 null,
								 true,
								 function(evt) {
								     Drupal.openlayers.popup.popupSelect.unselect(
														  Drupal.openlayers.popup.selectedFeature
														  );
								 }
								 );
										   
			// Assign popup to feature and map.
			var content;

			
			// feature.cluster[0].data.nid should contain the node ID for the selected point
			jQuery.ajax({ url: '/storedata/' + feature.cluster[0].data.nid + "?product=" + feature.cluster[0].data.php, 
				    success: function(data) {
				    //				    console.log(data);
				    popup.contentHTML = '<div class="popup-content">' + data.nodes[0].node.nothing + "</div>";

				    feature.popup = popup;
				    feature.layer.map.addPopup(popup);
				    Drupal.attachBehaviors();
				    Drupal.openlayers.popup.selectedFeature = feature;      
				}
			    });
			

			/**			
			//   popup.contentHTML = "";
			feature.popup = popup;
			feature.layer.map.addPopup(popup);
			Drupal.attachBehaviors();
			Drupal.openlayers.popup.selectedFeature = feature;
			**/					   
		    }


		},
		onUnselect: function(feature) {
		    // Remove popup if feature is unselected.
		    feature.layer.map.removePopup(feature.popup);
		    feature.popup.destroy();
		    feature.popup = null;
		}
	    }
	    );

	map.addControl(popupSelect);
	popupSelect.activate();
	Drupal.openlayers.popup.popupSelect = popupSelect;
    });

/**
 * @file
 * JS Implementation of OpenLayers behavior.
 */

/**
 * Geolocate Control.  Implements the Geolocate OpenLayers
 * Control.
 */
Drupal.openlayers.addBehavior('openlayers_behavior_geolocate', function (data, options) {
  // Create Geolocate control
  var geolocate = new OpenLayers.Control.Geolocate(options);
  data.openlayers.addControl(geolocate);

  // Adding the watch options.
  // {Boolean} If true, position will be update regularly.
  geolocate.watch = (options.watch == 1) ? true : false;

  // Add some event handling
  geolocate.events.register('locationupdated', this, function(e) {
    data.openlayers.setCenter(new OpenLayers.Geometry.Point(e.point.x, e.point.y), options.zoom_level);

    // rgm : disable now it's been done!
    //geolocate.deactivate();

  });
  geolocate.events.register('locationfailed', this, function(e) {
    OpenLayers.Console.log(Drupal.t('Location detection failed'));
  });

  //console.log(jQuery('#edit-field-geofield-distance-origin').val());
  //console.log(location.search.substring(0,8));

  // Activate! (RGM : But only if we don't already have a location!)
  if (jQuery('#edit-field-geofield-distance-origin').val() == "" && location.search.substring(0,9) != '?product=') {
    geolocate.activate();
  }
});

};


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z