DashboardFE

This commit is contained in:
daisuke 2021-03-27 12:01:13 -06:00
parent d62e41ef47
commit ed37590c5f
8 changed files with 55 additions and 8 deletions

3
array.txt Normal file
View File

@ -0,0 +1,3 @@
Array
(
)

View File

@ -479,6 +479,11 @@ function newPosts() {
if (getUrlParameter('mode') == 'bookmarks') {
return false;
}
var page = getUrlParameter('page');
if (typeof page !== 'undefined') {
return false;
}
$.get("index.php?ajax=1&since=" + id + "" + pageMode, function(data) {
if (data) {
var scroll = $(window).scrollTop();
@ -507,7 +512,9 @@ window.setInterval(function() {
timestamp = $(this).attr('id');
$(this).html(timeSince(timestamp)+' ago');
});
newPosts();
}, 25000);
function themecheck(name){

View File

@ -352,7 +352,11 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) {
$post['template'] = themes("get","templates/textpost.txt");
}
else {
$post['template'] = themes("get","templates/post.txt");
if ($logedin){
$post['template'] = themes("get","templates/post.txt");
} else {
$post['template'] = themes("get","templates/post_logout.txt");
}
}
foreach ($post as $key => $value) {

View File

@ -1,3 +1,4 @@
<div class='rt mobile' style='margin-top:10px; margin-bottom:3px; text-align:left; padding-left:10px; font-weight:bold;'>:rt:</div>
<div class='element'>
<div class='avatar desktop' style='background-image:url(:avatar:) :style:'></div>
<div class='post' id=':id:' pid=':pid:' mode="post">
@ -5,16 +6,16 @@
<div class='postHeader'>
<div style='width:80%; margin:5px; margin-left:10px; display:block; float:left; line-height:30px;'>
<img src=':avatar:' width=25 class='mobile' style='border-radius:10px; display:inline-block;'>
<div style='max-width:50%; display:inline-block;' class='user' id=':uid:'>
<div style='max-width:50%; display:inline-block;' class='user' id=':uid:' title=':acct:'>
<div style='white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'>
<a class='link ldr' href='?user=:uid:' style='font-weight:bold;'>
<a class='link ldr' href='?user=:uid:' style='font-weight:bold;' title=':acct:'>
<span class='desktop'>:name:</span>
<span class='mobile'>:handle:</span>
</a>
</div>
</div>
<span class='desktop' style='vertical-align:top; font-size:12px;'>:acct:</span>
:rt:
<span class='desktop'>:rt:</span>
</div>
<span style="margin-top:12px; margin-right:10px; float:right; display:block;">
<span class='postMenu fontello'>&#xf0c9;<div style='display:none; z-index:99; width:130px; position: absolute; top: 15px; right: -1px;' class='menu'>:menu:</div></span>

32
templates/post_logout.txt Normal file
View File

@ -0,0 +1,32 @@
<div class='rt mobile' style='margin-top:10px; margin-bottom:3px; text-align:left; padding-left:10px; font-weight:bold;'>:rt:</div>
<div class='element'>
<div class='avatar desktop' style='background-image:url(:avatar:) :style:'></div>
<div class='post' id=':id:' pid=':pid:' mode="post">
<div id='a:id:' class='ancestors'>:ancestors:</div>
<div class='postHeader'>
<div style='width:80%; margin:5px; margin-left:10px; display:block; float:left; line-height:30px;'>
<img src=':avatar:' width=25 class='mobile' style='border-radius:10px; display:inline-block;'>
<div style='max-width:50%; display:inline-block;' class='user' id=':uid:' title=':acct:'>
<div style='white-space: nowrap; overflow: hidden; text-overflow: ellipsis;'>
<b><span class='desktop'>:name:</span>
<span class='mobile'>:handle:</span></b>
</div>
</div>
<span class='desktop' style='vertical-align:top; font-size:12px;'>:acct:</span>
<span class='desktop'>:rt:</span>
</div>
<span style="margin-top:12px; margin-right:10px; float:right; display:block;">
<span class='postMenu fontello'>&#xf0c9;<div style='display:none; z-index:99; width:130px; position: absolute; top: 15px; right: -1px;' class='menu'>:menu:</div></span>
</span>
</div>
:spoiler:
<div class='media' style='text-align:center;'>:media:</div>
<div class='postbody'><span class='content' style='margin-bottom:5px;'>
:replyto: :text:
</span></div>
<div class='post_notes'>:notes:</DIV>
<div id=':id:' class='replies_container'><noscript>:form:</noscript>:descendants:</div>
</div>
<script type='application/json' id='data-:id:'>:json:</script>
</div>

View File

@ -1,3 +1,4 @@
<div class='rt mobile' style='margin-top:10px; margin-bottom:3px; text-align:left; padding-left:10px; font-weight:bold;'>:rt:</div>
<div class='element'>
<div class='avatar desktop' style='background-image:url(:avatar:) :style:'></div>
<div class='post' id=':id:' pid=':pid:' mode="post">
@ -14,7 +15,7 @@
</div>
</div>
<span class='desktop' style='vertical-align:top; font-size:12px;'>:acct:</span>
:rt:
<span class='desktop'>:rt:</span>
</div>
<span style="margin-top:12px; margin-right:10px; float:right; display:block;">
<span class='postMenu fontello'>&#xf0c9;<div style='display:none; z-index:99; width:130px; position: absolute; top: 15px; right: -1px;' class='menu'>:menu:</div></span>

View File

@ -259,8 +259,7 @@ input[type="submit"]:hover {
background-color: rgba(0,0,0,0.4);
border: 2px solid #edf3fe;
border-right: 6px solid #edf3fe;
box-shadow: 0 0 4px rgba(237,243,254,1);
box-shadow: 0 0 5px rgba(237,243,254,1) inset;
box-shadow: 0 0 10px rgba(237,243,254,1) inset;
}
/*
.postform,.searchmobile {

View File

@ -7,7 +7,7 @@ body {
}
.content {
width:90% !important;
width:85% !important;
}
.postMenu {