visible-xs-*
, visible-sm-*
и т.д. Они как раз позволяют отображать контент только на конкретных устройствах<input type="plain/text" placeholder='Enter name' ng-model='products.new.name'/>
<input type="plain/text" placeholder='Enter price' ng-model='products.new.price' />
this.addProduct = function() {
this.products.push(this.new);
this.new = {price:'', name:''};
};
<ul>
<li>
{{ products.new_product_name }}: {{ products.new_product_price | currency }}
<span ng-click="products.remove($index)">удалить</span>
</li>
</ul>
this.remove = function($index){
this.products.splice($index, 1);
}
gulp.task('build', function(callback) {
runSequence('build-clean',
['build-scripts', 'build-styles'],
'build-html',
callback);
});
<form action="[action из той формы]">
<input type="text" name="[name из той формы]" />
<input type="password" name="[name из той формы]" />
<submit name="[name из оригинальной формы]" value="[аналогично]">
</form>
Ну, если там еще есть поля либо атрибуты у формы (например, method, enctype), то их тоже продублируйте.isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
}
};
if (isMobile.any()) {
alert('is mobile !');
}
function is_touch_device() {
return !!('ontouchstart' in window);
}