Cloning objects and arrays in JavaScript

Cloning objects and arrays in JavaScript

30.04.19
For cloning objects in JS there is no specially provided method. You can copy an object in different ways. Since objects are passed by reference, we cannot clone simply by assigning a value to a variable. Objects W...
Enumerating array elements without cycles

Enumerating array elements without cycles

29.04.19
The examples are very abstract, since the cycles exist. You must select all the elements of the array for a given attribute. There are several solutions. The most appropriate option in PHP is to use the built-in funct...
Accordion with jQuery

Accordion with jQuery

28.04.19
An accordion on the site on the site has to be used very often. The easiest option is to write in several lines based on slideToogle(). This option is no exception. For convenience, it was wrapped in a jQuery plugin. ...
Cheat sheet for work with Git

Cheat sheet for work with Git

27.04.19
The cheat sheet on version control system - Git to see commits git log --pretty=oneline to see remote URL repositories git remote -v to clone into a non-empty directory git init git remote add origin https://nam...
How to push a footer to the bottom

How to push a footer to the bottom

21.04.19
There are several ways. All of them are somewhat similar. The first option is the most relevant. Option 1 HTML <html> <body> <div class="content"></div> <footer>&...
<<  1 2 3 4 [56 7  >>