Answer the question
In order to leave comments, you need to log in
phpstorm. How to disable non-disabled "Inspections: cannot resolve file"?
Hi, dear %USERNAME%!
When using AMD (require.js), the following trouble appears.
When prescribing paths in the require-config of the IDE, "cannot resolve file" (cannot find the path to the file),
and highlights the alleged error in red. Of course, in fact, everything is in order with the paths and the scripts are connected.
How to turn off error syntax highlighting in PHPStorm? I tried to do it through the "Inspections" settings, unchecking the appropriate checkboxes, but the stubborn IDE continues to annoy me with red.
It helps a little if you set the problematic js file as "Plain Text". Error-highlighting is removed from the Project-window (Alt+1) and paths, it remains only in the js-file, and if you do not open it, it is generally not annoying. But it's still a crutch
Can anyone help me in this trouble? )
PS: screenshot attached).
Answer the question
In order to leave comments, you need to log in
your division!!! In the examples, the developer even has an example !!!!
jQuery(document).ready(function($){
$('.slider-for').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
fade: true,
asNavFor: '.slider-nav'
});
$('.slider-nav').slick({
slidesToShow: 2,
slidesToScroll: 1,
asNavFor: '.slider-for',
dots: true,
centerMode: true,
focusOnSelect: true
});
});
<div class="slider-for">
<img src="kortingo_01_big.jpg" alt="">
<img src="kortingo_02_big.jpg" alt="">
<img src="kortingo_03_big.jpg" alt="">
<img src="kortingo_04_big.jpg" alt="">
</div>
<div class="slider-nav">
<img src="kortingo_01_small.jpg" alt="">
<img src="kortingo_02_small.jpg" alt="">
<img src="kortingo_03_small.jpg" alt="">
<img src="kortingo_04_small.jpg" alt="">
</div>
ahaha)) are you making a site for KIPARKHU? just install any plugin for the slider, for example owl-carousel and override the styles in the layout, that's all. Well, or do it with your hands, why are there 15 minutes)
The css master seems to have an old video on how to make a similar slider, where he does it using the example of a product card. Search on youtube. And in general it is very easy.
I suspect that you need to put the require.js plugin.
// upd
DOWNLOAD PLUGIN
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question