server {
listen 80;
server_name example.com www.example.com;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/user/example;
}
location /.well-known {
alias /var/www/example/.well-known;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
alembic revision --autogenerate -m "create table new_ass"
<span style="position: absolute; left: 820px; top: 63px;">
<a onmouseout="document.getElementById('pop-up-map').style.display='none'" onmouseover="document.getElementById('pop-up-map').style.display='block'" target="_blank" href="https://yandex.ua/maps/?lang=ru&ll=30.325693%2C50.172746&z=18&mode=whatshere&whatshere%5Bpoint%5D=30.326832%2C50.173075&whatshere%5Bzoom%5D=19">
<img src="{% static "static/style/pointmap.png" %}">
</a>
<span id="pop-up-map" style="position: absolute; top: -30px; left: -318px; display: none;">
<img src="{% static "static/style/mapvi.jpg" %}">
</span>
</span>
<div class="b11" style="position: absolute; float: left; top: 40px; left: 100px;"><img onchange="console.log(imgcolordoor1{{ forloop.counter }}.src)" style="position: relative;" src="{% static "static/style/testdoor.png" %}" name="imgcolordoor1{{ forloop.counter }}" width="130px" height="280px"></div>
name="imgcolordoor1{{ forloop.counter }}"
<span ng-repeat="door in doors | allfilter:one:two:price1:price2">{% verbatim %}
<input type="checkbox" ng-model='one' ng-true-value="'Дерево'" ng-false-value="" /> Первый {{ door.nameone }}<br>
<input type="checkbox" ng-model='two' ng-true-value="'Дерево'" ng-false-value="" /> Второй {{ door.nametwo }}<br><br>
{% endverbatim %}</span>
iApp.filter('allfilter', function () {
return function (doors, one, two, price1, price2) {
if(doors == null) return;
var filteredMaterials = [];
console.log(filteredMaterials);
filteredMaterials.push({'nameone': 10, 'nametwo': 20});
return filteredMaterials;
};
<input type="checkbox" ng-model='uoper' ng-true-value="1" ng-false-value="0" ng-change="one=two=(uoper==1)?undefined:undefined" /> Снять <br>
<span ng-show="!uoper">
<input type="checkbox" ng-model='one' /> Первый<br>
<input type="checkbox" ng-model='two' /> Второй <br>
</span>
app.filter('filterMaterials', function () {
return function (materials, wood, plastic) {
var filteredMaterials = [];
for (var i = 0; i < materials.length; i++) {
if (materials[i].type === wood || materials[i].type === plastic) {
filteredMaterials.push(materials[i]);
}
}
return filteredMaterials;
};
});