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 },
<Sum> [stat]player_ammo_restored = 425339
<Sum> [stat]player_climb_assists = 17154
<Sum> [stat]player_climb_coops = 9321
<Sum> [stat]player_damage = 489573500
<Sum> [mode]PVE [stat]player_deaths = 22793
<Sum> [mode]PVP [stat]player_deaths = 107455
<Sum> [class]Rifleman [mode]PVP [stat]player_headshots = 38150
<Sum> [class]Medic [mode]PVE [stat]player_headshots = 40388
<Sum> [class]Medic [mode]PVP [stat]player_headshots = 4271
<Sum> [class]Recon [mode]PVE [stat]player_headshots = 129160
<Sum> [class]Recon [mode]PVP [stat]player_headshots = 5423
....
const arr = json.full_response.split('\n');
/*
[0 … 99]
0: "<Sum> [stat]player_ammo_restored = 425339"
1: "<Sum> [stat]player_climb_assists = 17154"
2: "<Sum> [stat]player_climb_coops = 9321"
3: "<Sum> [stat]player_damage = 489573500"
4: "<Sum> [mode]PVE [stat]player_deaths = 22793"
5: "<Sum> [mode]PVP [stat]player_deaths = 107455"
6: "<Sum> [class]Rifleman [mode]PVP [stat]player_headshots = 38150"
7: "<Sum> [class]Medic [mode]PVE [stat]player_headshots = 40388"
8: "<Sum> [class]Medic [mode]PVP [stat]player_headshots = 4271"
9: "<Sum> [class]Recon [mode]PVE [stat]player_headshots = 129160"
10: "<Sum> [class]Recon [mode]PVP [stat]player_headshots = 5423"
11: "<Sum> [class]Engineer [mode]PVE [stat]player_headshots = 137344"
12: "<Sum> [class]Engineer [mode]PVP [stat]player_headshots = 17705"
13: "<Sum> [class]Rifleman [mode]PVE [stat]player_headshots = 429473"
*/
arr.forEach((el) => {
if (el.indexOf('Medic') >= 0) {
window.console.log(el);
}
});
/*
<Sum> [class]Medic [mode]PVE [stat]player_headshots = 40388
<Sum> [class]Medic [mode]PVP [stat]player_headshots = 4271
<Sum> [class]Medic [mode]PVP [stat]player_hits = 286872
<Sum> [class]Medic [mode]PVE [stat]player_hits = 824486
<Sum> [class]Medic [mode]PVE [stat]player_melee_headshots = 133
<Sum> [class]Medic [mode]PVP [stat]player_melee_headshots = 37
<Sum> [class]Medic [mode]PVE [stat]player_playtime = 17714490
<Sum> [class]Medic [mode]PVP [stat]player_playtime = 12876754
*/
-ms-text-overflow
.ch {
background: red;
position: relative;
padding-top: 48%;/* или через calc - 157 / 321 * 100 */
top: 50%;
transform: translatey(-50%);
}
sudo apt install -f
echo "deb https://linuxdesktopcloud.mail.ru/deb default free" | sudo tee /etc/apt/sources.list.d/mail.ru-cloud.list
wget -q https://linuxdesktopcloud.mail.ru/mail.ru-cloud.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install mail.ru-cloud
...
<body>
<div id="app">
...
</div>
</body>
...
<div id="page">
...
</div>
...
<div class="header"><div class="header__wrapper"></div></div>
. Но это все на Ваше усмотрение.