Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Merge requests
!5
XX-4050 / SendE2e test
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
XX-4050 / SendE2e test
XX-4050/sendE2eTest
into
release
Overview
0
Commits
7
Pipelines
0
Changes
41
Merged
XX-4050 / SendE2e test
Jono Wenger
requested to merge
XX-4050/sendE2eTest
into
release
Sep 8, 2022
Overview
0
Commits
7
Pipelines
0
Changes
41
0
0
Merge request reports
Compare
release
version 2
fc58a387
Sep 8, 2022
version 1
9cfe8f66
Sep 8, 2022
release (base)
and
latest version
latest version
7e27bf72
7 commits,
Sep 9, 2022
version 2
fc58a387
4 commits,
Sep 8, 2022
version 1
9cfe8f66
2 commits,
Sep 8, 2022
41 files
+
1712
−
361
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
41
examples/sendE2E/index.html
0 → 100644
+
70
−
0
View file @ 7e27bf72
Edit in single-file editor
Open in Web IDE
<!--
~ Copyright © 2020 xx network SEZC ///
~ ///
~ Use of this source code is governed by a license that can be found in the ///
~ LICENSE file ///
-->
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Receiver
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../styles.css"
>
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"receiver-favicon.ico"
/>
<script
type=
"text/javascript"
src=
"xxdk.js"
></script>
<script
type=
"text/javascript"
src=
"../wasm_exec.js"
></script>
<script>
// Use the encoder to convert a string to Uint8Array using enc.encode()
const
go
=
new
Go
();
WebAssembly
.
instantiateStreaming
(
fetch
(
"
../xxdk.wasm
"
),
go
.
importObject
).
then
((
result
)
=>
{
go
.
run
(
result
.
instance
);
LogLevel
(
0
);
const
recipientContactFile
=
''
;
const
myContactFileName
=
'
myE2eContact.xxc
'
;
const
statePath
=
'
statePathRecipient
'
;
const
statePass
=
'
password
'
;
document
.
getElementById
(
'
ndf-input
'
)
.
addEventListener
(
'
change
'
,
function
(
e
)
{
let
reader
=
new
FileReader
();
reader
.
onload
=
function
(
e
)
{
SendE2e
(
e
.
target
.
result
,
recipientContactFile
,
myContactFileName
,
statePath
,
statePass
);
};
reader
.
readAsText
(
e
.
target
.
files
[
0
]);
},
false
);
});
</script>
</head>
<body>
<h1>
Receiver
</h1>
<form
id=
"start-cmix"
>
<div>
<label
for=
"ndf-input"
>
Select NDF file to use
<code>
ndf
</code>
variable in JS (required):
</label><br/>
<input
type=
"file"
id=
"ndf-input"
required
/>
</div>
<!-- <div>
<label for="recipient-contact-input">Recipient contact path (optional):</label><br/>
<input type="file" id="recipient-contact-input"/>
</div>
<div>
<label for="session-path">Session path (required):</label><br/>
<input type="text" id="session-path" required/>
</div>
<div>
<label for="session-password">Storage password (required):</label><br/>
<input type="text" id="session-password" required/>
</div>
<input type="submit" value="Start">-->
</form>
<div
id=
"output"
style=
"padding:10px;border:1px solid red"
></div>
</body>
<script>
</script>
</html>
\ No newline at end of file
Loading