Skip to content

Instantly share code, notes, and snippets.

@sidorov-panda
Created December 8, 2020 11:24
Show Gist options
  • Select an option

  • Save sidorov-panda/55e54fd65a34edbaec743b2e4e8f48ae to your computer and use it in GitHub Desktop.

Select an option

Save sidorov-panda/55e54fd65a34edbaec743b2e4e8f48ae to your computer and use it in GitHub Desktop.
BS Widget
<div id="bs-tiny-widget"></div>
<script>
(function(d){
var w,c=d.createElement('script'),s=d.createElement('link');
c.src='https://bolshayastrana.com/jswidget/tiny/bundle.js';c.type='text/javascript';c.async=!0;c.defer=!0;d.body.appendChild(c);
s.rel='stylesheet';s.href='https://bolshayastrana.com/jswidget/tiny/bundle.css';d.getElementsByTagName('head')[0].appendChild(s);
c.onload=function(){
w = new BsTinyWidget({
target: d.getElementById('bs-tiny-widget'),
props: {
params: {
utm_source: 'travelpayouts',
sub_id: 1,
}
}
});
}
})(document);
</script>
@sidorov-panda
Copy link
Author

В params можно указывать параметры, которые будут передаваться в ссылки на сайт
params: {
utm_source: 'travelpayouts',
sub_id: 1,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment