opal-httpget 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opal/httpget/version.rb +1 -1
- data/lib/opal/httpget.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f9bbc00f219b1639088a2d92f32e874b1dd0576d306c885cf3b42da29785591
|
4
|
+
data.tar.gz: '083188ee196fd95ac79efa7ec3f30d6afca0976632087f36713836e1ffd5dfd7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8afcaf2d802fea8fcfc45b600f52ba00b0c3348d4ef1d4af99d6c254e17883aa099b728ddcfde80a40372ae832dfd63d3d6f1f25f8356741fbb09b5ad340b4ea
|
7
|
+
data.tar.gz: 40b2d620c392247387afd0085b68b2d8ac6111d4b224feb5889f75c5ae30c276973f9e642443da15ab36a7c2352b9428fee6d9f1b57b321b21ef8f89596cf414
|
data/lib/opal/httpget/version.rb
CHANGED
data/lib/opal/httpget.rb
CHANGED
@@ -9,7 +9,7 @@ if RUBY_ENGINE == "opal"
|
|
9
9
|
else
|
10
10
|
puts "Ruby engine is ruby"
|
11
11
|
Opal.append_path File.expand_path("..", __FILE__).untaint
|
12
|
-
Opal.append_path File.expand_path("
|
12
|
+
Opal.append_path File.expand_path("../..", __FILE__).untaint
|
13
13
|
|
14
14
|
require_relative "httpget/version"
|
15
15
|
# require_relative '../jquery-3.6.0.min.js'
|
@@ -78,4 +78,15 @@ module Opal
|
|
78
78
|
end
|
79
79
|
|
80
80
|
end
|
81
|
+
|
82
|
+
# おまけ機能: テキストの変更
|
83
|
+
def change_text(id, text)
|
84
|
+
`document.querySelector(id).textContent=text;`
|
85
|
+
end
|
86
|
+
|
87
|
+
# おまけ機能: テキストの変更
|
88
|
+
def open_window(url)
|
89
|
+
`window.open( url );`
|
90
|
+
end
|
91
|
+
|
81
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-httpget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- showata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|