feat: Website

Remove website
This commit is contained in:
Marco Biedermann 2020-08-28 10:42:48 +02:00
parent a9757ac395
commit fdd35d2a46
No known key found for this signature in database
GPG Key ID: A3220191AD073B13
39 changed files with 0 additions and 4037 deletions

21
.gitignore vendored
View File

@ -1,22 +1 @@
# OS or Editor folders
*.esproj
*.sublime-project
*.sublime-workspace
.DS_Store
.Spotlight-V100
.Trashes
._*
.cache
.idea
.project
.settings
.tmproj
Desktop.ini
Thumb.db
Thumbs.db
nbproject
_site
.jekyll-metadata
.sass-cache
node_modules

View File

@ -1,4 +0,0 @@
_site
.jekyll-metadata
.sass-cache
node_modules

View File

@ -1,5 +0,0 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
}

View File

@ -1,4 +0,0 @@
_site
.jekyll-metadata
.sass-cache
node_modules

View File

@ -1,34 +0,0 @@
{
"extends": [
"stylelint-config-prettier",
"stylelint-config-standard"
],
"plugins": [
"stylelint-order",
"stylelint-scss"
],
"rules": {
"at-rule-no-unknown": [
true, {
"ignoreAtRules": [
"at-root",
"content",
"debug",
"each",
"else",
"error",
"extend",
"for",
"function",
"if",
"include",
"mixin",
"return",
"warn",
"while",
]
}
],
"order/properties-alphabetical-order": true
}
}

View File

@ -1,7 +0,0 @@
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem "jekyll", "~> 3.8"

View File

@ -1,63 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.1.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.10.0)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.5)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-watch (2.1.2)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.3)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (3.3.0)
ruby_dep (1.5.0)
safe_yaml (1.0.5)
sass (3.7.3)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
PLATFORMS
ruby
DEPENDENCIES
jekyll
BUNDLED WITH
1.16.3

View File

@ -1,24 +0,0 @@
# Site settings
title: Search Engine Optimization
description: A helpful checklist / collection of Search Engine Optimization (SEO) tips and technics.
baseurl: '' # the subpath of your site, e.g. /blog/
url: '' # the base hostname & protocol for your site
twitter_username: m412c0b
github_username: marcobiedermann
exclude: [readme.md]
sass:
style: compressed
# Build settings
markdown: kramdown
# Compress HTML
compress_html:
clippings: all
comments: []
endings: [p, li, td]
ignore:
envs: []
blanklines: false
profile: false
startings: [html, head, body]

View File

@ -1,5 +0,0 @@
<footer class="site__footer" role="contentinfo" itemscope itemtype="//schema.org/WPFooter">
<div class="grid">
FOOTER
</div>
</footer>

View File

@ -1,20 +0,0 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="google-site-verification" content="PaHTIq4plwQv3e1xHhh5Qd0HDhl0i1MZ33prE-EVwjY" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
<meta name="description" content="{{ site.description }}" />
<meta
name="apple-mobile-web-app-title"
content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"
/>
<meta name="application-name" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta name="theme-color" content="#2980b9" />
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<link rel="stylesheet" href="css/main.css" />
<link rel="mask-icon" href="favicon.svg" color="#2980b9" />
<link rel="icon" href="apple-touch-icon-precomposed.png" />
<link rel="apple-touch-icon" href="apple-touch-icon-precomposed.png" />
</head>

View File

