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?
相关问题
- Where did jsfiddle's various external librarie
- Using jsfiddle: how can I use underscore.js or bac
- AngularJS, after upgrading from 1.1.5 to 1.2.2, fi
- jQuery unobtrusive custom adapter and method in js
- How does jsfiddle mark up code? Is there a library
相关文章
- How does jsfiddle mark up code? Is there a library
- How to adjust the size of multiple adjacent textar
- Error Message: [removed] is disallowed in JSFiddle
- Using document.getElementById() inside object, wor
- How does jQuery mobile work in jsfiddle.net?
- How to pass GET parameters to jsFiddle
- How to enable jQuery UI in JSFiddle?
- javascript onclick not working in jsfiddle
try using http://liveweave.com
It has "Save" feature that allows you to download the HTML (which basically includes HTML, CSS & JavaScript). It also has line numbers, which jsfiddle doesn't.
No, JSFiddle doesn't have a download feature. However, it's not very difficult to get around that and save the contents of a fiddle anyway.
Since the time the accepted answer was posted, JSFiddle has made some recent UI and backend changes that affect the way a fiddle should be downloaded. Note the updated procedures below.
Simple Commandline Method
This method only downloads the fiddle's HTML, JavaScript, and CSS as a single file. The fiddle's external resources are not saved.
In the commandline shown below,
fiddle_id
refers to the ID number of the fiddle. For a fiddle with the URL "http://jsfiddle.net/<fiddle_user>/<fiddle_id>
" or "http://jsfiddle.net/<fiddle_id>
", only thefiddle_id
is needed. Thefiddle_user
is unimportant.At a shell prompt, enter the single commandline:
The fiddle will be saved to a file named "
fiddle_id.html
".Longer Browser Method
This method downloads the fiddle as well as its external resources. The steps given are based on using Google Chrome. Using other web browsers should work as well, but they may use different filenames.
Share/Embed
" menu/link at the top of the JSFiddle edit page. In the dialog box that appears, copy the URL shown in the "Share full screen result
" field. It will be of the form "http://jsfiddle.net/<fiddle_user>/<fiddle_id>/embedded/result/
" or "http://jsfiddle.net/<fiddle_id>/embedded/result/
".Webpage, Complete
" in the "Format
" menu. Be sure to specify a name for the page. Let's say it's named "fiddle.html
" for this example.fiddle.html
" file and a directory named "fiddle_files
". The file "fiddle.html
" is the wrapper page that JSFiddle uses to display a header with a "Result" title and other links. It will load your fiddle in an iframe element. For the most part, this file can be ignored or even deleted. Your fiddle's HTML, JavaScript, and CSS content will all be saved in the "fiddle_files
" directory as a single file named "saved_resource.html
".fiddle_files/saved_resource.html
" to wherever you'd like to use it. If your fiddle included items under "External Resources
", those will also appear in the "fiddle_files
" directory. Be sure to copy those files to the same place to which you copied "saved_resource.html
", because the HTML file will refer to those resources using relative URLs.As mentioned earlier, other browsers may name the files differently when they are saved. For example, Firefox names the combined HTML/JS/CSS file "
fiddle_files/a.html
".You have to put /show a after the URL you're working on:
For example:
for Field URL :
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