function heightTitle(parent, el){
var height = 0;
$(parent).find(el).each(function(){
if($(this).height() > height){
height = $(this).height();
}
});
$(parent).find(el).height(height);
}
heightTitle('.blog-result','.blog-preview__title');
$(window).resize(function () {
heightTitle('.blog-result','.blog-preview__title');
});
физических пикселей 2560 (нам это не важно), но в браузере их всего 1280 (это важно)
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build:prod' ]
2 info using npm@3.10.9
3 info using node@v6.9.2
4 verbose run-script [ 'prebuild:prod', 'build:prod', 'postbuild:prod' ]
5 info lifecycle angular2-starter@0.2.5~prebuild:prod: angular2-starter@0.2.5
6 silly lifecycle angular2-starter@0.2.5~prebuild:prod: no script for prebuild:prod, continuing
7 info lifecycle angular2-starter@0.2.5~build:prod: angular2-starter@0.2.5
8 verbose lifecycle angular2-starter@0.2.5~build:prod: unsafe-perm in lifecycle true
9 verbose lifecycle angular2-starter@0.2.5~build:prod: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Pasha\PhpstormProjects\kodiAngular(min)\node_modules\.bin;C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\nodejs\;C:\Users\Pasha\AppData\Local\Programs\Git\cmd;C:\Users\Pasha\AppData\Roaming\npm
10 verbose lifecycle angular2-starter@0.2.5~build:prod: CWD: C:\Users\Pasha\PhpstormProjects\kodiAngular(min)
11 silly lifecycle angular2-starter@0.2.5~build:prod: Args: [ '/d /s /c',
11 silly lifecycle 'cross-env APP_ENVIRONMENT=production webpack -p --progress' ]
12 silly lifecycle angular2-starter@0.2.5~build:prod: Returned: code: 1 signal: null
13 info lifecycle angular2-starter@0.2.5~build:prod: Failed to exec build:prod script
14 verbose stack Error: angular2-starter@0.2.5 build:prod: `cross-env APP_ENVIRONMENT=production webpack -p --progress`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:877:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid angular2-starter@0.2.5
16 verbose cwd C:\Users\Pasha\PhpstormProjects\kodiAngular(min)
17 error Windows_NT 6.3.9600
18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:prod"
19 error node v6.9.2
20 error npm v3.10.9
21 error code ELIFECYCLE
22 error angular2-starter@0.2.5 build:prod: `cross-env APP_ENVIRONMENT=production webpack -p --progress`
22 error Exit status 1
23 error Failed at the angular2-starter@0.2.5 build:prod script 'cross-env APP_ENVIRONMENT=production webpack -p --progress'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular2-starter package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error cross-env APP_ENVIRONMENT=production webpack -p --progress
23 error You can get information on how to open an issue for this project with:
23 error npm bugs angular2-starter
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls angular2-starter
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]