cpee 1.3.177 → 1.3.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/ui.css +20 -3
  3. data/cockpit/{lib → css}/wfadaptor.css +0 -0
  4. data/cockpit/index.html +47 -22
  5. data/cockpit/js/details.js +18 -18
  6. data/cockpit/js/instance.js +50 -9
  7. data/cockpit/js/parameters.js +16 -15
  8. data/cockpit/js/ui.js +1 -4
  9. data/cockpit/js/wfadaptor.cpee.js +3 -20
  10. data/cockpit/{lib → js}/wfadaptor.js +39 -15
  11. data/cockpit/rngtest.html +14 -35
  12. data/cockpit/rngtest.rng +17 -39
  13. data/cockpit/rngtest.xml +7 -6
  14. data/cockpit/test.html +46 -0
  15. data/cockpit/testsets/Infinity.xml +28 -0
  16. data/cockpit/testsets/testsets.xml +1 -0
  17. data/cpee.gemspec +1 -1
  18. data/lib/cpee/controller.rb +8 -8
  19. data/lib/cpee/handler_properties.rb +1 -0
  20. data/lib/cpee/implementation.rb +9 -0
  21. data/lib/engine.xml +3 -3
  22. data/server/resources/topics.xml +3 -0
  23. data/test/{cb.rb → callback.rb} +0 -0
  24. metadata +8 -103
  25. data/cockpit/lib/custommenu.css +0 -84
  26. data/cockpit/lib/custommenu.js +0 -101
  27. data/cockpit/lib/jquery.browser.js +0 -40
  28. data/cockpit/lib/jquery.caret.min.js +0 -10
  29. data/cockpit/lib/jquery.cookie.js +0 -117
  30. data/cockpit/lib/jquery.min.js +0 -4
  31. data/cockpit/lib/jquery.svg.min.js +0 -6
  32. data/cockpit/lib/jquery.svgdom.min.js +0 -6
  33. data/cockpit/lib/parsequery.js +0 -19
  34. data/cockpit/lib/printf.js +0 -368
  35. data/cockpit/lib/relaxngui.js +0 -4
  36. data/cockpit/lib/strftime.min.js +0 -1
  37. data/cockpit/lib/ui.css +0 -261
  38. data/cockpit/lib/ui.js +0 -114
  39. data/cockpit/lib/underscore.min.js +0 -27
  40. data/cockpit/lib/util.js +0 -58
  41. data/cockpit/lib/wfadaptor-doc/demo1.html +0 -517
  42. data/cockpit/lib/wfadaptor-doc/demo2.html +0 -84
  43. data/cockpit/lib/wfadaptor-doc/index.html +0 -54
  44. data/server/instances/1/properties.xml +0 -113
  45. data/server/instances/10/properties.xml +0 -145
  46. data/server/instances/11/properties.xml +0 -169
  47. data/server/instances/12/properties.xml +0 -44
  48. data/server/instances/13/properties.xml +0 -146
  49. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +0 -1
  50. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +0 -1
  51. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/subscription.xml +0 -23
  52. data/server/instances/14/properties.xml +0 -332
  53. data/server/instances/15/properties.xml +0 -44
  54. data/server/instances/16/properties.xml +0 -44
  55. data/server/instances/17/properties.xml +0 -44
  56. data/server/instances/18/properties.xml +0 -45
  57. data/server/instances/19/properties.xml +0 -45
  58. data/server/instances/2/properties.xml +0 -230
  59. data/server/instances/20/properties.xml +0 -46
  60. data/server/instances/21/properties.xml +0 -46
  61. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +0 -1
  62. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +0 -1
  63. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +0 -23
  64. data/server/instances/22/properties.xml +0 -112
  65. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +0 -1
  66. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +0 -1
  67. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +0 -23
  68. data/server/instances/23/properties.xml +0 -148
  69. data/server/instances/24/properties.xml +0 -66
  70. data/server/instances/25/properties.xml +0 -46
  71. data/server/instances/26/properties.xml +0 -112
  72. data/server/instances/27/properties.xml +0 -212
  73. data/server/instances/28/properties.xml +0 -363
  74. data/server/instances/29/properties.xml +0 -148
  75. data/server/instances/3/properties.xml +0 -109
  76. data/server/instances/30/properties.xml +0 -150
  77. data/server/instances/31/properties.xml +0 -52
  78. data/server/instances/32/properties.xml +0 -52
  79. data/server/instances/33/properties.xml +0 -60
  80. data/server/instances/34/properties.xml +0 -148
  81. data/server/instances/35/properties.xml +0 -148
  82. data/server/instances/36/properties.xml +0 -150
  83. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret +0 -1
  84. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret +0 -1
  85. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml +0 -33
  86. data/server/instances/37/properties.xml +0 -57
  87. data/server/instances/38/properties.xml +0 -46
  88. data/server/instances/39/properties.xml +0 -58
  89. data/server/instances/4/properties.xml +0 -43
  90. data/server/instances/40/properties.xml +0 -148
  91. data/server/instances/41/properties.xml +0 -46
  92. data/server/instances/42/properties.xml +0 -148
  93. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/consumer-secret +0 -1
  94. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/producer-secret +0 -1
  95. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/subscription.xml +0 -34
  96. data/server/instances/43/properties.xml +0 -148
  97. data/server/instances/44/properties.xml +0 -148
  98. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/consumer-secret +0 -1
  99. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/producer-secret +0 -1
  100. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/subscription.xml +0 -34
  101. data/server/instances/45/properties.xml +0 -148
  102. data/server/instances/46/properties.xml +0 -46
  103. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/consumer-secret +0 -1
  104. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/producer-secret +0 -1
  105. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/subscription.xml +0 -34
  106. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/consumer-secret +0 -1
  107. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/producer-secret +0 -1
  108. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/subscription.xml +0 -34
  109. data/server/instances/47/properties.xml +0 -148
  110. data/server/instances/5/properties.xml +0 -23
  111. data/server/instances/6/properties.xml +0 -203
  112. data/server/instances/7/properties.xml +0 -149
  113. data/server/instances/8/properties.xml +0 -145
  114. data/server/instances/9/properties.xml +0 -145
  115. data/server/server.pid +0 -1
  116. data/test/delete.rb +0 -27
  117. data/test/load.rb +0 -55
  118. data/test/testset.xml +0 -297
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.177
4
+ version: 1.3.178
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-03-02 00:00:00.000000000 Z
13
+ date: 2015-08-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -89,41 +89,24 @@ files:
89
89
  - cockpit/contrib/transformation2.xsl
