tomershvueli / homepage Goto Github PK
View Code? Open in Web Editor NEWA simple, standalone, self-hosted PHP page that is your window to your server and the web.
License: MIT License
A simple, standalone, self-hosted PHP page that is your window to your server and the web.
License: MIT License
Thanks a lot for the work, by the way! Perfect for our needs :)
I was just wondering where can I change how long it takes before the background image changes. I've been looking around but no luck so far...
When trying to set icons for items, most don't work for me. I am trying to use free icons.
Some examples of NON working icons:
fa-solid fa-bowl-food
fa-solid fa-utensils
fa-brands fa-raspberry-pi
Some examples of working icons:
fa-regular fa-play
fa-regular fa-download
fa-regular fa-comments
Unsplash no longer lets you use their API for something like this. You may get away with it for a while but there is a risk of them shutting it down. If they don’t, you are limited to 50 image impressions per hour with no approvals from them. If you apply for their normal free API tier which gives you thousands of image impressions (I don’t recall the exact number), although it is free, most likely the reviewer will not approve your “app” since they only like people using their API if you’re going to offer something different from what their site offers. They consider this, a rotating image, not different enough.
It seems, not all icons from font-awesome can be used (f.e. 'newspaper')
First of all, thanks a lot by this simple yet really nice project of yours.
What brings me here is more of a feature request / personal preference than an issue... I'm a little annoyed by the green when the mouse is hovering over an icon. I'm more inclined to use a light blue or something along those lines.
Could you please explain me how the color is defined and point me to the code on the repository so I can thinker with those settings a bit?
Leverage pattern.css for random background patterns instead of the current image background when no Unsplash ID set.
Hello there,
nice work, the installation was easy and it work fine except one detail the menu isn't active by default.
Is there a way/option to active the menu directly ?
Honestly not sure what is wrong here. I've tried iterations of "[{random}]", "['{random}']", [{random}], ['{random}']. Removing the quotes causes some transparent breakage (mostly background sayagata-400px.png has an odd appearance probably caused by the missing quotes throwing errors).
Assuming the use of "[{random}]" from README.md, what I see in my browser console for headers on ajax_get_image.php
looks like this:
{"success":1,"url":null}
So the ajax_get_image.php
file call is not able to get the url of images for me when using {random}. Changing from {random} to any of the selectors in the file (ex 'bga') will cause that one image to load (interestingly the message remains success:1 with url no longer null but an actual address), but I would like to use the random feature properly and cycle through several images that are listed in my custom_url json file.
I looked at the function from ajax_get_image.php
on line 24 but I'll be honest, code reading/writing is not my forte. I have a general idea of what should be happening, but no idea how to debug further.
On a couple of tangents, I also noticed that:
Picture by / Unsplash
in the credit section, and looking at the code I think the user's name is supposed to appear before that / (line 70, column 38-72 of index.php file). The best option if possible is to get it so that the credit section checks for protected
being empty, and if not it uses the json file from our protected
section to dynamically create values. I'm not that familiar with json so not sure how the arrays have to be structured. If possible, could we define a url to the image, the artist's name, and the artist's portfolio link in our custom json file and have it generates the image credits matched to the url? Also not sure if the picture refresh actually reloads the entire page or not (I think that or another ajax would be required to update the credit section, no?) so if not possible to do that just have the Picture by / Unsplash
message hidden when using the protected
section.Hi,
Love the project. Nice and simple. I'm setting it up for use right now!
One thing. I noticed the .htaccess file blocking direct access to the config.json file, but if you view the source of the page, all the JSON data is sitting there. Exposing the UnSplash API Key like that does not seem great.
Is there a way you do not need to load this into the HTML (javascript) of the page?
Hey,
I have had to modify the code to run it on my mobile:
I have changed:
`@media (min-width: 992px) {
#links-wrap {margin-top: 15%; height: auto; font-size: 80px;}
#clock-wrap {font-size: 30px;}
}`
to:
`@media (max-width: 400px) {
#links-wrap {margin-top: 25%; height: auto; font-size: 45px;}
#clock-wrap {font-size: 20px;}
}
`
Hello,
Love the software. Looks really good.
Just noticing the hidden menu becomes visible when un-maximising the browser window and scaling it down. Around 1199 x 658 the menu appears without any interaction with the unlock pattern.
Also, for us Nginx users, the .htaccess file is not relevant. Adding a security section to the Readme.md mentioning to hide your config.json would be a useful addition for new comers. The following will help block access to it.
location = /config.json {
return 403;
}
Cheers,
What are known picture sources?
I would like to use my google fotos, is that possible?
I dont see anything about json output from there...
To continue the conversation on reddit.
https://dashboard.jamiesinn.ca/
https://dashboard.jamiesinn.ca/hp_assets/lib/ajax_get_image.php
Excellent dashboard but is there a way for the webpage to go back to a blank cover page after xx seconds?
Would be nice if we could have a setting in the config to allow a timeout of xx seconds. This will help keeping the page visibly hidden.
I have a lot of items, that come into my mind, while setting up my config.json. So I would like to have directories. These can be configured by nesting items.
Reason - you can currently view the source of any config file via the browser. This is a security as the client app id is listed there.
Hide the scrollbar for links-wrap. Overflow: hidden should be enough.
Please add a reference in the readme file, that php5-curl
is required.
If php5-curl
is not installed, the ajax_get_image.php
file throws erros and the wallpaper function doesn't work
Hello, I have been trying to get Unsplash to work, but I get no image background.
What I did:
Did I miss something or is this function not functional anymore?
Thank you in advance
I might have missed something obvious but how do we toggle the menu on a mobile device where the keyboard is not visible?
Hi! I tried to install homepage, but I can't get it to work with unsplash. Can we document how to do that? Or at least add a link?
Hi, thanks a lot for your work, i'm new to PHP, i've been using your homepage for a while, but suddenly it started to show this error:
Fatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in X:\web\src\index.php:19 Stack trace: #0 X:\web\src\index.php(19): array_merge() #1 {main} thrown in X:\web\src\index.php on line 19
I was trying to google it but no success. Could you help me to figure it out?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.