Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Royer
jio
Commits
9fb9b7f5
Commit
9fb9b7f5
authored
Jan 03, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example.html is now up to date
parent
93962ffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
examples/example.html
examples/example.html
+9
-3
No files found.
examples/example.html
View file @
9fb9b7f5
...
...
@@ -17,6 +17,7 @@ var log = function (o) {
<div
id=
"log"
>
</div>
<script
src=
"../src/sha256.amd.js"
></script>
<script
src=
"../lib/rsvp/rsvp-custom.js"
></script>
<script
src=
"../jio.js"
></script>
<script
src=
"../complex_queries.js"
></script>
<script
src=
"../src/jio.storage/localstorage.js"
></script>
...
...
@@ -34,6 +35,11 @@ jio_instance = jIO.createJIO({
});
// Careful! These are asynchronous methods!
// And they use promises with a custom version of RSVP.js
// For more information, see
// RSVP https://github.com/tildeio/rsvp.js#rsvpjs--
// Promises A+ http://promisesaplus.com/
// CommonJS http://wiki.commonjs.org/wiki/Promises
log
(
'
-> post "video" document metadata to localStorage
'
);
jio_instance
.
post
({
...
...
@@ -86,11 +92,11 @@ jio_instance.post({
}).
then
(
function
(
response
)
{
return
jIO
.
util
.
b
lobAsBinaryString
(
response
.
data
);
return
jIO
.
util
.
readB
lobAsBinaryString
(
response
.
data
);
}).
then
(
function
(
binary_string
)
{
}).
then
(
function
(
event
)
{
log
(
'
Video content is:
'
+
binary_string
);
log
(
'
Video content is:
'
+
event
.
target
.
result
);
log
(
'
-> remove "video" document from localStorage
'
);
return
jio_instance
.
remove
({
"
_id
"
:
'
video
'
});
...
...
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