This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var GH = ['#EEEEEE', '#D6E685', '#8CC665', '#44A340', '#1E6823']; /* previous GH colors */ | |
var GH = ['#EBEDF0', '#C6E48B', '#7BC96F', '#239A3B', '#196127']; | |
var CO = ['#EF4B4D', '#F89B47', '#FAEA20', '#7DC242', '#5D94CE', '#855CA7']; | |
var graph = document.getElementsByClassName('js-calendar-graph-svg')[0]; | |
var days = [].slice.call(graph.getElementsByTagName('rect'), 0); | |
days.forEach(function(rect) { | |
switch(rect.getAttribute('fill').toUpperCase()) { | |
case GH[0]: rect.setAttribute('fill', CO[2]); break; // yellow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Gemini = require('gemini-scrollbar'); | |
var A = new Gemini({ | |
element: document.querySelector('.scroller-a') | |
}).create(); | |
var B = new Gemini({ | |
element: document.querySelector('.scroller-b') | |
}).create(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Neonode</title> | |
<link rel="icon" type="image/gif" href="/images/favicon.gif" /> | |
<link rel="stylesheet" href="/build/stylesheets/layout-name.css"> | |
</head> | |
<body> | |
<main class="container"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Gemini = require('gemini-scrollbar'); | |
new Gemini({ | |
element: document.querySelector('.scroller-a') | |
}).create(); |
OlderNewer