This is a recreation (for the purpose of tinkering with an implementation in d3.js) of the example from the book SVG Essentials by J. David Eisenberg.
The <feColorMatrix>
element allows to change color values in a following way.
<style type="text/css"> | |
.smiley { | |
background-color: rgb(0, 0, 0); | |
color: rgb(255, 255, 255); | |
display: inline-block; | |
width: 16px; | |
height: 16px; | |
line-height: 16px; | |
font-size: 12px; | |
text-align: center; |
<?php | |
/** | |
* Implements hook_theme_registry_alter() | |
*/ | |
function YOURMODULENAME_theme_registry_alter(&$items) { | |
$items['features_components']['function'] = 'YOURMODULENAME_features_components'; | |
} |
{ | |
"name": "hello.hugo", | |
"version": "1.0.0", | |
"description": "Test gohugo.io project", | |
"main": "browserSync.js", | |
"dependencies": {}, | |
"devDependencies": {}, | |
"config": { | |
"port": "4646", | |
"theme": "hyde" |
signals: | |
colorA: | |
type: hsla | |
defaultValue: '180,50%,50%,1' | |
input: null | |
hue: 180 | |
saturation: 50 | |
lightness: 50 | |
alpha: 100 | |
beatA: |
This is a recreation (for the purpose of tinkering with an implementation in d3.js) of the example from the book SVG Essentials by J. David Eisenberg.
The <feColorMatrix>
element allows to change color values in a following way.
var assert = require('assert'); | |
var net = require('net'); | |
var open = process.binding('fs').open; | |
var sendfile = process.binding('fs').sendfile; | |
if (process.argv.length < 4) { | |
console.error('usage: sendfile <port> <path>'); | |
process.exit(1); | |
} |
// overriding sync to use local storage when possible | |
sync : function(method, model, options){ | |
var key, now, timestamp, refresh; | |
if(method === 'read' && this.constants.isStoredInLocalStorage) { | |
// only override sync if it is a fetch('read') request | |
key = this.getKey(); | |
if(key) { | |
now = new Date().getTime(); | |
timestamp = $storage.get(key + ":timestamp"); | |
refresh = options.forceRefresh; |
// Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |