mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Lame aprilprank
This commit is contained in:
@@ -285,7 +285,15 @@ function share_link_modifier(){
|
||||
|
||||
function initfp(){
|
||||
|
||||
var date = new Date();
|
||||
|
||||
if(date.getMonth() == 3 && date.getDate() == 1){
|
||||
$(".mega").css("-webkit-transform", "rotate(180deg)");
|
||||
$(".mega").css("-moz-transform", "rotate(180deg)");
|
||||
Materialize.toast('<p id="aprilfools">We suck at pranks..<a class="waves-effect waves-light btn light-green" style="pointer-events:none;">Agreed</a></p>', 100000);
|
||||
}
|
||||
|
||||
|
||||
window.onpopstate = function(e){
|
||||
var url_split = window.location.href.split("/");
|
||||
|
||||
@@ -388,6 +396,11 @@ $(document).on('click', '#toast-container', function(){
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', "#aprilfools", function(){
|
||||
$(".mega").css("-webkit-transform", "rotate(0deg)");
|
||||
$(".mega").css("-moz-transform", "rotate(0deg)");
|
||||
});
|
||||
|
||||
$(document).on('click', ".chan-link", function(e){
|
||||
e.preventDefault();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user