browser_app_base 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browser_app_base/version.rb +1 -1
- data/lib/template/config.ru +1 -1
- data/lib/template/index.html +6 -3
- data/lib/template/js/main.js +26 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e5ff9237fd7823d8fef3d11b63e43cc65129318f9e77d161d835d0d769efda
|
4
|
+
data.tar.gz: 547b18815dc4d1bd495fbaa894fbb61d94af21ae471ee6f05629fd819838b6dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ec9f83afee710c1fe4aa984823c7cded71ec3ca24dd586c24c428480156c4a37a7274de7feba4fd7890c7eae2964b6706fc83e53a3d9afe234f770b35323a91
|
7
|
+
data.tar.gz: 49f96d43d8eab8f61ccfc60b7506302d137193965b0f47cdf794c914b7d73e9f232b07b3413d128c4e1e2117a4f52ea6dd15a03d1e0fec452d3736a48a278b4f
|
data/lib/template/config.ru
CHANGED
data/lib/template/index.html
CHANGED
@@ -11,12 +11,15 @@
|
|
11
11
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
12
12
|
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
|
13
13
|
|
14
|
-
<script src="http://localhost:
|
15
|
-
<link rel="stylesheet" href="http://localhost:
|
14
|
+
<script src="http://localhost:55974/js/main.js"></script>
|
15
|
+
<link rel="stylesheet" href="http://localhost:55974/css/index.css" type="text/css">
|
16
16
|
</head>
|
17
17
|
|
18
18
|
<body>
|
19
|
-
<
|
19
|
+
<div id="msg_dialog" style="display:none;">
|
20
|
+
<div id="msg_text">message</div>
|
21
|
+
</div>
|
22
|
+
<h4>GrepFind</h4>
|
20
23
|
<hr>
|
21
24
|
<table>
|
22
25
|
<tr>
|
data/lib/template/js/main.js
CHANGED
@@ -5,6 +5,27 @@ var $auto_scroll = true;
|
|
5
5
|
var dialog = null;
|
6
6
|
|
7
7
|
function open_dialog(msg) {
|
8
|
+
console.log("msg=" + msg);
|
9
|
+
$("#msg_text").html(msg);
|
10
|
+
$("#msg_dialog").dialog({
|
11
|
+
modal: true
|
12
|
+
, show: "slide" //表示時のアニメーション
|
13
|
+
, hide: "slide" //閉じた時のアニメーション
|
14
|
+
, title: "Message" //ダイアログのタイトル
|
15
|
+
, width: 400 //ダイアログの横幅
|
16
|
+
, height: 200 //ダイアログの高さ
|
17
|
+
, resizable: true //リサイズ可
|
18
|
+
, closeOnEscape: false //[ESC]キーで閉じられなくする
|
19
|
+
, draggable: true //ダイアログの移動を可に
|
20
|
+
, buttons: {
|
21
|
+
"OK": function () { //Cancelボタン
|
22
|
+
$(this).dialog("close");
|
23
|
+
}
|
24
|
+
}
|
25
|
+
});
|
26
|
+
}
|
27
|
+
|
28
|
+
function open_dialog_org(msg) {
|
8
29
|
var top = window.screenTop + 10;
|
9
30
|
var left = window.screenLeft + 10;
|
10
31
|
if (dialog != null) {
|
@@ -80,7 +101,7 @@ function autocomp(id, file_kind) {
|
|
80
101
|
},
|
81
102
|
source: function (req, resp) {
|
82
103
|
$.ajax({
|
83
|
-
url: "http://localhost:
|
104
|
+
url: "http://localhost:55974/search?path=" + $("#" + id).val() + "&kind=" + file_kind,
|
84
105
|
type: "GET",
|
85
106
|
cache: false,
|
86
107
|
dataType: "json",
|
@@ -255,19 +276,19 @@ function openFile(file) {
|
|
255
276
|
// 起動時の処理
|
256
277
|
$(document).ready(function () {
|
257
278
|
// サーバに接続
|
258
|
-
server_connect("ws://localhost:
|
279
|
+
server_connect("ws://localhost:55974/wsserver")
|
259
280
|
// ウインドウサイズ
|
260
281
|
var width = 800;
|
261
282
|
var height = 600;
|
262
|
-
$(window).resize(function() {
|
263
|
-
$(".outarea").height(
|
283
|
+
$(window).resize(function () {
|
284
|
+
$(".outarea").height($(window).height() - 300);
|
264
285
|
});
|
265
286
|
// ウインドウの位置
|
266
287
|
$(function () {
|
267
288
|
window.resizeTo(width, height);
|
268
289
|
window.moveTo((window.screen.width / 2) - (width / 2), (screen.height / 2) - (height / 2));
|
269
290
|
//window.moveTo(0,0);
|
270
|
-
$(".outarea").height(
|
291
|
+
$(".outarea").height($(window).height() - 300);
|
271
292
|
});
|
272
293
|
|
273
294
|
$('.outarea').scroll(function () {
|