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
const imagemin = require('imagemin'); | |
const imageminWebp = require('imagemin-webp'); | |
const imageminZopfli = require('imagemin-zopfli'); | |
const imageminMozjpeg = require('imagemin-mozjpeg'); | |
imagemin(['source/*.jpg'], 'output', { | |
progressive: true, | |
use: [ | |
imageminZopfli({ | |
more: true, |
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
<template> | |
<picture> | |
<!-- First we need to list the available image sources the browser can select as src in the image tag --> | |
<!-- We use media queries to let the browser select the source by the viewport width --> | |
<!-- We also define file type (webp or jpg) to let the browser select between supported formats. List the WebPs first as they are preferable --> | |
<template v-for="format in formats"> | |
<source | |
media="(min-width: 1200px)" | |
:srcset="`${base + img}-l.${format}`" | |
:type="'image/' + format" /> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<template> | |
<header ref="header"> | |
<Graphic> | |
<div slot="legend"> | |
<span v-html="10 %" /> | |
</div> | |
<template slot="content"> | |
<h1>Content</h1> | |
</template> | |
</Graphic> |
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
<template> | |
<svg class="vis"> | |
<circle | |
v-for="(item, n) in data" | |
:key="n" | |
:cx="states[state]['x'](item)" | |
:cy="states[state]['y'](item)" | |
:r="states[state]['r'](item)" | |
:style="{ | |
'opacity': states[state]['o'](item), |
<template>
<div ref="result">
{{ result }}
</div>
</template>
<script>
export default {
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
Dir.chdir(File.dirname(__FILE__)) | |
require "awesome_print" | |
# Skript um ein Spaltenlayout für zwei unterschiedliche Breiten zu finden | |
BREITE_1 = 250 | |
BREITE_2 = 200 |