(() => {
const head = document.head;
const meta = document.querySelector('meta[name="viewport"]');
const content = meta.getAttribute('content');
const newMeta = document.createElement('meta');
newMeta.setAttribute('name', 'viewport');
newMeta.setAttribute('content', content.replace(/width=([^,]+),/i, 'width=1024,'));
head.removeChild(meta);
head.appendChild(newMeta);
})()
import pug from 'pug';
//...
template: pug.render(`span {{ tr(lang).title }} `)
1. На любом ли языке они пишутся? (Можно ли написать на JavaScript)
Можно ли скопировать приложение от другого сайта и модифицировать под свои нужды?
С чего начать чтобы сделать свое приложение?