Something went wrong. Try again.
the source code for my blog im.tranfem.fyi
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108<!doctype html>
<link rel="stylesheet" type="text/css" href="cutecat.css" />
<title>katya's blog!</title><link rel="icon" type="image/x-icon" href="favicon.png" /><meta name="description" content="katya's thoughts on the world" />
<div style="zoom: 100%; min-height: 100vh"> <h1>~ katya's blog! ~</h1> <h3><a href="/">im.transfem.fyi</a></h3>
<img src="favicon.png" alt="favicon, which is my profile picture" style="max-width: 250px" />
<h1 id="oops">oops!</h1> <h3 id="needs-js">This page requires javascript to run!</h3> <p id="needs-js-link">To view available posts without javascript, please use https://im.transfem.fyi/rss.xml</p>
<br /> <br />
<div> <h2 id="posts-label"></h2> <div id="posts-list"></div> </div> <p>Get the RSS feed <a href="https://im.transfem.fyi/rss.xml" target="_blank">here</a>!</p>
<br /> <br /> <br /> <br /> <br /> <br /> <br /></div>
<div> <x style="font-size: 12px"><x id="version"></x><a href="https://tangled.org/kishka.cc/blog" target="_blank">source</a> | <a href="http://tbfllhacdakbrax2gl27l4r2pzw6owixk7v4yga4mc3iswfkct7yzzqd.onion" target="_blank">.onion</a></x> <br /> <x style="font-size: 12px">built from scratch(that means no LLMs) by a transfem :3 </x> <br /> <x style="font-size: 12px">🇺🇦 I stand with Ukraine! Слава Україні і Героям Слава!! 🇺🇦</x></div>
<script> var version = "1.4";
document.getElementById("oops").innerHTML = ""; document.getElementById("needs-js").innerHTML = ""; document.getElementById("needs-js-link").innerHTML = ""; document.getElementById("posts-label").innerHTML = "Posts:";
fetch("post-template.html").then((response) => { return response.text(); }).then((text) => { postTemplate = text;
fetch("rss.xml").then((response) => { return response.text(); }).then((text) => { items = text.split("item>"); var posts = [];
for (var i = 0; i < items.length; i++) { if(items[i].includes("<guid>")) { guid = items[i].split("<guid>")[1].split("</guid>")[0]; console.log(guid);
if(!posts.includes(guid)) { posts.push(guid); } else { items.splice(items.indexOf(items[i]), 1); i--; } } else { items.splice(items.indexOf(items[i]), 1); i--; } }
console.log(posts);
postListInnerHtml = ""; for (var i = items.length - 1; i >= 0; i--) { title = items[i].split("<title>")[1].split("</title>")[0]; link = items[i].split("<link>")[1].split("</link>")[0].replace("/id/", "?").replace(".html", "").split("fyi")[1];
description = items[i].split("<description>")[1].split("</description>")[0]; contentWarning = ""; if(description.includes(" | ")) { contentWarning = description.split(" | ")[1]; description = description.split(" | ")[0]; }
date = items[i].split("<pubDate>")[1].split("</pubDate>")[0].replace(" 00:00:00 +0000", "");
postListInnerHtml += postTemplate.replace("{title}", title).replace("{description}", description).replace("{date}", date).replace("{link}", link).replace("{contentWarning}", contentWarning); } document.getElementById("posts-list").innerHTML = postListInnerHtml.replace(" <mark></mark>", ""); }); });
document.getElementById("version").innerHTML = "website version " + version + " | ";</script>