mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
lint fixes
This commit is contained in:
parent
03351dc14d
commit
0eb35a4610
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
npm test &&
|
npm test &&
|
||||||
|
|
||||||
if [ $TRAVIS_BRANCH == "master" ]; then
|
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||||
gulp build --production
|
gulp build --production
|
||||||
else
|
else
|
||||||
gulp build
|
gulp build
|
||||||
|
@ -1,12 +1,16 @@
|
|||||||
//=include exif-js/exif.js
|
/* global EXIF */
|
||||||
|
|
||||||
window.onload = getExif;
|
/* eslint-disable spaced-comment */
|
||||||
|
//=include exif-js/exif.js
|
||||||
|
/* eslint-enable spaced-comment */
|
||||||
|
|
||||||
|
window.onload = getExif
|
||||||
|
|
||||||
function getExif() {
|
function getExif() {
|
||||||
const image = document.querySelector('.hentry__teaser img')
|
const image = document.querySelector('.hentry__teaser img')
|
||||||
|
|
||||||
EXIF.getData(image, function () {
|
EXIF.getData(image, function () {
|
||||||
// get individual data
|
// Get individual data
|
||||||
const modelvalue = EXIF.getTag(this, 'Model')
|
const modelvalue = EXIF.getTag(this, 'Model')
|
||||||
const shutterspeedvalue = EXIF.getTag(this, 'ExposureTime')
|
const shutterspeedvalue = EXIF.getTag(this, 'ExposureTime')
|
||||||
const aperturevalue = EXIF.getTag(this, 'FNumber')
|
const aperturevalue = EXIF.getTag(this, 'FNumber')
|
||||||
@ -14,7 +18,7 @@ function getExif() {
|
|||||||
const isovalue = EXIF.getTag(this, 'ISOSpeedRatings')
|
const isovalue = EXIF.getTag(this, 'ISOSpeedRatings')
|
||||||
const focallengthvalue = EXIF.getTag(this, 'FocalLength')
|
const focallengthvalue = EXIF.getTag(this, 'FocalLength')
|
||||||
|
|
||||||
// inject data
|
// Inject data
|
||||||
if (modelvalue) {
|
if (modelvalue) {
|
||||||
const model = document.querySelector('.exif__model')
|
const model = document.querySelector('.exif__model')
|
||||||
model.innerHTML = modelvalue
|
model.innerHTML = modelvalue
|
||||||
|
Loading…
Reference in New Issue
Block a user