Fodor: Copy to clipboard with ZeroClipboard

complete.blade.php

<ul class="list-group">  
  <li class="list-group-item">
    <h4 class="list-group-item-heading">IP</h4>
    <p class="list-group-item-text btn-copy" data-clipboard-text="{{ $ip }}">{{ $ip }}</p>
  </li>
  <li class="list-group-item">
    <h4 class="list-group-item-heading">Domain</h4>
    <p class="list-group-item-text btn-copy" data-clipboard-text="{{ $domain }}">{{ $domain }}</p>
  </li>
</ul>  

app.js

$(document).ready(function() {
  ZeroClipboard.config( { moviePatih: "https://fodor.xyz/swf/ZeroClipboard.swf" } );
  var client = new ZeroClipboard($(".btn-copy"));

  client.on("ready", function(readyEvent) {
      client.on("aftercopy", function (event) {
          alert('Copied to clipboard');
      });
  });
}