Search code examples
javascripthtmlknockout.jsjsfiddle

Adapt a jsfiddle to a working webpage knockout


What I'm ultimately trying to do is get a jsfiddle to work on my desktop, and not in the jsfiddle browser.

I've...

    <html>
        <head>
            <script src="[urls from the resource frame of the jsfiddle"></script>
        </head>
    <body>

    ***[content from the jsfiddle HTML pane]***

    </body>
        <script>
           ***[content from the Javascript pane]***
        </script>
</html>

however, when I open that doc in Chrome, it contains a list of all items that are formatted in a plain manner, and not in the groovy collpsible objects in the jsfiddle.

I've tried various browsers, ensuring the CDN links aren't rotten.

I've also tried hard refreshing the webpage and under F12\network - it seems to load the *min.js files a second time, but as 0 byte files.

What am I missing?


Solution

  • I moved the

        <script>
           ***[content from the Javascript pane]***
        </script>
    

    into the body tags and got it working...happy days!

    Thanks everyone