Вход Регистрация
Файл: Main Website Files/assets/bower_components/flot/examples/axes-time-zones/index.html
Строк: 45
<?php
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<
html>
<
head>
    <
meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <
title>Flot ExamplesTime zones</title>
    <
link href="../examples.css" rel="stylesheet" type="text/css">
    <!--[if 
lte IE 8]><script language="javascript" type="text/javascript" src="../../excanvas.min.js"></script><![endif]-->
    <
script language="javascript" type="text/javascript" src="../../jquery.js"></script>
    <
script language="javascript" type="text/javascript" src="../../jquery.flot.js"></script>
    <
script language="javascript" type="text/javascript" src="../../jquery.flot.time.js"></script>
    <
script language="javascript" type="text/javascript" src="date.js"></script>
    <
script type="text/javascript">

    $(function() {

        
timezoneJS.timezone.zoneFileBasePath "tz";
        
timezoneJS.timezone.defaultZoneFile = [];
        
timezoneJS.timezone.init({asyncfalse});

        var 
= [
            [
Date.UTC(20112121400), 28],
            [
Date.UTC(20112121500), 27],
            [
Date.UTC(20112121600), 25],
            [
Date.UTC(20112121700), 19],
            [
Date.UTC(20112121800), 16],
            [
Date.UTC(20112121900), 14],
            [
Date.UTC(20112122000), 11],
            [
Date.UTC(20112122100), 9],
            [
Date.UTC(20112122200), 7.5],
            [
Date.UTC(20112122300), 6],
            [
Date.UTC(2011213000), 5],
            [
Date.UTC(2011213100), 6],
            [
Date.UTC(2011213200), 7.5],
            [
Date.UTC(2011213300), 9],
            [
Date.UTC(2011213400), 11],
            [
Date.UTC(2011213500), 14],
            [
Date.UTC(2011213600), 16],
            [
Date.UTC(2011213700), 19],
            [
Date.UTC(2011213800), 25],
            [
Date.UTC(2011213900), 27],
            [
Date.UTC(20112131000), 28],
            [
Date.UTC(20112131100), 29],
            [
Date.UTC(20112131200), 29.5],
            [
Date.UTC(20112131300), 29],
            [
Date.UTC(20112131400), 28],
            [
Date.UTC(20112131500), 27],
            [
Date.UTC(20112131600), 25],
            [
Date.UTC(20112131700), 19],
            [
Date.UTC(20112131800), 16],
            [
Date.UTC(20112131900), 14],
            [
Date.UTC(20112132000), 11],
            [
Date.UTC(20112132100), 9],
            [
Date.UTC(20112132200), 7.5],
            [
Date.UTC(20112132300), 6]
        ];

        var 
plot = $.plot("#placeholderUTC", [d], {
            
xaxis: {
                
mode"time"
            
}
        });

        var 
plot = $.plot("#placeholderLocal", [d], {
            
xaxis: {
                
mode"time",
                
timezone"browser"
            
}
        });

        var 
plot = $.plot("#placeholderChicago", [d], {
            
xaxis: {
                
mode"time",
                
timezone"America/Chicago"
            
}
        });

        
// Add the Flot version string to the footer

        
$("#footer").prepend("Flot " + $.plot.version " &ndash; ");
    });

    </
script>
</
head>
<
body>

    <
div id="header">
        <
h2>Time zones</h2>
    </
div>

    <
div id="content">

        <
h3>UTC</h3>
        <
div class="demo-container" style="height: 300px;">
            <
div id="placeholderUTC" class="demo-placeholder"></div>
        </
div>

        <
h3>Browser</h3>
        <
div class="demo-container" style="height: 300px;">
            <
div id="placeholderLocal" class="demo-placeholder"></div>
        </
div>

        <
h3>Chicago</h3>
        <
div class="demo-container" style="height: 300px;">
            <
div id="placeholderChicago" class="demo-placeholder"></div>
        </
div>

    </
div>

    <
div id="footer">
        
Copyright &copy2007 2014 IOLA and Ole Laursen
    
</div>

</
body>
</
html>
?>
Онлайн: 0
Реклама