'use strict'; var $ = require('jquery'), utils = require('./utils.js'); /** * Write our own tooltip, to avoid loading another library for just this functionality. For now, we only use tooltip for showing parse errors, so this is quite a tailored solution * Requirements: * position tooltip within codemirror frame as much as possible, to avoid z-index issues with external things on page * use html as content */ module.exports = function(yasqe, parent, html) { var parent = $(parent); var tooltip; parent.hover(function() { if (typeof html == "function") html = html(); tooltip = $("