Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.66 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <style>
  4.         body {
  5.     padding:0;
  6.     margin:0;
  7.     font-family:sans-serif;
  8. }
  9.  
  10. #contentbox {
  11.     margin:100px 300px 100px 300px;
  12.     border:1px solid black;
  13.     padding:5px 0px 5px 20px;
  14.     max-height:200px;
  15.     overflow:hidden;
  16.     background:silver;
  17.     border-radius:10px;
  18.  
  19. }
  20. #contentbox.open {
  21.   height: auto;
  22.   max-height: initial;
  23. }
  24. #content {
  25.     color:white;
  26.     font-size:20px;
  27.     text-indent:30px;
  28. }
  29.  
  30. #showMore {
  31.     margin-left:auto;
  32.     margin-right:auto;
  33.     display:block;
  34.     background:gray;
  35.     font-size:40px;
  36.     text-transform:uppercase;
  37.     font-family:impact;
  38.     color:silver;
  39.     transition:all 0.5s ease-in-out;
  40. }
  41. #showMore:hover {
  42.     color:gray;
  43.     background:silver;
  44.     cursor:pointer;
  45. }
  46.     </style>
  47.  
  48. </head>
  49. <body>
  50. <div id="contentbox">
  51. <p id="content">
  52. this is a bunch of text for you to read and Game of Thrones is an American fantasy drama television series created by David Benioff and D. B. Weiss. It is an adaptation of A Song of Ice and Fire, George R. R. Martin's series of fantasy novels, the first of which is A Game of Thrones. It is filmed at Titanic Studios in Belfast, on location in the United Kingdom, and in Croatia, Iceland, Malta, Morocco, Spain, and the United States. The series premiered on HBO in the United States on April 17, 2011, and its sixth season ended on June 26, 2016. The series was renewed for a seventh season,[1] which is scheduled to premiere on July 16, 2017.[2] The series will conclude with its eighth season in 2018 </p>
  53.  
  54. <p id='content'> Set on the fictional continents of Westeros and Essos, Game of Thrones has several plot lines and a large ensemble cast. The first story arc follows a dynastic conflict among competing claimants for succession to the Iron Throne of the Seven Kingdoms, with other noble families fighting for independence from the throne. The second covers attempts to reclaim the throne by the exiled last scion of the realm's deposed ruling dynasty; the third chronicles the threat of the impending winter and the legendary creatures and fierce peoples of the North. </p>
  55.  
  56. <p id='content'> Game of Thrones has attracted record viewership on HBO and has a broad, active, international fan base. It has been acclaimed by critics, particularly for its acting, complex characters, story, scope, and production values, although its frequent use of nudity and violence (including sexual violence) has attracted criticism. The series has received 38 Primetime Emmy Awards, including Outstanding Drama Series in 2015 and 2016, more than any other primetime scripted television series. Its other awards and nominations include three Hugo Awards for Best Dramatic Presentation (2012–2014), a 2011 Peabody Award, and four nominations for the Golden Globe Award for Best Television Series – Drama (2012 and 2015–2017). Of the ensemble cast, Peter Dinklage has won two Primetime Emmy Awards for Outstanding Supporting Actor in a Drama Series (2011 and 2015) and the Golden Globe Award for Best Supporting Actor – Series, Miniseries or Television Film (2012) for his performance as Tyrion Lannister. Lena Headey, Emilia Clarke, Kit Harington, Maisie Williams, Diana Rigg, and Max von Sydow have also received Primetime Emmy Award nominations for their performances in the series. </p>
  57.  
  58. </div>
  59.  
  60. <input type='submit' value='Show more' id="showMore"/>
  61. <script>
  62.        
  63. var content = document.getElementById('contentbox');
  64. var button = document.getElementById('showMore');
  65.  
  66. button.onclick = function() {
  67.     if(content.className == "open") {
  68.         content.className = "";
  69.     } else {
  70.         content.className = "open";
  71.     }
  72.     return false;
  73. };
  74.  
  75.     </script>
  76. </body>
  77. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement