varios small changes
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -19,7 +19,7 @@ return [
|
|||||||
],
|
],
|
||||||
|
|
||||||
'flat' => [
|
'flat' => [
|
||||||
'length' => 25,
|
'length' => 17,
|
||||||
'width' => 500,
|
'width' => 500,
|
||||||
'height' => 36,
|
'height' => 36,
|
||||||
'quality' => 60,
|
'quality' => 60,
|
||||||
|
7
public/njum/js/clipboard.min.js
vendored
Normal file
7
public/njum/js/clipboard.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1016,7 +1016,7 @@ function deleteComment(self) {
|
|||||||
if(retval == 'success') {
|
if(retval == 'success') {
|
||||||
flash('success', 'Comment deleted');
|
flash('success', 'Comment deleted');
|
||||||
comment.removeClass('panel-default').addClass('panel-danger');
|
comment.removeClass('panel-default').addClass('panel-danger');
|
||||||
comment.find('.panel-footer').children('a[onclick="deleteComment($(this))"]').replaceWith('<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>');
|
comment.find('.panel-footer').children('a[onclick="deleteComment($(this))"]').replaceWith('<a href="href="#' + id + '"' + 'onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>');
|
||||||
comment.find('.panel-footer > a[onclick="editComment($(this))"]').remove();
|
comment.find('.panel-footer > a[onclick="editComment($(this))"]').remove();
|
||||||
}
|
}
|
||||||
else if(retval == 'invalid_request') flash('error', 'Invalid request');
|
else if(retval == 'invalid_request') flash('error', 'Invalid request');
|
||||||
@@ -1048,7 +1048,7 @@ function restoreComment(self) {
|
|||||||
if(retval == 'success') {
|
if(retval == 'success') {
|
||||||
flash('success', 'Comment restored');
|
flash('success', 'Comment restored');
|
||||||
comment.removeClass('panel-danger').addClass('panel-default');
|
comment.removeClass('panel-danger').addClass('panel-default');
|
||||||
comment.find('.panel-footer').children('a[onclick]').replaceWith('<a href="#" onclick="deleteComment($(this))"><i style="color:red"; class="fa fa-times" aria-hidden="true"></i></a> <a href="#" onclick="editComment($(this))"><i style="color:cyan;" class="fa fa-pencil-square" aria-hidden="true"></i></a>');
|
comment.find('.panel-footer').children('a[onclick]').replaceWith('<a href="href="#' + id + '"' + 'onclick="deleteComment($(this))"><i style="color:red"; class="fa fa-times" aria-hidden="true"></i></a> <a href="href="#' + id + '"' + 'onclick="editComment($(this))"><i style="color:cyan;" class="fa fa-pencil-square" aria-hidden="true"></i></a>');
|
||||||
}
|
}
|
||||||
else if(retval == 'invalid_request') flash('error', 'Invalid request');
|
else if(retval == 'invalid_request') flash('error', 'Invalid request');
|
||||||
else if(retval == 'not_logged_in') flash('error', 'Not logged in');
|
else if(retval == 'not_logged_in') flash('error', 'Not logged in');
|
||||||
@@ -1074,11 +1074,11 @@ function editComment(self) {
|
|||||||
body.replaceWith(textarea);
|
body.replaceWith(textarea);
|
||||||
textarea.val($('<div>').html(retval.comment).text());
|
textarea.val($('<div>').html(retval.comment).text());
|
||||||
self.prev().remove();
|
self.prev().remove();
|
||||||
self.replaceWith('<a href="#" class="saveCommentEdit">[save]</a> <a href="#" class="abortCommentEdit">[abort]</a>');
|
self.replaceWith('<a href="#" class="saveCommentEdit">[save]</a> <a href="#' + id + '"' + 'class="abortCommentEdit">[abort]</a>');
|
||||||
comment.find('.abortCommentEdit').on('click', function(e) {
|
comment.find('.abortCommentEdit').on('click', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(this).prev().remove();
|
$(this).prev().remove();
|
||||||
$(this).replaceWith('<a class="delete_comment" href="#" onclick="deleteComment($(this))">[del]</a> <a class="edit_comment" href="#" onclick="editComment($(this))">[edit]</a>');
|
$(this).replaceWith('<a class="delete_comment" href="#' + id + '"' + 'onclick="deleteComment($(this))">[del]</a> <a class="edit_comment" href="#' + id + '"' + 'onclick="editComment($(this))">[edit]</a>');
|
||||||
textarea.replaceWith(body);
|
textarea.replaceWith(body);
|
||||||
});
|
});
|
||||||
comment.find('.saveCommentEdit').on('click', function(e) {
|
comment.find('.saveCommentEdit').on('click', function(e) {
|
||||||
@@ -1313,4 +1313,11 @@ function Copy() {
|
|||||||
console.log(Url.innerHTML)
|
console.log(Url.innerHTML)
|
||||||
Url.select();
|
Url.select();
|
||||||
document.execCommand("copy");
|
document.execCommand("copy");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Vielen Dank an Flummi!
|
||||||
|
// This code snippet makes full and valid urls clickable in the info box!
|
||||||
|
|
||||||
|
const infoboxContent = document.querySelector("button#infobox");
|
||||||
|
if(infoboxContent)
|
||||||
|
infoboxContent.dataset.content = infoboxContent.dataset.content.replace(/(https?:\/\/[^\s]+)/g, "<a href='$1' target='_blank' rel='extern'>$1</a>");
|
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body {
|
||||||
background: black;
|
background: black;
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>ID</th>
|
||||||
<th>Thumb</th>
|
|
||||||
<th>Video Title</th>
|
<th>Video Title</th>
|
||||||
<th>Artist</th>
|
<th>Artist</th>
|
||||||
<th>Songtitle</th>
|
<th>Songtitle</th>
|
||||||
@@ -30,13 +29,13 @@
|
|||||||
@if($edit = auth()->check() && auth()->user()->can('edit_video'))
|
@if($edit = auth()->check() && auth()->user()->can('edit_video'))
|
||||||
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
||||||
@endif
|
@endif
|
||||||
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
<div class="relativebla">
|
||||||
|
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
||||||
|
<a href="{{url($video->id)}}"><img id="indexthumb" src="/thumbs/beta/{{$thumb}}.png"></a>
|
||||||
|
</div>
|
||||||
@if($edit)
|
@if($edit)
|
||||||
<input type="submit" class="btn btn-primary" value="Save" form="edit_{{$video->id}}">
|
<input type="submit" class="btn btn-primary" value="Save" form="edit_{{$video->id}}">
|
||||||
@endif
|
@endif
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<img id="indexthumb" src="/thumbs/beta/{{$thumb}}.png">
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span class="vinfo vvideotitle">{{$video->videotitle or ''}}</span>
|
<span class="vinfo vvideotitle">{{$video->videotitle or ''}}</span>
|
||||||
|
12
resources/views/layout2/irc.blade.php
Normal file
12
resources/views/layout2/irc.blade.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
@extends('profilelayout')
|
||||||
|
@section('novidcontent')
|
||||||
|
<div class="page-header">
|
||||||
|
<h3>IRC</h3>
|
||||||
|
<p>Don't forget to enable Dark Mode!</p>
|
||||||
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<iframe src="https://webirc.n0xy.net?nick={{Auth::user()->username}}&join=%23w0bm&username={{Auth::user()->username}}"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
@@ -2,14 +2,17 @@
|
|||||||
<div class="comment panel-body" author="{{$comment->user->username}}">
|
<div class="comment panel-body" author="{{$comment->user->username}}">
|
||||||
@simplemd($comment->content)
|
@simplemd($comment->content)
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-footer">by <a class="{{$comment->user->username}}" href="/user/{{$comment->user->username}}">{!! $comment->user->displayName() !!}</a> <small><time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$comment->created_at}}+0000" title="{{$comment->created_at}}+0000"></time></small>
|
<div class="panel-footer">by <a class="{{$comment->user->username}}" href="/user/{{$comment->user->username}}">{!! $comment->user->displayName() !!}</a> <small><time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$comment->created_at}}+0000" title="{{$comment->created_at}}+0000"></time>
|
||||||
@if($mod)
|
<div class="dingz">
|
||||||
|
@if($mod)
|
||||||
@if($del)
|
@if($del)
|
||||||
<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>
|
<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>
|
||||||
@else
|
@else
|
||||||
<a class="delete_comment" href="#" onclick="deleteComment($(this))">[del]</a>
|
<a class="delete_comment" href="#{{$comment->id}}" onclick="deleteComment($(this))">[del]</a>
|
||||||
<a class="edit_comment" href="#" onclick="editComment($(this))">[edit]</a>
|
<a class="edit_comment" href="#{{$comment->id}}" onclick="editComment($(this))">[edit]</a>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -39,6 +39,7 @@
|
|||||||
<a class="dropdown-item" href="/index">Index</a>
|
<a class="dropdown-item" href="/index">Index</a>
|
||||||
<a class="dropdown-item" href="/categories">Categories</a>
|
<a class="dropdown-item" href="/categories">Categories</a>
|
||||||
<a class="dropdown-item" href="/about">About</a>
|
<a class="dropdown-item" href="/about">About</a>
|
||||||
|
<a class="dropdown-item" href="/irc">IRC</a>
|
||||||
<a class="dropdown-item" href="/rules">Rules</a>
|
<a class="dropdown-item" href="/rules">Rules</a>
|
||||||
<a class="dropdown-item" href="/stats">Stats</a>
|
<a class="dropdown-item" href="/stats">Stats</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
<button class="copylink" data-clipboard-text="{{url($video->id)}}" title="Copy URL!"><i class="fa fa-link"></i></button>
|
<button class="copylink" data-clipboard-text="{{url($video->id)}}" title="Copy URL!"><i class="fa fa-link"></i></button>
|
||||||
</li>
|
</li>
|
||||||
<li class="legacy-item">
|
<li class="legacy-item">
|
||||||
<button type="button" class="btn btn-dark metadata-button bg-toggle" data-container="body" data-toggle="popover" data-placement="bottom" data-html="true" data-container="body">
|
<button type="button" id="infobox" class="btn btn-dark metadata-button bg-toggle" data-container="body" data-toggle="popover" data-placement="bottom" data-html="true" data-container="body">
|
||||||
<i class="fa fa-lg fa-info-circle"></i>
|
<i class="fa fa-lg fa-info-circle"></i>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
@@ -7,8 +7,8 @@
|
|||||||
@if($del)
|
@if($del)
|
||||||
<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>
|
<a href="#" onclick="restoreComment($(this))"><i style="color:green"; class="fa fa-refresh" aria-hidden="true"></i></a>
|
||||||
@else
|
@else
|
||||||
<a class="delete_comment" href="#" onclick="deleteComment($(this))">[del]</a>
|
<a class="delete_comment" href="#{{$comment->id}}" onclick="deleteComment($(this))">[del]</a>
|
||||||
<a class="edit_comment" href="#" onclick="editComment($(this))">[edit]</a>
|
<a class="edit_comment" href="#{{$comment->id}}" onclick="editComment($(this))">[edit]</a>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user