SHARE
TWEET

Untitled

a guest Mar 6th, 2018 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
  2. <html>
  3.   <head>
  4.     <title>New Document</title>
  5.     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  6.       <style>
  7. button{
  8.     background-image: linear-gradient(to bottom,#337ab7 0,#265a88 100%);
  9.     color: white;
  10.     padding: 10px 18px;
  11.     border: none;
  12.     cursor: pointer;
  13.     width: auto;
  14. }
  15. #hidden input[type=text] {
  16.     width: 200px;;
  17.     padding: 12px 20px;
  18.     margin: 8px 0;
  19.     display: inline-block;
  20.     border: 1px solid #ccc;
  21.     box-sizing: border-box;
  22. }
  23.       </style>
  24.   </head>
  25.   <body>
  26. <div id="hidden" style="display: none;">
  27. <input type="text" value="GUTSCHEINCODE123" id="gutschein" readonly>
  28. <button onClick="copy();">COPY</button>
  29. <button onClick="window.open('http://www.google.com')">Gutschein einlösen</button>
  30. </div>       
  31. <button id="trigger" onClick="document.getElementById('hidden').style.display='block';document.getElementById('trigger').style.display='none'">Reveal</button>
  32. <script>     
  33. function copy() {
  34.  
  35.   var copyText = document.getElementById("gutschein");
  36.  
  37.   copyText.select();
  38.    
  39.   document.execCommand("Copy");
  40. }    
  41. </script>
  42.   </body>
  43. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top