Browse Source

Reorganizing

pull/127/head
Zach Wise 13 years ago
parent
commit
d47ab97460
  1. 893
      codekit-config.json
  2. 0
      compiled/css/themes/dark.css
  3. 0
      compiled/css/themes/font/AbrilFatface-Average.css
  4. 0
      compiled/css/themes/font/Arvo-PTSans.css
  5. 0
      compiled/css/themes/font/Bevan-PotanoSans.css
  6. 0
      compiled/css/themes/font/BreeSerif-OpenSans.css
  7. 0
      compiled/css/themes/font/DroidSerif-DroidSans.css
  8. 0
      compiled/css/themes/font/Lekton-Molengo.css
  9. 0
      compiled/css/themes/font/Lora-Istok.css
  10. 0
      compiled/css/themes/font/Merriweather-NewsCycle.css
  11. 0
      compiled/css/themes/font/NixieOne-Ledger.css
  12. 0
      compiled/css/themes/font/PTSerif-PTSans.css
  13. 0
      compiled/css/themes/font/Pacifico-Arimo.css
  14. 0
      compiled/css/themes/font/PlayfairDisplay-Muli.css
  15. 0
      compiled/css/themes/font/PoiretOne-Molengo.css
  16. 0
      compiled/css/themes/font/Rancho-Gudea.css
  17. 0
      compiled/css/themes/font/SansitaOne-Kameron.css
  18. 0
      compiled/css/themes/timeline-dark.png
  19. 0
      compiled/css/themes/timeline-texture.png
  20. 0
      compiled/css/timeline.css
  21. 0
      compiled/css/timeline.png
  22. 16
      compiled/index.html
  23. 32
      compiled/js/locale/de.js
  24. 4
      compiled/js/locale/en.js
  25. 4
      compiled/js/locale/es.js
  26. 32
      compiled/js/locale/fr.js
  27. 32
      compiled/js/locale/is.js
  28. 4
      compiled/js/locale/it.js
  29. 32
      compiled/js/locale/kr.js
  30. 4
      compiled/js/locale/nl.js
  31. 4
      compiled/js/locale/pt-br.js
  32. 4
      compiled/js/locale/zh-ch.js
  33. 4
      compiled/js/locale/zh-tw.js
  34. 0
      compiled/js/timeline-embed.js
  35. 32
      compiled/js/timeline-min.js
  36. 281
      compiled/js/timeline.js
  37. 0
      compiled/lib/jquery-min.js
  38. 16
      examples/kitchen-sink/index.html
  39. 47
      examples/language-example.html
  40. 8
      examples/template_googlespreadsheet/index.html
  41. 4
      examples/template_html/index.html
  42. 17
      examples/template_json/index.html
  43. 32
      locale/de.js
  44. 32
      locale/es.js
  45. 32
      locale/is.js
  46. 32
      locale/pt-br.js
  47. 1
      source/js/VMM.ExternalAPI.js
  48. 2
      source/js/VMM.TImeline.Min.js
  49. 5
      source/js/VMM.Timeline.js
  50. 50
      timeline-min.js

893
codekit-config.json

File diff suppressed because it is too large Load Diff

0
themes/dark.css → compiled/css/themes/dark.css

0
themes/font/AbrilFatface-Average.css → compiled/css/themes/font/AbrilFatface-Average.css

0
themes/font/Arvo-PTSans.css → compiled/css/themes/font/Arvo-PTSans.css

0
themes/font/Bevan-PotanoSans.css → compiled/css/themes/font/Bevan-PotanoSans.css

0
themes/font/BreeSerif-OpenSans.css → compiled/css/themes/font/BreeSerif-OpenSans.css

0
themes/font/DroidSerif-DroidSans.css → compiled/css/themes/font/DroidSerif-DroidSans.css

0
themes/font/Lekton-Molengo.css → compiled/css/themes/font/Lekton-Molengo.css

0
themes/font/Lora-Istok.css → compiled/css/themes/font/Lora-Istok.css

0
themes/font/Merriweather-NewsCycle.css → compiled/css/themes/font/Merriweather-NewsCycle.css

0
themes/font/NixieOne-Ledger.css → compiled/css/themes/font/NixieOne-Ledger.css

0
themes/font/PTSerif-PTSans.css → compiled/css/themes/font/PTSerif-PTSans.css

0
themes/font/Pacifico-Arimo.css → compiled/css/themes/font/Pacifico-Arimo.css

