Sponsored Content
The Lounge What is on Your Mind? Forum Display - Thread Preview Text Animation Post 303020669 by Neo on Wednesday 25th of July 2018 09:54:53 AM
Old 07-25-2018
Quote:
Originally Posted by vgersh99
well... I don't see the expanded threads collapse once the focus is gone - they stay expanded...
Sorry, I had a typo in the script. Should be toggle'n now Smilie
This User Gave Thanks to Neo For This Post:
 

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

How to move a thread into another forum

Hi there, Does anyone know how I can move a posting from one forum into another. I believe I posted one in the wrong forum, but have no idea how to move it. I don't want to ask the same question in multiple forums. Thanks (4 Replies)
Discussion started by: goodjuju
4 Replies

2. Post Here to Contact Site Administrators and Moderators

How to shift or move my thread/query from one forum to other?

I am not getting reply of my post :Switching between Linux and Windows OS in Linux forum. How to move the thread to a different forum like: "Windows & DOS: Issues & Discussions"? (1 Reply)
Discussion started by: ravisingh
1 Replies

3. UNIX for Dummies Questions & Answers

This forum is closed for new thread ... post here.

This forum is closed for new threads. Please post in this forum: UNIX for Beginners Questions & Answers (0 Replies)
Discussion started by: Neo
0 Replies

4. What is on Your Mind?

Updates to Forum Navbar and Thread Reply for Unregistered Users

Hey You may have noticed I changed the navbar at the top a bit. I've almost finished converting the navbar to divs from table tags. In addition, for unregistered users, instead of seeing a "New Reply" button, unregistered users see a "Login to Reply" and icon which looks the same as our... (2 Replies)
Discussion started by: Neo
2 Replies

5. What is on Your Mind?

Forum Description Animation with jQuery

I found that the pages that lists all the forums were too cluttered with the forum descriptions, so I added a bit of jQuery to hide the forum descriptions and to fade them in and out on mouseover: <script> $(document).ready(function() { jQuery(".neo-forum-description").hide();... (2 Replies)
Discussion started by: Neo
2 Replies
Plack::Middleware::Deflater(3pm)			User Contributed Perl Documentation			  Plack::Middleware::Deflater(3pm)

NAME
Plack::Middleware::Deflater - Compress response body with Gzip or Deflate SYNOPSIS
use Plack::Builder; builder { enable sub { my $app = shift; sub { my $env = shift; my $ua = $env->{HTTP_USER_AGENT} || ''; # Netscape has some problem $env->{"psgix.compress-only-text/html"} = 1 if $ua =~ m!^Mozilla/4!; # Netscape 4.06-4.08 have some more problems $env->{"psgix.no-compress"} = 1 if $ua =~ m!^Mozilla/4.0[678]!; # MSIE (7|8) masquerades as Netscape, but it is fine if ( $ua =~ m!MSIE (?:7|8)! ) { $env->{"psgix.no-compress"} = 0; $env->{"psgix.compress-only-text/html"} = 0; } $app->($env); } }; enable "Deflater", content_type => ['text/css','text/html','text/javascript','application/javascript'], vary_user_agent => 1; sub { [200,['Content-Type','text/html'],["OK"]] } }; DESCRIPTION
Plack::Middleware::Deflater is a middleware to encode your response body in gzip or deflate, based on "Accept-Encoding" HTTP request header. It would save the bandwidth a little bit but should increase the Plack server load, so ideally you should handle this on the frontend reverse proxy servers. This middleware removes "Content-Length" and streams encoded content, which means the server should support HTTP/1.1 chunked response or downgrade to HTTP/1.0 and closes the connection. CONFIGURATIONS
content_type content_type => 'text/html', content_type => [ 'text/html', 'text/css', 'text/javascript', 'application/javascript', 'application/x-javascript' ] Content-Type header to apply deflater. if content-type is not defined, Deflater will try to deflate all contents. vary_user_agent vary_user_agent => 1 Add "User-Agent" to Vary header. ENVIRONMENT VALUE
psgix.no-compress Do not apply deflater psgix.compress-only-text/html Apply deflater only if content_type is "text/html" LICENSE
This software is licensed under the same terms as Perl itself. AUTHOR
Tatsuhiko Miyagawa SEE ALSO
Plack, <http://httpd.apache.org/docs/2.2/en/mod/mod_deflate.html> perl v5.14.2 2012-06-18 Plack::Middleware::Deflater(3pm)
All times are GMT -4. The time now is 08:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy