jQuery do różnych wielkości okna
var $window = $(window);
function checkWidth() {
var windowsize = $window.width();
if (windowsize < 900) {
}
else if (windowsize > 899) {
}
}
// Execute on load
checkWidth();
// Bind event listener
$(window).resize(checkWidth);
$(window).height(); // returns height of browser viewport $(document).height(); // returns height of HTML document $(window).width(); // returns width of browser viewport $(document).width(); // returns width of HTML document
–
Hope this helps and happy coding :)
Zobacz jeszcze
Wordpress funkcje
wptexturize ( string $text, bool $reset = false ) - wstawia tekst z modyfikacją znaków wp_mail( $to, $subject, $message, $headers, $attachments ); - znajduje się w wp-includes -...