This commit is contained in:
2026-02-21 19:26:48 +01:00
parent 7648e7d426
commit e4e0bdf8f1
53 changed files with 747 additions and 176 deletions

View File

@@ -21,12 +21,12 @@ $(document).on("change", "#section_filter", function() {
});
$(document).on("change", ".quickThumbShow", function(evt) {
var preview = $(this).data("preview_id");
var preview = $(this).data("preview_id");
var files = evt.target.files;
var f = files[0];
var reader = new FileReader();
reader.onload = (function(theFile) {
return function(e) {
fname = (theFile.name);
@@ -39,7 +39,7 @@ $(document).on("change", ".quickThumbShow", function(evt) {
}
};
})(f);
reader.readAsDataURL(f);
});
@@ -51,14 +51,14 @@ $(document).ready(function() {
$(".scrollContent").mCustomScrollbar();
var size = function () {
var w = $container1.width();
var c = Math.floor(w / 260);
var wc = parseInt($container1.width() / c);
numCols = c;
console.log(w, c, wc);
console.log("MASONRY", w, c, wc);
if (c == 1) {
$(".photo_frame").css("width", "99%");
} else if (c == 2) {
@@ -67,6 +67,8 @@ $(document).ready(function() {
$(".photo_frame").css("width", "28%");
} else if (c == 4) {
$(".photo_frame").css("width", "22%");
} else if (c == 5) {
$(".photo_frame").css("width", "18%");
} else {
$(".photo_frame").css("width", "250px");
}
@@ -74,8 +76,8 @@ $(document).ready(function() {
$container1.isotope({
masonry: { columnWidth: wc }
});
}
$container1.imagesLoaded( function() {
@@ -85,9 +87,9 @@ $(document).ready(function() {
});
size();
});
$(window).smartresize(size);
$(".summernote").summernote();
$(".summernote_lite").summernote({
toolbar: [
@@ -97,7 +99,7 @@ $(document).ready(function() {
['color', ['color']],
]
});
var $container = $('.container_gallery');
$container.imagesLoaded( function(){
$container.isotope({
@@ -114,17 +116,17 @@ $(document).ready(function() {
layoutMode : 'masonry'
});
});
if ($("a[rel^='prettyPhoto']").length > 0) {
$("a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
}
$("#sideBarSep").click(function() {
if(sbc == 0) {
$("#sideBarChat").animate({
height: '700px'
}, 1000, function(){
@@ -147,13 +149,13 @@ $(document).ready(function() {
}
});
if ($(".followingButton").length > 0) {
$(".followingButton").click(function() {
$("#showNoticeBox").load("/include/hideNoticeBox.php?show=following");
});
}
if ($(".streamPost").length > 0) {
var remme = false;
$(".stream_Remove").click(function() {
@@ -164,7 +166,7 @@ $(document).ready(function() {
remme = true;
}
});
$(".streamPost").click(function() {
$("BODY").scrollTop(0);
var wid = $(this).attr("rel");
@@ -176,35 +178,35 @@ $(document).ready(function() {
}
remme = false;
});
}
if ($("#js-news").length >0) {
$('#js-news').ticker();
}
if ($("#imageTicker").length >0) {
$("#imageTicker").slideDown().newsticker();
}
if ($(".changeCoverArt").length > 0) {
$(".changeCoverArt").click(function() {
$("#mywindow").center();
$("#mywindow").show();
});
}
//$(".openwin").fancybox({});
$('#ajaxForm').submit(function() {
alert('Handler for .submit() called.');
return false;
});
//$('.nav_left').stickySidebar({speed: 400, padding: 70, constrain: true})
$("#next_page").click(function() {
$("#next_page").click(function() {
//http://www.skinbase.org/Skins/WindowBlinds/125?page=2&order=2&sorted=dates&display=1
//alert(data);
var data = ($(".next").attr("href"));
@@ -230,7 +232,7 @@ $(document).ready(function() {
if ($("#boks").length > 0) {
InitChat();
}
$("#loginMenu span").click(function() {
$("#subLoginMenu").toggle();
});
@@ -239,7 +241,7 @@ $(document).ready(function() {
$("#browseMenu").click(function(){
//showCategories();
$("#browserMenuList").toggle();
});
}
@@ -261,7 +263,7 @@ $(document).ready(function() {
$("#update_button").html("Attach link");
$("#streamMessage").val("http://");
});
$("#publishButton").click(function(){
//event.preventDefault();
var type = $("#streamType").val();
@@ -269,11 +271,11 @@ $(document).ready(function() {
//alert("/social/getStreamData.php?type="+type+"&data="+data);
$("#streamWork").load("/social/getStreamData.php?type="+type+"&data="+data);
$("#streamMessage").val("");
});
$("#shareBox textarea").elastic();
/*if($("#total_msgs").length > 0) {
showDownloadCounter();
}*/
@@ -281,7 +283,7 @@ $(document).ready(function() {
$(".addFavourites").click(function() {
var id = $(this).attr("rel");
$(".af-"+id).load("/include/add2favourites.php?id="+id);
});
});
@@ -337,12 +339,12 @@ function ShowPrivateMessage(id) {
}
function ShowPrivateMessageList(box, id) {
if (box !== 'new') {
$("#msgList").html(m_html);
$("#msgShow").html('');
}
if (box == 'new') {
//alert ("/privmsg.php?ajax=true&action=msgList&box="+box+"&id=" + id);
$("#msgShow").load("/privmsg.php?ajax=true&action=msgList&box="+box+"&id=" + id);