2011-02-14 17:19:44 -08:00
|
|
|
|
(function ($) {
|
|
|
|
|
$(function () {
|
2011-03-09 16:06:37 -08:00
|
|
|
|
// append the shape tracing window container at the end of the document
|
|
|
|
|
$('<div id="shape-tracing-container"><div id="shape-tracing-toolbar">toolbar</div><div id="shape-tracing-window">window</div></div><div id="shape-tracing-container-ghost"/>').appendTo('body');
|
|
|
|
|
|
|
|
|
|
// preload main objects
|
|
|
|
|
var shapeTracingContainer = $('#shape-tracing-container');
|
|
|
|
|
var shapeTracingToolbar = $('#shape-tracing-toolbar');
|
|
|
|
|
var shapeTracingWindow = $('#shape-tracing-window');
|
|
|
|
|
var shapeTracingGhost = $('#shape-tracing-container-ghost');
|
|
|
|
|
|
|
|
|
|
// ensure the ghost has always the same size as the container
|
|
|
|
|
shapeTracingContainer.resize(function () { shapeTracingGhost.height(shapeTracingContainer.height()); });
|
|
|
|
|
shapeTracingContainer.trigger('resize');
|
2011-02-25 23:52:45 -08:00
|
|
|
|
|
2011-02-08 17:52:53 -08:00
|
|
|
|
});
|
|
|
|
|
})(jQuery);
|