Commit 287bafec authored by yPhil's avatar yPhil
Browse files

Close button in beg dialog

parent a54d5a79
Pipeline #394235 passed with stage
in 50 seconds
......@@ -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;
}
......
......@@ -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');
});
$beggarH4.on('click', function() {
$beggarClose.on('click', function() {
$beggar.fadeOut('fast');
});
......
......@@ -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;
......
......@@ -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() {
......
......@@ -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"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment