-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
97 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% load static %} | ||
<!doctype html> | ||
<html class="no-js" lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>timelinejs</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.min.css"> | ||
<link rel="stylesheet" href="{% static 'css/timeline.css' %}"> | ||
|
||
<link rel="stylesheet" href="{% static 'css/main.css' %}"> | ||
</head> | ||
<body> | ||
|
||
<div class="row"> | ||
<div class="small-12"> | ||
{% block content %}{% endblock content %} | ||
</div> | ||
|
||
</div> | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> | ||
<script>window.jQuery || document.write('<script src="js/vendor/jquery-2.1.4.min.js"><\/script>')</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/foundation.min.js"></script> | ||
<script src="{% static 'js/plugins.js' %}"></script> | ||
<script src="{% static 'js/main.js' %}"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,54 @@ | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
<!doctype html> | ||
<html class="no-js" lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>timelinejs</title> | ||
<meta name="description" content=""> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="{% static 'css/timeline.css' %}"> | ||
|
||
<link rel="stylesheet" href="{% static 'css/main.css' %}"> | ||
</head> | ||
<body> | ||
|
||
<div class="container-fluid"> | ||
{% block content %} | ||
<div id="timeline-embed"> | ||
<div id="timeline"></div> | ||
</div> | ||
</div> | ||
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> | ||
<script>window.jQuery || document.write('<script src="js/vendor/jquery-2.1.4.min.js"><\/script>')</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script> | ||
<script src="{% static 'js/timeline.js' %}"></script> | ||
<script src="{% static 'js/plugins.js' %}"></script> | ||
<script src="{% static 'js/main.js' %}"></script> | ||
<script> | ||
$(document).ready(function () { | ||
var embed = document.getElementById('timeline-embed'); | ||
embed.style.height = getComputedStyle(document.body).height; | ||
var timeline = new VCO.Timeline('timeline-embed', '{% url 'timeline_index_data' %}', {}); | ||
window.addEventListener('resize', function () { | ||
<script src="{% static 'js/timeline.js' %}"></script> | ||
<script> | ||
$(document).ready(function () { | ||
var embed = document.getElementById('timeline-embed'); | ||
embed.style.height = getComputedStyle(document.body).height; | ||
timeline.options = { | ||
script_path: "{{ options.script_path }}", | ||
timenav_position: {{ options.timenav_position }}, | ||
height: this._el.container.offsetHeight || {{ options.height }}, | ||
width: this._el.container.offsetWidth || {{ options.width }}, | ||
scale_factor: {{ options.scale_factor }}, // How many screen widths wide should the timeline be | ||
layout: "{{ options.layout }}", // portrait or landscape | ||
optimal_tick_width: {{ options.optimal_tick_width }}, // optimal distance (in pixels) between ticks on axis | ||
base_class: "{{ options.base_class }}", | ||
timenav_height: {{ options.timenav_height }}, | ||
timenav_height_percentage: {{ options.timenav_height_percentage }}, // Overrides timenav height as a percentage of the screen | ||
timenav_height_min: {{ options.timenav_height_min }}, // Minimum timenav height | ||
marker_height_min: {{ options.marker_height_min }}, // Minimum Marker Height | ||
marker_width_min: {{ options.marker_width_min }}, // Minimum Marker Width | ||
marker_padding: {{ options.marker_padding }}, // Top Bottom Marker Padding | ||
start_at_slide: {{ options.start_at_slide }}, | ||
menubar_height: {{ options.menubar_height }}, | ||
skinny_size: {{ options.skinny_size }}, | ||
relative_date: {{ options.relative_date }}, // Use momentjs to show a relative date from the slide.text.date.created_time field | ||
use_bc: {{ options.use_bc }}, // Use declared suffix on dates earlier than 0 | ||
// animation | ||
duration: {{ options.duration }}, | ||
ease: VCO.Ease.easeInOutQuint, | ||
// interaction | ||
dragging: {{ options.dragging }}, | ||
trackResize: {{ options.trackResize }}, | ||
map_type: "{{ options.map_type }}", | ||
slide_padding_lr: {{ options.slide_padding_lr }}, // padding on slide of slide | ||
slide_default_fade: "{{ options.slide_default_fade }}%", // landscape fade | ||
api_key_flickr: "{{ options.api_key_flickr }}", // Flickr API Key | ||
language: "{{ options.language }}" | ||
}; | ||
var timeline = new VCO.Timeline('timeline-embed', '{% url 'timeline_index_data_latest' %}', {}); | ||
window.addEventListener('resize', function () { | ||
var embed = document.getElementById('timeline-embed'); | ||
embed.style.height = getComputedStyle(document.body).height; | ||
timeline.options = { | ||
script_path: "{{ options.script_path }}", | ||
timenav_position: "{{ options.timenav_position }}", | ||
height: this._el.container.offsetHeight || {{ options.height }}, | ||
width: this._el.container.offsetWidth || {{ options.width }}, | ||
scale_factor: {{ options.scale_factor }}, // How many screen widths wide should the timeline be | ||
layout: "{{ options.layout }}", // portrait or landscape | ||
optimal_tick_width: {{ options.optimal_tick_width }}, // optimal distance (in pixels) between ticks on axis | ||
base_class: "{{ options.base_class }}", | ||
timenav_height: {{ options.timenav_height }}, | ||
timenav_height_percentage: {{ options.timenav_height_percentage }}, // Overrides timenav height as a percentage of the screen | ||
timenav_height_min: {{ options.timenav_height_min }}, // Minimum timenav height | ||
marker_height_min: {{ options.marker_height_min }}, // Minimum Marker Height | ||
marker_width_min: {{ options.marker_width_min }}, // Minimum Marker Width | ||
marker_padding: {{ options.marker_padding }}, // Top Bottom Marker Padding | ||
start_at_slide: {{ options.start_at_slide }}, | ||
menubar_height: {{ options.menubar_height }}, | ||
skinny_size: {{ options.skinny_size }}, | ||
relative_date: {{ options.relative_date }}, // Use momentjs to show a relative date from the slide.text.date.created_time field | ||
use_bc: {{ options.use_bc }}, // Use declared suffix on dates earlier than 0 | ||
// animation | ||
duration: {{ options.duration }}, | ||
ease: VCO.Ease.easeInOutQuint, | ||
// interaction | ||
dragging: {{ options.dragging }}, | ||
trackResize: {{ options.trackResize }}, | ||
map_type: "{{ options.map_type }}", | ||
slide_padding_lr: {{ options.slide_padding_lr }}, // padding on slide of slide | ||
slide_default_fade: "{{ options.slide_default_fade }}%", // landscape fade | ||
api_key_flickr: "{{ options.api_key_flickr }}", // Flickr API Key | ||
language: "{{ options.language }}" | ||
}; | ||
timeline.updateDisplay(); | ||
}); | ||
timeline.updateDisplay(); | ||
}); | ||
timeline.updateDisplay(); | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
</script> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
body { | ||
min-height: 80vh; | ||
background-image: url('../images/green_background.jpg'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.0 | ||
0.4.0 |