Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run a jsfiddle result with url?

I have this jsfiddle:

https://jsfiddle.net/foreyez/vdk7guob/

<div id='container'> Hello World </div> 

I'd like to run it so that when I go to a url it'll just show me the results window (NOT the editor). So I'd just see a blank "Hello World" on the screen. It'd be nice if jsfiddle had a query string to do this as an option: https://jsfiddle.net/foreyez/vdk7guob/?run=true or something.

Is this possible with jsfiddle, or some other workaround?

p.s I'm trying to test some things with mobile that's why I'd like a url to my running fiddle (not editor).

like image 614
Shai UI Avatar asked Feb 09 '16 01:02

Shai UI


People also ask

How do I run Jsfiddle code?

Entering and running code JSFiddle has the notion of panels (or tabs if you switch into the tabbed layout), there are 4 panels, 3 where you can enter code, and 1 to see the result. Once you enter code, just hit Run in the top actions bar, and the fourth panel with results will appear.

How do I download HTML from Jsfiddle?

Step 2: Right click the bottom frame and select View Frame Source. That's it. You got the html code with online JS links, CSS. Just Save it.


2 Answers

Add /show to the end of your URL: https://jsfiddle.net/foreyez/vdk7guob/show

like image 136
fredrover Avatar answered Sep 22 '22 07:09

fredrover


If this is only for demo purpose, then you should be satisfied with this: https://jsfiddle.net/foreyez/vdk7guob/embedded/result/

as with pattern:

url: https://jsfiddle.net/_USER_/_FIDDLEID_/embedded/result/ 
like image 40
Maciej Kwas Avatar answered Sep 24 '22 07:09

Maciej Kwas