mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Moved modals some round, and added donation-modal
This commit is contained in:
@@ -147,6 +147,8 @@ $().ready(function(){
|
||||
});
|
||||
}
|
||||
|
||||
$("#donate").modal();
|
||||
|
||||
socket.on("connect", function(){
|
||||
if(connect_error){
|
||||
connect_error = false;
|
||||
@@ -1024,6 +1026,17 @@ function seekToClick(e){
|
||||
}
|
||||
}
|
||||
|
||||
$(document).on("click", "#bitcoin-address", function(e) {
|
||||
var copyTextarea = document.querySelector('#bitcoin-address');
|
||||
copyTextarea.select();
|
||||
var successful = document.execCommand('copy');
|
||||
if(successful) {
|
||||
Materialize.toast("Copied!", 2000, "green lighten");
|
||||
} else {
|
||||
Materialize.toast("Error copying..", 2000, "red lighten");
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on("click", ".pagination-results a", function(e) {
|
||||
e.preventDefault();
|
||||
var that = $(this);
|
||||
@@ -1310,6 +1323,11 @@ $(document).on("click", ".first_page", function(e){
|
||||
List.dynamicContentPage(-10);
|
||||
});
|
||||
|
||||
$(document).on("click", ".donate-button", function(e) {
|
||||
e.preventDefault();
|
||||
$("#donate").modal("open");
|
||||
});
|
||||
|
||||
$(document).on('click', '#toast-container', function(){
|
||||
before_toast();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user