mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-26 20:01:24 +01:00
lint fixes
This commit is contained in:
parent
03351dc14d
commit
0eb35a4610
@ -2,7 +2,7 @@
|
||||
|
||||
npm test &&
|
||||
|
||||
if [ $TRAVIS_BRANCH == "master" ]; then
|
||||
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||
gulp build --production
|
||||
else
|
||||
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() {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user