<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Комментарии к записи: Как получить размеры видимой части окна браузера (viewport size).</title>
	<atom:link href="http://torqueo.net/get-viewport-size/feed/" rel="self" type="application/rss+xml" />
	<link>http://torqueo.net/get-viewport-size/</link>
	<description>Всё в кучу!</description>
	<pubDate>Sat, 19 May 2012 00:56:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Автор: Ouch!</title>
		<link>http://torqueo.net/get-viewport-size/comment-page-1/#comment-580</link>
		<dc:creator>Ouch!</dc:creator>
		<pubDate>Tue, 27 Oct 2009 19:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://torqueo.net/?p=284#comment-580</guid>
		<description>Да не спорю, но тогда сканает и первый вариант, так как функция в js является методом объекта window ;-)

Я просто показал пример, как принято делать это в Mootools)</description>
		<content:encoded><![CDATA[<p>Да не спорю, но тогда сканает и первый вариант, так как функция в js является методом объекта window ;-)</p>
<p>Я просто показал пример, как принято делать это в Mootools)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Автор: Konstantin Tumalevich</title>
		<link>http://torqueo.net/get-viewport-size/comment-page-1/#comment-577</link>
		<dc:creator>Konstantin Tumalevich</dc:creator>
		<pubDate>Tue, 27 Oct 2009 13:23:50 +0000</pubDate>
		<guid isPermaLink="false">http://torqueo.net/?p=284#comment-577</guid>
		<description>Ну ничто не мешает написать и так:
window.getViewportSize = function()
{
var size = {};

    if (typeof window.innerWidth != 'undefined') {
        size.width  = window.innerWidth,
        size.height = window.innerHeight
    }
    else if (typeof document.documentElement != 'undefined'
        &#38;&#38; typeof document.documentElement.clientWidth !=
        'undefined' &#38;&#38; document.documentElement.clientWidth != 0) {
            size.width  = document.documentElement.clientWidth,
            size.height = document.documentElement.clientHeight
    } else {
        size.width  = document.getElementsByTagName('body')[0].clientWidth,
        size.height = document.getElementsByTagName('body')[0].clientHeight
    }

    return size;
}</description>
		<content:encoded><![CDATA[<p>Ну ничто не мешает написать и так:<br />
window.getViewportSize = function()<br />
{<br />
var size = {};</p>
<p>    if (typeof window.innerWidth != &#8216;undefined&#8217;) {<br />
        size.width  = window.innerWidth,<br />
        size.height = window.innerHeight<br />
    }<br />
    else if (typeof document.documentElement != &#8216;undefined&#8217;<br />
        &amp;&amp; typeof document.documentElement.clientWidth !=<br />
        &#8216;undefined&#8217; &amp;&amp; document.documentElement.clientWidth != 0) {<br />
            size.width  = document.documentElement.clientWidth,<br />
            size.height = document.documentElement.clientHeight<br />
    } else {<br />
        size.width  = document.getElementsByTagName(&#8217;body&#8217;)[0].clientWidth,<br />
        size.height = document.getElementsByTagName(&#8217;body&#8217;)[0].clientHeight<br />
    }</p>
<p>    return size;<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

