Hs_Banner_Component

In this example below you will see how to do a Hs_Banner_Component with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by juicyarts, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright juicyarts ©
  • HTML
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Hs_Banner_Component</title>
  
  
  
  
  
</head>

<body>

  
<!-- this belongs to the header section to make the component available-->
<script src="https://cdn.rawgit.com/download/polymer-cdn/1.5.0/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="https://admon.hs-edge.net/components/dist_hs-banner">
<!-- via placement / fallback when placement unkown -->
<hs-banner class="hs__banner" placement-id="hsTestPlacement" publisher="test" affiliate-id="999" idref="co" idref-id="12"></hs-banner>
<!-- via placement / default -->
<hs-banner class="hs__banner" placement-id="default" publisher="test" affiliate-id="999" idref="co" idref-id="12"></hs-banner>
<!-- via placement / sport1 -->
<hs-banner class="hs__banner" placement-id="sport1" publisher="test" affiliate-id="999" idref="co" idref-id="12"></hs-banner>
  
  

</body>

</html>

Comments