This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.options('/search', function(req, res) { | |
res.set('Access-Control-Allow-Origin', 'http://www.philip-bsigroup.ru'); | |
res.set('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS'); | |
res.set('Access-Control-Allow-Headers', 'Content-Type, X-Requested-With'); | |
res.send(); | |
}); | |
app.post('/search', function(req, res) { | |
var command = `curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/json" -d '{"locationTo":"${req.body['arrival-city']}","locationFrom":"${req.body['departure-city']}","dateFrom":"${req.body['departure-date']}","dateTo":"${req.body['return-date']}","isRoundTrip":${req.body['return-date'] !== null && req.body['return-date'] !== undefined},"travelClass":"${req.body['service-class']}","adults":${req.body.adult},"teens":${req.body.child},"infants":${req.body.infant}}' "https://preprod-bsi.datravel.com/searchFlight"`; | |
shell.exec(command, {silent: true, async: false}, function(code, stdout, stderr) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onSetMod: { | |
'js': { | |
'inited': function() { | |
var context = this; | |
console.log(this.findElem('content')); | |
this.bindTo(this.findElem('content'), 'click', function(e) { | |
console.log('content'); | |
console.log(e); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.flight-info | |
&_visible > &__modal-outer | |
display: block | |
&__modal-outer | |
position: fixed | |
width: 100% | |
height: 100% | |
top: 0 | |
left: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
block('flight-info')( | |
content()(function() { | |
return [ | |
{ | |
elem: 'modal-outer', | |
content: { | |
elem: 'modal-inner', | |
content: [ | |
{ | |
elem: 'content', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resultsNode = $('#main_content > .width'); | |
$(resultsNode).html(BEMHTML.apply({block: 'serp-container', showFilters: false})); | |
BEMDOM.init($(resultsNode)); | |
this.findBlockOn($(resultsNode), {block: 'serp-container'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="rating-control" data-id='asdf'> | |
<div class="rating-control__star-outer rating-control__star-outer_select_none" data-index=0> | |
<div class="rating-control__star-inner"></div> | |
</div> | |
<div class="rating-control__star-outer rating-control__star-outer_select_none" data-index=1> | |
<div class="rating-control__star-inner"></div> | |
</div> | |
<div class="rating-control__star-outer rating-control__star-outer_select_none" data-index=2> | |
<div class="rating-control__star-inner"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
w = 100px | |
.dropdown-list | |
&__content-container | |
height: 32px | |
&_size | |
&_l | |
width: w = 200px | |
&_xl | |
width: w = 244px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dropdown-list | |
display: inline-block | |
position: relative | |
&__content-container | |
height: 32px | |
&_size | |
&_l | |
width: 200px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login-form | |
margin-top 20px | |
border-radius 3px | |
&__header-tab | |
display inline-block | |
width 50% | |
padding 0.5em 0 | |
border 1px solid $color-grey-border | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login-form { | |
margin-top: 20px; | |
border-radius: 3px; | |
} | |
.login-form__header-tab { | |
display: inline-block; | |
width: 50%; | |
padding: 0.5em 0; | |
border: 1px solid #cfcfcf; | |
} |