Advertisement
quantumech

Untitled

Jan 16th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.88 KB | None | 0 0
  1. <head>
  2.     <title>JQuery terminal test</title>
  3.  
  4.     <!-- Import JQuery terminal dependencies -->
  5.     <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
  6.     <script src="https://unpkg.com/jquery.terminal@2.x.x/js/jquery.terminal.min.js"></script>
  7.     <link rel="stylesheet" href="https://unpkg.com/jquery.terminal@2.x.x/css/jquery.terminal.min.css"/>
  8.  
  9.     <script>
  10.         // $(function(){...}) will execute the function after the DOM has been loaded
  11.         // JQuery-Terminal works by overloading any element with its ID set to "terminal", so if you want to initialize JQuery-Terminal inside <head>, you must wrap the call to the terminal() function inside the following
  12.         $(function()
  13.         {
  14.             $('#terminal').terminal()
  15.         })
  16.     </script>
  17. </head>
  18. <body>
  19.     <!-- This div will turn into a Terminal! This element does not have to be a <div> type though -->
  20.     <div id="terminal"></div>
  21. </body>
  22. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement