mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-01 22:26:24 -07:00
remove unused thumbnail expansion function, add thumbnail throbber
This commit is contained in:
parent
b46b8efb6f
commit
94ae946fdf
4 changed files with 12 additions and 12 deletions
12
README.md
12
README.md
|
@ -1,10 +1,10 @@
|
|||
# Gochan
|
||||
|
||||
A muti-threaded Imageboard software project in Go
|
||||
A muti-threaded imageboard server written in Go
|
||||
|
||||
At the moment, regular users can:
|
||||
- Log in as the initial admin account (password is "password"
|
||||
- Create new threads
|
||||
Currently, regular users can:
|
||||
- Log in as the initial admin account (password is "password" by default)
|
||||
- Create a new thread
|
||||
- Post in a thread
|
||||
- Upload an image with a post
|
||||
|
||||
|
@ -34,7 +34,6 @@ Staff can:
|
|||
+ Features
|
||||
- Load error html pages into memory and use templating
|
||||
- Set up load balancing
|
||||
- Set up HTTPS for management
|
||||
- Set up timezone adjusting
|
||||
- Give administrator server control options (restart/shutdown daemon, etc)
|
||||
- add edit post functionality, both for staff and regular posters
|
||||
|
@ -44,4 +43,5 @@ Staff can:
|
|||
- set up board pagination
|
||||
- set up client-side watched threads list
|
||||
- set up Ponychan/4chan-X style javascript features
|
||||
- generate robots.txt
|
||||
+ Attribution
|
||||
- Thumbnail loading throbber generated by http://preloaders.net/
|
|
@ -10,6 +10,7 @@
|
|||
top:5%;
|
||||
z-index:9001;
|
||||
overflow: auto;
|
||||
display:hidden;
|
||||
}
|
||||
|
||||
.lightbox * {
|
||||
|
|
BIN
html/css/throbber.GIF
Normal file
BIN
html/css/throbber.GIF
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -236,7 +236,7 @@ function getCookie(name) {
|
|||
}
|
||||
}
|
||||
|
||||
function preparePostPreviews(is_inline) {
|
||||
/*function preparePostPreviews(is_inline) {
|
||||
var m_type = "mousemove";
|
||||
if(!movable_postpreviews) m_type = "mouseover";
|
||||
if(expandable_postrefs) $("a.postref").attr("href","javascript:void(0);");
|
||||
|
@ -268,7 +268,7 @@ function preparePostPreviews(is_inline) {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
function reportPost(id) {
|
||||
var reason = prompt("Reason");
|
||||
|
@ -277,6 +277,7 @@ function reportPost(id) {
|
|||
$jq(document).ready(function() {
|
||||
board = location.pathname.substring(1,location.pathname.indexOf("/",1))
|
||||
current_staff = getStaff()
|
||||
initCookies();
|
||||
|
||||
topbar = $jq("div#topbar");
|
||||
var settings_html = "<table width=\"100%\"><colgroup><col span=\"1\" width=\"50%\"><col span=\"1\" width=\"50%\"></colgroup><tr><td><b>Style:</b></td><td><select name=\"style\" style=\"min-width:50%\">"
|
||||
|
@ -339,8 +340,8 @@ $jq(document).ready(function() {
|
|||
}
|
||||
}
|
||||
});
|
||||
initCookies();
|
||||
//showMessage("This is a testarjieorhaeuiorheuiotestarjieorhaeuiorheuiotestarjieorhaeuiorheuiotestarjieorhaeuiorheuiotestarjieorhaeuiorheuiotestarjieorhaeuiohuihuoqweryuio")
|
||||
|
||||
// set thumbnails to expand when clicked
|
||||
var thumbnails = document.getElementsByClassName("thumbnail");
|
||||
for(var i = 0; i < thumbnails.length; i++) {
|
||||
var is_thumb = true;
|
||||
|
@ -361,9 +362,7 @@ $jq(document).ready(function() {
|
|||
this.removeAttribute("old-height");
|
||||
}
|
||||
this.setAttribute("src", src);
|
||||
|
||||
//thumbnails[i].setAttribute("onclick", "function() { alert(\"hi!\"); return ")
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue