Widget:HoverCard: Difference between revisions

From Unforgotten Realms Wiki
Jump to navigationJump to search
imported>Pillowkeeper
m testing
imported>Pillowkeeper
mNo edit summary
Line 1: Line 1:
<body>
  <div id="text"></div>
   <script>
   <script>
     (function() {
     (function() {
Line 25: Line 23:
     })();
     })();
   </script>
   </script>
</body>
<div id="text"></div>

Revision as of 01:46, 14 December 2016

 <script>
   (function() {
     var quotes = [
       {
         text: "text1",
       },
       {
         text: "text2",
       },
       {
         text: "text3",
       },
       {
         text: "text4",
       },
       {
         text: "text5",
       }
     ];
     var quote = quotes[Math.floor(Math.random() * quotes.length)];
     document.getElementById("text").innerHTML =

'

' + quote.text + '

';

   })();
 </script>