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
function setFavicons(favImg){ | |
let headTitle = document.querySelector('head'); | |
let setFavicon = document.createElement('link'); | |
setFavicon.setAttribute('rel','shortcut icon'); | |
setFavicon.setAttribute('href',favImg); | |
headTitle.appendChild(setFavicon); | |
} | |
setFavicons('https://spemer.com/img/favicon/favicon.png'); |
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
<link rel="shortcut icon" href="../images/favicon.png" /> |
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
let favIcons = [ | |
{ rel: 'apple-touch-icon' }, | |
{ rel: 'apple-touch-startup-image' }, | |
{ rel: 'shortcut icon' } | |
] |
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
function setFavicons(favImg){ | |
let headTitle = document.querySelector('head'); | |
let favIcons = [ | |
{ rel: 'apple-touch-icon' }, | |
{ rel: 'apple-touch-startup-image' }, | |
{ rel: 'shortcut icon' } | |
] | |
favIcons.forEach(function(favIcon){ |
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
function setAppleFavicons(){ | |
let headTitle = document.querySelector('head'); | |
let appleFavIcons = [ | |
{ sizes:'152x152', href: '../touch-icon-ipad.png' }, | |
{ sizes:'180x180', href: '../touch-icon-iphone-retina.png' }, | |
{ sizes:'167x167', href: '../touch-icon-ipad-retina.png' } | |
] | |
appleFavIcons.forEach(function(appleFavIcon){ |
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
<link rel="icon" href="../favicon-16.png" sizes="16x16" type="../favicon-16.png" /> | |
<link rel="icon" href="../favicon-32.png" sizes="32x32" type="../favicon-32.png" /> | |
<link rel="icon" href="../favicon-48.png" sizes="48x48" type="../favicon-48.png" /> | |
<link rel="icon" href="../favicon-62.png" sizes="62x62" type="../favicon-62.png" /> | |
<link rel="icon" href="../favicon-192.png" sizes="192x192" type="../favicon-192.png" /> |
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
:root { | |
--paragraph-color: #656c7a; | |
--paragraph-font-size: 1rem; | |
--figcaption-font-size: 12px; | |
} |
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
p { | |
font-color: var(--paragraph-color); | |
} |
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
p { | |
font-color: var(--paragraph-color); | |
font-size: var(--paragraph-font-size); | |
} | |
li .primary-nav { | |
font-color: var(--paragraph-color); | |
} | |
p { | |
font-color: var(--paragraph-color); | |
font-size: var(--figcaption-font-size); |
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
:root { | |
--font-size: 1; | |
} |
OlderNewer