this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix 404 page and downpour settings not being loaded properly

Tholp e4157795 a6055ca0

+35 -30
+10 -2
content/res/scripts/downpour/glue.js
··· 77 77 }); 78 78 if (hasCookie("downpour_enabled")) 79 79 { 80 - toggle.checked = getCookie("downpour_enabled"); 80 + toggle.checked = ("true" === getCookie("downpour_enabled")); 81 81 } 82 82 83 83 focus = document.getElementById("downpour_focus") 84 + focus.addEventListener("input", ()=>{ 85 + setCookie("downpour_focus", focus.checked, 30); 86 + }); 84 87 if (hasCookie("downpour_focus")) 85 88 { 86 - focus.checked = getCookie("downpour_focus"); 89 + focus.checked = ("true" === getCookie("downpour_focus")); 87 90 } 88 91 89 92 tps = document.getElementById("downpour_tps"); ··· 124 127 scalecontrol.value = getCookie("downpour_scale"); 125 128 scale = 1/scalecontrol.value; 126 129 scaledisplay.innerHTML = scalecontrol.value; 130 + } 131 + else 132 + { 133 + scale = 1/3; 134 + scaledisplay.innerHTML = 3; 127 135 } 128 136 } 129 137
+23
content/style.css
··· 764 764 margin-left: 0.25em; 765 765 } 766 766 767 + /* This fucks with the highlighter for like everything */ 768 + .missingpagegiftext { 769 + text-align: center; 770 + background: #FFFFFF; 771 + font-family: "Futura Extra Black Condesed", sans-serif; 772 + font-size: 90px; 773 + word-wrap: break-word; 774 + /* shoutout to hellbie for this */ 775 + filter: url('data:image/svg+xml,\ 776 + <svg height="1000" preserveaspectratio="xMidYMid meet" style="width: 100%; height: 100%; transform: translate3d(0px, 0px, 0px);" viewbox="0 0 1000 1000" width="1000"\ 777 + xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\ 778 + <defs>\ 779 + <filter id="pixelate" x="0%" y="0%" width="100%" height="100%"> \ 780 + <feGaussianBlur stdDeviation="2" in="SourceGraphic" result="smoothed" /> \ 781 + <feImage width="15" height="15" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAWSURBVAgdY1ywgOEDAwKxgJhIgFQ+AP/vCNK2s+8LAAAAAElFTkSuQmCC" result="displacement-map" />\ 782 + <feTile in="displacement-map" result="pixelate-map" />\ 783 + <feDisplacementMap in="smoothed" in2="pixelate-map" xChannelSelector="R" yChannelSelector="G" scale="15" result="pre-final"/>\ 784 + <feComposite operator="in" in2="SourceGraphic"/>\ 785 + </filter>\ 786 + </defs>\ 787 + </svg>#pixelate'); 788 + 789 + }
-26
skid/404.sk
··· 2 2 &insert("//templates_generic.sk") 3 3 &page_title("404") 4 4 5 - <!-- This fucks with the highlighter for like everything --> 6 - <style> 7 - .missingpagegiftext { 8 - /* shoutout to hellbie for this */ 9 - filter: url('data:image/svg+xml,\ 10 - <svg height="1000" preserveaspectratio="xMidYMid meet" style="width: 100%; height: 100%; transform: translate3d(0px, 0px, 0px);" viewbox="0 0 1000 1000" width="1000"\ 11 - xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\ 12 - <defs>\ 13 - <filter id="pixelate" x="0%" y="0%" width="100%" height="100%">\ 14 - <feGaussianBlur stdDeviation="2" in="SourceGraphic" result="smoothed" />\ 15 - <feImage width="15" height="15" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAWSURBVAgdY1ywgOEDAwKxgJhIgFQ+AP/vCNK2s+8LAAAAAElFTkSuQmCC" result="displacement-map" />\ 16 - <feTile in="displacement-map" result="pixelate-map" />\ 17 - <feDisplacementMap in="smoothed" in2="pixelate-map" xChannelSelector="R" yChannelSelector="G" scale="15" result="pre-final"/>\ 18 - <feComposite operator="in" in2="SourceGraphic"/>\ 19 - </filter>\ 20 - </defs>\ 21 - </svg>#pixelate'); 22 - 23 - text-align: center; 24 - background: #FFFFFF; 25 - font-family: "Futura Extra Black Condesed", sans-serif; 26 - font-size: 90px; 27 - word-wrap: break-word; 28 - } 29 - </style> 30 - 31 5 <div class="missingpagegif"> 32 6 <div class="missingpagegiftext unselectable" id="gifheader">Theres Nothing</div> 33 7 </div>
+1 -1
skid/blog/blog5.sk
··· 218 218 219 219 }}} 220 220 &blog_nav("blog4.html" "blog6.html") 221 - &bsky_comments("placeholder") 221 + &bsky_comments("https://bsky.app/profile/tholps.site/post/3mdha26n2ss2e") 222 222 223 223 &copy_footer()
+1 -1
skid/templates_generic.sk
··· 88 88 </div> 89 89 <div> 90 90 <input type="range" id="downpour_scale" name="downpour_scale" min="1" max="12" value="3" step="1"/> 91 - <label for="downpour_scale">[ <span id="downpour_scale_display"></span> ] Screen pixels per cell</label> 91 + <label for="downpour_scale">[ <span id="downpour_scale_display">3</span> ] Screen pixels per cell</label> 92 92 </div> 93 93 <div> 94 94 <a id="downpour_close_settings" onclick="document.getElementById('downpour_settings').style.display = 'none';document.getElementById('downpour_open_settings').style.display = 'block';">Close</a>