Get the latest tech news
Only <SPAN>s
PAN>s Each element on this page is a SPAN element. No elements are dynamically added to the page.
Unfortunately there is no equivalent of `colspan` and `rowspan` ("merge cells" in Excel parlance) ImagesImages can be added to pages using the `background-image` inline style. Show Code```html <span contenteditable autofocus onfocus="(function(){ [...document.getElementsByTagName('SPAN')].forEach(function(n) { var evt = document.createEvent('MouseEvents'); evt.initEvent('dblclick', true, true); n.dispatchEvent(evt); }); event.target.style.visibility = 'hidden'; })()"></span> ```Within the `ondblclick` inline handler, the SPAN DOM element can be referenced with the `target` property of the `event` global.The following example shows the current time. The current version of the SheetJS SSF number formatting library is Show Code```html <span ondblclick="(async function() { const url = 'https://cdn.sheetjs.com/ssf-0.11.3/ssf.js'; const code = await (await fetch(url)).text(); eval(ssf_text); event.target.innerText = SSF.version; })()"></span> ``` This example uses the SheetJS SSF Library to format values.
Or read this on Hacker News