Интерактивный глобус с возможностью вращения мышкой и центрированием на выбранную страну. Подробнее о создании можно почитать на Хабрахабре.
This projected is licensed under the terms of the MIT license.
dark grey (#333333) rather than black as the primary text colour on the site’s white background. | |
Two more accent colours: light grey (#999999) for the auxiliary text and crimson red (#CC0000) for links. | |
Auxiliary data is highlighted with H5 heading: | |
{font-variant:small-caps; text-transform:lowercase; font-size:0.875em;} | |
The rest is simply a result of pedantically calculated font sizes and leading: |
<section class="dt-ns pb4 w-100"> | |
<div class="dt-row-ns"> | |
<div class="w-100 w-50-ns ph3 bg-black v-mid tc dtc-ns pv5 pv0-ns"> | |
<h1 class="f1 f-head-ns white ttu fw4">Test</h1> | |
<p class="f3 white i">Test put some content here maybe 10-15 words</p> | |
</div> | |
<div class="w-100 w-50-ns dtc-ns h-100"> | |
<div class="aspect-ratio aspect-ratio--7x5"> | |
<div class="aspect-ratio--object cover" style="background:url(http://mrmrs.github.io/photos/001.jpg) center;"></div> | |
</div> |
<h3 class="f6 ttu mb0">H1 Oswald Highlight bold 2rem / 36px </h3> | |
<div class="db"> | |
<h1 class="di mt0 pa3 ttu bg-ashblue bd-clone lh-title">h1 Featured content<br>longer text that wraps<br>Featured</h1> | |
</div> | |
.bd-clone { | |
-webkit-box-decoration-break: clone; | |
-ms-box-decoration-break: clone; | |
-o-box-decoration-break: clone; | |
box-decoration-break: clone; |
Middleman allows you to create partials (https://middlemanapp.com/basics/partials/) | |
Partials can accept both parameters and arbitrary HTML (passed as a block) | |
`<%= partial(:button, :locals => { :type => 'primary', :text => "Click Me!" }) %>` | |
For a block, something like this: | |
```<button class="YOUR TACHYONS CLASSES GO HERE"> | |
<%= yield %> | |
</button> |
<?php | |
class WP_HTML_Compression | |
{ | |
// Settings | |
protected $compress_css = true; | |
protected $compress_js = true; | |
protected $info_comment = true; | |
protected $remove_comments = true; | |
// Variables |
<!doctype html> | |
<html class="contact-black"> | |
<head> | |
<title>Fictive Kin — /Purpose</title> | |
<link rel="stylesheet" href="/static/css/main.scss.css?2016071500"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="Fictive Kin is an engineering and design studio based in Brooklyn."> | |
<!-- FAVICONS --> | |
<link rel="apple-touch-icon" sizes="57x57" href="/static/images/apple-touch-icon-57x57.png"> |
var person = { | |
firstName: 'David', | |
lastName: 'Walsh', | |
// ... | |
}; | |
Object.keys(person).forEach(function(trait) { | |
console.log('Person ', trait,': ', person[trait]); | |
}); |
Интерактивный глобус с возможностью вращения мышкой и центрированием на выбранную страну. Подробнее о создании можно почитать на Хабрахабре.
This projected is licensed under the terms of the MIT license.
//I have no idea why this isn't working https://caolan.github.io/async/docs.html#map | |
var turf = require('turf'), | |
fs = require('fs'), | |
async = require('async'); | |
var files = ['./input/serbia.geojson', './input/kosovo.geojson']; | |
function readAsync(file, callback) { | |
fs.readFile(file, 'utf8', callback); |
//Using Object literals instead of switch. | |
function getDrink (type) { | |
var drink; | |
var drinks = { | |
'coke': function () { | |
drink = 'Coke'; | |
}, | |
'pepsi': function () { | |
drink = 'Pepsi'; |