Move block in mobile version with jQuery
Let's consider how to move a block in the mobile version if it is located in a different place in the desktop version. Let's use JQuery.
A simple JS script, filtering input information in input. Enter only numbers.
<input type="text" onkeypress="filterKey(event);">
function filterKey(k) {
// 48-56 - это [0-9]
if (!(k.keyCode >= 48 && k.keyCode <= 57)){
k.preventDefault();
return false;
}
}
When you press a key in a field, the script checks if it belongs to a range of numbers. If not, it interrupts key entry.
Let's consider how to move a block in the mobile version if it is located in a different place in the desktop version. Let's use JQuery.
Let's consider a possible solution to the problem when running Gulp on Ubuntu 18.04 with an error Error: watch /path/ ENOSPC. Let's analyze what the max_user_watches parameters are.
When describing minimal codes that have a syntax similar to C++, it may be necessary to have minimal highlighting on the site for better readability. I will give the easiest way to highlight, which I took from habrahabr. Consider, connect, describe ...