hosszukalman / browserclass Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
If you comment the window.load event from the bottom of the browserclass file and use browserclass with jquerys document ready, IE8 says Object doesn't support this property or method on line 212, character 7.
$(function() {
BrowserClass.init();
// do something with the classes
// example $('body').addClass(BrowserClass.classes.join(' '));
}
I don't think "desktop" is all right..
inside your checkPlatform and checkBrowser functions it would be much more performant to return out of the function when a match is found rather than carry on testing.
Tried this with Samsung Galaxy S3 stock Android browser and Chrome. Alerted BrowserClass.classes.join(' ') => it says desktop
Same thing with HTC One S for Chrome, Firefox and stock Android browser
edit: added more devices
Safari IOS 6.1.6 also says desktop
Hello,
it looks like desktop class is added to BODY on any device I tested (iPhone 5S, Samsung S4 Mini).
Testing setup http://codepen.io/transbetty/pen/zrvwXe.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.