Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yPhil
Pétrolette
Commits
287bafec
Commit
287bafec
authored
Mar 03, 2021
by
yPhil
Browse files
Close button in beg dialog
parent
a54d5a79
Pipeline
#394235
passed with stage
in 50 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/css/petrolette.css
View file @
287bafec
...
...
@@ -1397,10 +1397,21 @@ div#logo-title > .logo-title > a:hover {
flex-direction
:
column
;
}
#beggar
>
span
{
#beggar
>
span
.beggarIcon
{
font-size
:
6em
;
}
#beggar
>
span
.beggarClose
{
position
:
absolute
;
top
:
4px
;
right
:
6px
;
cursor
:
pointer
;
}
#beggar
>
span
.beggarClose
:hover
{
color
:
var
(
--color-ui-sec
);
}
#beggar
>
a
.ui-button
{
margin
:
1em
0
0.5em
0
;
}
...
...
public/js/PTL.dialog.js
View file @
287bafec
...
...
@@ -9,6 +9,7 @@ PTL.dialog = {
const
$beggar
=
$
(
'
#beggar
'
),
$beggarH4
=
$
(
'
#beggar > h4
'
),
$beggarClose
=
$
(
'
#beggar > span.beggarClose
'
),
$beggarOkButton
=
$
(
'
#beggar > #beggarOkButton
'
),
$beggarTourButton
=
$
(
'
#beggar > #beggarTourButton
'
);
...
...
@@ -17,7 +18,7 @@ PTL.dialog = {
window
.
open
(
'
https://liberapay.com/yPhil/donate
'
);
});
$beggar
H4
.
on
(
'
click
'
,
function
()
{
$beggar
Close
.
on
(
'
click
'
,
function
()
{
$beggar
.
fadeOut
(
'
fast
'
);
});
...
...
public/js/PTL.feed.js
View file @
287bafec
...
...
@@ -399,7 +399,7 @@ PTL.feed = {
if
(
item
.
enclosures
[
0
].
url
&&
item
.
enclosures
[
0
].
url
.
match
(
/
\.(
ogg|mp3
)
$/
))
{
var
audioPlayer
=
document
.
createElement
(
'
audio
'
);
audioPlayer
.
id
=
'
audio-player
'
;
//
audioPlayer.id = 'audio-player';
audioPlayer
.
controls
=
'
controls
'
;
audioPlayer
.
src
=
item
.
enclosures
[
0
].
url
;
audioPlayer
.
type
=
item
.
enclosures
[
0
].
type
;
...
...
public/js/PTL.main.js
View file @
287bafec
...
...
@@ -61,8 +61,8 @@ var PTL = (function() {
});
$
(
'
body
'
).
on
(
'
click
'
,
'
.help-button
'
,
function
()
{
PTL
.
dialog
.
help
();
//
PTL.dialog.beg();
//
PTL.dialog.help();
PTL
.
dialog
.
beg
();
});
$
(
'
body
'
).
on
(
'
click
'
,
'
.new-feed-button
'
,
function
()
{
...
...
views/index.html
View file @
287bafec
...
...
@@ -484,7 +484,8 @@
</div>
<div
id=
"beggar"
style=
"display:none"
class=
"flex-box"
>
<span>
🍏
</span>
<span
class=
"beggarClose icon-cancel"
></span>
<span
class=
"beggarIcon"
>
🍏
</span>
<h4
class=
"translate"
data-content=
"Pétrolette needs you"
>
Pétrolette needs you
</h4>
<p>
<span
class=
"translate"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment