Removes chrome from color input swatch and overlays over an image, using blend modes to colorize. Voila! Color changing without JS.
Chrome and Firefox only right now.
(function ($) { | |
Drupal.behaviors.CUSTOMMODULE = { | |
attach: function (context, settings) { | |
// @see http://dinbror.dk/blog/blazy/?ref=example-page#Options | |
var options = settings.CUSTOMMODULE.bLazy ? settings.CUSTOMMODULE.bLazy : {}; | |
var bLazy = new Blazy(options); | |
} | |
}; | |
}(jQuery)); |
<?php | |
// Rename this file to `CUSTOMMODULE.module` | |
/** | |
* Implements hook_form_FORM_ID_alter(). | |
*/ | |
function CUSTOMMODULE_form_views_exposed_form_alter(&$form, &$form_state, $form_id) { | |
// Replace `Size` filter. | |
CUSTOMMODULE_jumpmenu($form, 'field_size_tid'); |
<?php | |
// Namespace | |
namespace App\Validators; | |
// Using directives | |
use Cache; | |
use Carbon\Carbon; | |
// Domain black list validation class |
#!/usr/bin/ruby | |
# A script to automate changelog generation from Git commit messages | |
# | |
# For use with a git-flow workflow, it will take changes from the last tagged release | |
# where commit messages contain NEW, FIXED, and IMPROVED keywords and sort and fromat | |
# them into a Markdown release note list. | |
# | |
# The script takes version information from the macOS command agvtool and bases | |
# the product name on the first matching Xcode Info.plist found |
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
<?php | |
/** | |
* Implements of hook_drush_command(). | |
*/ | |
function migration_filepath_drush_command() { | |
$items = array(); | |
$items['migration_filepath'] = array( | |
'description' => "Move files to subdirectories", | |
'callback' => 'drush_migration_filepath', |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>CCC - Quicklinks</title> | |
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/main.min.css" rel="stylesheet" type="text/css" /> | |
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/jquery.mb.YTPlayer/jquery.mb.YTPlayer.min.css" rel="stylesheet" type="text/css" /> | |
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/theme.min.css" rel="stylesheet" type="text/css" /> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/main.min.css" rel="stylesheet" type="text/css" /> | |
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/jquery.mb.YTPlayer/jquery.mb.YTPlayer.min.css" rel="stylesheet" type="text/css" /> | |
<link href="http://cms-prod.clackamas.edu/ResourcePackages/Bootstrap/assets/dist/css/theme.min.css" rel="stylesheet" type="text/css" /> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<style id="jsbin-css"> |