Skip to content

Commit

Permalink
Add text url to the screensaver
Browse files Browse the repository at this point in the history
  • Loading branch information
vicwomg committed Dec 24, 2023
1 parent 4c73dd9 commit 757c981
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion static/screensaver.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body {
position: absolute;
left: 0px;
top: 0px;
height: 150px;
height: 180px;
width: 300px;
z-index: 11;
border-radius: 10px;
Expand Down
2 changes: 1 addition & 1 deletion static/screensaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let x = 0,
y = 0,
dirX = 1,
dirY = 1;
const speed = 3;
const speed = 1;
const pallete = ["#ff8800", "#e124ff", "#6a19ff", "#ff2188"];
let prevColorChoiceIndex = 0;

Expand Down
7 changes: 6 additions & 1 deletion templates/splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,12 @@
<div id="screensaver" style="visibility: hidden">
<div id="dvd">
{% if not hide_url %}
<img src="{{ url_for('qrcode') }}" width="20%" height="20%" />
<div>
<div style="text-align: right">
<img src="{{ url_for('qrcode') }}" width="30%" height="30%" />
</div>
<div>{{ url }}</div>
</div>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 757c981

Please sign in to comment.