cobweb 0.0.55 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +2 -1
- data/lib/cobweb.rb +4 -1
- data/lib/cobweb_crawler.rb +1 -4
- data/lib/cobweb_version.rb +1 -1
- data/lib/content_link_parser.rb +1 -0
- data/lib/crawl_job.rb +4 -3
- data/lib/server.rb +2 -2
- data/lib/stats.rb +6 -1
- data/spec/cobweb/cobweb_job_spec.rb +162 -24
- data/spec/samples/sample_server.rb +21 -0
- data/spec/samples/sample_site/boxgrid.html +258 -0
- data/spec/samples/sample_site/css/accordion.css +45 -0
- data/spec/samples/sample_site/css/datatable.css +189 -0
- data/spec/samples/sample_site/css/datepicker.css +171 -0
- data/spec/samples/sample_site/css/form-buttons.css +180 -0
- data/spec/samples/sample_site/css/forms.css +489 -0
- data/spec/samples/sample_site/css/jquery.fancybox-1.3.4.css +282 -0
- data/spec/samples/sample_site/css/jquery.treeview.css +103 -0
- data/spec/samples/sample_site/css/link-buttons.css +187 -0
- data/spec/samples/sample_site/css/login.css +110 -0
- data/spec/samples/sample_site/css/menu.css +156 -0
- data/spec/samples/sample_site/css/messages.css +58 -0
- data/spec/samples/sample_site/css/modalbox.css +63 -0
- data/spec/samples/sample_site/css/statics.css +57 -0
- data/spec/samples/sample_site/css/style.css +497 -0
- data/spec/samples/sample_site/css/style_text.css +128 -0
- data/spec/samples/sample_site/css/tabs.css +58 -0
- data/spec/samples/sample_site/css/wysiwyg-editor.css +18 -0
- data/spec/samples/sample_site/css/wysiwyg.css +149 -0
- data/spec/samples/sample_site/css/wysiwyg.modal.css +69 -0
- data/spec/samples/sample_site/dashboard.html +852 -0
- data/spec/samples/sample_site/forms.html +329 -0
- data/spec/samples/sample_site/gallery.html +263 -0
- data/spec/samples/sample_site/gfx/back-menu.gif +0 -0
- data/spec/samples/sample_site/gfx/back-submenu.gif +0 -0
- data/spec/samples/sample_site/gfx/background.gif +0 -0
- data/spec/samples/sample_site/gfx/box-hide.png +0 -0
- data/spec/samples/sample_site/gfx/box-search.png +0 -0
- data/spec/samples/sample_site/gfx/box-title.gif +0 -0
- data/spec/samples/sample_site/gfx/code.gif +0 -0
- data/spec/samples/sample_site/gfx/datepicker-arrows.gif +0 -0
- data/spec/samples/sample_site/gfx/fancybox/blank.gif +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_close.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_loading.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_nav_left.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_nav_right.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_title_left.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_title_main.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_title_over.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancy_title_right.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancybox-x.png +0 -0
- data/spec/samples/sample_site/gfx/fancybox/fancybox.png +0 -0
- data/spec/samples/sample_site/gfx/forms/date-next.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/date-prev.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-checkbox.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-date.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-file.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-input-big.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-input-medium.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-input-small.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-input-xl.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-radio.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-selectbox-small.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-selectbox.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-textarea-big.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-textarea-medium.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-textarea-small.gif +0 -0
- data/spec/samples/sample_site/gfx/forms/forms-textarea-xl.gif +0 -0
- data/spec/samples/sample_site/gfx/icon-delete.png +0 -0
- data/spec/samples/sample_site/gfx/icon-edit.png +0 -0
- data/spec/samples/sample_site/gfx/icon-home.gif +0 -0
- data/spec/samples/sample_site/gfx/img-delete.png +0 -0
- data/spec/samples/sample_site/gfx/img-hover.png +0 -0
- data/spec/samples/sample_site/gfx/img-zoom.png +0 -0
- data/spec/samples/sample_site/gfx/jquery.wysiwyg.gif +0 -0
- data/spec/samples/sample_site/gfx/label-icons.gif +0 -0
- data/spec/samples/sample_site/gfx/label.gif +0 -0
- data/spec/samples/sample_site/gfx/li-down.gif +0 -0
- data/spec/samples/sample_site/gfx/li.gif +0 -0
- data/spec/samples/sample_site/gfx/link-button-big.gif +0 -0
- data/spec/samples/sample_site/gfx/link-button-medium.gif +0 -0
- data/spec/samples/sample_site/gfx/link-button.gif +0 -0
- data/spec/samples/sample_site/gfx/loading-2.gif +0 -0
- data/spec/samples/sample_site/gfx/loading.gif +0 -0
- data/spec/samples/sample_site/gfx/logo.png +0 -0
- data/spec/samples/sample_site/gfx/modal-title.gif +0 -0
- data/spec/samples/sample_site/gfx/photos/00.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/01.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/01xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/02.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/02xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/03.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/03xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/04.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/04xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/05.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/05xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/06.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/06xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/07.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/07xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/08.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/08xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/09.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/09xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/10.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/10xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/11.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/11xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/12.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/12xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/13.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/13xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/14.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/14xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/15.jpg +0 -0
- data/spec/samples/sample_site/gfx/photos/15xl.jpg +0 -0
- data/spec/samples/sample_site/gfx/search-button.gif +0 -0
- data/spec/samples/sample_site/gfx/search-input.gif +0 -0
- data/spec/samples/sample_site/gfx/slider-button.gif +0 -0
- data/spec/samples/sample_site/gfx/system-messages.gif +0 -0
- data/spec/samples/sample_site/gfx/table-asc-arrow.gif +0 -0
- data/spec/samples/sample_site/gfx/table-desc-arrow.gif +0 -0
- data/spec/samples/sample_site/gfx/table-first.gif +0 -0
- data/spec/samples/sample_site/gfx/table-last.gif +0 -0
- data/spec/samples/sample_site/gfx/table-next.gif +0 -0
- data/spec/samples/sample_site/gfx/table-number.gif +0 -0
- data/spec/samples/sample_site/gfx/table-prev.gif +0 -0
- data/spec/samples/sample_site/gfx/table-rows.gif +0 -0
- data/spec/samples/sample_site/gfx/table-search.gif +0 -0
- data/spec/samples/sample_site/gfx/table-thead.gif +0 -0
- data/spec/samples/sample_site/gfx/tooltip.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/ajax-loader.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/file.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/folder-closed.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/folder.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/minus.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/plus.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/treeview-default-line.gif +0 -0
- data/spec/samples/sample_site/gfx/treeview/treeview-default.gif +0 -0
- data/spec/samples/sample_site/index.html +852 -0
- data/spec/samples/sample_site/js/controls/wysiwyg.image.js +284 -0
- data/spec/samples/sample_site/js/controls/wysiwyg.link.js +210 -0
- data/spec/samples/sample_site/js/controls/wysiwyg.table.js +151 -0
- data/spec/samples/sample_site/js/customInput.jquery.js +68 -0
- data/spec/samples/sample_site/js/excanvas.min.js +1 -0
- data/spec/samples/sample_site/js/hoverIntent.js +84 -0
- data/spec/samples/sample_site/js/inline.js +392 -0
- data/spec/samples/sample_site/js/jquery-1.7.1.min.js +4 -0
- data/spec/samples/sample_site/js/jquery-ui-select.js +522 -0
- data/spec/samples/sample_site/js/jquery-ui-timepicker-addon.js +1299 -0
- data/spec/samples/sample_site/js/jquery-ui.js +791 -0
- data/spec/samples/sample_site/js/jquery.dataTables.js +7440 -0
- data/spec/samples/sample_site/js/jquery.fancybox-1.3.4.js +1156 -0
- data/spec/samples/sample_site/js/jquery.filestyle.mini.js +2 -0
- data/spec/samples/sample_site/js/jquery.flot.js +2600 -0
- data/spec/samples/sample_site/js/jquery.flot.resize.min.js +60 -0
- data/spec/samples/sample_site/js/jquery.graphtable-0.2.js +179 -0
- data/spec/samples/sample_site/js/jquery.tipsy.js +104 -0
- data/spec/samples/sample_site/js/jquery.treeview.js +256 -0
- data/spec/samples/sample_site/js/jquery.wysiwyg.js +2454 -0
- data/spec/samples/sample_site/js/plugins/wysiwyg.rmFormat.js +348 -0
- data/spec/samples/sample_site/js/superfish.js +121 -0
- data/spec/samples/sample_site/js/supersubs.js +90 -0
- data/spec/samples/sample_site/more.html +503 -0
- data/spec/samples/sample_site/tables.html +845 -0
- data/spec/samples/sample_site/text/museosans-webfont.eot +0 -0
- data/spec/samples/sample_site/text/museosans-webfont.svg +231 -0
- data/spec/samples/sample_site/text/museosans-webfont.ttf +0 -0
- data/spec/samples/sample_site/text/museosans-webfont.woff +0 -0
- data/spec/samples/sample_site/text/museosans_bold-webfont.eot +0 -0
- data/spec/samples/sample_site/text/museosans_bold-webfont.svg +231 -0
- data/spec/samples/sample_site/text/museosans_bold-webfont.ttf +0 -0
- data/spec/samples/sample_site/text/museosans_bold-webfont.woff +0 -0
- data/spec/samples/sample_site/typography.html +192 -0
- data/spec/spec_helper.rb +10 -2
- metadata +196 -26
@@ -0,0 +1,151 @@
|
|
1
|
+
/**
|
2
|
+
* Controls: Table plugin
|
3
|
+
*
|
4
|
+
* Depends on jWYSIWYG
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
if (undefined === $.wysiwyg) {
|
8
|
+
throw "wysiwyg.table.js depends on $.wysiwyg";
|
9
|
+
}
|
10
|
+
|
11
|
+
if (!$.wysiwyg.controls) {
|
12
|
+
$.wysiwyg.controls = {};
|
13
|
+
}
|
14
|
+
|
15
|
+
var insertTable = function (colCount, rowCount, filler) {
|
16
|
+
if (isNaN(rowCount) || isNaN(colCount) || rowCount === null || colCount === null) {
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
|
20
|
+
var i, j, html = ['<table border="1" style="width: 100%;"><tbody>'];
|
21
|
+
|
22
|
+
colCount = parseInt(colCount, 10);
|
23
|
+
rowCount = parseInt(rowCount, 10);
|
24
|
+
|
25
|
+
if (filler === null) {
|
26
|
+
filler = " ";
|
27
|
+
}
|
28
|
+
filler = "<td>" + filler + "</td>";
|
29
|
+
|
30
|
+
for (i = rowCount; i > 0; i -= 1) {
|
31
|
+
html.push("<tr>");
|
32
|
+
for (j = colCount; j > 0; j -= 1) {
|
33
|
+
html.push(filler);
|
34
|
+
}
|
35
|
+
html.push("</tr>");
|
36
|
+
}
|
37
|
+
html.push("</tbody></table>");
|
38
|
+
|
39
|
+
return this.insertHtml(html.join(""));
|
40
|
+
};
|
41
|
+
|
42
|
+
/*
|
43
|
+
* Wysiwyg namespace: public properties and methods
|
44
|
+
*/
|
45
|
+
$.wysiwyg.controls.table = function (Wysiwyg) {
|
46
|
+
var self = Wysiwyg, dialog, colCount, rowCount, formTableHtml,
|
47
|
+
formTextLegend = "Insert table",
|
48
|
+
formTextCols = "Count of columns",
|
49
|
+
formTextRows = "Count of rows",
|
50
|
+
formTextSubmit = "Insert table",
|
51
|
+
formTextReset = "Cancel";
|
52
|
+
|
53
|
+
if ($.wysiwyg.i18n) {
|
54
|
+
formTextLegend = $.wysiwyg.i18n.t(formTextLegend, "dialogs.table");
|
55
|
+
formTextCols = $.wysiwyg.i18n.t(formTextCols, "dialogs.table");
|
56
|
+
formTextRows = $.wysiwyg.i18n.t(formTextRows, "dialogs.table");
|
57
|
+
formTextSubmit = $.wysiwyg.i18n.t(formTextSubmit, "dialogs.table");
|
58
|
+
formTextReset = $.wysiwyg.i18n.t(formTextReset, "dialogs");
|
59
|
+
}
|
60
|
+
|
61
|
+
formTableHtml = '<form class="wysiwyg"><fieldset><legend>' + formTextLegend + '</legend>' +
|
62
|
+
'<label>' + formTextCols + ': <input type="text" name="colCount" value="3" /></label>' +
|
63
|
+
'<label>' + formTextRows + ': <input type="text" name="rowCount" value="3" /></label>' +
|
64
|
+
'<input type="submit" class="button" value="' + formTextSubmit + '"/> ' +
|
65
|
+
'<input type="reset" value="' + formTextReset + '"/></fieldset></form>';
|
66
|
+
|
67
|
+
if (!Wysiwyg.insertTable) {
|
68
|
+
Wysiwyg.insertTable = insertTable;
|
69
|
+
}
|
70
|
+
|
71
|
+
if ($.fn.modal) {
|
72
|
+
$.modal(formTableHtml, {
|
73
|
+
onShow: function (dialog) {
|
74
|
+
$("input:submit", dialog.data).click(function (e) {
|
75
|
+
e.preventDefault();
|
76
|
+
rowCount = $('input[name="rowCount"]', dialog.data).val();
|
77
|
+
colCount = $('input[name="colCount"]', dialog.data).val();
|
78
|
+
|
79
|
+
self.insertTable(colCount, rowCount, self.defaults.tableFiller);
|
80
|
+
$.modal.close();
|
81
|
+
});
|
82
|
+
$("input:reset", dialog.data).click(function (e) {
|
83
|
+
e.preventDefault();
|
84
|
+
$.modal.close();
|
85
|
+
});
|
86
|
+
},
|
87
|
+
maxWidth: self.defaults.formWidth,
|
88
|
+
maxHeight: self.defaults.formHeight,
|
89
|
+
overlayClose: true
|
90
|
+
});
|
91
|
+
} else if ($.fn.dialog) {
|
92
|
+
dialog = $(formTableHtml).appendTo("body");
|
93
|
+
dialog.dialog({
|
94
|
+
modal: true,
|
95
|
+
width: self.defaults.formWidth,
|
96
|
+
height: self.defaults.formHeight,
|
97
|
+
open: function (event, ui) {
|
98
|
+
$("input:submit", dialog).click(function (e) {
|
99
|
+
e.preventDefault();
|
100
|
+
rowCount = $('input[name="rowCount"]', dialog).val();
|
101
|
+
colCount = $('input[name="colCount"]', dialog).val();
|
102
|
+
|
103
|
+
self.insertTable(colCount, rowCount, self.defaults.tableFiller);
|
104
|
+
$(dialog).dialog("close");
|
105
|
+
});
|
106
|
+
$("input:reset", dialog).click(function (e) {
|
107
|
+
e.preventDefault();
|
108
|
+
$(dialog).dialog("close");
|
109
|
+
});
|
110
|
+
},
|
111
|
+
close: function (event, ui) {
|
112
|
+
dialog.dialog("destroy");
|
113
|
+
}
|
114
|
+
});
|
115
|
+
} else {
|
116
|
+
colCount = prompt(formTextCols, "3");
|
117
|
+
rowCount = prompt(formTextRows, "3");
|
118
|
+
|
119
|
+
self.insertTable(colCount, rowCount, self.defaults.tableFiller);
|
120
|
+
}
|
121
|
+
|
122
|
+
$(self.editorDoc).trigger("wysiwyg:refresh");
|
123
|
+
};
|
124
|
+
|
125
|
+
$.wysiwyg.insertTable = function (object, colCount, rowCount, filler) {
|
126
|
+
if ("object" !== typeof (object) || !object.context) {
|
127
|
+
object = this;
|
128
|
+
}
|
129
|
+
|
130
|
+
if (!object.each) {
|
131
|
+
console.error("Something goes wrong, check object");
|
132
|
+
}
|
133
|
+
|
134
|
+
return object.each(function () {
|
135
|
+
var self = $(this).data("wysiwyg");
|
136
|
+
|
137
|
+
if (!self.insertTable) {
|
138
|
+
self.insertTable = insertTable;
|
139
|
+
}
|
140
|
+
|
141
|
+
if (!self) {
|
142
|
+
return this;
|
143
|
+
}
|
144
|
+
|
145
|
+
self.insertTable(colCount, rowCount, filler);
|
146
|
+
$(self.editorDoc).trigger("wysiwyg:refresh");
|
147
|
+
|
148
|
+
return this;
|
149
|
+
});
|
150
|
+
};
|
151
|
+
})(jQuery);
|
@@ -0,0 +1,68 @@
|
|
1
|
+
/*--------------------------------------------------------------------
|
2
|
+
* jQuery plugin: customInput()
|
3
|
+
* by Maggie Wachs and Scott Jehl, http://www.filamentgroup.com
|
4
|
+
* Copyright (c) 2009 Filament Group
|
5
|
+
* Dual licensed under the MIT (filamentgroup.com/examples/mit-license.txt) and GPL (filamentgroup.com/examples/gpl-license.txt) licenses.
|
6
|
+
* Article: http://www.filamentgroup.com/lab/accessible_custom_designed_checkbox_radio_button_inputs_styled_css_jquery/
|
7
|
+
* Usage example below (see comment "Run the script...").
|
8
|
+
--------------------------------------------------------------------*/
|
9
|
+
|
10
|
+
|
11
|
+
jQuery.fn.customInput = function(){
|
12
|
+
$(this).each(function(i){
|
13
|
+
if($(this).is('[type=checkbox],[type=radio]')){
|
14
|
+
var input = $(this);
|
15
|
+
|
16
|
+
// get the associated label using the input's id
|
17
|
+
var label = $('label[for='+input.attr('id')+']');
|
18
|
+
|
19
|
+
//get type, for classname suffix
|
20
|
+
var inputType = (input.is('[type=checkbox]')) ? 'checkbox' : 'radio';
|
21
|
+
|
22
|
+
// wrap the input + label in a div
|
23
|
+
$('<div class="custom-'+ inputType +'"></div>').insertBefore(input).append(input, label);
|
24
|
+
|
25
|
+
// find all inputs in this set using the shared name attribute
|
26
|
+
var allInputs = $("input[name='"+input.attr('name')+"']");
|
27
|
+
|
28
|
+
// necessary for browsers that don't support the :hover pseudo class on labels
|
29
|
+
label.hover(
|
30
|
+
function(){
|
31
|
+
$(this).addClass('hover');
|
32
|
+
if(inputType == 'checkbox' && input.is(':checked')){
|
33
|
+
$(this).addClass('checkedHover');
|
34
|
+
}
|
35
|
+
},
|
36
|
+
function(){ $(this).removeClass('hover checkedHover focus'); }
|
37
|
+
);
|
38
|
+
|
39
|
+
//bind custom event, trigger it, bind click,focus,blur events
|
40
|
+
input.bind('updateState', function(){
|
41
|
+
if (input.is(':checked')) {
|
42
|
+
if (input.is(':radio')) {
|
43
|
+
allInputs.each(function(){
|
44
|
+
$('label[for='+$(this).attr('id')+']').removeClass('checked');
|
45
|
+
});
|
46
|
+
};
|
47
|
+
label.addClass('checked');
|
48
|
+
}
|
49
|
+
else { label.removeClass('checked checkedHover checkedFocus'); }
|
50
|
+
|
51
|
+
})
|
52
|
+
.trigger('updateState')
|
53
|
+
.click(function(){
|
54
|
+
$(this).trigger('updateState');
|
55
|
+
})
|
56
|
+
.focus(function(){
|
57
|
+
label.addClass('focus');
|
58
|
+
if(inputType == 'checkbox' && input.is(':checked')){
|
59
|
+
$(this).addClass('checkedFocus');
|
60
|
+
}
|
61
|
+
})
|
62
|
+
.blur(function(){ label.removeClass('focus checkedFocus'); });
|
63
|
+
}
|
64
|
+
});
|
65
|
+
};
|
66
|
+
|
67
|
+
|
68
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
if(!document.createElement("canvas").getContext){(function(){var z=Math;var K=z.round;var J=z.sin;var U=z.cos;var b=z.abs;var k=z.sqrt;var D=10;var F=D/2;function T(){return this.context_||(this.context_=new W(this))}var O=Array.prototype.slice;function G(i,j,m){var Z=O.call(arguments,2);return function(){return i.apply(j,Z.concat(O.call(arguments)))}}function AD(Z){return String(Z).replace(/&/g,"&").replace(/"/g,""")}function r(i){if(!i.namespaces.g_vml_){i.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML")}if(!i.namespaces.g_o_){i.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML")}if(!i.styleSheets.ex_canvas_){var Z=i.createStyleSheet();Z.owningElement.id="ex_canvas_";Z.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}r(document);var E={init:function(Z){if(/MSIE/.test(navigator.userAgent)&&!window.opera){var i=Z||document;i.createElement("canvas");i.attachEvent("onreadystatechange",G(this.init_,this,i))}},init_:function(m){var j=m.getElementsByTagName("canvas");for(var Z=0;Z<j.length;Z++){this.initElement(j[Z])}},initElement:function(i){if(!i.getContext){i.getContext=T;r(i.ownerDocument);i.innerHTML="";i.attachEvent("onpropertychange",S);i.attachEvent("onresize",w);var Z=i.attributes;if(Z.width&&Z.width.specified){i.style.width=Z.width.nodeValue+"px"}else{i.width=i.clientWidth}if(Z.height&&Z.height.specified){i.style.height=Z.height.nodeValue+"px"}else{i.height=i.clientHeight}}return i}};function S(i){var Z=i.srcElement;switch(i.propertyName){case"width":Z.getContext().clearRect();Z.style.width=Z.attributes.width.nodeValue+"px";Z.firstChild.style.width=Z.clientWidth+"px";break;case"height":Z.getContext().clearRect();Z.style.height=Z.attributes.height.nodeValue+"px";Z.firstChild.style.height=Z.clientHeight+"px";break}}function w(i){var Z=i.srcElement;if(Z.firstChild){Z.firstChild.style.width=Z.clientWidth+"px";Z.firstChild.style.height=Z.clientHeight+"px"}}E.init();var I=[];for(var AC=0;AC<16;AC++){for(var AB=0;AB<16;AB++){I[AC*16+AB]=AC.toString(16)+AB.toString(16)}}function V(){return[[1,0,0],[0,1,0],[0,0,1]]}function d(m,j){var i=V();for(var Z=0;Z<3;Z++){for(var AF=0;AF<3;AF++){var p=0;for(var AE=0;AE<3;AE++){p+=m[Z][AE]*j[AE][AF]}i[Z][AF]=p}}return i}function Q(i,Z){Z.fillStyle=i.fillStyle;Z.lineCap=i.lineCap;Z.lineJoin=i.lineJoin;Z.lineWidth=i.lineWidth;Z.miterLimit=i.miterLimit;Z.shadowBlur=i.shadowBlur;Z.shadowColor=i.shadowColor;Z.shadowOffsetX=i.shadowOffsetX;Z.shadowOffsetY=i.shadowOffsetY;Z.strokeStyle=i.strokeStyle;Z.globalAlpha=i.globalAlpha;Z.font=i.font;Z.textAlign=i.textAlign;Z.textBaseline=i.textBaseline;Z.arcScaleX_=i.arcScaleX_;Z.arcScaleY_=i.arcScaleY_;Z.lineScale_=i.lineScale_}var B={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function g(i){var m=i.indexOf("(",3);var Z=i.indexOf(")",m+1);var j=i.substring(m+1,Z).split(",");if(j.length==4&&i.substr(3,1)=="a"){alpha=Number(j[3])}else{j[3]=1}return j}function C(Z){return parseFloat(Z)/100}function N(i,j,Z){return Math.min(Z,Math.max(j,i))}function c(AF){var j,i,Z;h=parseFloat(AF[0])/360%360;if(h<0){h++}s=N(C(AF[1]),0,1);l=N(C(AF[2]),0,1);if(s==0){j=i=Z=l}else{var m=l<0.5?l*(1+s):l+s-l*s;var AE=2*l-m;j=A(AE,m,h+1/3);i=A(AE,m,h);Z=A(AE,m,h-1/3)}return"#"+I[Math.floor(j*255)]+I[Math.floor(i*255)]+I[Math.floor(Z*255)]}function A(i,Z,j){if(j<0){j++}if(j>1){j--}if(6*j<1){return i+(Z-i)*6*j}else{if(2*j<1){return Z}else{if(3*j<2){return i+(Z-i)*(2/3-j)*6}else{return i}}}}function Y(Z){var AE,p=1;Z=String(Z);if(Z.charAt(0)=="#"){AE=Z}else{if(/^rgb/.test(Z)){var m=g(Z);var AE="#",AF;for(var j=0;j<3;j++){if(m[j].indexOf("%")!=-1){AF=Math.floor(C(m[j])*255)}else{AF=Number(m[j])}AE+=I[N(AF,0,255)]}p=m[3]}else{if(/^hsl/.test(Z)){var m=g(Z);AE=c(m);p=m[3]}else{AE=B[Z]||Z}}}return{color:AE,alpha:p}}var L={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var f={};function X(Z){if(f[Z]){return f[Z]}var m=document.createElement("div");var j=m.style;try{j.font=Z}catch(i){}return f[Z]={style:j.fontStyle||L.style,variant:j.fontVariant||L.variant,weight:j.fontWeight||L.weight,size:j.fontSize||L.size,family:j.fontFamily||L.family}}function P(j,i){var Z={};for(var AF in j){Z[AF]=j[AF]}var AE=parseFloat(i.currentStyle.fontSize),m=parseFloat(j.size);if(typeof j.size=="number"){Z.size=j.size}else{if(j.size.indexOf("px")!=-1){Z.size=m}else{if(j.size.indexOf("em")!=-1){Z.size=AE*m}else{if(j.size.indexOf("%")!=-1){Z.size=(AE/100)*m}else{if(j.size.indexOf("pt")!=-1){Z.size=m/0.75}else{Z.size=AE}}}}}Z.size*=0.981;return Z}function AA(Z){return Z.style+" "+Z.variant+" "+Z.weight+" "+Z.size+"px "+Z.family}function t(Z){switch(Z){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function W(i){this.m_=V();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=D*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=i;var Z=i.ownerDocument.createElement("div");Z.style.width=i.clientWidth+"px";Z.style.height=i.clientHeight+"px";Z.style.overflow="hidden";Z.style.position="absolute";i.appendChild(Z);this.element_=Z;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var M=W.prototype;M.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};M.beginPath=function(){this.currentPath_=[]};M.moveTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"moveTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.lineTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"lineTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.bezierCurveTo=function(j,i,AI,AH,AG,AE){var Z=this.getCoords_(AG,AE);var AF=this.getCoords_(j,i);var m=this.getCoords_(AI,AH);e(this,AF,m,Z)};function e(Z,m,j,i){Z.currentPath_.push({type:"bezierCurveTo",cp1x:m.x,cp1y:m.y,cp2x:j.x,cp2y:j.y,x:i.x,y:i.y});Z.currentX_=i.x;Z.currentY_=i.y}M.quadraticCurveTo=function(AG,j,i,Z){var AF=this.getCoords_(AG,j);var AE=this.getCoords_(i,Z);var AH={x:this.currentX_+2/3*(AF.x-this.currentX_),y:this.currentY_+2/3*(AF.y-this.currentY_)};var m={x:AH.x+(AE.x-this.currentX_)/3,y:AH.y+(AE.y-this.currentY_)/3};e(this,AH,m,AE)};M.arc=function(AJ,AH,AI,AE,i,j){AI*=D;var AN=j?"at":"wa";var AK=AJ+U(AE)*AI-F;var AM=AH+J(AE)*AI-F;var Z=AJ+U(i)*AI-F;var AL=AH+J(i)*AI-F;if(AK==Z&&!j){AK+=0.125}var m=this.getCoords_(AJ,AH);var AG=this.getCoords_(AK,AM);var AF=this.getCoords_(Z,AL);this.currentPath_.push({type:AN,x:m.x,y:m.y,radius:AI,xStart:AG.x,yStart:AG.y,xEnd:AF.x,yEnd:AF.y})};M.rect=function(j,i,Z,m){this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath()};M.strokeRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.stroke();this.currentPath_=p};M.fillRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.fill();this.currentPath_=p};M.createLinearGradient=function(i,m,Z,j){var p=new v("gradient");p.x0_=i;p.y0_=m;p.x1_=Z;p.y1_=j;return p};M.createRadialGradient=function(m,AE,j,i,p,Z){var AF=new v("gradientradial");AF.x0_=m;AF.y0_=AE;AF.r0_=j;AF.x1_=i;AF.y1_=p;AF.r1_=Z;return AF};M.drawImage=function(AO,j){var AH,AF,AJ,AV,AM,AK,AQ,AX;var AI=AO.runtimeStyle.width;var AN=AO.runtimeStyle.height;AO.runtimeStyle.width="auto";AO.runtimeStyle.height="auto";var AG=AO.width;var AT=AO.height;AO.runtimeStyle.width=AI;AO.runtimeStyle.height=AN;if(arguments.length==3){AH=arguments[1];AF=arguments[2];AM=AK=0;AQ=AJ=AG;AX=AV=AT}else{if(arguments.length==5){AH=arguments[1];AF=arguments[2];AJ=arguments[3];AV=arguments[4];AM=AK=0;AQ=AG;AX=AT}else{if(arguments.length==9){AM=arguments[1];AK=arguments[2];AQ=arguments[3];AX=arguments[4];AH=arguments[5];AF=arguments[6];AJ=arguments[7];AV=arguments[8]}else{throw Error("Invalid number of arguments")}}}var AW=this.getCoords_(AH,AF);var m=AQ/2;var i=AX/2;var AU=[];var Z=10;var AE=10;AU.push(" <g_vml_:group",' coordsize="',D*Z,",",D*AE,'"',' coordorigin="0,0"',' style="width:',Z,"px;height:",AE,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var p=[];p.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",K(AW.x/D),",","Dy=",K(AW.y/D),"");var AS=AW;var AR=this.getCoords_(AH+AJ,AF);var AP=this.getCoords_(AH,AF+AV);var AL=this.getCoords_(AH+AJ,AF+AV);AS.x=z.max(AS.x,AR.x,AP.x,AL.x);AS.y=z.max(AS.y,AR.y,AP.y,AL.y);AU.push("padding:0 ",K(AS.x/D),"px ",K(AS.y/D),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",p.join(""),", sizingmethod='clip');")}else{AU.push("top:",K(AW.y/D),"px;left:",K(AW.x/D),"px;")}AU.push(' ">','<g_vml_:image src="',AO.src,'"',' style="width:',D*AJ,"px;"," height:",D*AV,'px"',' cropleft="',AM/AG,'"',' croptop="',AK/AT,'"',' cropright="',(AG-AM-AQ)/AG,'"',' cropbottom="',(AT-AK-AX)/AT,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",AU.join(""))};M.stroke=function(AM){var m=10;var AN=10;var AE=5000;var AG={x:null,y:null};var AL={x:null,y:null};for(var AH=0;AH<this.currentPath_.length;AH+=AE){var AK=[];var AF=false;AK.push("<g_vml_:shape",' filled="',!!AM,'"',' style="position:absolute;width:',m,"px;height:",AN,'px;"',' coordorigin="0,0"',' coordsize="',D*m,",",D*AN,'"',' stroked="',!AM,'"',' path="');var AO=false;for(var AI=AH;AI<Math.min(AH+AE,this.currentPath_.length);AI++){if(AI%AE==0&&AI>0){AK.push(" m ",K(this.currentPath_[AI-1].x),",",K(this.currentPath_[AI-1].y))}var Z=this.currentPath_[AI];var AJ;switch(Z.type){case"moveTo":AJ=Z;AK.push(" m ",K(Z.x),",",K(Z.y));break;case"lineTo":AK.push(" l ",K(Z.x),",",K(Z.y));break;case"close":AK.push(" x ");Z=null;break;case"bezierCurveTo":AK.push(" c ",K(Z.cp1x),",",K(Z.cp1y),",",K(Z.cp2x),",",K(Z.cp2y),",",K(Z.x),",",K(Z.y));break;case"at":case"wa":AK.push(" ",Z.type," ",K(Z.x-this.arcScaleX_*Z.radius),",",K(Z.y-this.arcScaleY_*Z.radius)," ",K(Z.x+this.arcScaleX_*Z.radius),",",K(Z.y+this.arcScaleY_*Z.radius)," ",K(Z.xStart),",",K(Z.yStart)," ",K(Z.xEnd),",",K(Z.yEnd));break}if(Z){if(AG.x==null||Z.x<AG.x){AG.x=Z.x}if(AL.x==null||Z.x>AL.x){AL.x=Z.x}if(AG.y==null||Z.y<AG.y){AG.y=Z.y}if(AL.y==null||Z.y>AL.y){AL.y=Z.y}}}AK.push(' ">');if(!AM){R(this,AK)}else{a(this,AK,AG,AL)}AK.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",AK.join(""))}};function R(j,AE){var i=Y(j.strokeStyle);var m=i.color;var p=i.alpha*j.globalAlpha;var Z=j.lineScale_*j.lineWidth;if(Z<1){p*=Z}AE.push("<g_vml_:stroke",' opacity="',p,'"',' joinstyle="',j.lineJoin,'"',' miterlimit="',j.miterLimit,'"',' endcap="',t(j.lineCap),'"',' weight="',Z,'px"',' color="',m,'" />')}function a(AO,AG,Ah,AP){var AH=AO.fillStyle;var AY=AO.arcScaleX_;var AX=AO.arcScaleY_;var Z=AP.x-Ah.x;var m=AP.y-Ah.y;if(AH instanceof v){var AL=0;var Ac={x:0,y:0};var AU=0;var AK=1;if(AH.type_=="gradient"){var AJ=AH.x0_/AY;var j=AH.y0_/AX;var AI=AH.x1_/AY;var Aj=AH.y1_/AX;var Ag=AO.getCoords_(AJ,j);var Af=AO.getCoords_(AI,Aj);var AE=Af.x-Ag.x;var p=Af.y-Ag.y;AL=Math.atan2(AE,p)*180/Math.PI;if(AL<0){AL+=360}if(AL<0.000001){AL=0}}else{var Ag=AO.getCoords_(AH.x0_,AH.y0_);Ac={x:(Ag.x-Ah.x)/Z,y:(Ag.y-Ah.y)/m};Z/=AY*D;m/=AX*D;var Aa=z.max(Z,m);AU=2*AH.r0_/Aa;AK=2*AH.r1_/Aa-AU}var AS=AH.colors_;AS.sort(function(Ak,i){return Ak.offset-i.offset});var AN=AS.length;var AR=AS[0].color;var AQ=AS[AN-1].color;var AW=AS[0].alpha*AO.globalAlpha;var AV=AS[AN-1].alpha*AO.globalAlpha;var Ab=[];for(var Ae=0;Ae<AN;Ae++){var AM=AS[Ae];Ab.push(AM.offset*AK+AU+" "+AM.color)}AG.push('<g_vml_:fill type="',AH.type_,'"',' method="none" focus="100%"',' color="',AR,'"',' color2="',AQ,'"',' colors="',Ab.join(","),'"',' opacity="',AV,'"',' g_o_:opacity2="',AW,'"',' angle="',AL,'"',' focusposition="',Ac.x,",",Ac.y,'" />')}else{if(AH instanceof u){if(Z&&m){var AF=-Ah.x;var AZ=-Ah.y;AG.push("<g_vml_:fill",' position="',AF/Z*AY*AY,",",AZ/m*AX*AX,'"',' type="tile"',' src="',AH.src_,'" />')}}else{var Ai=Y(AO.fillStyle);var AT=Ai.color;var Ad=Ai.alpha*AO.globalAlpha;AG.push('<g_vml_:fill color="',AT,'" opacity="',Ad,'" />')}}}M.fill=function(){this.stroke(true)};M.closePath=function(){this.currentPath_.push({type:"close"})};M.getCoords_=function(j,i){var Z=this.m_;return{x:D*(j*Z[0][0]+i*Z[1][0]+Z[2][0])-F,y:D*(j*Z[0][1]+i*Z[1][1]+Z[2][1])-F}};M.save=function(){var Z={};Q(this,Z);this.aStack_.push(Z);this.mStack_.push(this.m_);this.m_=d(V(),this.m_)};M.restore=function(){if(this.aStack_.length){Q(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function H(Z){return isFinite(Z[0][0])&&isFinite(Z[0][1])&&isFinite(Z[1][0])&&isFinite(Z[1][1])&&isFinite(Z[2][0])&&isFinite(Z[2][1])}function y(i,Z,j){if(!H(Z)){return }i.m_=Z;if(j){var p=Z[0][0]*Z[1][1]-Z[0][1]*Z[1][0];i.lineScale_=k(b(p))}}M.translate=function(j,i){var Z=[[1,0,0],[0,1,0],[j,i,1]];y(this,d(Z,this.m_),false)};M.rotate=function(i){var m=U(i);var j=J(i);var Z=[[m,j,0],[-j,m,0],[0,0,1]];y(this,d(Z,this.m_),false)};M.scale=function(j,i){this.arcScaleX_*=j;this.arcScaleY_*=i;var Z=[[j,0,0],[0,i,0],[0,0,1]];y(this,d(Z,this.m_),true)};M.transform=function(p,m,AF,AE,i,Z){var j=[[p,m,0],[AF,AE,0],[i,Z,1]];y(this,d(j,this.m_),true)};M.setTransform=function(AE,p,AG,AF,j,i){var Z=[[AE,p,0],[AG,AF,0],[j,i,1]];y(this,Z,true)};M.drawText_=function(AK,AI,AH,AN,AG){var AM=this.m_,AQ=1000,i=0,AP=AQ,AF={x:0,y:0},AE=[];var Z=P(X(this.font),this.element_);var j=AA(Z);var AR=this.element_.currentStyle;var p=this.textAlign.toLowerCase();switch(p){case"left":case"center":case"right":break;case"end":p=AR.direction=="ltr"?"right":"left";break;case"start":p=AR.direction=="rtl"?"right":"left";break;default:p="left"}switch(this.textBaseline){case"hanging":case"top":AF.y=Z.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":AF.y=-Z.size/2.25;break}switch(p){case"right":i=AQ;AP=0.05;break;case"center":i=AP=AQ/2;break}var AO=this.getCoords_(AI+AF.x,AH+AF.y);AE.push('<g_vml_:line from="',-i,' 0" to="',AP,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!AG,'" stroked="',!!AG,'" style="position:absolute;width:1px;height:1px;">');if(AG){R(this,AE)}else{a(this,AE,{x:-i,y:0},{x:AP,y:Z.size})}var AL=AM[0][0].toFixed(3)+","+AM[1][0].toFixed(3)+","+AM[0][1].toFixed(3)+","+AM[1][1].toFixed(3)+",0,0";var AJ=K(AO.x/D)+","+K(AO.y/D);AE.push('<g_vml_:skew on="t" matrix="',AL,'" ',' offset="',AJ,'" origin="',i,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',AD(AK),'" style="v-text-align:',p,";font:",AD(j),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",AE.join(""))};M.fillText=function(j,Z,m,i){this.drawText_(j,Z,m,i,false)};M.strokeText=function(j,Z,m,i){this.drawText_(j,Z,m,i,true)};M.measureText=function(j){if(!this.textMeasureEl_){var Z='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",Z);this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(i.createTextNode(j));return{width:this.textMeasureEl_.offsetWidth}};M.clip=function(){};M.arcTo=function(){};M.createPattern=function(i,Z){return new u(i,Z)};function v(Z){this.type_=Z;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}v.prototype.addColorStop=function(i,Z){Z=Y(Z);this.colors_.push({offset:i,color:Z.color,alpha:Z.alpha})};function u(i,Z){q(i);switch(Z){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=Z;break;default:n("SYNTAX_ERR")}this.src_=i.src;this.width_=i.width;this.height_=i.height}function n(Z){throw new o(Z)}function q(Z){if(!Z||Z.nodeType!=1||Z.tagName!="IMG"){n("TYPE_MISMATCH_ERR")}if(Z.readyState!="complete"){n("INVALID_STATE_ERR")}}function o(Z){this.code=this[Z];this.message=Z+": DOM Exception "+this.code}var x=o.prototype=new Error;x.INDEX_SIZE_ERR=1;x.DOMSTRING_SIZE_ERR=2;x.HIERARCHY_REQUEST_ERR=3;x.WRONG_DOCUMENT_ERR=4;x.INVALID_CHARACTER_ERR=5;x.NO_DATA_ALLOWED_ERR=6;x.NO_MODIFICATION_ALLOWED_ERR=7;x.NOT_FOUND_ERR=8;x.NOT_SUPPORTED_ERR=9;x.INUSE_ATTRIBUTE_ERR=10;x.INVALID_STATE_ERR=11;x.SYNTAX_ERR=12;x.INVALID_MODIFICATION_ERR=13;x.NAMESPACE_ERR=14;x.INVALID_ACCESS_ERR=15;x.VALIDATION_ERR=16;x.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=E;CanvasRenderingContext2D=W;CanvasGradient=v;CanvasPattern=u;DOMException=o})()};
|
@@ -0,0 +1,84 @@
|
|
1
|
+
(function($){
|
2
|
+
/* hoverIntent by Brian Cherne */
|
3
|
+
$.fn.hoverIntent = function(f,g) {
|
4
|
+
// default configuration options
|
5
|
+
var cfg = {
|
6
|
+
sensitivity: 7,
|
7
|
+
interval: 100,
|
8
|
+
timeout: 0
|
9
|
+
};
|
10
|
+
// override configuration options with user supplied object
|
11
|
+
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
|
12
|
+
|
13
|
+
// instantiate variables
|
14
|
+
// cX, cY = current X and Y position of mouse, updated by mousemove event
|
15
|
+
// pX, pY = previous X and Y position of mouse, set by mouseover and polling interval
|
16
|
+
var cX, cY, pX, pY;
|
17
|
+
|
18
|
+
// A private function for getting mouse position
|
19
|
+
var track = function(ev) {
|
20
|
+
cX = ev.pageX;
|
21
|
+
cY = ev.pageY;
|
22
|
+
};
|
23
|
+
|
24
|
+
// A private function for comparing current and previous mouse position
|
25
|
+
var compare = function(ev,ob) {
|
26
|
+
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
27
|
+
// compare mouse positions to see if they've crossed the threshold
|
28
|
+
if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) {
|
29
|
+
$(ob).unbind("mousemove",track);
|
30
|
+
// set hoverIntent state to true (so mouseOut can be called)
|
31
|
+
ob.hoverIntent_s = 1;
|
32
|
+
return cfg.over.apply(ob,[ev]);
|
33
|
+
} else {
|
34
|
+
// set previous coordinates for next time
|
35
|
+
pX = cX; pY = cY;
|
36
|
+
// use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs)
|
37
|
+
ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval );
|
38
|
+
}
|
39
|
+
};
|
40
|
+
|
41
|
+
// A private function for delaying the mouseOut function
|
42
|
+
var delay = function(ev,ob) {
|
43
|
+
ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t);
|
44
|
+
ob.hoverIntent_s = 0;
|
45
|
+
return cfg.out.apply(ob,[ev]);
|
46
|
+
};
|
47
|
+
|
48
|
+
// A private function for handling mouse 'hovering'
|
49
|
+
var handleHover = function(e) {
|
50
|
+
// next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut
|
51
|
+
var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget;
|
52
|
+
while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } }
|
53
|
+
if ( p == this ) { return false; }
|
54
|
+
|
55
|
+
// copy objects to be passed into t (required for event object to be passed in IE)
|
56
|
+
var ev = jQuery.extend({},e);
|
57
|
+
var ob = this;
|
58
|
+
|
59
|
+
// cancel hoverIntent timer if it exists
|
60
|
+
if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); }
|
61
|
+
|
62
|
+
// else e.type == "onmouseover"
|
63
|
+
if (e.type == "mouseover") {
|
64
|
+
// set "previous" X and Y position based on initial entry point
|
65
|
+
pX = ev.pageX; pY = ev.pageY;
|
66
|
+
// update "current" X and Y position based on mousemove
|
67
|
+
$(ob).bind("mousemove",track);
|
68
|
+
// start polling interval (self-calling timeout) to compare mouse coordinates over time
|
69
|
+
if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );}
|
70
|
+
|
71
|
+
// else e.type == "onmouseout"
|
72
|
+
} else {
|
73
|
+
// unbind expensive mousemove event
|
74
|
+
$(ob).unbind("mousemove",track);
|
75
|
+
// if hoverIntent state is true, then call the mouseOut function after the specified delay
|
76
|
+
if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );}
|
77
|
+
}
|
78
|
+
};
|
79
|
+
|
80
|
+
// bind the function to the two event listeners
|
81
|
+
return this.mouseover(handleHover).mouseout(handleHover);
|
82
|
+
};
|
83
|
+
|
84
|
+
})(jQuery);
|
@@ -0,0 +1,392 @@
|
|
1
|
+
$(document).ready(function() {
|
2
|
+
|
3
|
+
// MENU
|
4
|
+
$(".menu-search ul li li:first-child a").css("border-top", "none");
|
5
|
+
$(".menu-search ul").supersubs({
|
6
|
+
minWidth: 15,
|
7
|
+
maxWidth: 40
|
8
|
+
}).superfish({
|
9
|
+
autoArrows: false,
|
10
|
+
dropShadows: false
|
11
|
+
});
|
12
|
+
|
13
|
+
var htmlStr = $("code").html();
|
14
|
+
$("code").text(htmlStr);
|
15
|
+
|
16
|
+
// BOX HIDE
|
17
|
+
$('span.hide').click(function() {
|
18
|
+
$(this).parent().next('.content').fadeToggle(100);
|
19
|
+
});
|
20
|
+
|
21
|
+
// TITLE SEARCH BOX
|
22
|
+
$('.box-search').hide();
|
23
|
+
$('span.search').click(function() {
|
24
|
+
$('.box-search').fadeTo(800, 1.0).end();
|
25
|
+
$('span.search').hide();
|
26
|
+
});
|
27
|
+
|
28
|
+
// THUMB OPTIONS
|
29
|
+
$("a.zoom").fancybox({
|
30
|
+
'speedIn': 600,
|
31
|
+
'speedOut': 200,
|
32
|
+
'overlayShow': true,
|
33
|
+
'overlayColor': '#000',
|
34
|
+
'titlePosition': 'over'
|
35
|
+
});
|
36
|
+
$("img.shadow").wrap("<span class='shadow'></span>");
|
37
|
+
$("img.left").wrap("<span class='shadow left'></span>");
|
38
|
+
$("img.right").wrap("<span class='shadow right'></span>");
|
39
|
+
$(function() {
|
40
|
+
$("div.thumb").hover(
|
41
|
+
function() {
|
42
|
+
$(this).children("img").fadeTo(200, 0.85).end().children("div").show();
|
43
|
+
}, function() {
|
44
|
+
$(this).children("img").fadeTo(200, 1).end().children("div").hide();
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
// SYSTEM MESSAGES
|
49
|
+
$(".messages:first-child").css({
|
50
|
+
"margin": "0 0 1px"
|
51
|
+
});
|
52
|
+
|
53
|
+
// MESSAGE BOX
|
54
|
+
$(".content .message:last-child").css({
|
55
|
+
"border-bottom": "none",
|
56
|
+
"padding": "12px 0 0"
|
57
|
+
});
|
58
|
+
|
59
|
+
if ($.browser.msie && $.browser.version.substr(0, 1) < 8) {
|
60
|
+
$(".content .message:last-child").css({
|
61
|
+
"border-bottom": "none",
|
62
|
+
"padding": "11px 0 0"
|
63
|
+
});
|
64
|
+
}
|
65
|
+
|
66
|
+
// MODAL BOXES
|
67
|
+
$(function() {
|
68
|
+
$(".modal").dialog({
|
69
|
+
autoOpen: false,
|
70
|
+
closeText: '',
|
71
|
+
resizable: false,
|
72
|
+
width: 700,
|
73
|
+
height: 500
|
74
|
+
});
|
75
|
+
|
76
|
+
$('.modalopen').click(function() {
|
77
|
+
$(".modal").dialog('open');
|
78
|
+
return false;
|
79
|
+
});
|
80
|
+
});
|
81
|
+
|
82
|
+
// TABS, ACCORDIONS, TREEVIEW & TOOLTIPS
|
83
|
+
$(".tabs").tabs({
|
84
|
+
fx: {
|
85
|
+
opacity: 'toggle'
|
86
|
+
}
|
87
|
+
});
|
88
|
+
|
89
|
+
$(".accordion").accordion({
|
90
|
+
autoHeight: false,
|
91
|
+
navigation: true
|
92
|
+
});
|
93
|
+
|
94
|
+
$(".filetree").treeview({
|
95
|
+
persist: "location",
|
96
|
+
collapsed: true
|
97
|
+
});
|
98
|
+
|
99
|
+
$(".tooltip").tipsy();
|
100
|
+
|
101
|
+
// DATATABLE
|
102
|
+
$('table.all').dataTable({
|
103
|
+
"bInfo": false,
|
104
|
+
"iDisplayLength": 5,
|
105
|
+
"aLengthMenu": [[5, 10, 25, 50, 100], [5, 10, 25, 50, 100]],
|
106
|
+
"sPaginationType": "full_numbers",
|
107
|
+
"bPaginate": true,
|
108
|
+
"aoColumnDefs": [{
|
109
|
+
bSortable: false,
|
110
|
+
aTargets: [0]}],
|
111
|
+
"sDom": 't<plf>'
|
112
|
+
});
|
113
|
+
|
114
|
+
$('table.sortsearch').dataTable({
|
115
|
+
"bInfo": false,
|
116
|
+
"bPaginate": false,
|
117
|
+
"aoColumnDefs": [{
|
118
|
+
bSortable: false,
|
119
|
+
aTargets: [0]}],
|
120
|
+
"sDom": 't<plf>'
|
121
|
+
});
|
122
|
+
|
123
|
+
$('table.sorting').dataTable({
|
124
|
+
"bInfo": false,
|
125
|
+
"bPaginate": false,
|
126
|
+
"bFilter": false,
|
127
|
+
"aoColumnDefs": [{
|
128
|
+
bSortable: false,
|
129
|
+
aTargets: [0]}],
|
130
|
+
"sDom": 't<plf>'
|
131
|
+
});
|
132
|
+
|
133
|
+
$(".dataTables_wrapper .dataTables_length select").addClass("entries");
|
134
|
+
|
135
|
+
$(function() {
|
136
|
+
$(".dataTables_paginate span.paginate_button").hover(
|
137
|
+
function() {
|
138
|
+
$(this).fadeTo(200, 0.85).end();
|
139
|
+
}, function() {
|
140
|
+
$(this).fadeTo(200, 1).end();
|
141
|
+
});
|
142
|
+
});
|
143
|
+
|
144
|
+
// CHECK ALL PAGES
|
145
|
+
$('.checkall').click(function() {
|
146
|
+
$(this).parents('table').find(':checkbox').attr('checked', this.checked);
|
147
|
+
});
|
148
|
+
|
149
|
+
// BUTTON LINKS
|
150
|
+
$("a.button").wrapInner("<span></span>");
|
151
|
+
$("a.button, button, .pager img").hover(
|
152
|
+
|
153
|
+
function() {
|
154
|
+
$(this).stop().fadeTo(200, 0.7);
|
155
|
+
}, function() {
|
156
|
+
$(this).stop().fadeTo(200, 1.0);
|
157
|
+
});
|
158
|
+
|
159
|
+
// STYLE FILE BUTTON
|
160
|
+
$("input[type=file]").wrap("<div style='display : inline-block; overflow : hidden; width : auto; height : 27px;'></div>");
|
161
|
+
$("input[type=file]").filestyle({
|
162
|
+
imageheight: 27,
|
163
|
+
imagewidth: 65,
|
164
|
+
width: 166
|
165
|
+
});
|
166
|
+
|
167
|
+
// SLIDER
|
168
|
+
$(".range-slide div.slide").each(function() {
|
169
|
+
values = $(this).attr('value').split(',');
|
170
|
+
firstVal = values[0];
|
171
|
+
secondVal = values[1];
|
172
|
+
|
173
|
+
rangeInputfirst = $(this).siblings('input.amount-first');
|
174
|
+
rangeInputsecond = $(this).siblings('input.amount-second');
|
175
|
+
|
176
|
+
$(this).slider({
|
177
|
+
values: [firstVal, secondVal],
|
178
|
+
min: parseInt($(this).attr('min'), 0),
|
179
|
+
max: parseInt($(this).attr('max'), 0),
|
180
|
+
range: true,
|
181
|
+
slide: function(event, ui) {
|
182
|
+
$(this).siblings('input.amount-first').val("" + ui.values[0]);
|
183
|
+
$(this).siblings('input.amount-second').val("" + ui.values[1]);
|
184
|
+
}
|
185
|
+
});
|
186
|
+
rangeInputfirst.val("" + $(this).slider("values", 0));
|
187
|
+
rangeInputsecond.val("" + $(this).slider("values", 1));
|
188
|
+
});
|
189
|
+
|
190
|
+
$(".signle-slide div.slide").each(function() {
|
191
|
+
value = $(this).attr('value').split(',');
|
192
|
+
firstVal = value;
|
193
|
+
|
194
|
+
rangeSpan = $(this).siblings('input.amount');
|
195
|
+
|
196
|
+
$(this).slider({
|
197
|
+
value: [firstVal],
|
198
|
+
min: parseInt($(this).attr('min'), 0),
|
199
|
+
max: parseInt($(this).attr('max'), 0),
|
200
|
+
slide: function(event, ui) {
|
201
|
+
$(this).siblings('input.amount').val("" + ui.value);
|
202
|
+
}
|
203
|
+
});
|
204
|
+
rangeSpan.val("" + $(this).slider("value"));
|
205
|
+
});
|
206
|
+
|
207
|
+
// PROGRESSBAR
|
208
|
+
$(".progressbar div").progressbar({
|
209
|
+
value: 100
|
210
|
+
});
|
211
|
+
|
212
|
+
// AUTOCOMPLETE
|
213
|
+
$(function() {
|
214
|
+
var availableTags = [
|
215
|
+
"ActionScript",
|
216
|
+
"AppleScript",
|
217
|
+
"Asp",
|
218
|
+
"BASIC",
|
219
|
+
"C",
|
220
|
+
"C++",
|
221
|
+
"Clojure",
|
222
|
+
"COBOL",
|
223
|
+
"ColdFusion",
|
224
|
+
"Erlang",
|
225
|
+
"Fortran",
|
226
|
+
"Groovy",
|
227
|
+
"Haskell",
|
228
|
+
"Java",
|
229
|
+
"JavaScript",
|
230
|
+
"Lisp",
|
231
|
+
"Perl",
|
232
|
+
"PHP",
|
233
|
+
"Python",
|
234
|
+
"Ruby",
|
235
|
+
"Scala",
|
236
|
+
"Scheme"
|
237
|
+
];
|
238
|
+
$(".complete").autocomplete({
|
239
|
+
source: availableTags
|
240
|
+
});
|
241
|
+
});
|
242
|
+
|
243
|
+
// FORMS
|
244
|
+
$(".line:odd").css({
|
245
|
+
"border-top": "2px solid #f2f4f7",
|
246
|
+
"border-bottom": "2px solid #f2f4f7"
|
247
|
+
});
|
248
|
+
$(".line:first-child").css({
|
249
|
+
"border-top": "none"
|
250
|
+
});
|
251
|
+
$(".line:last-child").css({
|
252
|
+
"border-bottom": "none"
|
253
|
+
});
|
254
|
+
|
255
|
+
$("input.datepicker").datepicker({
|
256
|
+
dateFormat: 'mm.dd.yy'
|
257
|
+
});
|
258
|
+
|
259
|
+
$("input.timepicker").datetimepicker({});
|
260
|
+
|
261
|
+
$(function() {
|
262
|
+
$('.dataTables_length input, select').not("select.multi").selectmenu({
|
263
|
+
style: 'dropdown',
|
264
|
+
transferClasses: true,
|
265
|
+
width: null
|
266
|
+
});
|
267
|
+
});
|
268
|
+
|
269
|
+
$("input[type=radio], input[type=checkbox]").each(function() {
|
270
|
+
if ($(this).parents("table").length === 0) {
|
271
|
+
$(this).customInput();
|
272
|
+
}
|
273
|
+
});
|
274
|
+
|
275
|
+
$('.hide-input input, .filter-box, .search input, .box-search input').click(function() {
|
276
|
+
if (this.value === this.defaultValue) {
|
277
|
+
this.value = '';
|
278
|
+
}
|
279
|
+
});
|
280
|
+
|
281
|
+
$('.hide-input input, .filter-box, .search input, .box-search input').blur(function() {
|
282
|
+
if (this.value === '') {
|
283
|
+
this.value = this.defaultValue;
|
284
|
+
}
|
285
|
+
});
|
286
|
+
|
287
|
+
// Input and textarea IE 7 fix
|
288
|
+
if ($.browser.msie && $.browser.version.substr(0, 1) < 8) {
|
289
|
+
$("input.tiny").wrap("<div class='input-tiny'></div>");
|
290
|
+
$("input.small").wrap("<div class='input-small'></div>");
|
291
|
+
$("input.medium").wrap("<div class='input-medium'></div>");
|
292
|
+
$("input.big").wrap("<div class='input-big'></div>");
|
293
|
+
$("input.xl").wrap("<div class='input-xl'></div>");
|
294
|
+
$("textarea.small").wrap("<div class='textarea-small'></div>");
|
295
|
+
$("textarea.medium").wrap("<div class='textarea-medium'></div>");
|
296
|
+
$("textarea.big").wrap("<div class='textarea-big'></div>");
|
297
|
+
$("textarea.xl").wrap("<div class='textarea-xl'></div>");
|
298
|
+
}
|
299
|
+
|
300
|
+
// WYSISWYG
|
301
|
+
$('.wysiwyg').wysiwyg({
|
302
|
+
css: "css/wysiwyg-editor.css",
|
303
|
+
plugins: {
|
304
|
+
rmFormat: {
|
305
|
+
rmMsWordMarkup: true
|
306
|
+
}
|
307
|
+
}
|
308
|
+
});
|
309
|
+
|
310
|
+
// TABEL STATICS
|
311
|
+
$("table.statics").each(function() {
|
312
|
+
var colors = [];
|
313
|
+
$("table.statics thead th:not(:first)").each(function() {
|
314
|
+
colors.push($(this).css("color"));
|
315
|
+
});
|
316
|
+
$(this).graphTable({
|
317
|
+
series: 'columns',
|
318
|
+
position: 'replace',
|
319
|
+
width : '100%',
|
320
|
+
height: '200px',
|
321
|
+
colors: colors
|
322
|
+
}, {
|
323
|
+
xaxis: {
|
324
|
+
tickSize: 1
|
325
|
+
}
|
326
|
+
});
|
327
|
+
});
|
328
|
+
|
329
|
+
$("table.statics-date").each(function() {
|
330
|
+
var colors = [];
|
331
|
+
var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
332
|
+
|
333
|
+
$("table.statics-date thead th:not(:first)").each(function() {
|
334
|
+
colors.push($(this).css("color"));
|
335
|
+
});
|
336
|
+
$(this).graphTable({
|
337
|
+
series: 'columns',
|
338
|
+
position: 'replace',
|
339
|
+
width : '100%',
|
340
|
+
height: '200px',
|
341
|
+
colors: colors,
|
342
|
+
xaxisTransform: function(month) {
|
343
|
+
var i = 0;
|
344
|
+
while ((i < 12) && (month != months[i])) {
|
345
|
+
i++;
|
346
|
+
}
|
347
|
+
return i;
|
348
|
+
}
|
349
|
+
}, {
|
350
|
+
xaxis: {
|
351
|
+
tickSize: 1,
|
352
|
+
tickFormatter: function(v, a) {
|
353
|
+
return months[v];
|
354
|
+
}
|
355
|
+
}
|
356
|
+
});
|
357
|
+
});
|
358
|
+
|
359
|
+
$('.flot-graph').before('<div class="space"></div>');
|
360
|
+
|
361
|
+
function showTooltip(x, y, contents) {
|
362
|
+
$('<div id="tooltip">' + contents + '</div>').css({
|
363
|
+
position: 'absolute',
|
364
|
+
display: 'none',
|
365
|
+
top: y + 5,
|
366
|
+
left: x + 5
|
367
|
+
}).appendTo("body").fadeIn("fast");
|
368
|
+
}
|
369
|
+
|
370
|
+
var previousPoint = null;
|
371
|
+
$(".flot-graph").bind("plothover", function(event, pos, item) {
|
372
|
+
$("#x").text(pos.x);
|
373
|
+
$("#y").text(pos.y);
|
374
|
+
|
375
|
+
if (item) {
|
376
|
+
if (previousPoint != item.dataIndex) {
|
377
|
+
previousPoint = item.dataIndex;
|
378
|
+
|
379
|
+
$("#tooltip").remove();
|
380
|
+
var x = item.datapoint[0],
|
381
|
+
y = item.datapoint[1];
|
382
|
+
|
383
|
+
showTooltip(item.pageX, item.pageY, "<b>" + item.series.label + "</b>: " + y);
|
384
|
+
}
|
385
|
+
}
|
386
|
+
else {
|
387
|
+
$("#tooltip").remove();
|
388
|
+
previousPoint = null;
|
389
|
+
}
|
390
|
+
});
|
391
|
+
|
392
|
+
});
|