Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <!-- Usersnap description code -->
<div class="descr">
<h1>Custom Usersnap button which matches your web design</h1>
  <p>As described in a recent <a href="#" target="_blank">blog post</a> this example demonstrates how to hide the default Usersnap feedback button and use a custom styled button instead!</p>
      <li>The important piece of this example is the modified Usersnap configuration which hides the Usersnap default button. </li>
      <li>Secondly, the CSS class "feedback" provides styling information which will get you a yellow feedback button on the left side.</li>
      <li>Finally, we are just adding the JavaScript function which triggers Usersnap as soon as someone clicks our custom yellow button.</li>
  <p>If you are new to Usersnap, just visit <a href="http://usersnap.com" target="_blank">usersnap.com</a>
<!-- end of description -->
<div id="feedback">Feedback</div>
              /*base css, not important for the codepen itself!*/
.descr {
  margin-left: 40px
h1, p, a, ul{
  font-family: Arial;
  color: white;
/*Specific CSS classes starting here!*/
#feedback {
	top: 200px;
	left: 0;
	margin: 0;
	padding: 6px 10px;
	background-color: #ECC137;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	text-align: center;
	border: 1px solid #000;
	border-top: none;
	cursor: pointer;
	z-index: 100000;
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	-o-transform-origin: 0 0;
	-ms-transform-origin: 0 0;
	-webkit-transform: rotate(270deg);
	-moz-transform: rotate(270deg);
	-ms-transform: rotate(270deg);
	-o-transform: rotate(270deg);
	transform: rotate(270deg);
              //Usersnap configuration
var _usersnapconfig = {
  apiKey: 'API_KEY',
  valign: 'bottom',
  halign: 'right',
  emailBox: true,
  commentBox: true,
  //added mode = report! Default Usersnap button will not appear!
  mode: 'report',
  lang: 'en',
  tools: [
(function() {
  var s = document.createElement('script');
  s.type = 'text/javascript';
  s.async = true;
  s.src = '//api.usersnap.com/usersnap.js';
  var x = document.getElementsByTagName('head')[0];
/*added a JQuery handler on the click event of the feedback div!
 *Now if someone clicks on the widget the Javascript Method will be executed and Usersnap show up!*/
jQuery(function() {
  jQuery('#feedback').click(function() {
    alert("This is a demo of a customer Usersnap button. Visit usersnap.com to learn more");
    /* You'd call following function to open the Usersnap widget in your code: 
    return false;*/

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.