var i = 0;
$(".twentytwenty-container").each(function () {
setTimeout(function () {
$(this).twentytwenty({
default_offset_pct: 0.5,
no_overlay: true,
move_slider_on_hover: true,
move_with_handle_only: false,
click_to_move: false
});
}, i * 200);
i++;
});
Как правильнее поступить и почему?Правильнее - реализовать все три варианта и у каждого замерить производительность. Таким образом вы не только выберете самый оптимальный вариант, но ещё и приобретёте навык и сможете сами отвечать на такие вопросы на Тостере.
printf("%s (%s)\n",$r["name"],$r["author"]);
Где у вас переменная-то определена с именем $r
? Правильно - нигде, потому и падает всё. $itog['name']
должно быть.I am able to resolve my issue now after using below command:-$ npm install --no-bin-links
since i had to further install bower, so i used:$ bower install <------- worked fine.
Then i wanted to build my wordpress sage template. I used$ gulp <---- further gave some error and pointed me to use "npm rebuild node-sass" $ npm rebuild node-sass <- gave again some symbolic link error, I choose below
command which worked fine.$ npm rebuild node-sass --no-bin-links
Further i was able to use gulp to build.
My guess is that you're both running Linux inside Vagrant on a Windows host, because ETXTBSY is almost always due to Windows not wanting to let the guest OS remove or move a file. Generally, this happens when you have a cmd.exe process open in a directory, or are looking at the folder with Explorer, or have a file in there open in a text editor.
@Stanzilla, if you delete your current node_modules folder and reinstall, it will go from being the deeply nested npm@<3 style tree to the new npm@3 maximally flat tree, which should fix the original problem you were seeing.
@samir1kumar, it looks like you want to run your install with --no-bin-links, because you don't have your Vagrant shared directory configured to support symlinks (this is possible, but not done by default by VirtualBox or Vagrant because of security concerns). This also means you can't use linked modules in your shared directory. I shared some more thoughts about this on Twitter. Vagrant with shared directories seems like it should be the best of both worlds, but there are a surprising number of pitfalls to making it work without issues.
Есть ассоциативный многомерный массив
var data = {
sedan: {
'eject' : {
'13' : 50,
'14' : 50,
'15' : 50
},
'installation' : {
'13' : 25,
'14' : 40,
'15' : 50
},
'balancing' : {
'13' : 50,
'14' : 60,
'15' : 80
}
},
crossover: {
'eject' : {
'13' : 50,
'14' : 60,
'15' : 60
},
'installation' : {
'13' : 50,
'14' : 60,
'15' : 60
},
'balancing' : {
'13' : 444,
'14' : 555,
'15' : 666
}
},
};
data[x].balancing