Sponsored Content
The Lounge War Stories Postbit Changes (Phase II Upgrade) Post 303020502 by Neo on Saturday 21st of July 2018 08:48:16 AM
Old 07-21-2018
Added some new Javascript jQuery code to showthread:


Code:
<script>
 jQuery(document).ready(function(){
  jQuery("body").css({"background-color":"white"});
  jQuery("#showthread-toolbar").find("table").css({"border-bottom-width":"1px","margin-bottom":"10px;"});
  jQuery("#showthread-toolbar").find("table").addClass("table table-responsive");
  jQuery(".neo-similiarthreads-wrapper").css({"overflow":"auto"}); 
  jQuery(".neo-quickreply-wrapper").css({"overflow":"auto"}); 
  jQuery(".neo-postbit-wrapper").addClass("table table-responsive").css({"border-width":"1px 0px 0px 0px","border-style":"solid"});
  if (jQuery(".neo-postbit-wrapper").prop('scrollWidth') > jQuery(".neo-postbit-wrapper").width() ) {
        jQuery(".neo-postbit-wrapper").css({"margin-top":"0px","margin-bottom":"10px"});
        jQuery(".neo-bbcode-code-flag").text("(Using Scrollbar)").css({"margin-left":"10px","font-size":".8em"});
 }    
});

</script>

Anyway, I plan to covert the tables to divs in postbit and showthread templates, so this overflow scroll bar code is just temporary.
 

4 More Discussions You Might Find Interesting

1. Solaris

init phase

Hello, Can somebody explain me the relationship between /sbin and /etc directories ? what is the relationship between them and what are the roles of files such as rcd.1 etc? (1 Reply)
Discussion started by: saudsos
1 Replies

2. What is on Your Mind?

Small bug in the Quick Editor function in postbit

Hey, There was a small bug in the Quick Editor function in postbit, but I fixed it (basically a double quote was missing from an element id): <div id="post_message_$post" class="neo-message-area">$post</div> Was <div id="post_message_$post class="neo-message-area">$post</div> Should... (1 Reply)
Discussion started by: Neo
1 Replies

3. Web Development

New Supplementary CSS for Forum Postbit

Working on moving inline style to a supplementary CSS file. This one is postbit.css: .pb-wrapper { border-style: solid; border-width: 1px; border-color: rgba(110, 117, 182, 0.99); padding: 0px 0px 0px 0px; } .pb-wrapper-b { padding: 0px; border-width: 0px 0px 1px... (0 Replies)
Discussion started by: Neo
0 Replies

4. Docker

Docker learning Phase-I

Hello All, I had recently learnt a bit of Docker(which provides containerization process). Here are some of my learning points from it. Let us start first with very basic question: What is Docker: Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Discussion started by: RavinderSingh13
7 Replies
Plack::Middleware::Expires(3pm) 			User Contributed Perl Documentation			   Plack::Middleware::Expires(3pm)

NAME
Plack::Middleware::Expires - mod_expires for plack SYNOPSIS
use Plack::Builder; builder { enable 'Expires', content_type => qr!^image/!i, expires => 'access plus 3 months'; $app; } DESCRIPTION
Plack::Middleware::Expires is Apache's mod_expires for Plack. This middleware controls the setting of Expires HTTP header and the max-age directive of the Cache-Control HTTP header in server responses. Note: Expires works only for successful response and If exists Expires HTTP header already, this middleware does not override. CONFIGURATIONS
content_type content_type => qr!^image!, content_type => 'text/css', content_type => [ 'text/css', 'application/javascript', qr!^image/! ] Content-Type header to apply Expires Expires Same format as the Apache mod_expires expires => 'M3600' # last_modified + 1 hour expires => 'A86400' # access + 1 day expires => 'modification plus 3 years 3 month 3 day' expires => 'access plus 3 days' AUTHOR
Masahiro Nagano <kazeburo {at} gmail.com> SEE ALSO
<http://httpd.apache.org/docs/2.2/en/mod/mod_expires.html> LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-11-11 Plack::Middleware::Expires(3pm)
All times are GMT -4. The time now is 08:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy