[ Launch: Tributary inlet ] 5811335 by brjadams
This file contains hidden or 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
| function($, _, Backbone, app, global_bindings, VideoModel, VideosCollection, VideoCollectionView, VideoForm) { | |
| "use strict"; | |
| var data_items = app.setting("bootstrapped_videos"); | |
| var video_collection_items = new VideosCollection(); | |
| video_collection_items.reset(data_items); | |
| var video_collection_view = new VideoCollectionView({ | |
| collection: video_collection_items |
This file contains hidden or 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
| createVisitsTimeSeries: function(container, visit_data){ | |
| var margin = {top: 5, right: 5, bottom: 5, left: 5}, | |
| width = $(container).width() - (margin.left - margin.right), | |
| height = $(container).height() + 50; | |
| var parseDate = d3.time.format("%Y-%m-%d").parse; | |
| entries = d3.values(visit_data); | |
| var x = d3.time.scale() |