A Pen by Olena Sovyn on CodePen.
This file contains 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
<td background="http://images.freeimages.com/images/previews/df1/coffee-beans-2-1564474.jpg" bgcolor="#ffe08a" width="600" height="200" valign="top" styles="background-image: url(http://images.freeimages.com/images/previews/df1/coffee-beans-2-1564474.jpg);"> | |
<!--[if gte mso 9]> | |
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:200px;"> | |
<v:fill type="tile" src="http://images.freeimages.com/images/previews/df1/coffee-beans-2-1564474.jpg" color="#ffe08a" /> | |
<v:textbox inset="0,0,0,0"> | |
<![endif]--> | |
<div> | |
<!-- Paste your content here --> | |
</div> | |
<!--[if gte mso 9]> |
This file contains 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
<td background="http://images.freeimages.com/images/previews/df1/coffee-beans-2-1564474.jpg" bgcolor="#ffe08a" width="600" height="200" valign="middle" styles="vertical-align: middle; background-image: url(http://images.freeimages.com/images/previews/df1/coffee-beans-2-1564474.jpg);"> | |
<!--[if gte mso 9]> | |
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:200px;"> | |
<v:fill type="tile" src="http://images.freeimages.com/images/previews/df1/coffee-beans-2-1564474.jpg" /> | |
<v:textbox inset="0,0,0,0"> | |
<![endif]--> | |
<div> | |
<table width="600" border="0" cellpadding="0" cellspacing="0" align="center" style="width:600px; height: 200px;"> | |
<tr> | |
<td valign="middle" style="vertical-align: middle; text-align: center; height: 200px;" height="200"> |
This file contains 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 brands = ['Nike', 'New Balance', 'Adidas', 'asics', 'Adidas', 'New Balance', 'New Balance', 'Nike', 'Adidas', 'asics']; | |
var newMap = {}; | |
var max = 1; | |
var maxItem = brands[0]; | |
brands.forEach(function(item, index, array){ | |
if(!newMap[item]) { | |
newMap[item] = 1; | |
} else { | |
newMap[item]++; |
This file contains 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 t = {'nike': 5}; | |
var brands = [t, 'New Balance', 'Adidas', 'asics', t, 'New Balance', t, 'Nike', t, 'asics']; | |
var newMap = []; | |
var quantities = []; | |
var max = 0; | |
var maxItem; | |
brands.forEach(function(item, index, array){ | |
if(newMap.indexOf(item) < 0) { | |
newMap.push(item); |
This file contains 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
<script> | |
document.addEventListener("DOMContentLoaded", () => { | |
$('.w-dropdown-toggle').on('keydown', e => { | |
if (e.keyCode === 13) { | |
const $toggle = $(e.target).closest('.w-dropdown-toggle'); | |
const $list = $toggle.closest('.w-dropdown').children('.w-dropdown-list'); | |
const opened = 'w--open'; | |
if ($toggle.hasClass(opened)) { | |
$toggle.removeClass(opened); | |
$list.removeClass(opened); |
This file contains 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
// place this one in the [options] section in your flowconfig | |
module.name_mapper='.*\(.html\)' -> 'empty/string' |
This file contains 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
// place this one in the [options] section in your flowconfig | |
module.name_mapper='^raw-loader!\(.*\.html?\)' -> '\1' | |
module.file_ext=.html | |
module.file_ext=.js | |
module.file_ext=.jsx | |
module.file_ext=.json |
This file contains 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
// place this one in the [options] section in your flowconfig | |
module.name_mapper='^raw-loader!\(.*\.html?\)' -> '<PROJECT_ROOT>/flow-typed/raw-loader.js' |
This file contains 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
// place this one in the [options] section in your flowconfig | |
module.name_mapper='^raw-loader!\(.*\.html?\)' -> 'raw-loader' |
OlderNewer