Austin Smith

Detect Javascript Using This CSS Selector

Fri, 02/06/2009 - 12:04

It's a cold day in hell when I care enough about the front-end to make a post like this, but I stumbled across a couple of versions of this and thought I'd post my synthesis. Since it's triggered instantly after is added to the DOM, the remaining HTML loaded by the browser will be styled appropriately! I use it to hide things that I'm going to animate into place with jQuery. Don't ask why I have to animate elements that have already been loaded into the page... it's a sore subject.

<body>
<script type="text/javascript">
$('body').addClass('.js_enabled');
</script>
<!-- snip! -->

.js_enabled .foo { display: none; }

The other way around: no-js

Submitted by Wim Leers (not verified) on Fri, 02/06/2009 - 12:46.

The other way around is also possible: only display certain things if JS is disabled. Drupal supports this out-of-the-box, but it's not well-known or well-documented … Just set the no-js class on your HTML element and it'll work automagically :)

Wouldn't work in this case

Submitted by Austin Smith on Fri, 02/06/2009 - 12:51.

Yeah that way is certainly simpler! But in this case we needed to fit this in because of complicated CSS rules.

The opposite

Submitted by Wim Leers (not verified) on Sat, 02/07/2009 - 04:15.

Yep, what I said is pretty much "the opposite". Hence I called it "the other way around" :) I just thought I'd mention it so your readers would see that as well!

Took me time to read all the

Submitted by michaeljii (not verified) on Mon, 07/25/2011 - 05:51.

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenter here! Excellent document you have got indicated. I came across the subject worth it to read making a BCP-420\642-654\650-297\70-640\000-106\640-822\000-977\70-649 great entertaining understand. It’s always nice when you can not only be informed, but also entertained! Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.
Regards,
MichaeL || NYC.USA

Interesting post

Submitted by peterallen (not verified) on Mon, 01/09/2012 - 08:32.

Excellent entry! I'm been looking for topics as interesting as this. Looking forward to your next post.Term Paper Help

I think the website should

Submitted by balino (not verified) on Thu, 01/12/2012 - 05:04.

I think the website should come up with more features. I believe the number of the visitors will increase. They should create kind of features that give the secure feeling for the users when they visit this site.
Car Insurance

Oh, and...

Submitted by Austin Smith on Fri, 02/06/2009 - 12:52.

We've stripped out all of Drupal's CSS for this theme.

הכרויות

Submitted by Eli (not verified) on Sun, 08/14/2011 - 08:35.

בואו לחפש הכרויות באתר שלנו

A friend of mine recommended

Submitted by arranbruno (not verified) on Wed, 01/11/2012 - 05:17.

A friend of mine recommended this site. And yes. it has a few pieces of useful information and I enjoyed reading it. That's why I write you a note to express my thanks. Essay Help

Nice One!

Submitted by marshalreon (not verified) on Wed, 01/11/2012 - 05:20.

Everyone from the seasoned pro to the first-day student has taught me valuable lessons that allowed me to pass my test of survival.
UK University Essays

Nice Post

Submitted by leonaarie (not verified) on Tue, 01/17/2012 - 07:23.

It isn’t what you have in your pocket that makes you thankful, but what you have in your heart.
Classification Essays Help

woderful post!

Submitted by davidtimberwilson (not verified) on Wed, 01/11/2012 - 05:31.

I think the website should come up with more features. I believe the number of the visitors will increase. They should create kind of features that give the secure feeling for the users when they visit this site.Logo Design Contests

I really understand where you

Submitted by james lee (not verified) on Tue, 01/04/2011 - 14:28.

I really understand where you are coming from with this. I am not sure why they do this all the time. There is a time for a change. whistleblower procedures

Interesting Article

Submitted by pattphilip (not verified) on Tue, 01/17/2012 - 07:26.

I'm glad I finally got here, found some great sources in this blog.
Essay Help UK

Thanks

Submitted by Sander (not verified) on Sun, 01/09/2011 - 06:23.

I'm a beginner in programming, but I like your posts a lot. Here is a video tutorial about css selector types that helped me to understand this post better. Maybe it will be helpful to anybody else.

It was great to know the

Submitted by Maxx (not verified) on Fri, 01/14/2011 - 02:07.

It was great to know the other way around. That way it was just simple and was not much tricky too. It can work automatically if we will try the other way around. Since the CSS rules are complicated, it was some what hard to follow it. Once all the Drupal’s CSS have been stripped out for this theme, now it is no longer hard to go for it. I will love to try it. I am eager to get more such updates here in coming days to keep myself update.
cyberdefender

