1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-23 02:10:01 +01:00

lint fixes

This commit is contained in:
Matthias Kretschmann 2017-11-25 17:58:19 +01:00
parent 03351dc14d
commit 0eb35a4610
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 9 additions and 5 deletions

View File

@ -2,7 +2,7 @@
npm test &&
if [ $TRAVIS_BRANCH == "master" ]; then
if [ "$TRAVIS_BRANCH" == "master" ]; then
gulp build --production
else
gulp build

View File

@ -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() {
const image = document.querySelector('.hentry__teaser img')
EXIF.getData(image, function () {
// get individual data
// Get individual data
const modelvalue = EXIF.getTag(this, 'Model')
const shutterspeedvalue = EXIF.getTag(this, 'ExposureTime')
const aperturevalue = EXIF.getTag(this, 'FNumber')
@ -14,7 +18,7 @@ function getExif() {
const isovalue = EXIF.getTag(this, 'ISOSpeedRatings')
const focallengthvalue = EXIF.getTag(this, 'FocalLength')
// inject data
// Inject data
if (modelvalue) {
const model = document.querySelector('.exif__model')
model.innerHTML = modelvalue