Browse Source

[timeline] Update examples to use ISOString format. (#2791)

Resolves #2790
revert-2743-editable-option-2017-02-16
Brad Hards 7 years ago
committed by yotamberk
parent
commit
20fc8ed966
4 changed files with 43 additions and 43 deletions
  1. +2
    -2
      examples/timeline/groups/subgroups.html
  2. +9
    -9
      examples/timeline/items/expectedVsActualTimesItems.html
  3. +16
    -16
      examples/timeline/resources/data/wk2014.json
  4. +16
    -16
      examples/timeline/styling/itemTemplates.html

+ 2
- 2
examples/timeline/groups/subgroups.html View File

@ -51,7 +51,7 @@
{id: 'SG_1_1',start: '2014-01-25', end: '2014-01-27', type: 'background', group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 'SG_1_2', start: '2014-01-26', end: '2014-01-27', type: 'background', className: 'positive',group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 1, content: 'subgroup0', start: '2014-01-23 12:00:00', end: '2014-01-26 12:00:00',group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 1, content: 'subgroup0', start: '2014-01-23T12:00:00', end: '2014-01-26T12:00:00',group:'bar', subgroup:'sg_1', subgroupOrder:0},
{id: 'SG_2_1', start: '2014-01-27', end: '2014-01-29', type: 'background', group:'bar', subgroup:'sg_2', subgroupOrder:1},
{id: 'SG_2_2', start: '2014-01-27', end: '2014-01-28', type: 'background', className: 'negative',group:'bar', subgroup:'sg_2', subgroupOrder:1},
{id: 2, content: 'subgroup1', start: '2014-01-27', end: '2014-01-29',group:'bar', subgroup:'sg_2', subgroupOrder:1},
@ -78,4 +78,4 @@
}
</script>
</body>
</html>
</html>

+ 9
- 9
examples/timeline/items/expectedVsActualTimesItems.html View File

@ -61,16 +61,16 @@
id: 1,
content: 'item 1 (expected time)',
className: 'expected',
start: '2014-01-23 12:00:00',
end: '2014-01-26 12:00:00',
start: '2014-01-23T12:00:00',
end: '2014-01-26T12:00:00',
group:'group1',
subgroup:'sg_1'
},
{
id: 2,
content: 'item 1 (actual time)',
start: '2014-01-24 12:00:00',
end: '2014-01-27 12:00:00',
start: '2014-01-24T12:00:00',
end: '2014-01-27T12:00:00',
group:'group1',
subgroup:'sg_1'
},
@ -80,16 +80,16 @@
id: 3,
content: 'item 2 (expected time)',
className: 'expected',
start: '2014-01-13 12:00:00',
end: '2014-01-16 12:00:00',
start: '2014-01-13T12:00:00',
end: '2014-01-16T12:00:00',
group:'group1',
subgroup:'sg_2'
},
{
id: 4,
content: 'item 2 (actual time)',
start: '2014-01-14 12:00:00',
end: '2014-01-17 12:00:00',
start: '2014-01-14T12:00:00',
end: '2014-01-17T12:00:00',
group:'group1',
subgroup:'sg_2'
}
@ -108,4 +108,4 @@
</script>
</body>
</html>
</html>

+ 16
- 16
examples/timeline/resources/data/wk2014.json View File

@ -7,7 +7,7 @@
"abbr2": "cl",
"score2": "1 (2)",
"description": "round of 16",
"start": "2014-06-28 13:00"
"start": "2014-06-28T13:00"
},
{
"player1": "Colombia",
@ -17,7 +17,7 @@
"abbr2": "uy",
"score2": 0,
"description": "round of 16",
"start": "2014-06-28 17:00"
"start": "2014-06-28T17:00"
},
{
"player1": "Netherlands",
@ -27,7 +27,7 @@
"abbr2": "mx",
"score2": 1,
"description": "round of 16",
"start": "2014-06-29 13:00"
"start": "2014-06-29T13:00"
},
{
"player1": "Costa Rica",
@ -37,7 +37,7 @@
"abbr2": "gr",
"score2": "1 (3)",
"description": "round of 16",
"start": "2014-06-29 17:00"
"start": "2014-06-29T17:00"
},
{
"player1": "France",
@ -47,7 +47,7 @@
"abbr2": "ng",
"score2": 0,
"description": "round of 16",
"start": "2014-06-30 13:00"
"start": "2014-06-30T13:00"
},
{
"player1": "Germany",
@ -57,7 +57,7 @@
"abbr2": "dz",
"score2": 1,
"description": "round of 16",
"start": "2014-06-30 17:00"
"start": "2014-06-30T17:00"
},
{
"player1": "Argentina",
@ -67,7 +67,7 @@
"abbr2": "ch",
"score2": 0,
"description": "round of 16",
"start": "2014-07-01 13:00"
"start": "2014-07-01T13:00"
},
{
"player1": "Belgium",
@ -77,7 +77,7 @@
"abbr2": "us",
"score2": 1,
"description": "round of 16",
"start": "2014-07-01 17:00"
"start": "2014-07-01T17:00"
},
{
"player1": "France",
@ -87,7 +87,7 @@
"abbr2": "de",
"score2": 1,
"description": "quarter-finals",
"start": "2014-07-04 13:00"
"start": "2014-07-04T13:00"
},
{
"player1": "Brazil",
@ -97,7 +97,7 @@
"abbr2": "co",
"score2": 1,
"description": "quarter-finals",
"start": "2014-07-04 17:00"
"start": "2014-07-04T17:00"
},
{
"player1": "Argentina",
@ -107,7 +107,7 @@
"abbr2": "be",
"score2": 0,
"description": "quarter-finals",
"start": "2014-07-05 13:00"
"start": "2014-07-05T13:00"
},
{
"player1": "Netherlands",
@ -117,7 +117,7 @@
"abbr2": "cr",
"score2": "0 (3)",
"description": "quarter-finals",
"start": "2014-07-05 17:00"
"start": "2014-07-05T17:00"
},
{
"player1": "Brazil",
@ -127,7 +127,7 @@
"abbr2": "de",
"score2": 7,
"description": "semi-finals",
"start": "2014-07-08 17:00"
"start": "2014-07-08T17:00"
},
{
"player1": "Netherlands",
@ -137,7 +137,7 @@
"abbr2": "ar",
"score2": "0 (4)",
"description": "semi-finals",
"start": "2014-07-09 17:00"
"start": "2014-07-09T17:00"
},
{
"player1": "Germany",
@ -147,6 +147,6 @@
"abbr2": "ar",
"score2": 0,
"description": "final",
"start": "2014-07-13 16:00"
"start": "2014-07-13T16:00"
}
]
]

