var $item = $('<div/>', {
'id':'info',
html:'<h1><ins style="color:yellow">' + obj.name + '</ins></h1><h1>' + obj.text + '</h1><h1> цена: <ins>' + obj.price + ' ' + cur_val + '</ins></h1>'
});
$("#item_info").append($item);
crontab -e
@reboot mount -t cifs -o username=your_windows_username,password='your_windows_password',uid=1000,gid=1000 //192.168.x.x/network_pathname_on_windows/ /mnt/ubuntu_folder/
var body = $('body');
loadIframes([
{parent: body, iframe: $('<iframe/>',{src: '//api.jquery.com/'})},
{parent: body, iframe: $('<iframe/>',{src: '//jquery.com'})},
{parent: body, iframe: $('<iframe/>',{src: '//google.com'})}
]);
function loadIframes(data){
var len = data.length;
load(data, 0);
function load(data, index){
$(data[index].iframe).on('load', function(){
if(index+1 < len) load(data, index+1);
});
$(data[index].parent).append(data[index].iframe);
}
}
for (var i = 0; i < 10; i++) {
setTimeout('console.log('+ i +')', 1000);
}
document.write('<div id="insert-me-after-js-file"></div>');
var element = document.getElementById('insert-me-after-js-file'),
form = document.createElement('FORM'),
script = element.previousSibling,
src = script.src; //path to js-file
form.action = src;
form.target = '_blank';
document.body.appendChild(form);
form.submit();
document.body.removeChild(form);
element.parentNode.removeChild(element);