I always struggle with hacks for Edge and IE. See also for other tips: http://browserhacks.com/
_selector {...}
$ git ls-files | xargs wc -l |
// Paste that in your Browser console | |
let allBodyElements = document.querySelectorAll('body *'), | |
thePropertyName = 'color', | |
theExpectedValue = 'rgb(0, 82, 204)'; | |
allBodyElements.forEach(function(el){ | |
let style = window.getComputedStyle(el); | |
if ( style.getPropertyValue(thePropertyName) == theExpectedValue ) { | |
console.log(el); | |
el.style.boxShadow = '0 0 0 2px red'; |
npm i -g gulp-cli |
I always struggle with hacks for Edge and IE. See also for other tips: http://browserhacks.com/
_selector {...}
<?php | |
/** | |
* gc_my_scripts & gc_my_styles are two handles for enqueued CSS and JS. | |
* | |
* The CSS trick for defering CSS load and make it non blocking loading if offered by SitePoint | |
*/ | |
if ( ! function_exists( 'gc_defer_non_critical_css' ) ) { | |
/** | |
* Changes the LINK HTML tags to make it load async (deferred) |
// Add value info into title | |
// Replace thousand_separator and real_currency for your own needs | |
// Add value info into title | |
// Replace thousand_separator and real_currency for your own needs | |
(function(){ | |
let gc_new_title = ''; | |
let sel_asset_amount = '[class*="AssetChartAmount__Wrapper"]'; | |
let sel_wallet_amount = '[class*="BuySellStepper__Containe"] footer span:last-child'; | |
let sel_asset_name = '[class*="styles__Symbol"][data-element-handle="asset-symbol"]'; |
<?php | |
/** | |
* @package WordPress | |
* @subpackage Creative Juiz v2 | |
* Template Name: Category List | |
* @see: https://gist.github.com/geoffreycrofte/d3b5c0ab64e97278248df59bc53082f0 | |
* @author: Geoffrey Crofte | |
*/ | |
get_header(); ?> |
<?php | |
/** | |
* Adds a timestamp in the first blog option. | |
* @return void | |
*/ | |
function juiz_update_last_edit_date() { | |
if ( is_multisite() ) { | |
add_blog_option( 1, 'last_post_modified_timestamp', time() ); | |
} else { | |
add_option( 'last_post_modified_timestamp', time() ); |
;( function( $, window, document, undefined ) { | |
// Prepare the async function | |
async function fetchColorsJSON() { | |
const response = await fetch(crofte.rest_theme_url, { | |
"headers": { | |
"Accept": "application/json, */*;q=0.1", // optional | |
"X-WP-Nonce": crofte.rest_nonce, | |
"Sec-Fetch-Mode": "cors", // optional | |
"Sec-Fetch-Site": "same-origin" // optional |
/**! | |
* NUMBER THE HEADINGS | |
* This script can't be used for commercial purpose. | |
* | |
* Script improved by: Geoffrey Crofte / GeoffreyCrofte.com / 2022 | |
* Inspired by: Antoine Martin / ThierrryVanoffe.com / 2020 | |
*/ | |
// Constants will be used later on. | |
const ui = DocumentApp.getUi(); |