Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
9e481804
Commit
9e481804
authored
May 01, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a 'set' method to change window settings for external applications
parent
76cd14ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
ethereum.js
ethereal/assets/ethereum.js
+4
-0
webapp.qml
ethereal/assets/qml/webapp.qml
+6
-0
samplecoin.html
ethereal/assets/samplecoin/samplecoin.html
+2
-0
No files found.
ethereal/assets/ethereum.js
View file @
9e481804
...
...
@@ -71,6 +71,10 @@ window.eth = {
postData
({
call
:
"disconnect"
,
args
:
[
address
,
storageAddrOrCb
]});
},
set
:
function
(
props
)
{
postData
({
call
:
"set"
,
args
:
props
});
},
on
:
function
(
event
,
cb
)
{
if
(
eth
.
_onCallbacks
[
event
]
===
undefined
)
{
eth
.
_onCallbacks
[
event
]
=
[];
...
...
ethereal/assets/qml/webapp.qml
View file @
9e481804
...
...
@@ -91,6 +91,12 @@ ApplicationWindow {
require
(
1
)
postData
(
data
.
_seed
,
null
)
break
;
case
"set"
:
for
(
var
key
in
data
.
args
)
{
if
(
webview
.
hasOwnProperty
(
key
))
{
window
[
key
]
=
data
.
args
[
key
];
}
}
}
}
catch
(
e
)
{
console
.
log
(
data
.
call
+
": "
+
e
)
...
...
ethereal/assets/samplecoin/samplecoin.html
View file @
9e481804
...
...
@@ -21,6 +21,8 @@ function createTransaction() {
}
function
init
()
{
eth
.
set
({
width
:
500
,
title
:
"Hello world"
})
eth
.
getKey
(
function
(
key
)
{
eth
.
getStorageAt
(
jefcoinAddr
,
key
,
function
(
storage
)
{
document
.
querySelector
(
"#current-amount"
).
innerHTML
=
storage
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment