/* * Timeglider for Javascript / jQuery * http://timeglider.com/jquery * * Copyright 2013, Mnemograph LLC * Licensed under Timeglider Dual License * http://timeglider.com/jquery/?p=license * */ /* **************************************** timeglider.TimelineView **************************************** */ (function(tg){ // MED below is a reference to the mediator reference // that will be passed into the main Constructor below var TG_Date = tg.TG_Date, PL = "", MED = "", options = {}, ticksSpeed = 0, t1Left = 0, t2Left = 0, ticksSpeedIv, container_name = '', $ = jQuery, intervals ={}, WIDGET_ID = "", CONTAINER, TICKS, DATE, FOCUS_DATE, CLICKORTOUCH = $.support.touch ? "touchstart": "click"; var stripPx = function (somethingPx) { if (typeof somethingPx == "number") return somethingPx; if (!somethingPx) return 0; return parseInt(somethingPx.replace("px", ""), 10); } /* * timeglider.TG_TimelineView * This is _not_ a backbone view, though * other elements inside of it are. * * */ tg.TG_TimelinePlayer = function (widget, mediator) { var me = this; // this.MED = mediator; // vars declared in closure above MED = mediator; // timeline | list MED.viewMode = "timeline"; options = mediator.options; // core identifier to "uniquify" the container PL = "#" + widget._id; WIDGET_ID = widget._id; container_name = options.base_namespace + "#" + WIDGET_ID; this.titleBar = true; this.singleTitleHeight = 0; MED.setImageLaneHeight(options.image_lane_height, false, true); $("#test2").bind('click',function() { var date_str="2015-8-22 5:54:00"; MED.gotoDateZoom(date_str); }); /* references specific to the instance (rather than timeglider) so one can have more than one instance of the widget on a page */ this._views = { PLACE:PL, CONTAINER : PL + " .timeglider-container", SCRIM : PL + " .tg-scrim", DATE : PL + " .tg-footer-center", HEADER : PL + " .tg-widget-header", FOCUS_DATE : PL + " .tg-date-display", TIMELINE_MENU : PL + " .timeglider-timeline-menu", TIMELINE_MENU_UL : PL + " .timeglider-timeline-menu ul", TIMELINE_LIST_BT : PL + " .timeglider-list-bt", SLIDER_CONTAINER : PL + " .timeglider-slider-container", SLIDER : PL + " .timeglider-slider", ZOOM_DISPLAY : PL + " .timeglider-zoomlevel-display", TRUCK : PL + " .timeglider-truck", CENTERLINE : PL + " .timeglider-centerline", TICKS : PL + " .timeglider-ticks", HANDLE : PL + " .timeglider-handle", FOOTER : PL + " .timeglider-footer", FILTER_BT : PL + " .timeglider-filter-bt", FILTER_BOX : PL + " .timeglider-filter-box", SETTINGS_BT : PL + " .timeglider-settings-bt" } // shorthand for common elements CONTAINER = this._views.CONTAINER; TICKS = this._views.TICKS; this.dragSpeed = 0; this.tickNum = 0; this.leftside = 0; this.rightside = 0; this.ticksHandleOffset = 0; this.timeoout_id = 1; this.sliderActive = false; this.ztop = 1000; this.filterBoxActivated = false; // this needs to be less than or equal to // timeglider.css value for .timeglider-tick // height property this.tick_height = 32; // a state var for the left-right position of the timeline // to help track whether the timeline is too far left/right // DEPRECATED 12 March 2013 // in favor of draggable containment array //this.dragScopeState = {state:"okay",pos:0}; /* TEMPLATES FOR THINGS LIKE MODAL WINDOWS * events themselves are non-templated and rendered in TG_Org.js * as there are too many on-the-fly style attributes etc, and * the current theory is that templating would create lag * * */ // in case custom event_modal fails, we need this object to exist this._templates = {} this._templates = { // allows for customized templates imported test : "testola", event_modal_small: "
{{html image}}{{html description}}
Use the search tool (at lower right) to filter this timeline according to these tags:
"; tags2 = "