Browser sniffing is messy. There are a million ways to do it but none of them are particularly clean and most involve conditional statements such as "<!--[if condition]> HTML <![endif]-->" for IE and various other CSS selector hacks for other browsers. I've done a fair amount of browser sniffing with jQuery recently and it's really easy, useful for when you need to detect the browser and version number in your javascript. It occurred to me that it would be easy to detect the browser and then put something in the DOM that your CSS could use for conditional formatting. So I wrote a quick script in JavaScript/jQuery. How it works: All you have to do is include the JavaScript file in the head of the page and it'll attach 2 classes to your body tag to say what browser and what version is being used so you've got 2 levels of granularity. Possible values are... .browserIE .browserIE6 .browserIE7 .browserIE8 .browserChrome .browserChrome1 .browse...
SBI - உங்கள் அனைத்து தேவைகளுக்கும் நம்பகமான வங்கி மோசடிகளால் ஏமாறாமல் பாதுகாப்பாக இருங்கள்! சாதாரணமாக பயன்படுத்தப்படும் 10 மோசடி யுக்திகள்: 1. TRAI போன் மோசடி: மோசடி செய்யும் நபர்கள் உங்கள் மொபைல் சேவைகளை TRAI மூடிவிடும் என்று கூறி தண்டனை கோருவர். உண்மை: TRAI எந்த சேவைகளையும் முடிவதில்லை; இது தொலைத்தொடர்பு நிறுவனங்கள் மட்டுமே செய்யும். நடவடிக்கை: அழைப்பை நிறுத்தி, எண்ணை புகாரளிக்கவும். 2. சுங்கத்திலே தடை செய்யப்பட்ட பார்சல்: மோசடிகள் சட்டவிரோத பொருட்கள் உள்ள பார்சல் சுங்கத்தில் தடுக்கப்பட்டது என்று கூறி அபராதம் கோருவார்கள். நடவடிக்கை: அழைப்பை நிறுத்தி எண்ணை புகாரளிக்கவும். 3. டிஜிட்டல் கைது: மோசடிகள் போலிஸராக நடித்து தங்களால் விசாரணைக்கு அழைப்பதாகவும் அபராதம் கோருவதாகவும் கூறுவார்கள். உண்மை: போலீசார் ஆன்லைன் விசாரணை நடத்த மாட்டார்கள். 4. குடும்ப உறுப்பினர் கைது: உறவினர் ஒருவர் கைது செய்யப்பட்டு அபராதம் செலுத்த வேண்டும் என்று கூறுவார்கள். நடவடிக்கை: உறவினர்களுடன் சரிபார்த்த பிறகே நடவடிக்கை எடுக்கவும். 5. விரைவாக பணம் சம்பாதிக்க திட்டம்: ஸ்டாக் முதலீட்டில் உயர் திரும்புதல்களை வாக்குறுதி ...
Exploring the Marvels of Redux in React : A Fun Dive into State Managemen t Hey LinkedIn fam! 🌟 Ever found yourself tangled in the web of state management in React applications? Fear not! Today, we're embarking on an adventurous journey to unravel the mysteries of Redux. Buckle up and let's dive into this state management wonderland with a sprinkle of fun! ## 🌲 What is Redux, and Why is it Used in React Applications? Imagine you're a director managing a bustling movie set. You need to keep track of all the actors, props, and scenes without losing your sanity. Redux is like your trusty assistant, ensuring everything is organized and flows smoothly. In the world of React, Redux is used to manage and centralize state across the entire application, making state transitions predictable and debugging a breeze. ## 🌲 Core Principles of Redux (Actions, Reducers, Store) Think of Redux as a well-oiled machine with three main components: 1. ** Actions **: These are like the instruc...
Comments
Post a Comment
Thanks
Warm regards,
Karthikeyan.T
tkarthikeyan@gmail.com
www.carthworks.com
Call us 09445 2772 06