Read the statement by Michael Teeuw here.
Display the specified picture in the specified location
-
@史新瑞 you can look at my version of MMM-ImagesPhotos
https://github.com/sdetweil/MMM-ImagesPhotos
I center the image in the background(fullscreen_below), retaining the image dimension ratio, which css cover and contain do not.
to help with smoothing the transitions and not having blank screen, I use an onLoad() handler to hide the prior and visualize the just loaded image.
I have not tried these modifications in the middle_center mm position
-
@sdetweil thank you
-
@sdetweil I was wondering how do you set the image position in your CSS program?or automatically read fixed folder pictures and thanks for the instructions
-
-
@sdetweil Sorry I didn’t find line 247

-
@史新瑞 my version
-
@sdetweil Thank you. I have downloaded your module, but there is an error when I use it. Could you please help me check it? I’m very sorry

-
@史新瑞

This is the config.js file -
-
@sdetweil Sorry, I forgot. I’ll try again
-
@史新瑞 my code always uses the full screen
m is the margin sizevar tw = document.body.clientWidth+(parseInt(m)*2); var th = document.body.clientHeight+(parseInt(m)*2)but one could get the module position( part of the config Info passed to module) and then get ITS size.
see the window.getComputedStyle(), used on line 221. -
@sdetweil I did the installation and configuration several times. But yesterday’s mistake has not been resolved
-
@sdetweil Thank you very much. I’ve got the problem
Thank you again
-
@史新瑞 I do not understand
if you did the npm install in the newly cloned module folder then the request library would be added to the modules library list
-
@sdetweil Sorry, there was a mistake in translation. I mean no more questions, thanks again
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login