Interesting post and I really

Submitted by Jason Miller (not verified) on Fri, 01/21/2011 - 13:34.

Interesting post and I really like your take on the issue. I now have a clear idea on what this matter is all about. Thank you so much. complete link building solution

Pretty good post. I just

Submitted by inter4523 (not verified) on Thu, 03/31/2011 - 00:02.

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I will be subscribing to your feed and I hope you post again soon. Adizeros

thank you

Submitted by mac running slow (not verified) on Fri, 06/03/2011 - 14:40.

thank you for clearing this up, very very useful!

re:

Submitted by thetoxicguy (not verified) on Thu, 07/07/2011 - 04:35.

there is no doubt that we are now in a world where we come across different and strange things happening in this world. Innovation is everywhere, personally I am also a fan of innovation, no matter in studies, technologies, science, beauty, fashion (but it should be good for human kind an world). there are alot of courses like hp dumps | icnd dumps | iseb dumps | jncia dumps | juniper dumps | mcdba dumps | mcdst dumps | mcitp dumps | mcpd dumps | mcsa dumps | mcse dumps . In recent past it was just ok to get a master degree in any of the running field and set your career we are much more into virtual studies and doing all those stuffs where we can explore and learn more.. a lot certifications introduced by Microsoft, Cisco and other international certifications in which you can study and get a good career too. I am so happy to be part of this revolutionary field and do suggest you too. because at the end "it always up to you to decide"...thanks!!

I am somewhat agree with

Submitted by george22 (not verified) on Thu, 08/04/2011 - 23:46.

I am somewhat agree with Austin. The experienced shared by him is interesting to read but much of truth. I have observed this meanness in case of AirTran always. Any way as he said for me also it is the most convenient airline to travel and to reach my nearest destination from home. Hence I won’t blame it much. For me to reach home safe is the most convenient way of traveling from one place to another, then it might be AirTran or anyone else642-902 exam VCP-410 exam HP0-J40 exam 642-813 exam 000-152 exam 70-450 exam HP2-Z15 exam 650-292 exam

voucher code

Submitted by voucher code (not verified) on Tue, 08/16/2011 - 00:19.

Helpful codes. Nice to read more of this blog and learn new lessons. Thanks for the post.

Useful Codes

Submitted by Philippine Girls (not verified) on Fri, 08/19/2011 - 03:15.

It is really helpful to learn new knowledge from your site.

I am speechless. This is a

Submitted by williamrichard (not verified) on Tue, 08/30/2011 - 04:22.

I am speechless. This is a fantastic site and very engaging too. Excellent work! That’s not really much coming from an amateur publisher like me, but it’s all I could think after enjoying your posts. Not like other site. You really know what you’re talking about too. So much that you made me want to explore more. Your blog has become a stepping stone for me, my friend. Thanks for the detailed journey. I really enjoyed the posts that I have read so far
642-583
640-802
156-215.71
70-513
1Y0-A21
312-49
650-292
CISSP

his post is really

Submitted by asballo (not verified) on Mon, 09/26/2011 - 15:15.

his post is really enlightening and full of idea. I really appreciate your effort in doing this. One more, you got a simple style of website with a great content. thanks for sharing.

Hello every one

Submitted by Anonymous (not verified) on Thu, 12/15/2011 - 06:13.

This is one of the most incredible blogs Ive read in a very long time. The amount of information in here is stunning, like you practically wrote the book on the subject. Your blog is great for anyone who wants to understand this subject more. Great stuff; dating confidence please keep it up!Mind blowing!! I have found the exact place to get rid of my difficulties via information on your blog.It is an inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

It is great to have the

Submitted by janharshal (not verified) on Sat, 12/17/2011 - 08:20.

It is great to have the opportunity to read a good quality article with useful information on topics that plenty are interested on.I concur with your conclusions and will eagerly look forward to your future updates games puzzle

Huge Selection of high

Submitted by william333 (not verified) on Fri, 01/06/2012 - 05:24.

Huge Selection of high quality genuine watches - We remain in touch with the distributers,importers and whole sellers throughout the year to provide you right on time what is shown in the catalog.
Casio beside watches||Casio beside||Casio beside watches in Pakistan||G shock watches in Karachi||G shock watches in Lahore||

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p>
  • Lines and paragraphs break automatically.

More information about formatting options