!!!
%html
%head
%script{type: "text/javascript", src: "http://localhost:3000/customerWidget.js"}
%link{rel: 'stylesheet', type: "text/css", href: "http://localhost:3000/customerWidget.css"}
%body
%div
%h1 Welcome
%p
#customer-widget-id{style: 'width: 1000px; margin: 0 auto; font-size: 13px; border: 5px dashed lightgrey;'}
:javascript
document.addEventListener('DOMContentLoaded', () => {
HCCPCustomerWidget.render({
baseURL: '/hccp/',
locale: 'ru',
customerId: '50162901',
containerId: 'customer-widget-id',
});
});
|