Is there a download function in jsFiddle?

前端 未结 16 2654
小鲜肉
小鲜肉 2020-12-02 03:37

Is there a download function in jsFiddle, so you can download an HTML with the CSS, HTML and JS in one file, so you can run it without jsFiddle for debug purposes?

相关标签:
16条回答
  • 2020-12-02 04:16

    You can download using this package in node js,

    https://www.npmjs.com/package/jsfiddle-downloader

    0 讨论(0)
  • 2020-12-02 04:16

    Use http://jsfiddle.net//show/light/

    then just use inspect element function of browser. you will get code in iframe tab. . in chrome just right click and cick on edit as html tab. and copy the html content. that is your actual code.

    0 讨论(0)
  • 2020-12-02 04:23

    Adding /show does not present a pure source code, it's an embedded working example. To display it without any additional scripts, css and html, use:

    http://fiddle.jshell.net/<fiddle id>/show/light/
    

    An example: http://fiddle.jshell.net/Ua8Cv/show/light/

    0 讨论(0)
  • 2020-12-02 04:24

    Still no download functionality supported.. BUT.. you can use the jsfiddle-downloader node script.

    Installation:

    npm install jsfiddle-downloader -g
    

    To download a single fiddle from its id:

    jsfiddle-downloader -i <fiddle-id> [-o <output file>]
    

    To download a single fiddle from its url:

    jsfiddle-downloader -l <url> [-o <output file>]
    jsfiddle-downloader -l jsfiddle.net/<user>/<fiddle-id>
    jsfiddle-downloader -l https://jsfiddle.net/<fiddle-id>
    jsfiddle-downloader -l https://jsfiddle.net/<user>/<fiddle-id>/show/ -o myfiddle.html
    

    To download all scripts of a determinated 'user' from jsFiddle.net:

    jsfiddle-downloader -u <user> [-o <output file>]
    

    It'll download all backups in the currrent directory, the jsFiddles scripts will be named as:

    [<output-folder>/]<id-fiddle>.html
    
    0 讨论(0)
  • 2020-12-02 04:25

    You have to put /show a after the URL you're working on:

    For example:

    "http://jsfiddle.net/rkw79/PagTJ/show/"
    

    for Field URL :

    "http://jsfiddle.net/rkw79/PagTJ/"
    

    after that save the file and go to the show folder(or the file name you have saved with) under that folder u will get a html file show_resource.HTML .that is your actual file.now open it in browser and view the source code. Best of luck--------Ujjwal Gupta

    0 讨论(0)
  • 2020-12-02 04:27

    The best way is:

    1. Right-click on the output panel.
    2. Choose view frame source, then the whole code will appear.

    After that you can copy that code, and paste it in your computer.

    0 讨论(0)
提交回复
热议问题