Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working. #2

Closed
qadirsuh opened this issue Aug 27, 2019 · 1 comment
Closed

Example not working. #2

qadirsuh opened this issue Aug 27, 2019 · 1 comment

Comments

@qadirsuh
Copy link

I just clone the repo and trying to executeexample.js file in terminal.
node example.js

here is the output.

image

Is there anything I am doing wrong?

@qadirsuh
Copy link
Author

Solved this issue by my own research. its actually not nodejs but client side code.

I just created an index.html file and executed it. its started working.

<!DOCTYPE html>
<html>
<head>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

    <script type="text/javascript" src="https://yathit.github.io/jsc/ydn.db-dev.js"></script>   

    <script type="text/javascript" src="libs/aes.js"></script>
    <script type="text/javascript" src="libs/base32.js"></script>
    <script type="text/javascript" src="libs/json2.js"></script>
    <script type="text/javascript" src="libs/md5.js"></script>
    
    <script type="text/javascript" src="storage.js"></script>
    <script type="text/javascript" src="transport.js"></script>
    <script type="text/javascript" src="transport-cached.js"></script>
    <script type="text/javascript" src="crypt.js"></script>
    <script type="text/javascript" src="api.js"></script>
    <script type="text/javascript" src="example.js"></script>

<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Note: output can be seen on browser's console.

But I got another issue. created another git issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant