Skip to content

Instantly share code, notes, and snippets.

/**
* Set up the inline importer
*/
Exhibit.InlineImporter = { };
Exhibit.importers["inline"]
= Exhibit.InlineImporter;
Exhibit.InlineImporter.load
= function(data, database, cont) {
Exhibit.UI.showBusyIndicator();
/**
* Methods to persist the tooltip if we are hovering over the tooltip element
*/
YAHOO.util.Event.addListener(this.tooltip.element, "mouseover", function(e,obj) {
if (this.hideProcId) {
clearTimeout(this.hideProcId);
this.hideProcId = null;
/**
* Methods to persist the tooltip if we are hovering over the tooltip element
*/
YAHOO.util.Event.addListener(this.tooltip.element, "mouseover", function(e,obj) {
if (this.hideProcId) {
clearTimeout(this.hideProcId);
this.hideProcId = null;
var list=[];
for(var i = 0 ;i < 10 ; i++) {
list[i] = i*i;
}
response.object = {
version: 3.14,
square: list
};
// Defini la structure des pages et le xpath pour recuperer les donnees
var xpath = '//table[@class="sobi2Listing"]/tr//td';
var baseUrl = "http://www.abcvert.fr/annuaire/energies-renouvelables/solaire";
var getUrl = function(pageIndex) {
return baseUrl + ((pageIndex == 0) ? ".html" : "/Page-"+(pageIndex+1)+".html");
};
// Recuperation des contacts
var contacts = {};