Skip to content

Instantly share code, notes, and snippets.

View zlypher's full-sized avatar

Thomas Prochazka zlypher

View GitHub Profile
@zlypher
zlypher / nodes-of-document-type.sql
Last active September 12, 2018 15:02
Umbraco: Find Document Types
-- Find all umbraco nodes and the document type by the given document type id
-- Replace "XX_DOC_TYPE_ID_XX" with the document type id you want to look for
SELECT
ct.[nodeId] as 'DocumentType ID',
ct.[alias] as 'DocumentType Name',
un.[id] as 'Node ID',
un.[text] as 'Node Name',
un.*
FROM [dbo].[cmsContentType] ct
LEFT JOIN [dbo].[cmsContent] co
@zlypher
zlypher / find-z-index.js
Last active September 21, 2018 21:45
[WF] Find elements with z-index
// Get all css property values for a single element
// https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
// const cs = window.getComputedStyle(elem);
// Access single properties
// cs.getPropertyValue("z-index")
// cs["z-index"]
// cs.zIndex
// Example: Find all elements where a z-index is specified