[READ-ONLY] Mirror of https://github.com/probablykasper/nelation-website. nelation.net
website
0

Configure Feed

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

Some cleanup

KH (May 14, 2017, 7:30 PM +0200) 1ed548f1 d03e9205

+12 -6
-1
css/music.sass
··· 1 - // sass --watch css/music.sass:css/music.css 2 1 @import "variables.sass" 3 2 4 3 header.music-filter
+1
css/variables.sass
··· 10 10 $c-cover-overlay: rgba(black, 0.2) 11 11 12 12 $c-text: black 13 + $c-text-gray: #E4E4E4 13 14 $c-dropdown-text: rgba($c-text, 0.7) 14 15 $c-dropdown-text-selected: $c-text 15 16
+7
includes/functions.php
··· 3 3 $css_paths = [ 4 4 "/" => "home.css", 5 5 "/music" => "music.css", 6 + "/admin" => "admin.css", 6 7 "/contact" => "contact.css" 7 8 ]; 8 9 $titles = [ 9 10 "/" => "Nelation", 10 11 "/music" => "Music", 12 + "/admin" => "Admin", 11 13 "/contact" => "Contact" 12 14 ]; 13 15 ··· 86 88 $string = preg_replace("/[^\w+-]/", "", $string); 87 89 $string = preg_replace("[-+]", "-", $string); 88 90 return $string; 91 + } 92 + 93 + function starts_with($haystack, $needle) { 94 + $length = strlen($needle); 95 + return (substr($haystack, 0, $length) === $needle); 89 96 } 90 97 91 98 ?>
+3 -4
index.php
··· 109 109 <script src="/js/ajax.js?r=<?=rand(0,999)?>"></script> 110 110 <script> 111 111 <? include("js/functions.js") ?> 112 - $("body").on("pageLoad", function() { 112 + $(document).on("pageLoad", function() { 113 113 $(function() { 114 114 <? 115 115 include("js/home.js"); 116 - include("js/music.js"); 117 - include("js/contact.js"); 116 + include("js/admin.js"); 118 117 ?> 119 118 }); 120 119 }); 121 - $("body").trigger("pageLoad"); 120 + $(document).trigger("pageLoad"); 122 121 </script> 123 122 </body> 124 123 </html>
+1 -1
js/ajax.js
··· 57 57 document.title = resultJSON.title; 58 58 // Insert page contents, then trigger the pageLoad event 59 59 $(target).html(page); 60 - $("body").trigger("pageLoad"); 60 + $(document).trigger("pageLoad"); 61 61 } 62 62 }; 63 63 xhr.send();