0
themes/font/PlayfairDisplay-Muli.css → compiled/css/themes/font/PlayfairDisplay-Muli.css

0
themes/font/PoiretOne-Molengo.css → compiled/css/themes/font/PoiretOne-Molengo.css

0
themes/font/Rancho-Gudea.css → compiled/css/themes/font/Rancho-Gudea.css

0
themes/font/SansitaOne-Kameron.css → compiled/css/themes/font/SansitaOne-Kameron.css

0
themes/timeline-dark.png → compiled/css/themes/timeline-dark.png

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

0
themes/timeline-texture.png → compiled/css/themes/timeline-texture.png

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

0
timeline.css → compiled/css/timeline.css

0
timeline.png → compiled/css/timeline.png

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

16
examples/embed.html → compiled/index.html

@ -2,12 +2,9 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Embed Timeline</title> <title>Timeline</title>
<meta name="description" content="Template Description">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style> <style>
html, body { html, body {
height:100%; height:100%;
@ -37,10 +34,15 @@
var timeline_config = { var timeline_config = {
width: "100%", width: "100%",
height: "100%", height: "100%",
source: 'https://docs.google.com/spreadsheet/pub?key=0Agl_Dv6iEbDadHdKcHlHcTB5bzhvbF9iTWwyMmJHdkE&output=html' source: 'https://docs.google.com/spreadsheet/pub?key=0Agl_Dv6iEbDadFYzRjJPUGktY0NkWXFUWkVIZDNGRHc&output=html',
font: 'Bevan-PotanoSans', //OPTIONAL
//start_at_end: true, //OPTIONAL
//hash_bookmark: true, //OPTIONAL
css: 'css/timeline.css', //OPTIONAL
js: 'js/timeline.js' //OPTIONAL
} }
</script> </script>
<script type="text/javascript" src="../timeline-embed.js"></script> <script type="text/javascript" src="js/timeline-embed.js"></script>
<!-- END Timeline Embed --> <!-- END Timeline Embed -->
</body> </body>
</html> </html>

32
compiled/js/locale/de.js

File diff suppressed because one or more lines are too long

4
locale/en.js → compiled/js/locale/en.js

File diff suppressed because one or more lines are too long

4
locale/fr.js → compiled/js/locale/es.js

File diff suppressed because one or more lines are too long

32
compiled/js/locale/fr.js

File diff suppressed because one or more lines are too long

32
compiled/js/locale/is.js

File diff suppressed because one or more lines are too long

4
locale/it.js → compiled/js/locale/it.js

File diff suppressed because one or more lines are too long

32
compiled/js/locale/kr.js

File diff suppressed because one or more lines are too long

4
locale/nl.js → compiled/js/locale/nl.js

File diff suppressed because one or more lines are too long

4
locale/kr.js → compiled/js/locale/pt-br.js

File diff suppressed because one or more lines are too long

4
locale/zh-ch.js → compiled/js/locale/zh-ch.js

File diff suppressed because one or more lines are too long

4
locale/zh-tw.js → compiled/js/locale/zh-tw.js

File diff suppressed because one or more lines are too long

0
timeline-embed.js → compiled/js/timeline-embed.js

32
compiled/js/timeline-min.js vendored

File diff suppressed because one or more lines are too long

281
timeline.js → compiled/js/timeline.js

@ -2056,7 +2056,6 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
}, },
wikipedia: { wikipedia: {
//http://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=Beastie%20Boys&format=json&exintro=1
get: function(url, id) { get: function(url, id) {
trace("WIKIPEDIA GET"); trace("WIKIPEDIA GET");
@ -5148,281 +5147,6 @@ Utf8.decode = function(strUtf) {
}( window.jQuery ); }( window.jQuery );
/***********************************************
Begin bootstrap-tooltip.js
***********************************************/
/* ===========================================================
* bootstrap-tooltip.js v2.0.1
* http://twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery.tipsy by Jason Frame
* ===========================================================
* Copyright 2012 Twitter, Inc.
*
* 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.
* ========================================================== */
!function( $ ) {
"use strict"
/* TOOLTIP PUBLIC CLASS DEFINITION
* =============================== */
var Tooltip = function ( element, options ) {
this.init('tooltip', element, options)
}
Tooltip.prototype = {
constructor: Tooltip
, init: function ( type, element, options ) {
var eventIn
, eventOut
this.type = type
this.$element = $(element)
this.options = this.getOptions(options)
this.enabled = true
if (this.options.trigger != 'manual') {
eventIn = this.options.trigger == 'hover' ? 'mouseenter' : 'focus'
eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur'
this.$element.on(eventIn, this.options.selector, $.proxy(this.enter, this))
this.$element.on(eventOut, this.options.selector, $.proxy(this.leave, this))
}
this.options.selector ?
(this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) :
this.fixTitle()
}
, getOptions: function ( options ) {
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
if (options.delay && typeof options.delay == 'number') {
options.delay = {
show: options.delay
, hide: options.delay
}
}
return options
}
, enter: function ( e ) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
if (!self.options.delay || !self.options.delay.show) {
self.show()
} else {
self.hoverState = 'in'
setTimeout(function() {
if (self.hoverState == 'in') {
self.show()
}
}, self.options.delay.show)
}
}
, leave: function ( e ) {
var self = $(e.currentTarget)[this.type](this._options).data(this.type)
if (!self.options.delay || !self.options.delay.hide) {
self.hide()
} else {
self.hoverState = 'out'
setTimeout(function() {
if (self.hoverState == 'out') {
self.hide()
}
}, self.options.delay.hide)
}
}
, show: function () {
var $tip
, inside
, pos
, actualWidth
, actualHeight
, placement
, tp
if (this.hasContent() && this.enabled) {
$tip = this.tip()
this.setContent()
if (this.options.animation) {
$tip.addClass('fade')
}
placement = typeof this.options.placement == 'function' ?
this.options.placement.call(this, $tip[0], this.$element[0]) :
this.options.placement
inside = /in/.test(placement)
$tip
.remove()
.css({ top: 0, left: 0, display: 'block' })
.appendTo(inside ? this.$element : document.body)
pos = this.getPosition(inside)
actualWidth = $tip[0].offsetWidth
actualHeight = $tip[0].offsetHeight
switch (inside ? placement.split(' ')[1] : placement) {
case 'bottom':
tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
break
case 'top':
tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2}
break
case 'left':
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth}
break
case 'right':
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width}
break
}
$tip
.css(tp)
.addClass(placement)
.addClass('in')
}
}
, setContent: function () {
var $tip = this.tip()
$tip.find('.tooltip-inner').html(this.getTitle())
$tip.removeClass('fade in top bottom left right')
}
, hide: function () {
var that = this
, $tip = this.tip()
$tip.removeClass('in')
function removeWithAnimation() {
var timeout = setTimeout(function () {
$tip.off($.support.transition.end).remove()
}, 500)
$tip.one($.support.transition.end, function () {
clearTimeout(timeout)
$tip.remove()
})
}
$.support.transition && this.$tip.hasClass('fade') ?
removeWithAnimation() :
$tip.remove()
}
, fixTitle: function () {
var $e = this.$element
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
}
}
, hasContent: function () {
return this.getTitle()
}
, getPosition: function (inside) {
return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), {
width: this.$element[0].offsetWidth
, height: this.$element[0].offsetHeight
})
}
, getTitle: function () {
var title
, $e = this.$element
, o = this.options
title = $e.attr('data-original-title')
|| (typeof o.title == 'function' ? o.title.call($e[0]) : o.title)
title = title.toString().replace(/(^\s*|\s*$)/, "")
return title
}
, tip: function () {
return this.$tip = this.$tip || $(this.options.template)
}
, validate: function () {
if (!this.$element[0].parentNode) {
this.hide()
this.$element = null
this.options = null
}
}
, enable: function () {
this.enabled = true
}
, disable: function () {
this.enabled = false
}
, toggleEnabled: function () {
this.enabled = !this.enabled
}
, toggle: function () {
this[this.tip().hasClass('in') ? 'hide' : 'show']()
}
}
/* TOOLTIP PLUGIN DEFINITION
* ========================= */
$.fn.tooltip = function ( option ) {
return this.each(function () {
var $this = $(this)
, data = $this.data('tooltip')
, options = typeof option == 'object' && option
if (!data) $this.data('tooltip', (data = new Tooltip(this, options)))
if (typeof option == 'string') data[option]()
})
}
$.fn.tooltip.Constructor = Tooltip
$.fn.tooltip.defaults = {
animation: true
, delay: 0
, selector: false
, placement: 'top'
, trigger: 'hover'
, title: ''
, template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
}
}( window.jQuery );
/*********************************************** /***********************************************
Begin VMM.Timeline.js Begin VMM.Timeline.js
***********************************************/ ***********************************************/
@ -5448,9 +5172,7 @@ Utf8.decode = function(strUtf) {
/* CodeKit Import /* CodeKit Import
http://incident57.com/codekit/ http://incident57.com/codekit/
================================================== */ ================================================== */
// @codekit-prepend "VMM.Timeline.License.js"; // @codekit-prepend "VMM.Timeline.License.js";
// @codekit-prepend "VMM.js"; // @codekit-prepend "VMM.js";
// @codekit-prepend "VMM.Library.js"; // @codekit-prepend "VMM.Library.js";
// @codekit-prepend "VMM.Browser.js"; // @codekit-prepend "VMM.Browser.js";
@ -5473,6 +5195,9 @@ Utf8.decode = function(strUtf) {
// @codekit-prepend "lib/AES.js"; // @codekit-prepend "lib/AES.js";
// @codekit-prepend "lib/bootstrap-tooltip.js"; // @codekit-prepend "lib/bootstrap-tooltip.js";
/* Timeline /* Timeline
================================================== */ ================================================== */

0
jquery-min.js → compiled/lib/jquery-min.js vendored

16
examples/kitchen-sink/index.html

@ -32,16 +32,16 @@
<div id="timeline-embed"></div> <div id="timeline-embed"></div>
<script type="text/javascript"> <script type="text/javascript">
var timeline_config = { var timeline_config = {
width: "100%", width: "100%",
height: "100%", height: "100%",
source: 'data.json', source: 'data.json',
//start_at_end: true, //OPTIONAL //start_at_end: true, //OPTIONAL
//hash_bookmark: true, //OPTIONAL //hash_bookmark: true, //OPTIONAL
css: '../../timeline.css', //OPTIONAL css: '../../compiled/css/timeline.css', //OPTIONAL
js: '../../timeline.js' //OPTIONAL js: '../../compiled/timeline-min.js' //OPTIONAL
} }
</script> </script>
<script type="text/javascript" src="../../timeline-embed.js"></script> <script type="text/javascript" src="../../compiled/timeline-embed.js"></script>
<!-- END Timeline Embed --> <!-- END Timeline Embed -->
</body> </body>
</html> </html>

47
examples/language-example.html

@ -45,3 +45,50 @@
<!-- END Timeline Embed --> <!-- END Timeline Embed -->
</body> </body>
</html> </html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Language Example</title>
<meta name="description" content="Template Description">
<style>
html, body {
height:100%;
padding: 0px;
margin: 0px;
}
#timeline-embed{
margin:0px !important;
border:0px solid #CCC !important;
padding:0px !important;
-webkit-border-radius:0px !important;
-moz-border-radius:0px !important;
border-radius:0px !important;
-moz-box-shadow:0 0px 0px rgba(0, 0, 0, 0.25) !important;
-webkit-box-shadow:0 0px 0px rgba(0, 0, 0, 0.25) !important;
box-shadow:0px 0px 0px rgba(0, 0, 0, 0.25) !important;
}
</style>
</head>
<body>
<!-- BEGIN Timeline Embed -->
<div id="timeline-embed"></div>
<script type="text/javascript">
var timeline_config = {
width: "100%",
height: "100%",
source: 'data.json',
//start_at_end: true, //OPTIONAL
//hash_bookmark: true, //OPTIONAL
css: '../compiled/css/timeline.css', //OPTIONAL
js: '../compiled/locale/fr.js' // FRENCH
}
</script>
<script type="text/javascript" src="../compiled/timeline-embed.js"></script>
<!-- END Timeline Embed -->
</body>
</html>

8
examples/template_googlespreadsheet/index.html

@ -35,9 +35,11 @@
width: "100%", width: "100%",
height: "100%", height: "100%",
source: 'https://docs.google.com/spreadsheet/pub?key=0Agl_Dv6iEbDadHdKcHlHcTB5bzhvbF9iTWwyMmJHdkE&output=html', source: 'https://docs.google.com/spreadsheet/pub?key=0Agl_Dv6iEbDadHdKcHlHcTB5bzhvbF9iTWwyMmJHdkE&output=html',
font: 'Bevan-PotanoSans', //OPTIONAL font: 'Bevan-PotanoSans', //OPTIONAL
css: '../../timeline.css', //OPTIONAL //start_at_end: true, //OPTIONAL
js: '../../timeline.js' //OPTIONAL //hash_bookmark: true, //OPTIONAL
css: '../../compiled/css/timeline.css', //OPTIONAL
js: '../../compiled/timeline-min.js' //OPTIONAL
} }
</script> </script>
<script type="text/javascript" src="http://veritetimeline.appspot.com/latest/timeline-embed.js"></script> <script type="text/javascript" src="http://veritetimeline.appspot.com/latest/timeline-embed.js"></script>

