echo json_encode([
'message' => render_template('index.html')
]);
success: function(html)
if (json.redirect) {
$.ajax({
url: $(this).attr('href'),
cache: false,
data: {
ajax: true
},
dataType: "json",
success: function(json) {
console.log("here");
// ...
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(jqXHR, textStatus, errorThrown);
}
});
-@media only screen and (min-width: 0px) and (max-width: 640px),
-@media only screen and and (min-width: 641px) and (max-width: 1200px){
+@media (max-width: 1200px){
c:\dev\myproject
cd c:\dev\myproject
npm init
npm i -D gulp
function defaultTask(cb) {
console.log('It\'s WORK!!!');
cb();
}
exports.default = defaultTask
gulp
Конечно есть - Bad practice