Free Photos
WordPress Themes

MatchMedia

if (matchMedia('only screen and (max-width: 480px)').matches) { // smartphone/iphone... maybe run some small-screen related dom scripting? } if (matchMedia('all and (orientation:landscape)').matches) { // probably tablet in widescreen view }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.