90
90
  - cockpit/contrib/tree_example.svg
91
91
  - cockpit/css/ui.css
92
+ - cockpit/css/wfadaptor.css
92
93
  - cockpit/index.html
93
94
  - cockpit/js/details.js
94
95
  - cockpit/js/instance.js
95
96
  - cockpit/js/parameters.js
96
97
  - cockpit/js/ui.js
97
98
  - cockpit/js/wfadaptor.cpee.js
98
- - cockpit/lib/custommenu.css
99
- - cockpit/lib/custommenu.js
100
- - cockpit/lib/jquery.browser.js
101
- - cockpit/lib/jquery.caret.min.js
102
- - cockpit/lib/jquery.cookie.js
103
- - cockpit/lib/jquery.min.js
104
- - cockpit/lib/jquery.svg.min.js
105
- - cockpit/lib/jquery.svgdom.min.js
106
- - cockpit/lib/parsequery.js
107
- - cockpit/lib/printf.js
108
- - cockpit/lib/relaxngui.js
109
- - cockpit/lib/strftime.min.js
110
- - cockpit/lib/ui.css
111
- - cockpit/lib/ui.js
112
- - cockpit/lib/underscore.min.js
113
- - cockpit/lib/util.js
114
- - cockpit/lib/wfadaptor-doc/demo1.html
115
- - cockpit/lib/wfadaptor-doc/demo2.html
116
- - cockpit/lib/wfadaptor-doc/index.html
117
- - cockpit/lib/wfadaptor.css
118
- - cockpit/lib/wfadaptor.js
99
+ - cockpit/js/wfadaptor.js
119
100
  - cockpit/rngtest.html
120
101
  - cockpit/rngtest.rng
121
102
  - cockpit/rngtest.xml
103
+ - cockpit/test.html
122
104
  - cockpit/testsets/CPEE.xml
123
105
  - cockpit/testsets/Concurrent.xml
124
106
  - cockpit/testsets/Coopis Testset.xml
125
107
  - cockpit/testsets/Endpoints and Data Manipulation.xml
126
108
  - cockpit/testsets/ICSOC Testset.xml
109
+ - cockpit/testsets/Infinity.xml
127
110
  - cockpit/testsets/Linear.xml
128
111
  - cockpit/testsets/Mangler 1.xml
129
112
  - cockpit/testsets/Mangler 2.xml
