Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
require_once "ui.inc";
require_once "utils.inc";
$gLabel = getParam('l', latestLabel($gArchive));
$gSlice = getParam('s', 'All');
$gTitle = "Interesting Stats";
?>
<!doctype html>
<html>
<head>
<title><?php 
echo genTitle($gTitle);
?>
</title>
<meta charset="UTF-8">

<?php 
echo headfirst();
?>
Exemple #2
0
<!-- chart will be inserted here -->
</div>
</td>
<td id=rightarrow class=arrow></td>
</table>
<div>
<a href="about.php#bigquery">Write your own custom queries!</a>
</div>
</center>

<script type="text/javascript">
// HTML strings for each image
var gaSnippets = new Array();

<?php 
$gLabel = latestLabel();
require_once "stats.inc";
require_once "charts.inc";
$hStats = getStats($gLabel, "All", curDevice());
?>
gaSnippets.push("<?php 
echo bytesContentTypeChart($hStats);
?>
");
gaSnippets.push("<?php 
echo responseSizes($hStats);
?>
");
gaSnippets.push("<?php 
echo percentGoogleLibrariesAPI($hStats);
?>
require_once "ui.inc";
require_once "utils.inc";
require_once "dbapi.inc";
$gTitle = "Render Patchwork";
$gCurTime = getParam('t', '0');
// the current time frame (0.1, 0.2, 0.3, etc.) in milliseconds
$gNumUrls = getParam('n', 100);
// number of top sites to look at
if ($gNumUrls <= 0 || 100 < $gNumUrls) {
    // constrain the # of images
    $gNumUrls = 100;
}
$gLabel2 = getParam('l2');
// crawl label
if (!$gLabel2) {
    $gLabel2 = latestLabel();
    // only do this if we have to
}
$gLabel1 = getParam('l1');
// crawl label
if (!$gLabel1) {
    // 1 year earlier
    $gLabel1 = getPrevLabel($gLabel2, $gArchive, curDevice(), 31104000);
    // only do this if we have to (360*24*60*60)
}
$gMinStep = $gbMobile ? 1000 : 100;
// finest granularity of screenshots for this browser
$gStep = getParam('step', $gbMobile ? 1000 : 1000);
// time interval to step during playback
$gW = getParam('w', $gbMobile ? 50 : 100);
// normal dimensions are 138x200 or 90x200