@ -1,16 +0,0 @@
<header class="site__header" role="banner" itemscope itemtype="//schema.org/WPHeader">
<a href="//github.com/marcobiedermann/search-engine-optimization" class="github" target="_blank">
<svg xmlns="//www.w3.org/2000/svg" viewBox="0 0 250 250" fill="#fff">
<path d="M0 0l115 115h15l12 27 108 108V0z" fill="#70B7FD" />
<path
class="github__arm"
d="M128 109c-15-9-9-19-9-19 3-7 2-11 2-11-1-7 3-2 3-2 4 5 2 11 2 11-3 10 5 15 9 16"
style=""
/>
<path
class="github__body"
d="M115 115s4 2 5 0l14-14c3-2 6-3 8-3-8-11-15-24 2-41 5-5 10-7 16-7 1-2 3-7 12-11 0 0 5 3 7 16 4 2 8 5 12 9s7 8 9 12c14 3 17 7 17 7-4 8-9 11-11 11 0 6-2 11-7 16-16 16-30 10-41 2 0 3-1 7-5 11l-12 11c-1 1 1 5 1 5z"
/>
</svg>
</a>
</header>

View File

@ -1,10 +0,0 @@
---
# Jekyll layout that compresses HTML
# v3.0.2
# http://jch.penibelst.de/
# © 20142015 Anatol Broder
# MIT License
---
{% capture _LINE_FEED %}
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}

View File

@ -1,20 +0,0 @@
---
layout: compress
---
<!DOCTYPE html>
<html lang="en" itemscope itemtype="//schema.org/WebPage">
{% include head.html %}
<body>
{% include header.html %}
<main class="site__main" role="main" itemscope itemprop="mainContentOfPage">
<div class="grid">
{{ content }}
</div>
</main>
</body>
<script src="js/script.js"></script>
</html>

View File

@ -1,26 +0,0 @@
@-ms-viewport {
width: device-width;
}
* {
-webkit-tap-highlight-color: transparent;
}
::selection {
background: $base-color;
color: $base-bgcolor;
text-shadow: none;
}
html {
height: 100%;
}
body {
background: $base-bgcolor;
color: $base-color;
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family, $base-font-family-fallback;
margin: 0;
min-height: 100%;
position: relative;
}

View File

@ -1,10 +0,0 @@
$base-bgcolor: #fdfdfd;
$base-border-color: #808080;
$base-color: #111;
$base-font-family-fallback: sans-serif;
$base-font-family: Helvetica Neue;
$base-font-size: 0.875rem;
$base-font-weight: 400;
$base-line-height: 1.5;
$media-sm: 30rem;

View File

@ -1,5 +0,0 @@
footer {
display: block;
margin: 0;
padding: 0;
}

View File

@ -1,3 +0,0 @@
header {
display: block;
}

View File

@ -1,19 +0,0 @@
$code-font-family: 'Courier New';
$code-font-family-fallback: monospace;
$code-font-size: 0.875rem;
code {
font-family: $code-font-family, $code-font-family-fallback;
font-size: $code-font-size;
overflow: auto;
word-break: break-all;
word-wrap: break-word;
}
pre {
display: block;
margin: 0;
overflow: auto;
word-break: break-all;
word-wrap: break-word;
}

View File

@ -1,38 +0,0 @@
.github {
height: 80px;
position: fixed;
right: 0;
top: 0;
transform: translateZ(0);
width: 80px;
z-index: 1;
&__arm {
transform-origin: 130px 106px;
}
&:hover {
.github__arm {
@media (min-width: $media-sm) {
animation: octocat-wave 560ms ease-in-out;
}
}
}
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}

View File

@ -1,8 +0,0 @@
$grid-max-width: 48rem;
$grid-width: 90%;
.grid {
margin: 0 auto;
max-width: $grid-max-width;
width: $grid-width;
}

View File

@ -1,7 +0,0 @@
$headlines-color: #686868;
@for $i from 1 through 6 {
h#{$i} {
margin: 0 0 0.5rem;
}
}

View File

@ -1,5 +0,0 @@
img {
height: auto;
max-width: 100%;
vertical-align: middle;
}

View File

@ -1,7 +0,0 @@
hr {
background-color: $base-border-color;
border: 0;
box-sizing: content-box;
height: 1px;
margin: 0 0 1.5rem;
}

View File

