HighKingFen

I Have To

Oct 13th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.04 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.  
  5.  
  6. <title>{Title}</title>
  7. <link rel="shortcut icon" href="{Favicon}">
  8. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  9. <link href="https://static.tumblr.com/wgijwsy/k1Hm9ei8b/normalize.css" rel="stylesheet" type="text/css" />
  10. <link href="https://fonts.googleapis.com/css?family=Courgette|Great+Vibes|Open+Sans+Condensed:300|Red+Hat+Display&display=swap" rel="stylesheet">
  11. <script src="https://static.tumblr.com/5ojoydj/Kzyp56cvt/jquery-2.2.0.min.js"></script>
  12.  
  13.  
  14.  
  15. <style type="text/css">
  16.  
  17.  
  18. #content {
  19. margin-left:35%;
  20.  
  21. width: 900px; /*changes # of columns*/
  22. float: left;
  23. color:#bf8dc0;
  24. position:relative;
  25. }
  26.  
  27. body {
  28. background-color: white;
  29. background-attachment:fixed;
  30. background-repeat:repeat;
  31. background-position:center;
  32. font-size: 10px;
  33. font-family: 'Open Sans Condensed', sans-serif;
  34. color: purple;
  35. margin-top:-60px;}
  36.  
  37. a {
  38. color:rgb(185,120,120)
  39. text-decoration:none;
  40. }
  41.  
  42. blockquote {
  43. padding-left:5px;
  44. border-left:1px dotted;
  45. color: {color:text};
  46. margin-left:3px;
  47. margin-bottom:5px;
  48. font-family: 'Red Hat Display', sans-serif;
  49. }
  50.  
  51. iframe, img, embed, object, video {
  52. max-width: 100%;
  53. }
  54.  
  55. img {
  56. height: auto;
  57. width: auto;
  58. }
  59.  
  60. #sidebar {
  61. height:100%;
  62. width:450px;
  63. position:fixed;
  64. margin-top:-20px;
  65. background: #bc8cbe;
  66. color:white;
  67. border: 1px solid rgb(185,120,120);
  68. font-size: 10px;
  69. font-family:arial;
  70. text-align:center;
  71. }
  72.  
  73.  
  74. #blogtitle a {
  75. color:white!important;
  76. text-decoration:none;
  77. font-size:25px;
  78. padding:5px;
  79. font-family: 'Great Vibes', cursive;
  80. text-shadow: 2px 2px purple;
  81.  
  82. }
  83.  
  84. .description {
  85. text-align:center justify;
  86. padding:4px;
  87. line-height:1.3;
  88. color:#D8BFD8;
  89.  
  90. }
  91.  
  92. #navlinks {
  93. position:absolute;
  94. margin-left:250px;
  95. text-transform:uppercase;
  96. bottom:40px;
  97. font-size:15px;
  98. text-shadow: 2px 2px purple;
  99. font-family: 'Red Hat Display', sans-serif;
  100. text-align:left;
  101. line-height:1.5;
  102. }
  103.  
  104. #navlinks ul{
  105. list-style:none;
  106. }
  107. #navlinks a{
  108. color:white;
  109. }
  110.  
  111. #navlinks a:hover{
  112. color:rgb(185,120,120);
  113. }
  114.  
  115. article {
  116. background: white;
  117. margin: 12px;
  118. padding: 8px;
  119. border: 1px solid purple;
  120. width: 350px!important;
  121. overflow:auto;
  122. color:#bf8dc0;
  123. }
  124.  
  125. article img {
  126. }
  127.  
  128.  
  129. article a{
  130. color:#bf8dc0;
  131. }
  132.  
  133. .title {
  134. text-align:center;
  135. text-transform:uppercase;
  136. font-family: Purple;
  137. font-size: 18px;
  138.  
  139. }
  140.  
  141. .title a{
  142. color:purple;
  143. text-decoration:none;
  144. }
  145.  
  146. .text {
  147. font-size:10px;
  148. width:100%;
  149. color:#bf8dc0;
  150. }
  151.  
  152. .photo {
  153. }
  154.  
  155. .photoset {
  156. }
  157.  
  158. .quote {
  159. text-align:center;
  160. }
  161.  
  162. .link {
  163. }
  164.  
  165. .audio {
  166. width:100%;
  167. }
  168.  
  169. .video{
  170. }
  171.  
  172. .video-player {
  173.  
  174. }
  175.  
  176. .answer {
  177. }
  178.  
  179. .ques {
  180. font-weight:bolder;
  181. }
  182.  
  183. .ans {
  184. font-style:italic;
  185. }
  186.  
  187. .chat{
  188. margin-left:-30px;
  189. }
  190.  
  191. .chat span {
  192. float: left;
  193. margin-right: 10px;
  194. }
  195.  
  196. .chat:nth-child(even) {
  197. background:#f9f9f9;
  198. }
  199.  
  200. .odd{
  201. background:#f6f6f6;
  202. }
  203.  
  204.  
  205. #perma {
  206. text-align: center;
  207. position: relative;
  208. text-transform:uppercase;
  209. margin-top:2px;
  210. padding:4px;
  211. font-size: 8px;
  212. {block:PermalinkPage}
  213. display:none;
  214. {/block:PermalinkPage}
  215. }
  216.  
  217. .tumblr_audio_player {
  218. width: 100%;
  219. height: 100px;
  220. overflow: hidden;
  221. position: relative;
  222. z-index: 1000;
  223. }
  224.  
  225. .pagination {
  226.  
  227. }
  228.  
  229. .pagi {
  230. font-size:15px;
  231. color: purple;
  232. text-align:center;
  233. padding:2px;
  234. padding-top:5px;
  235. }
  236.  
  237. .pagi a{
  238. color:purple;
  239. }
  240.  
  241. .pagi a:hover{
  242. color:#bf8dc0;
  243. }
  244. hr {
  245. width:75%;
  246. border-top:1px solid purple;
  247. }
  248.  
  249. caption {
  250. margin:12px;
  251. color:purple;
  252. }
  253.  
  254. caption a{
  255. color:purple
  256. }
  257.  
  258.  
  259. #fen {
  260. bottom:0;
  261. left:0;
  262. position:absolute;
  263. float:left;
  264. height:auto;
  265. width:280px;
  266. }
  267.  
  268. .pref{
  269. position:relative;
  270. margin-left:550px;
  271. }
  272. /*------------Featured post (by FUKUO) for more info go to https://fukuo.tumblr.com/post/182468748665/how-to-make-a-featured-post-using-tumblr-api-as---------------*/
  273. #wrapper_featured_posts{max-width:1000px;margin:5rem auto;font-family:'Source Sans Pro',sans-serif;font-size:.9em
  274.  
  275. margin-left:400px;
  276. }
  277.  
  278. #wrapper_featured_posts .inner_featured_posts{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:1.5rem}
  279.  
  280. #wrapper_featured_posts .inner_featured_posts>.grid_featured{position:relative;
  281. max-height: 200px;width:auto;:200px;overflow:hidden;background-color:#fff;border:1px solid rgba(0,0,0,.25)}
  282.  
  283. #wrapper_featured_posts .inner_featured_posts>.grid_featured .body_caption{position:relative;padding:1em 1.5em}
  284.  
  285. #wrapper_featured_posts .inner_featured_posts>.grid_featured h3{font-size:1.5em;padding:1em 1.2em;word-break:break-all;margin:0;background-color:#d43189}
  286.  
  287. #wrapper_featured_posts .inner_featured_posts>.grid_featured h3 a{color:#fff}#wrapper_featured_posts .inner_featured_posts>.grid_featured a{color:#d43189}
  288.  
  289. #wrapper_featured_posts .inner_featured_posts a.tumblr_blog{text-decoration:none;color:#d43189;font-weight:700;margin-bottom:-1.4em}
  290.  
  291. #wrapper_featured_posts .inner_featured_posts>.grid_featured .body_caption blockquote{margin:0}
  292.  
  293. #wrapper_featured_posts .inner_featured_posts>.grid_featured .body_caption h2{font-size:1.2em;margin:.4em 0 0}
  294.  
  295. #wrapper_featured_posts .inner_featured_posts>.grid_featured:after{position:absolute;content:'';width:100%;height:200px;background:linear-gradient(0deg,#fff,rgba(255,255,255,.15));bottom:0;left:0}
  296.  
  297. #wrapper_featured_posts .inner_featured_posts>.grid_featured .btnMore{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:999;text-decoration:none;display:block;font-size:.85em;background-color:#2c1421;color:#fff!important;padding:.6em 1em;-webkit-border-radius:20px;-moz-border-radius:20px;-ms-border-radius:20px;-o-border-radius:20px;border-radius:20px}
  298. </style>
  299. </head>
  300. <body>
  301.  
  302.  
  303.  
  304. <div id="sidebar">
  305. <div id="blogtitle"><a href="/">{Title}</a></div><hr>
  306. <div class="description">{Description}</div>
  307.  
  308. <div id="navlinks">
  309. <ul>
  310. <li><a href="/ask">Request</a></li>
  311. <li><a href="/tagged/icons">Icons</a></li>
  312. <li><a href="/tagged/wallpapers">Wallpapers</a></li>
  313. <li><a href="https://archiveofourown.org/users/HighKingFen">A03</a></li>
  314. <li><a href="spoonful.productions">Podcasts<a></li>
  315. <li><a href="twitter.com/highkinfen">Twitter</a></li>
  316. <li><a href="https://unofficialmagiciansdnd.tumblr.com">DND Book</a></li>
  317. <li><a href="https://www.redbubble.com/people/FillorianQueen">Redbubble</a></li>
  318. <li><a href="https://www.etsy.com/ca-fr/shop/FillorianQueen">Etsy</a></li>
  319. <li><a href="/ask">Send a bunny</a></li>
  320. </ul></div>
  321.  
  322. {block:Pagination}
  323. <div class="pagination">
  324. <div class="pagi">
  325. {block:PreviousPage}<a href="{PreviousPage}"><i class="fas fa-chevron-left"></i></a>{/block:PreviousPage}
  326. {block:NextPage}<a href="{NextPage}"><i class="fas fa-chevron-right"></i></a>{/block:NextPage}
  327. </div></div>
  328. {/block:Pagination}
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. <img id="fen" src="https://66.media.tumblr.com/815e4154254143c51ab85bb98e0d4c9e/tumblr_px4az6CQ5i1wd05tno2_500.png">
  336. </div>
  337. <div class="pref"><div id="wrapper_featured_posts"> <h1>Featured Posts</h1> <div class="inner_featured_posts"> <!-- the posts will appear below using jQuery --> </div> </div></div>
  338. <br> <br>
  339. <div id="content">
  340.  
  341. {block:Posts}
  342. <article>
  343. {block:Text}
  344. <div class="text">
  345. {block:Title}<h1 class="title">
  346. <a href="{Permalink}">{Title}</a>
  347. </h1><hr>{/block:Title}
  348. {Body}
  349. {/block:Text}
  350.  
  351. {block:Photo}
  352. <div class="photo">
  353. {LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}" />{LinkCloseTag}
  354. {block:Caption}{Caption}{/block:Caption}
  355. {/block:Photo}
  356.  
  357. {block:Photoset}
  358. <div class="photoset">
  359. {block:IndexPage}
  360. {Photoset-500}
  361. {/block:IndexPage}
  362. {block:PermalinkPage}
  363. {Photoset-500}
  364. {/block:PermalinkPage}
  365. {block:Caption}{Caption}{/block:Caption}
  366. {/block:Photoset}
  367.  
  368. {block:Quote}
  369. <div class="quote">
  370. ❝ {Quote} ❞
  371. <br><br>{block:Source}<cite>&mdash; {Source}</cite>{/block:Source}
  372. {/block:Quote}
  373.  
  374. {block:Link}
  375. <div class="link">
  376. <h1 class="title"><a href="{URL}">{Name}</a><hr></h1>
  377. {block:Description}{Description}{/block:Description}
  378. {/block:Link}
  379.  
  380. {block:Chat}
  381. <div class="chat">
  382. <ul>
  383. {block:Lines}
  384. <div class="{Alt} user_{UserNumber}">
  385. {block:Label}
  386. <b>{Label}</b>{/block:Label}
  387. {Line}
  388. </div>
  389. {/block:Lines}
  390. </ul>
  391. {/block:Chat}
  392.  
  393. {block:Audio}
  394. <div class="audio">
  395. {block:AlbumArt}
  396. <img src="{AlbumArtURL}" width="100px" height="100px"/>
  397. {/block:AlbumArt}
  398.  
  399. {block:AudioEmbed}
  400. {AudioEmbed}
  401. {/block:AudioEmbed}<br>
  402.  
  403. {block:TrackName}
  404. <b>track:</b> {TrackName}
  405. {/block:TrackName}</span><br>
  406. {block:Artist}
  407. <b>artist:</b> {Artist}
  408. {/block:Artist}
  409. {block:Caption}
  410. {Caption}
  411. {/block:Caption}
  412. {/block:Audio}
  413.  
  414. {block:Video}
  415. <div class="video">
  416. <div class="video-player">{Video-500}</div>
  417. {block:Caption}{Caption}{/block:Caption}
  418. {/block:Video}
  419.  
  420. {block:Answer}
  421. <div class="answer">
  422. {Asker} asked: <b><div class="ques">{Question}</div></b>
  423. <div class="ans">{Answer}</div>
  424. {/block:Answer}
  425. </div>
  426.  
  427. <div id="perma">
  428.  
  429. <hr><a href="{Permalink}" title="this post has {NoteCount} notes">{NoteCount} <i class="fas fa-heart"></i></a> &nbsp; <a href="{reblogURL}" title="reblog this post">reblog</a> &nbsp; <a href="{Permalink}" title="posted &mdash; {ShortMonth} {DayOfMonth} {Year} {12Hour}:{Minutes}{AmPm}">{TimeAgo}</a> &nbsp; {block:ifShowTags}{block:HasTags} <a style="font-size:9px;" title="{block:Tags}#{Tag} {/block:Tags}"><i class="fas fa-hashtag"></i></a>{block:HasTags} {block:ifShowTags}
  430.  
  431. </div>
  432.  
  433.  
  434. {block:PermalinkPage}
  435. {block:Date}{Month} {DayOfMonth}{DayOfMonthSuffix}, {Year}{/block:Date}
  436. {block:NoteCount} - {NoteCountWithLabel}{/block:NoteCount}
  437. {block:HasTags}</br>tagged as: {block:Tags}#<a href="{TagURL}">{Tag}</a> {/block:Tags}{/block:HasTags}
  438. {block:RebloggedFrom}</br>source: <a href="{ReblogRootURL}">{ReblogRootName}</a> - via: <a href="{ReblogParentURL}">{ReblogParentName}</a><br>{/block:RebloggedFrom}
  439. {block:PostNotes}{PostNotes-16}{/block:PostNotes}
  440. </div></div>
  441. {/block:PermalinkPage}
  442. </footer>
  443. </article>
  444. {/block:Posts}
  445. </div>
  446.  
  447. <!-- SCRIPTS -->
  448.  
  449. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
  450. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
  451. <script src="https://static.tumblr.com/wgijwsy/Ebfm2v4gy/jquery.masonry.min.js"></script>
  452. {block:IfInfiniteScroll}
  453. <script src="https://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
  454. <script src="https://static.tumblr.com/iwtk77u/Yhym2yygt/jquery.imagesloaded.min.js"></script>
  455. {/block:IfInfiniteScroll}
  456.  
  457. <script src="https://static.tumblr.com/rzl30kg/eAxm7a751/jquery.style-my-tooltips.js"></script>
  458. <script>
  459. (function($){
  460. $(document).ready(function(){
  461. $("[title]").style_my_tooltips({
  462. tip_follows_cursor:true,
  463. tip_delay_time:0,
  464. tip_fade_speed:0
  465. }
  466. );
  467. });
  468. })(jQuery);
  469. </script>
  470.  
  471. <script>
  472. (function() {
  473. var $tumblelog = $('#content');
  474. {block:IfInfiniteScroll}
  475. $tumblelog.infinitescroll({
  476. navSelector : ".pagination",
  477. nextSelector : ".pagination a:first",
  478. itemSelector : "article",
  479. bufferPx : 50,
  480. done : "",
  481. loading: {
  482. img : "",
  483. msgText: ""
  484. },
  485. },
  486. function( newElements ) {
  487. var $newElems = $( newElements ).css({ opacity: 0 });
  488. $newElems.imagesLoaded(function(){
  489. $newElems.animate({ opacity: 1 });
  490. $tumblelog.masonry( 'appended', $newElems);
  491. });
  492. }
  493. );
  494. {/block:IfInfiniteScroll}
  495. $tumblelog.imagesLoaded( function(){
  496. $tumblelog.masonry({
  497. columnWidth: function( containerWidth ) {
  498. return containerWidth / 100;
  499. }
  500. });
  501. });
  502. })();
  503. </script>
  504.  
  505. <script src="https://cdnjs.cloudflare.com/ajax/libs/smoothscroll/1.4.6/SmoothScroll.js"></script>
  506. <script>
  507. SmoothScroll({
  508. // Scrolling Core
  509. animationTime : 700, // [ms]
  510. stepSize : 100, // [px]
  511. // Acceleration
  512. accelerationDelta : 50, // 50
  513. accelerationMax : 3, // 3
  514. // Keyboard Settings
  515. keyboardSupport : true, // option
  516. arrowScroll : 100, // [px]
  517. // Pulse (less tweakable)
  518. // ratio of "tail" to "acceleration"
  519. pulseAlgorithm : true,
  520. pulseScale : 4,
  521. pulseNormalize : 1,
  522. // Other
  523. touchpadSupport : false, // ignore touchpad by default
  524. fixedBackground : true,
  525. excluded : ''
  526. });
  527. </script>
  528.  
  529. <script src="https://static.tumblr.com/5ojoydj/Kzyp56cvt/jquery-2.2.0.min.js"></script>
  530. <script>
  531. $(document).ready(function() {
  532. var readData, insert;
  533. var url = "https://{Name}.tumblr.com/api/read/json?&tagged=featured";
  534. $.getScript(url, function() {
  535. readData = tumblr_api_read;
  536. console.log(readData);
  537.  
  538. /*replace "2" with your desired number.
  539. please remember that the number starts from zero
  540. if you want to show 4 featured posts, replace "2" with "3" and so on.
  541. */
  542. for (var i = 0; i <= 2; i++) {
  543. var posts = readData.posts[i]; /* is equivalent to tumblr_api_read.posts */
  544. var link = posts["url"]; /* get an url of the posts */
  545.  
  546.  
  547. /* photo posts */
  548. var img = posts["photo-url-1280"]; /* get an image url */
  549. var captionPhotos = posts["photo-caption"]; /* get a caption of the photo/photoset posts */
  550.  
  551. /* text posts */
  552. var titleText = posts["regular-title"]; /* title of the posts */
  553. var captionText = posts["regular-body"]; /* body of the posts */
  554.  
  555. /* condition
  556. if the post type is not photo/photoset posts */
  557. if (img === undefined) {
  558. insert = '<div class="grid_featured">';
  559. insert += '<h3><a href="' + link + '">' + titleText + '</a></h3>';
  560. insert += '<div class="body_caption">' + captionText + '</div>';
  561. insert += '<a class="btnMore" href="' + link + '">See Full Post</a>';
  562. insert += '</div>';
  563.  
  564. $('h3').filter(function () {
  565. return $(this).text() == 'null';
  566. }).remove();
  567. $('.inner_featured_posts').append(insert); /* insert the HTML inside the <div class="featured_posts"></div> */
  568.  
  569. } else {
  570. insert = '<div class="grid_featured">';
  571. insert += '<img src="' + img + '">';
  572. insert += '<div class="body_caption">' + captionPhotos + '</div>';
  573. insert += '<a class="btnMore" href="' + link + '">See Full Post</a>';
  574. insert += '</div>';
  575. $('.inner_featured_posts').append(insert); /* insert the HTML inside the <div class="featured_posts"></div> */
  576.  
  577. }
  578.  
  579. }
  580.  
  581. });
  582.  
  583. });
  584. </script>
  585. <a href="https://highkingfen.tumblr.com" title="theme by HighKingFen." style="position:fixed;font-size:18px;bottom:3px;right:5px;">
  586. <i class="fas fa-crown"></i>
  587. </a>
  588.  
  589. </body>
  590.  
  591.  
  592. </html>
Advertisement
Add Comment
Please, Sign In to add comment