Skip to content

Instantly share code, notes, and snippets.

View daylightnanalog's full-sized avatar

daylightnanalog

  • Kansas City
View GitHub Profile
self.GLOBAL = {
isWindow: function() { return true; },
isWorker: function() { return false; },
};
/*global self*/
/*jshint latedef: nofunc*/
/*
Distributed under both the W3C Test Suite License [1] and the W3C
3-clause BSD License [2]. To contribute to a W3C Test Suite, see the
@daylightnanalog
daylightnanalog / org.w3c.dom.kt
Created January 8, 2023 16:12 — forked from petukhovv/org.w3c.dom.kt
CAD: Properties and functions on CST
/*
* Generated file
* DO NOT EDIT
*
* See libraries/tools/idl2k for details
*/
@file:Suppress("NESTED_CLASS_IN_EXTERNAL_INTERFACE")
package org.w3c.dom
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
//
// Utilities
//
function forEachRows(rows, startIndex, callback) {
if(arguments.length === 2 && typeof startIndex === "function") {
callback = startIndex;
startIndex = 0;
}
var numRows = rows.getNumRows()
@daylightnanalog
daylightnanalog / decl.js
Created January 8, 2023 15:49 — forked from ngs/decl.js
[].slice.call(document.querySelectorAll('#content > div.fixedFont'), 0).map(function(i, n){
const text = i.innerText;
let desc = i.nextSibling;
while(desc && desc.className !== 'description') {
desc = desc.nextSibling;
}
const m = text.match(/\{([^\}]+)\}\s(.+)$/) || ['', 'void', text];
const retType = m[1];
const fn = m[2];
return '/**\n * ' + desc.innerText.replace(/\n/g, '\n * ') + '\n */\n' + fn + ': ' + retType + ';';
// https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList
var allCSS =
[].slice.call(document.styleSheets)
.reduce(function (prev, styleSheet) {
try {
return prev +
[].slice.call(styleSheet.cssRules)
.reduce(function (prev, cssRule) {
return prev + cssRule.cssText;
document.getElementById('lottie').addEventListener('click', e => {
const elements = [].concat.apply([], anim.projectInterface.compositions.map(e => e.elements));
const baseElements = elements.map(elm => elm.baseElement);
let element = e.target;
let found = null;
while(element && /^(g|path)$/.test(element.nodeName)) {
let idx = baseElements.indexOf(element);
if (idx !== -1) {
found = elements[idx];
break;
@daylightnanalog
daylightnanalog / css3-image-overlay-hover-effect-with-bootstrap.markdown
Created January 24, 2022 20:28
CSS3 image overlay hover effect with Bootstrap

CSS3 image overlay hover effect with Bootstrap

This is a simple image overlay hover effect html page that was created by only HTML and CSS code with bootstrap framework. I added here 10 types of overlay hover effect in this page.

Anyone can use all those effect freely.

Thanks

A Pen by Mahmudul Hasan on CodePen.