This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
let count = 0; | |
function getAllButtons() { | |
return document.querySelectorAll('button[data-control-name="entity_action_primary"]') || []; | |
} | |
async function unfollowAll() { | |
const buttons = getAllButtons(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$price = 1000; | |
$mod = 8.5; | |
//1000 * 2% = 80 | |
//OR | |
//1000 % 8 = 80 | |
echo get_modulo($price,$mod); //Ans 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Static | |
$checkIN = $this->input->post('checkIN'); | |
$checkIN = str_replace("/", "-", $checkIN); | |
$checkIN = date('Y-m-d h:i:s', strtotime($checkIN)); | |
$checkOUT = $this->input->post('checkOUT'); | |
$checkOUT = str_replace("/", "-", $checkOUT); | |
$checkOUT = date('Y-m-d h:i:s', strtotime($checkOUT)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".startDate").datepicker({ | |
minDate: 0, | |
onSelect: function (selected) { | |
var dt = jQuery(this).datepicker("getDate"); | |
dt.setDate(dt.getDate() + 1); | |
jQuery(".endDate").datepicker("option", "minDate", dt); | |
jQuery(".endDate").datepicker("option", "dateFormat", "dd.mm.yy"); | |
jQuery(".endDate").datepicker("setDate", dt); | |
//Dateformat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(".endDate").datepicker({ | |
minDate: 0, | |
monthNames: ["Januar","Februar","Marz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"] | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media(max-width:992px){ | |
/* On mobile set datepicker to viewport center*/ | |
#ui-datepicker-div { | |
position: fixed !important; | |
left: 50% !important; | |
top: 50% !important; | |
transform:translate(-50%, -50%); | |
-webkit-transform:translate(-50%, -50%); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__cnt__ = 0; | |
jQuery('.follow-text').each(function(i, ele) { | |
ele = jQuery(ele); | |
if (ele.css('display') != 'block') { | |
//alert('already following:', i); | |
return; | |
} | |
setTimeout(function() { | |
ele.click(); | |
}, __cnt__++ * 500); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var deleteAllGroupMembers = (function () { | |
var deleteAllGroupMembers = {}; | |
// the facebook ids of the users that will not be removed. | |
// IMPORTANT: add your own facebook id here so that the script will not remove yourself! | |
var excludedFbIds = ['1234','11223344']; // make sure each id is a string! | |
var usersToDeleteQueue = []; | |
var scriptEnabled = false; | |
var processing = false; | |
deleteAllGroupMembers.start = function() { |