Skip to content

Instantly share code, notes, and snippets.

View WebMechanic's full-sized avatar

WebMechanic WebMechanic

View GitHub Profile
@WebMechanic
WebMechanic / sleuth.js
Created May 2, 2020 21:39
A simple browser feature sleuth that sets class names on html and body.
/**
* A simple browser feature sleuth that sets class names on html and body.
* - Sleuth.sniff()
* Tested with IE9-11, all evergreen Chrome, Firefox, EdgeHTML/Edgium, Opera.
*
* @version 1.3.3 02.05.2020
* @author WebMechanic.biz (c)2019
* @license DWTF
*/
const Sleuth = {agents:{}, features:{},
@WebMechanic
WebMechanic / background-blend-mode.html
Last active April 19, 2020 07:40
background-blend-mode - Examples
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>background-blend-mode - Examples - code sample</title>
<style>
#div {
width: 360px;
height: 360px;
background-position: center;
background-color: transparent;
@WebMechanic
WebMechanic / supports_selector.html
Last active March 23, 2020 15:21
@supports selector() and :is(a,b)
<html>
<style>
/**
* @link https://developer.mozilla.org/en-US/docs/Web/CSS/@supports
* `@supports selector` works in Firefox/69, Chrome/82 Canary, Edg/81 Dev
*
* @link https://developer.mozilla.org/en-US/docs/Web/CSS/:is
* `:is(a,b)` works with chrome://flags in Chrome/68 Canary, Edg/79 Dev
* `:-moz-any(a,b)` works in Firefox/69
*
@WebMechanic
WebMechanic / core-uncompressed.js
Created March 25, 2012 20:11
Joomla! core.js on a diet and MT free.
/*!
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// Only define the Joomla namespace if not defined.
if (typeof(Joomla) === 'undefined') {
var Joomla = {};
}