4
examples/template_html/index.html

@ -11,7 +11,7 @@
<![endif]--> <![endif]-->
<!-- CSS --> <!-- CSS -->
<link href="../../timeline.css" rel="stylesheet"> <link href="../../compiled/css/timeline.css" rel="stylesheet">
<style> <style>
html, body { html, body {
height:100%; height:100%;
@ -21,7 +21,7 @@
</style> </style>
<!-- JavaScript --> <!-- JavaScript -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="../../timeline-min.js"></script> <script type="text/javascript" src="../../compiled/timeline-min.js"></script>
<script> <script>
$(document).ready(function() { $(document).ready(function() {
var timeline = new VMM.Timeline(); var timeline = new VMM.Timeline();

17
examples/template_json/index.html

@ -2,14 +2,9 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Timeline JSON Template</title> <title>Kitchen Sink Timeline</title>
<meta name="description" content="Template Description"> <meta name="description" content="Template Description">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style> <style>
html, body { html, body {
height:100%; height:100%;
@ -37,12 +32,16 @@
<div id="timeline-embed"></div> <div id="timeline-embed"></div>
<script type="text/javascript"> <script type="text/javascript">
var timeline_config = { var timeline_config = {
width: "100%", width: "100%",
height: "100%", height: "100%",
source: 'data.json' source: 'data.json',
//start_at_end: true, //OPTIONAL
//hash_bookmark: true, //OPTIONAL
css: '../../compiled/css/timeline.css', //OPTIONAL
js: '../../compiled/timeline-min.js' //OPTIONAL
} }
</script> </script>
<script type="text/javascript" src="http://veritetimeline.appspot.com/latest/timeline-embed.js"></script> <script type="text/javascript" src="../../compiled/timeline-embed.js"></script>
<!-- END Timeline Embed --> <!-- END Timeline Embed -->
</body> </body>
</html> </html>

32
locale/de.js

File diff suppressed because one or more lines are too long

32
locale/es.js

File diff suppressed because one or more lines are too long

32
locale/is.js

File diff suppressed because one or more lines are too long

32
locale/pt-br.js

File diff suppressed because one or more lines are too long

1
source/js/VMM.ExternalAPI.js

@ -564,7 +564,6 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
}, },
wikipedia: { wikipedia: {
//http://en.wikipedia.org/w/api.php?action=query&prop=extracts&titles=Beastie%20Boys&format=json&exintro=1
get: function(url, id) { get: function(url, id) {
trace("WIKIPEDIA GET"); trace("WIKIPEDIA GET");

2
source/js/VMM.TImeline.Min.js

@ -20,7 +20,7 @@
/* CodeKit Import /* CodeKit Import
http://incident57.com/codekit/ http://incident57.com/codekit/
================================================== */ ================================================== */
// @codekit-prepend "VMM.Timeline.License.js";
// @codekit-prepend "VMM.Timeline.js"; // @codekit-prepend "VMM.Timeline.js";
VMM.debug = false; VMM.debug = false;

5
source/js/VMM.Timeline.js

@ -19,7 +19,7 @@
/* CodeKit Import /* CodeKit Import
http://incident57.com/codekit/ http://incident57.com/codekit/
================================================== */ ================================================== */
// @codekit-prepend "VMM.Timeline.License.js";
// @codekit-prepend "VMM.js"; // @codekit-prepend "VMM.js";
// @codekit-prepend "VMM.Library.js"; // @codekit-prepend "VMM.Library.js";
// @codekit-prepend "VMM.Browser.js"; // @codekit-prepend "VMM.Browser.js";
@ -42,6 +42,9 @@
// @codekit-prepend "lib/AES.js"; // @codekit-prepend "lib/AES.js";
// @codekit-prepend "lib/bootstrap-tooltip.js"; // @codekit-prepend "lib/bootstrap-tooltip.js";
/* Timeline /* Timeline
================================================== */ ================================================== */

50
timeline-min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save