@@ -174,77 +157,6 @@ files:
174
157
  - lib/engine/instances.rng
175
158
  - server/handlerwrappers/default.rb
176
159
  - server/handlerwrappers/soap.rb
177
- - server/instances/1/properties.xml
178
- - server/instances/10/properties.xml
179
- - server/instances/11/properties.xml
180
- - server/instances/12/properties.xml
181
- - server/instances/13/properties.xml
182
- - server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret
183
- - server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret
184
- - server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/subscription.xml
185
- - server/instances/14/properties.xml
186
- - server/instances/15/properties.xml
187
- - server/instances/16/properties.xml
188
- - server/instances/17/properties.xml
189
- - server/instances/18/properties.xml
190
- - server/instances/19/properties.xml
191
- - server/instances/2/properties.xml
192
- - server/instances/20/properties.xml
193
- - server/instances/21/properties.xml
194
- - server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret
195
- - server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret
196
- - server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml
197
- - server/instances/22/properties.xml
198
- - server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret
199
- - server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret
200
- - server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml
201
- - server/instances/23/properties.xml
202
- - server/instances/24/properties.xml
203
- - server/instances/25/properties.xml
204
- - server/instances/26/properties.xml
205
- - server/instances/27/properties.xml
206
- - server/instances/28/properties.xml
207
- - server/instances/29/properties.xml
208
- - server/instances/3/properties.xml
209
- - server/instances/30/properties.xml
210
- - server/instances/31/properties.xml
211
- - server/instances/32/properties.xml
212
- - server/instances/33/properties.xml
213
- - server/instances/34/properties.xml
214
- - server/instances/35/properties.xml
215
- - server/instances/36/properties.xml
216
- - server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret
217
- - server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret
218
- - server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml
219
- - server/instances/37/properties.xml
220
- - server/instances/38/properties.xml
221
- - server/instances/39/properties.xml
222
- - server/instances/4/properties.xml
223
- - server/instances/40/properties.xml
224
- - server/instances/41/properties.xml
225
- - server/instances/42/properties.xml
226
- - server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/consumer-secret
227
- - server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/producer-secret
228
- - server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/subscription.xml
229
- - server/instances/43/properties.xml
230
- - server/instances/44/properties.xml
231
- - server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/consumer-secret
232
- - server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/producer-secret
233
- - server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/subscription.xml
234
- - server/instances/45/properties.xml
235
- - server/instances/46/properties.xml
236
- - server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/consumer-secret
237
- - server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/producer-secret
238
- - server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/subscription.xml
239
- - server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/consumer-secret
240
- - server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/producer-secret
241
- - server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/subscription.xml
242
- - server/instances/47/properties.xml
243
- - server/instances/5/properties.xml
244
- - server/instances/6/properties.xml
245
- - server/instances/7/properties.xml
246
- - server/instances/8/properties.xml
247
- - server/instances/9/properties.xml
248
160
  - server/resources/empty_dslx.xml
249
161
  - server/resources/properties.init
250
162
  - server/resources/properties.schema.active
@@ -253,12 +165,8 @@ files:
253
165
  - server/resources/topics.xml
254
166
  - server/resources/transformation.xml
255
167
  - server/resources/transformation_dslx.xsl
256
- - server/server.pid
257
168
  - server/server.rb
258
- - test/cb.rb
259
- - test/delete.rb
260
- - test/load.rb
261
- - test/testset.xml
169
+ - test/callback.rb
262
170
  homepage: http://cpee.org/
263
171
  licenses:
264
172
  - LGPL-3
@@ -285,7 +193,4 @@ specification_version: 4
285
193
  summary: Preliminary release of cloud process execution engine (cpee). If you just
286
194
  need workflow execution, without a rest/xmpp service exposing it, then use WEEL
287
195
  test_files:
288
- - test/testset.xml
289
- - test/delete.rb
290
- - test/load.rb
291
- - test/cb.rb
196
+ - test/callback.rb
@@ -1,84 +0,0 @@
1
- /*
2
- This file is part of CPEE.
3
-
4
- CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
6
- either version 3 of the License, or (at your option) any later version.
7
-
8
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
-
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
14
- <http://www.gnu.org/licenses/>.
15
- */
16
-
17
- div.contextmenu, div.menu {
18
- padding: 0;
19
- margin: 0;
20
- z-index: 100000;
21
- position: absolute;
22
- display:none;
23
- background: Menu;
24
- border: 1px solid ActiveBorder;
25
- -moz-box-sizing: border-box;
26
- -webkit-box-sizing: border-box;
27
- box-sizing: border-box;
28
- box-shadow: 0.1em 0.1em 0.1em ThreeDShadow;
29
- }
30
-
31
- table.contextmenu {
32
- border-collapse:collapse;
33
- border-spacing: 0;
34
- border: 0 none;
35
- padding: 0;
36
- margin: 0;
37
- }
38
-
39
- tr.contextmenuheader {
40
- font-style:italic;
41
- color: GrayText;
42
- font-size: small;
43
- }
44
-
45
- tr.contextmenuheader > td{
46
- padding-left: 0.5em;
47
- padding-right: 1em;
48
- }
49
- tr.contextmenuheader:not(:first-child) {
50
- border-top: 1px solid ActiveBorder;
51
- }
52
-
53
- div.menu > div {
54
- height: 1.5em;
55
- }
56
-
57
- tr.contextmenuitem, div.menu > div {
58
- font-size: small;
59
- color: MenuText;
60
- }
61
- tr.contextmenuitem:hover, div.menu > div:hover {
62
- background-color:Highlight;
63
- color: HighlightText;
64
- }
65
- tr.contextmenuitem > td, div.menu > div {
66
- padding: 0;
67
- margin: 0;
68
- padding-left: 0.5em;
69
- padding-right: 1em;
70
- }
71
- tr.contextmenuitem > .contextmenuicon {
72
- margin-left: 0.7em;
73
- padding-right: 0em;
74
- }
75
- tr.contextmenuitem > .contextmenuicon div {
76
- height: 1.5em;
77
- width: 1.5em;
78
- vertical-align:bottom;
79
- }
80
- tr.contextmenuitem > .contextmenuicon div svg {
81
- height: 1.5em;
82
- width: 1.5em;
83
- vertical-align:bottom;
84
- }
@@ -1,101 +0,0 @@
1
- /*
2
- This file is part of CPEE.
3
-
4
- CPEE is free software: you can redistribute it and/or modify it under the terms
5
- of the GNU General Public License as published by the Free Software Foundation,
6
- either version 3 of the License, or (at your option) any later version.
7
-
8
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
9
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
11
-
12
- You should have received a copy of the GNU General Public License along with
13
- CPEE (file COPYING in the main directory). If not, see
14
- <http://www.gnu.org/licenses/>.
15
- */
16
-
17
- function CustomMenu(e) {
18
- var target = $(e.target);
19
- var x = e.pageX;
20
- var y = e.pageY;
21
- var remove = function(event) {};
22
- this.remove = remove;
23
- e.stopPropagation();
24
-
25
- this.contextmenu = function(items) {
26
- remove = function(event) {
27
- if (!event) {
28
- $('.contextmenu:first').remove();
29
- $('body', document).unbind('mousedown',remove);
30
- return;
31
- }
32
-
33
- if($(event.target).parent('tr.contextmenuitem') && (event.button == 0)) { $(event.target).click(); }
34
- $('.contextmenu:first').remove();
35
- $('body', document).unbind('mousedown',remove);
36
- }
37
- $('body', document).bind('mousedown',remove);
38
-
39
- if($('div.contextmenu').length > 0) remove();
40
- var div = $('<div class="contextmenu"><table class="contextmenu"/></div>');
41
- for(head in items) {
42
- div.children(':first').append('<tr class="contextmenuheader"><td colspan="2">' + head + '</td></tr>');
43
- for(item in items[head]) {
44
- var icon = null;
45
- if(items[head][item].menu_icon) {
46
- icon = $X('<svg xmlns="http://www.w3.org/2000/svg" version="1.1">' +
47
- '<g transform="translate(1,1) scale(0.5, 0.5)"/>' +
48
- '</svg>');
49
- icon.children('g').append(items[head][item].menu_icon().children());
50
- icon = icon.serializeXML();
51
- }
52
- var row = $('<tr class="contextmenuitem"><td class="contextmenuicon"><div>' + (icon == null ? '' : icon) + '</div></td><td>' + items[head][item].label + '</td></tr>');
53
- div.children(':first').append(row);
54
- row.bind('click', items[head][item], function(event){
55
- event.data.function_call.apply(null, event.data.params);
56
- });
57
- }
58
- }
59
- div.css({'left':x+5,'top':y+5, 'display':'block'});
60
- $('body', document).append(div);
61
- if(($(window).height() < (y + div.height()))) { // contextmenu is position
62
- div.css({'top':$(window).height()-div.height()-5});
63
- }
64
- if((document.body.clientWidth < (x + div.width())) && (x-div.width()-5 >= 0)) { // contextmenu is position
65
- div.css({'left':x-div.width()-5});
66
- }
67
- }
68
-
69
- this.menu = function(menu,call) {
70
- remove = function(event) {
71
- if ($(event.target).parent('div.menu') && (event.button == 0)) { $(event.target).click(); }
72
- menu.hide();
73
- $('body', document).unbind('mousedown',remove);
74
- $("div.menuitem",$(menu)).each(function(ind,ele){
75
- $(ele).unbind('click',mitemclick);
76
- });
77
- }
78
-
79
- menu.show();
80
- var mitemclick = function(ele){
81
- $("div.menuitem[data-selected=selected]",$(menu)).each(function(ind,rem){ $(rem).removeAttr('data-selected'); });
82
- $(ele.target).attr('data-selected','selected');
83
- call(ele.target);
84
- };
85
- $('body', document).bind('mousedown',remove);
86
-
87
- $("div.menuitem",$(menu)).each(function(ind,ele){
88
- $(ele).bind('click',mitemclick);
89
- });
90
-
91
- var off = target.offset();
92
-
93
- menu.css({'left':off.left,'top':off.top+target.outerHeight() + 1,'min-width': target.width()});
94
- if(($(window).height() < (y + menu.height()))) {
95
- menu.css({'top':$(window).height()-menu.height()-5});
96
- }
97
- if((document.body.clientWidth < (x + menu.width())) && (x-menu.width()-5 >= 0)) {
98
- menu.css({'left':x-menu.width()-5});
99
- }
100
- }
101
- }
@@ -1,40 +0,0 @@
1
- $.browser = {
2
- init: function () {
3
- this.name = this.searchString(this.dataBrowser) || "Other";
4
- this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown";
5
- },
6
- searchString: function (data) {
7
- for (var i = 0; i < data.length; i++) {
8
- var dataString = data[i].string;
9
- this.versionSearchString = data[i].subString;
10
-
11
- if (dataString.indexOf(data[i].subString) !== -1) {
12
- return data[i].identity;
13
- }
14
- }
15
- },
16
- searchVersion: function (dataString) {
17
- var index = dataString.indexOf(this.versionSearchString);
18
- if (index === -1) {
19
- return;
20
- }
21
-
22
- var rv = dataString.indexOf("rv:");
23
- if (this.versionSearchString === "Trident" && rv !== -1) {
24
- return parseFloat(dataString.substring(rv + 3));
25
- } else {
26
- return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
27
- }
28
- },
29
-
30
- dataBrowser: [
31
- {string: navigator.userAgent, subString: "Chrome", identity: "Chrome"},
32
- {string: navigator.userAgent, subString: "MSIE", identity: "Explorer"},
33
- {string: navigator.userAgent, subString: "Trident", identity: "Explorer"},
34
- {string: navigator.userAgent, subString: "Firefox", identity: "Firefox"},
35
- {string: navigator.userAgent, subString: "Safari", identity: "Safari"},
36
- {string: navigator.userAgent, subString: "Opera", identity: "Opera"}
37
- ]
38
- };
39
- $.browser.init();
40
-
@@ -1,10 +0,0 @@
1
- /*
2
- *
3
- * Copyright (c) 2010 C. F., Wong (<a href="http://cloudgen.w0ng.hk">Cloudgen Examplet Store</a>)
4
- * Licensed under the MIT License:
5
- * http://www.opensource.org/licenses/mit-license.php
6
- *
7
- */
8
- (function(k,e,i,j){k.fn.caret=function(b,l){var a,c,f=this[0],d=k.browser.msie;if(typeof b==="object"&&typeof b.start==="number"&&typeof b.end==="number"){a=b.start;c=b.end}else if(typeof b==="number"&&typeof l==="number"){a=b;c=l}else if(typeof b==="string")if((a=f.value.indexOf(b))>-1)c=a+b[e];else a=null;else if(Object.prototype.toString.call(b)==="[object RegExp]"){b=b.exec(f.value);if(b!=null){a=b.index;c=a+b[0][e]}}if(typeof a!="undefined"){if(d){d=this[0].createTextRange();d.collapse(true);
9
- d.moveStart("character",a);d.moveEnd("character",c-a);d.select()}else{this[0].selectionStart=a;this[0].selectionEnd=c}this[0].focus();return this}else{if(d){c=document.selection;if(this[0].tagName.toLowerCase()!="textarea"){d=this.val();a=c[i]()[j]();a.moveEnd("character",d[e]);var g=a.text==""?d[e]:d.lastIndexOf(a.text);a=c[i]()[j]();a.moveStart("character",-d[e]);var h=a.text[e]}else{a=c[i]();c=a[j]();c.moveToElementText(this[0]);c.setEndPoint("EndToEnd",a);g=c.text[e]-a.text[e];h=g+a.text[e]}}else{g=
10
- f.selectionStart;h=f.selectionEnd}a=f.value.substring(g,h);return{start:g,end:h,text:a,replace:function(m){return f.value.substring(0,g)+m+f.value.substring(h,f.value[e])}}}}})(jQuery,"length","createRange","duplicate");
@@ -1,117 +0,0 @@
1
- /*!
2
- * jQuery Cookie Plugin v1.4.0
3
- * https://github.com/carhartl/jquery-cookie
4
- *
5
- * Copyright 2013 Klaus Hartl
6
- * Released under the MIT license
7
- */
8
- (function (factory) {
9
- if (typeof define === 'function' && define.amd) {
10
- // AMD. Register as anonymous module.
11
- define(['jquery'], factory);
12
- } else {
13
- // Browser globals.
14
- factory(jQuery);
15
- }
16
- }(function ($) {
17
-
18
- var pluses = /\+/g;
19
-
20
- function encode(s) {
21
- return config.raw ? s : encodeURIComponent(s);
22
- }
23
-
24
- function decode(s) {
25
- return config.raw ? s : decodeURIComponent(s);
26
- }
27
-
28
- function stringifyCookieValue(value) {
29
- return encode(config.json ? JSON.stringify(value) : String(value));
30
- }
31
-
32
- function parseCookieValue(s) {
33
- if (s.indexOf('"') === 0) {
34
- // This is a quoted cookie as according to RFC2068, unescape...
35
- s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
36
- }
37
-
38
- try {
39
- // Replace server-side written pluses with spaces.
40
- // If we can't decode the cookie, ignore it, it's unusable.
41
- s = decodeURIComponent(s.replace(pluses, ' '));
42
- } catch(e) {
43
- return;
44
- }
45
-
46
- try {
47
- // If we can't parse the cookie, ignore it, it's unusable.
48
- return config.json ? JSON.parse(s) : s;
49
- } catch(e) {}
50
- }
51
-
52
- function read(s, converter) {
53
- var value = config.raw ? s : parseCookieValue(s);
54
- return $.isFunction(converter) ? converter(value) : value;
55
- }
56
-
57
- var config = $.cookie = function (key, value, options) {
58
-
59
- // Write
60
- if (value !== undefined && !$.isFunction(value)) {
61
- options = $.extend({}, config.defaults, options);
62
-
63
- if (typeof options.expires === 'number') {
64
- var days = options.expires, t = options.expires = new Date();
65
- t.setDate(t.getDate() + days);
66
- }
67
-
68
- return (document.cookie = [
69
- encode(key), '=', stringifyCookieValue(value),
70
- options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
71
- options.path ? '; path=' + options.path : '',
72
- options.domain ? '; domain=' + options.domain : '',
73
- options.secure ? '; secure' : ''
74
- ].join(''));
75
- }
76
-
77
- // Read
78
-
79
- var result = key ? undefined : {};
80
-
81
- // To prevent the for loop in the first place assign an empty array
82
- // in case there are no cookies at all. Also prevents odd result when
83
- // calling $.cookie().
84
- var cookies = document.cookie ? document.cookie.split('; ') : [];
85
-
86
- for (var i = 0, l = cookies.length; i < l; i++) {
87
- var parts = cookies[i].split('=');
88
- var name = decode(parts.shift());
89
- var cookie = parts.join('=');
90
-
91
- if (key && key === name) {
92
- // If second argument (value) is a function it's a converter...
93
- result = read(cookie, value);
94
- break;
95
- }
96
-
97
- // Prevent storing a cookie that we couldn't decode.
98
- if (!key && (cookie = read(cookie)) !== undefined) {
99
- result[name] = cookie;
100
- }
101
- }
102
-
103
- return result;
104
- };
105
-
106
- config.defaults = {};
107
-
108
- $.removeCookie = function (key, options) {
109
- if ($.cookie(key) !== undefined) {
110
- // Must not alter options, thus extending a fresh object...
111
- $.cookie(key, '', $.extend({}, options, { expires: -1 }));
112
- return true;
113
- }
114
- return false;
115
- };
116
-
117
- }));