+ 16
- 16
examples/timeline/styling/itemTemplates.html View File

@ -88,7 +88,7 @@
abbr2: 'cl',
score2: '1 (2)',
description: 'round of 16',
start: '2014-06-28 13:00'
start: '2014-06-28T13:00:00'
},
{
player1: 'Colombia',
@ -98,7 +98,7 @@
abbr2: 'uy',
score2: 0,
description: 'round of 16',
start: '2014-06-28 17:00'
start: '2014-06-28T17:00:00'
},
{
player1: 'Netherlands',
@ -108,7 +108,7 @@
abbr2: 'mx',
score2: 1,
description: 'round of 16',
start: '2014-06-29 13:00'
start: '2014-06-29T13:00:00'
},
{
player1: 'Costa Rica',
@ -118,7 +118,7 @@
abbr2: 'gr',
score2: '1 (3)',
description: 'round of 16',
start: '2014-06-29 17:00'
start: '2014-06-29T17:00:00'
},
{
player1: 'France',
@ -128,7 +128,7 @@
abbr2: 'ng',
score2: 0,
description: 'round of 16',
start: '2014-06-30 13:00'
start: '2014-06-30T13:00:00'
},
{
player1: 'Germany',
@ -138,7 +138,7 @@
abbr2: 'dz',
score2: 1,
description: 'round of 16',
start: '2014-06-30 17:00'
start: '2014-06-30T17:00:00'
},
{
player1: 'Argentina',
@ -148,7 +148,7 @@
abbr2: 'ch',
score2: 0,
description: 'round of 16',
start: '2014-07-01 13:00'
start: '2014-07-01T13:00:00'
},
{
player1: 'Belgium',
@ -158,7 +158,7 @@
abbr2: 'us',
score2: 1,
description: 'round of 16',
start: '2014-07-01 17:00'
start: '2014-07-01T17:00:00'
},
// quarter-finals
@ -170,7 +170,7 @@
abbr2: 'de',
score2: 1,
description: 'quarter-finals',
start: '2014-07-04 13:00'
start: '2014-07-04T13:00:00'
},
{
player1: 'Brazil',
@ -180,7 +180,7 @@
abbr2: 'co',
score2: 1,
description: 'quarter-finals',
start: '2014-07-04 17:00'
start: '2014-07-04T17:00:00'
},
{
player1: 'Argentina',
@ -190,7 +190,7 @@
abbr2: 'be',
score2: 0,
description: 'quarter-finals',
start: '2014-07-05 13:00'
start: '2014-07-05T13:00:00'
},
{
player1: 'Netherlands',
@ -200,7 +200,7 @@
abbr2: 'cr',
score2: '0 (3)',
description: 'quarter-finals',
start: '2014-07-05 17:00'
start: '2014-07-05T17:00:00'
},
// semi-finals
@ -212,7 +212,7 @@
abbr2: 'de',
score2: 7,
description: 'semi-finals',
start: '2014-07-08 17:00'
start: '2014-07-08T17:00:00'
},
{
player1: 'Netherlands',
@ -222,7 +222,7 @@
abbr2: 'ar',
score2: '0 (4)',
description: 'semi-finals',
start: '2014-07-09 17:00'
start: '2014-07-09T17:00:00'
},
// final
@ -234,7 +234,7 @@
abbr2: 'ar',
score2: 0,
description: 'final',
start: '2014-07-13 16:00'
start: '2014-07-13T16:00:00'
}
]);
@ -248,4 +248,4 @@
var timeline = new vis.Timeline(container, items, options);
</script>
</body>
</html>
</html>

Loading…
Cancel
Save