Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSfiddle: What is my fiddle's javascript (*.js) url ? so I can reuse it by src

What is the url to get and only get this fiddle's javascript code ?

So later on, I may use it for tests by calling it using a <script rel="" src=""></script> link, something like :

<script rel="script" src="http://jsfiddle.net/.../.../myFiddleScrip.js"></script>

JSfiddle store versions of our scripts, which my IDE doesn't.


Edit: I'am aware of the /show/ page, my question is is there an independant .js page ?


Edit: As of March 2013, the following patterns works! (pls +1 Danny's answer!)

  • http://jsfiddle.net/username/c0dE5/dd/show_js/
  • http://jsfiddle.net/hugolpz/QUTcW/37/show_css/
  • http://jsfiddle.net/hugolpz/QUTcW/37/show_html/
like image 964
Hugolpz Avatar asked Mar 27 '13 17:03

Hugolpz


2 Answers

It looks like you can add it to your page with the following:

<script type="text/javascript" src="http://jsfiddle.net/hugolpz/QUTcW/37/show_js/"></script>

However that url doesn't look to be officially documented and may change. More info here

like image 180
Danny Avatar answered Sep 21 '22 12:09

Danny


see this : view-source:http://fiddle.jshell.net/hugolpz/QUTcW/37/show/

They do not create separate .js file , they just put your script in script tags

like image 32
Mohammad Adil Avatar answered Sep 22 '22 12:09

Mohammad Adil