wtails 0.1.0 → 0.2.0

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.
@@ -8,10 +8,52 @@
8
8
  <% files.each do |file, port| %>
9
9
  Wtails.run('<%= host %>', <%= port %>, filter);
10
10
  <% end %>
11
+
12
+ function doDialog(html) {
13
+ var dialog = $("#dialog");
14
+ dialog.html('<div class="dialog-content">'+html+'</div>');
15
+ dialog.dialog(
16
+ {
17
+ modal: true,
18
+ draggable: false,
19
+ resizable: false,
20
+ draggable: false,
21
+ width: 640,
22
+ height: 720,
23
+ show: {
24
+ effect: "scale",
25
+ duration: 150
26
+ },
27
+ overlay: {
28
+ opacity: 0.3, background: '#225B7F'
29
+ },
30
+ position: {
31
+ my: "center",
32
+ at: "center",
33
+ of: 'body'
34
+ },
35
+ buttons: {
36
+ "close": function(event) { $(this).dialog('close'); }
37
+ }
38
+ });
39
+ $('.ui-widget-overlay').click(function() {
40
+ dialog.dialog('close');
41
+ });
42
+
43
+ var dialog_content = $('.dialog-content');
44
+ dialog_content.parent().scrollTop(dialog_content.height());
45
+ }
46
+
11
47
  $(function() {
12
48
  $('.slider').lemmonSlider({'infinite':false, 'focusCenter': true});
13
- $('.terminal-frame').click(function() {
49
+ $('.slider li').click(function() {
14
50
  $(this).find('.terminal').append("<hr/>");
15
51
  });
52
+ $('.terminal-place').click(function(e) {
53
+ e.stopPropagation();
54
+ });
55
+ $('.terminal-place').dblclick(function(e) {
56
+ doDialog($(this).find('.terminal').html());
57
+ });
16
58
  });
17
59
  </script>
@@ -12,7 +12,7 @@
12
12
  <%= erb :_init, :locals => { :files => files, :wtailsrc => wtailsrc, :host => host } %>
13
13
  <style>
14
14
  .terminal-place {
15
- width: 240px;
15
+ width: 300px;
16
16
  }
17
17
  .terminal-frame {
18
18
  width: 200%;
@@ -4,15 +4,17 @@
4
4
  <meta charset="UTF-8">
5
5
  <title>Wtails</title>
6
6
  <link rel="stylesheet" href="/css/style.css"/>
7
+ <link rel="stylesheet" href="/css/jquery-ui-1.10.1.custom.min.css"/>
7
8
  <link rel="icon" href="/images/favicon.ico">
8
9
  <script type="text/javascript" src="/js/jquery.min.js"></script>
10
+ <script type="text/javascript" src="/js/jquery-ui-1.10.1.custom.min.js"></script>
9
11
  <script type="text/javascript" src="/js/lemmon-slider.js"></script>
10
12
  <script type="text/javascript" src="/js/tinycon.js"></script>
11
13
  <script type="text/javascript" src="/js/wtails.js"></script>
12
14
  <%= erb :_init, :locals => { :files => files, :wtailsrc => wtailsrc, :host => host } %>
13
15
  <style>
14
16
  .terminal-place {
15
- width: 480px;
17
+ width: 600px;
16
18
  }
17
19
  </style>
18
20
  </head>
@@ -29,10 +31,8 @@
29
31
  <%= erb :_pane, :locals => { :files => files, :terminal_width => 480 } %>
30
32
  </div>
31
33
  </div>
34
+ <div id="dialog" style="display: none;">
35
+ dialog
36
+ </div>
32
37
  </body>
33
- <script>
34
- $(function() {
35
- $('.foobar').click(function(){ console.log("clicked!"); });
36
- });
37
- </script>
38
38
  </html>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wtails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Naoyuki HIRAYAMA
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-02-08 00:00:00 Z
18
+ date: 2013-02-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: eventmachine
@@ -140,8 +140,27 @@ files:
140
140
  - lib/wtails/version.rb
141
141
  - lib/wtails/web_server.rb
142
142
  - lib/wtails/web_socket.rb
143
+ - public/css/images/animated-overlay.gif
144
+ - public/css/images/ui-bg_flat_30_cccccc_40x100.png
145
+ - public/css/images/ui-bg_flat_50_5c5c5c_40x100.png
146
+ - public/css/images/ui-bg_glass_20_555555_1x400.png
147
+ - public/css/images/ui-bg_glass_40_0078a3_1x400.png
148
+ - public/css/images/ui-bg_glass_40_ffc73d_1x400.png
149
+ - public/css/images/ui-bg_gloss-wave_25_333333_500x100.png
150
+ - public/css/images/ui-bg_highlight-soft_80_eeeeee_1x100.png
151
+ - public/css/images/ui-bg_inset-soft_25_000000_1x100.png
152
+ - public/css/images/ui-bg_inset-soft_30_f58400_1x100.png
153
+ - public/css/images/ui-icons_222222_256x240.png
154
+ - public/css/images/ui-icons_4b8e0b_256x240.png
155
+ - public/css/images/ui-icons_a83300_256x240.png
156
+ - public/css/images/ui-icons_cccccc_256x240.png
157
+ - public/css/images/ui-icons_ffffff_256x240.png
158
+ - public/css/jquery-ui-1.10.1.custom.min.css
143
159
  - public/css/style.css
144
160
  - public/images/favicon.ico
161
+ - public/js/jquery-ui-1.10.1.custom.js
162
+ - public/js/jquery-ui-1.10.1.custom.min.js
163
+ - public/js/jquery.js
145
164
  - public/js/jquery.min.js
146
165
  - public/js/lemmon-slider.js
147
166
  - public/js/tinycon.js