@ -1,24 +0,0 @@
$link-color: #2980b9;
$link-active-color: lighten($link-color, 10%);
$link-hover-color: darken($link-color, 10%);
a {
background: transparent;
border: 0;
color: $link-color;
text-decoration: none;
transition: background-color 0.3s, color 0.3s;
&:active {
color: $link-active-color;
}
&:focus,
&:hover {
color: $link-hover-color;
}
&:focus {
outline: none;
}
}

View File

@ -1,15 +0,0 @@
ol,
ul {
margin: 0 0 1.5rem;
padding: 0 0 0 1.5rem;
ol,
ul {
margin: 0.5rem 0 0;
padding-left: 1.5rem;
}
li {
margin-bottom: 0.25rem;
}
}

View File

@ -1,14 +0,0 @@
blockquote {
margin: 0;
quotes: '\201C''\201D''\2018''\2019';
p {
&::before {
content: open-quote;
}
&::after {
content: close-quote;
}
}
}

View File

@ -1,13 +0,0 @@
table {
border-collapse: collapse;
border-spacing: 0;
text-align: left;
width: 100%;
}
caption,
td,
th {
padding: 0;
vertical-align: top;
}

View File

@ -1,12 +0,0 @@
b,
strong {
font-weight: bold;
}
em {
font-style: italic;
}
p {
margin: 0 0 1.5rem;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Please read: http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx -->
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="tile.png"/>
<square150x150logo src="tile.png"/>
<wide310x150logo src="tile-wide.png"/>
<square310x310logo src="tile.png"/>
</tile>
</msapplication>
</browserconfig>

View File

@ -1,15 +0,0 @@
@import 'variables';
@import 'base';
@import 'layout/header';
@import 'layout/footer';
@import 'modules/code';
@import 'modules/github';
@import 'modules/grid';
@import 'modules/headlines';
@import 'modules/images';
// @import 'modules/lines';
@import 'modules/links';
@import 'modules/lists';
// @import 'modules/quotes';
// @import 'modules/tables';
@import 'modules/text';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" width="709.92" height="709.92" viewBox="-48.955 -48.955 709.92 709.92" enable-background="new -48.955 -48.955 709.92 709.92"><path fill="#2980B9" d="M606.209 578.714l-158.011-155.486c41.377-44.956 66.802-104.411 66.802-169.835-.02-139.954-115.297-253.393-257.507-253.393-142.211 0-257.487 113.439-257.487 253.393s115.276 253.393 257.487 253.393c61.444 0 117.801-21.253 162.067-56.586l158.624 156.099c7.729 7.614 20.277 7.614 28.006 0 7.748-7.613 7.748-19.971.019-27.585zm-348.716-110.914c-120.326 0-217.869-95.992-217.869-214.407 0-118.414 97.543-214.407 217.869-214.407s217.868 95.993 217.868 214.407c.001 118.415-97.541 214.407-217.868 214.407zM165.176 186.654c-5.068-3.68-11.548-5.52-19.44-5.52-3.2 0-6.348.32-9.44.96-3.095.64-5.84 1.708-8.24 3.2-2.4 1.495-4.32 3.495-5.76 6-1.44 2.507-2.16 5.627-2.16 9.36 0 3.52 1.04 6.375 3.12 8.56 2.08 2.188 4.853 3.975 8.32 5.36 3.465 1.388 7.385 2.535 11.76 3.44 4.373.907 8.825 1.895 13.36 2.96 4.532 1.067 8.985 2.32 13.36 3.76 4.373 1.44 8.292 3.388 11.76 5.84 3.465 2.455 6.24 5.548 8.32 9.28 2.08 3.735 3.12 8.427 3.12 14.08 0 6.08-1.36 11.28-4.08 15.6-2.72 4.32-6.215 7.84-10.48 10.56-4.268 2.72-9.04 4.695-14.32 5.92-5.28 1.225-10.535 1.84-15.76 1.84-6.4 0-12.455-.8-18.16-2.4-5.708-1.6-10.72-4.025-15.04-7.28-4.32-3.252-7.735-7.413-10.24-12.48-2.508-5.065-3.76-11.065-3.76-18h14.4c0 4.8.933 8.935 2.8 12.4 1.865 3.468 4.32 6.32 7.36 8.56s6.585 3.895 10.64 4.96c4.052 1.068 8.212 1.6 12.48 1.6 3.413 0 6.853-.32 10.32-.96 3.465-.64 6.585-1.732 9.36-3.28 2.773-1.545 5.013-3.653 6.72-6.32 1.705-2.665 2.56-6.08 2.56-10.24 0-3.945-1.04-7.145-3.12-9.6-2.08-2.453-4.855-4.453-8.32-6-3.468-1.545-7.388-2.8-11.76-3.76-4.375-.96-8.827-1.945-13.36-2.96-4.535-1.012-8.987-2.185-13.36-3.52-4.375-1.333-8.295-3.092-11.76-5.28-3.467-2.185-6.24-5.013-8.32-8.48-2.08-3.465-3.12-7.812-3.12-13.04 0-5.76 1.172-10.745 3.52-14.96 2.345-4.212 5.465-7.68 9.36-10.4 3.893-2.72 8.32-4.745 13.28-6.08 4.96-1.333 10.052-2 15.28-2 5.865 0 11.305.695 16.32 2.08 5.012 1.387 9.412 3.575 13.2 6.56 3.785 2.987 6.772 6.748 8.96 11.28 2.185 4.535 3.385 9.948 3.6 16.24h-14.4c-.855-8.213-3.815-14.16-8.88-17.84zM290.535 171.054v12.8h-63.68v36.32h59.359v12.8h-59.359v39.52h64.16v12.8h-79.36v-114.24h78.88zM306.453 205.694c2.292-7.2 5.734-13.572 10.32-19.12 4.586-5.545 10.293-9.972 17.121-13.28 6.824-3.305 14.771-4.96 23.84-4.96 9.064 0 17.012 1.655 23.84 4.96 6.824 3.308 12.533 7.735 17.119 13.28 4.586 5.548 8.025 11.92 10.32 19.12 2.293 7.2 3.439 14.695 3.439 22.48 0 7.788-1.146 15.28-3.439 22.48-2.295 7.2-5.734 13.575-10.32 19.12-4.586 5.547-10.295 9.948-17.119 13.2-6.828 3.252-14.775 4.88-23.84 4.88-9.068 0-17.016-1.627-23.84-4.88-6.828-3.252-12.535-7.653-17.121-13.2-4.586-5.545-8.027-11.92-10.32-19.12-2.295-7.2-3.439-14.692-3.439-22.48-.001-7.785 1.144-15.28 3.439-22.48zm13.999 39.52c1.494 5.6 3.842 10.64 7.041 15.12s7.305 8.08 12.32 10.8c5.012 2.72 10.984 4.08 17.92 4.08 6.932 0 12.904-1.36 17.92-4.08 5.012-2.72 9.119-6.32 12.32-10.8 3.199-4.48 5.545-9.52 7.039-15.12 1.492-5.6 2.24-11.28 2.24-17.04s-.748-11.44-2.24-17.04c-1.494-5.6-3.84-10.64-7.039-15.12-3.201-4.48-7.309-8.08-12.32-10.8-5.016-2.72-10.988-4.08-17.92-4.08-6.936 0-12.908 1.36-17.92 4.08-5.016 2.72-9.121 6.32-12.32 10.8s-5.547 9.52-7.041 15.12c-1.494 5.6-2.238 11.28-2.238 17.04s.744 11.44 2.238 17.04z"/></svg>

Before

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -1,5 +0,0 @@
---
layout: default
---
{% include_relative readme.md %}

View File

@ -1,135 +0,0 @@
(function(window, document) {
'use strict';
// Bling
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) {
this.addEventListener(name, fn);
};
NodeList.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.on = NodeList.prototype.addEventListener = function(name, fn) {
this.forEach(function(element, i) {
element.on(name, fn);
});
};
// easing
var easing = {
linear: function(t) {
return t;
},
easeInQuad: function(t) {
return t * t;
},
easeOutQuad: function(t) {
return t * (2 - t);
},
easeInOutQuad: function(t) {
return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
},
easeInCubic: function(t) {
return t * t * t;
},
easeOutCubic: function(t) {
return --t * t * t + 1;
},
easeInOutCubic: function(t) {
return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
},
easeInQuart: function(t) {
return t * t * t * t;
},
easeOutQuart: function(t) {
return 1 - --t * t * t * t;
},
easeInOutQuart: function(t) {
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
},
easeInQuint: function(t) {
return t * t * t * t * t;
},
easeOutQuint: function(t) {
return 1 + --t * t * t * t * t;
},
easeInOutQuint: function(t) {
return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;
},
};
// requestAnimationFrame
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
var i;
var length = vendors.length;
for (i = 0; i < length && !requestAnimationFrame; ++i) {
requestAnimationFrame = [vendors[i] + 'RequestAnimationFrame'];
cancelAnimationFrame = [vendors[i] + 'CancelAnimationFrame'] || [vendors[i] + 'CancelRequestAnimationFrame'];
}
if (!requestAnimationFrame)
requestAnimationFrame = function(callback, element) {
var currTime = new Date().getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = setTimeout(function() {
callback(currTime + timeToCall);
}, timeToCall);
lastTime = currTime + timeToCall;
return id;
};
if (!cancelAnimationFrame) {
cancelAnimationFrame = function(id) {
clearTimeout(id);
};
}
// scrollTo
function scrollTo(Y, duration, easingFunction, callback) {
var start = Date.now();
var elem = document.documentElement.scrollTop ? document.documentElement : document.body;
var from = elem.scrollTop;
if (from === Y) {
callback();
return;
}
function scroll(timestamp) {
var currentTime = Date.now();
var time = Math.min(1, (currentTime - start) / duration);
var easedT = easingFunction(time);
elem.scrollTop = easedT * (Y - from) + from;
if (time < 1) {
requestAnimationFrame(scroll);
} else {
if (callback) {
callback();
}
}
}
requestAnimationFrame(scroll);
}
$('a[href^="#"]').on('click', function() {
scrollTo(document.getElementById(this.href.split('#')[1]).offsetTop, 800, easing.easeInOutQuad);
});
// Links
var links = document.links;
length = links.length;
for (i = 0; i < length; i++) {
if (links[i].hostname != window.location.hostname) {
links[i].target = '_blank';
}
}
})(window, document);

3397
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +0,0 @@
{
"name": "search-engine-optimization",
"version": "1.0.0",
"description": "[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) [![Join the chat at https://gitter.im/marcobiedermann/search-engine-optimization](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/marcobiedermann/search-engine-optimization)",
"main": "index.js",
"scripts": {
"fix:css": "npm run lint:css -- --fix",
"fix": "npm run fix:css",
"format": "prettier --write '**/*.{css,html,js,json,md,scss,yml,yaml}'",
"lint:css": "stylelint '**/*.{css,scss}'",
"lint": "npm run lint:css",
"test": "npm run lint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/marcobiedermann/search-engine-optimization.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/marcobiedermann/search-engine-optimization/issues"
},
"homepage": "https://github.com/marcobiedermann/search-engine-optimization#readme",
"devDependencies": {
"prettier": "^1.18.2",
"stylelint": "^10.1.0",
"stylelint-config-prettier": "^5.2.0",
"stylelint-config-standard": "^18.3.0",
"stylelint-order": "^3.0.0",
"stylelint-scss": "^3.9.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
tile.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB