document.getElementById('overlay').style='visibility:hidden;opacity:0;transition:all 0.7s ease-out 0s';
th.trigger("reset");
на код выше....
$('#thanks').fadeIn(500);
setTimeout(function() {
// Done Functions
// th.trigger("reset");
document.getElementById('overlay').style='visibility:hidden;opacity:0;transition:all 0.7s ease-out 0s';
}, 1000);
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
console.log(obj[key]); // print all object items
};
}
const countInt = parseInt(count);
// or
const count = parseInt($( "#add_favorite_video_lbl" ).text());
SSH will fail to start if there are syntax errors in the /etc/ssh/sshd configuration file. The command following command will tell you if any directives are incorrect:/usr/sbin/sshd -T
If the configuration test does not return any errors, I would suggest starting sshd in debugging mode, this will provide you with a detailed startup of the service:/usr/sbin/sshd -ddd
arguments is an Array-like object accessible inside functions that contains the values of the arguments passed to that function.
ffmpeg was replaced in previous releases by the avconv program from the libav project.
To install avconv you need to install the libav-tools package:
sudo apt-get install libav-tools
avconv is very similar to ffmpeg, but they also have some differences in syntax.
Edit: It seems Ubuntu 16.04LTS has again ffmpeg in their repositories,
so libav-tools is a dummy package and only creates an alias
avconv -> ffmpeg (and others)
transform: rotate(-45deg);
transform: rotate(-15deg);
// Glitch Header /////////////////////////////////////////////////////////////////////
$(function(){
var imgContainerEl = $('#img-container');
var imagePath = template_directory_uri + '/images/' + imgContainerEl.attr('bg-glitch');
function loadImage(src) {
var imageEl = new Image();
imageEl.onload = function () {
changeGlitch(imageEl);
};
imageEl.src = src;
}
function changeGlitch(img) {
var params = glitches[getRandomInt(0, glitches.length - 1)];
glitch(params)
.fromImage(img)
.toDataURL()
.then(function(dataURL) {
var imageEl = new Image();
imageEl.src = dataURL;
imgContainerEl.css('background-image', 'url(' + imageEl.src + ')');
imgContainerEl.css('background-size', 'cover');
setTimeout(function(){
imgContainerEl.css('background-image', 'none');
}, 1000);
setTimeout(function(){
imgContainerEl.css('background-image', 'url(' + imageEl.src + ')');
imgContainerEl.css('background-size', 'cover');
}, 1050);
setTimeout(function(){
imgContainerEl.css('background-image', 'none');
}, 1100);
setTimeout(function(){
loadImage(imagePath);
}, getRandomInt(2000, 10000));
});
}
loadImage(imagePath);
});
<input
type="text"
class="form-control text-center"
value="0"
data-max="200"
data-min="0"
data-step="1">
quantity: { min: 0, max: 999, step: 1, precision:0 },