menu
1 vote
2 answers
JS setTimeout recursion? I can't figure out why setTimeout() is only called once? Prints only two letters. class app { constructor(options) { this.options = options; } typeWrit ...
asked Dec 27, 2021
1 vote
1 answer
image
Does JS touchstart work through the element as well? app.$document.on('touchstart', '.state-hover .cross-icon', function(e) { e.stopPropagation(); e.preventDefault(); $(e.target).closest('.state-hover').remo ...
asked Dec 22, 2021
1 vote
2 answers
image
CSS increase the button's action area without changing the size? There is a button on pressing which the script runs, but it turns out that often misses... How can you increase the area of interaction with the element, but so that it ...
asked Dec 22, 2021
1 vote
1 answer
image
Is the url encoded incorrectly? There is a request with GET parameters : optionsbrand=67 After urlencode it becomes like : options%5Bbrand%5D%5B%5D%3D67 As a result, it ends up in $_GET on the s ...
asked Dec 21, 2021
1 vote
1 answer
$_REQUEST encoded query? Google Ads makes the link encoded, for example "?optionsbrand=67" is already inserted in the link as "?options%5Bbrand%5D%5B%5D%3D67" Accordingly, I cannot read it ...
asked Dec 21, 2021
1 vote
1 answer
Assignment via JS link? Why can the assignment option only work with this viewsHandler(elementClass){ let data = this.data.htmlBlockselementClass.views; let now = new Date().getTime(); ...
asked Dec 20, 2021
1 vote
1 answer
image
CSS - absolute changes the proportions? Without absolute - square 13 13 px C absolute - visually stretches vertically, but still says 1313px #main-favorites .counter { position: absolute; top: 15%; ...
asked Dec 19, 2021
2 votes
1 answer
'posts_per_page' => -1 SQL error? I want to make a copy of the main query but without the limit, in this implementation gets an SQL error (adds -1 to the query). What's the right way to do it? // Филь ...
asked Dec 14, 2021
1 vote
1 answer
image
CSS z-index behavior? Can you tell me why the text div can be on top of the image and its background behind it? The structure is as follows: <a href=""> <img src ...
asked Dec 13, 2021
1 vote
1 answer
Count the number of categories in a loop (archive)? I don't understand how to calculate the number of categories (subcategories) in a loop (I change the style of categories in the template - content-product-cat)? What var ...
asked Sep 30, 2021
1 vote
1 answer
Find the CSS selector? Hi, there is such an html: <ul class="list"> <li> <ul class="shown-list"> <li><a href="link">Text</a></li> <li> ...
asked Sep 22, 2021
1 vote
3 answers
Replacing placeholder color with regular CSS color? How is it on the wildberries.ru is an intu search made that you can change the color of the placeholder with a normal color parameter? ...
asked Sep 20, 2021
1 vote
1 answer
PHP preg_match_all and large string (760k)? I need to use regex to pull paths from a string (760k characters); On a small line the script works fine. But it is not clear from what size and why preg_match_all start ...
asked Mar 23, 2021
1 vote
1 answer
Regex highlight lines? This regular selects all strings at once, how can I make only those that have a substring (1004) be selected? (?<=\|)(.?)(?=\|) <br/> |test-1004-raw|test-1005| ...
asked Mar 23, 2021
1 vote
1 answer
Different size of the database after a backup? Why can the size of the database be different after (export -> import) . Number of lines is the same, types are the same, but the size is different. ...
asked Mar 23, 2021
1 vote
1 answer
CSS styles by JQuery condition? How does this implementation affect performance, since scrolling to each pixel initiates a change? $(window).scroll( function(){ if( $(window).scrollTop() ...
asked Mar 22, 2021
1 vote
1 answer
AsyncAwait in a loop (JS)? async function start_page(links){ // что-то делается } async function page_loop(){ // запускаем несколько страниц for (let i = ...
asked Mar 13, 2021
1 vote
1 answer
Split an array into parts (JS)? How do I make the remainder of the division into 6 equal chunks be written to the last sub-array? const array = , result = ; var str = "text\ntext2\ntext3\ntext4\nte ...
asked Mar 13, 2021
1 vote
1 answer
JS remove the special characters and replace the spaces with "-"? Can we make it less cheesy? var var = 'he(#$llo world6598';var = var.replace(/&\/\\#,+()$~%.'":?<>{}/g, '').replace(/\s+/g,'-').replace('--','-').toLowerCa ...
asked Mar 8, 2021
1 vote
1 answer

251k questions

567k answers

0 comments

355k users