17

I was trying to create some POC to try something with jwplayer but for some reason full screen for jwplayer is not working.

Is there any way to make full-screen work in jsfiddle in jwplayer?

Here is my jsfiddle

    http://jsfiddle.net/hiteshbhilai2010/6YyXH/63/
Lee Taylor
  • 7,761
  • 16
  • 33
  • 49
Hitesh
  • 4,098
  • 11
  • 44
  • 82

4 Answers4

54

Answering too late, but as no share button is available now, the new way for going full screen is copying the URL of your fiddle and append /show to it.

Example : https://fiddle.net/xyz123/show/

This will show you only the result frame in full screen.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Zameer Fouzan
  • 666
  • 6
  • 15
3

You can click on Share button, then take the Full screen result URL, open it, go to full screen in player and then (optionally) click on F11

Another quick way: right click on jsfiddle result --> View frame source --> In the view source tab take the iframe URL and open it, the player full screen should work. If you are intending to use the fiddle as a demonstration, you can write some javascript to grab the url of the underlying iframe and open it in a new window.

Aram Paronikyan
  • 1,598
  • 17
  • 22
  • but still you need to click F11, is it because of stackoverflow? – Hitesh Jan 16 '15 at 13:04
  • F11 is the common browser hotkey to go to full screen. Since jsfiddle uses iframes, the full screen button of player will expand its panel across the iframe only – Aram Paronikyan Jan 16 '15 at 13:08
  • @TJ: You can still grab the frame URL by right clicking the area where the player is placed and select "View frame source" (in Chrome). In the new tab you can remove the prefix "view-source:" and you will get the single frame URL. The full screen will work on that page then. Good luck – Aram Paronikyan Jul 11 '16 at 12:13
  • 6
    There is no share button – Alex G May 30 '20 at 00:54
2

In firefox only:

  1. Right-Click the result window in Jsfiddle
  2. Select "This Frame"
  3. Select "Show Only This Frame"
  4. Page will reload with result only in full screen (without a "run this fiddle" banner in it.)

Sometimes however this won't work, I not shure why, but you can always add "/show" to the URL as Zameer Fouzan has said. If you don't want to see the "Edit in Jsfiddle" button you can always remove it:

  1. Add "/show" to the URL and press ENTER
  2. Press "run this fiddle" button
  3. Press F12 to enter developer mode in FireFox or Chrome
  4. In firefox press: CTRL + SHIFT + C to pick an element from the page
  5. Press the "Edit in Jsfiddle" button, the corresponding code will be highlighted
  6. Right-Click the highlighted line of code
  7. Select "Delete Node"
  8. Press F12 to close developer mode
LarryN
  • 216
  • 1
  • 2
  • 12
1

Open your browser's console and run this:

const div = document.createElement('div')
div.classList.add('actionItem', 'visible')
div.style.cursor = 'pointer'

const a = document.createElement('a')
a.innerText = 'Fullscreen'
a.classList.add('aiButton')
a.title = 'Fullscreen'
a.addEventListener('click', function() {
  document.querySelector('iframe[name=result]').requestFullscreen()
})

div.appendChild(a)
document.querySelector('.actionCont').insertBefore(div, document.getElementById('app-updates'))

This will add a button with the text "Fullscreen" next to the "Embed" button. If you click on it, your browser should fullscreen the result.

Or, if you don't want to paste something in the browser console every time you go to edit a fiddle, use a userscript:

// ==UserScript==
// @name        JSFiddle Fullscreen
// @match       *://jsfiddle.net/*
// @version     1.0
// @author      GalaxyCat105
// @description Adds a fullscreen button in the JSFiddle navigation menu when editing a fiddle
// @grant       none
// ==/UserScript==

const div = document.createElement('div')
div.classList.add('actionItem', 'visible')
div.style.cursor = 'pointer'

const a = document.createElement('a')
a.innerText = 'Fullscreen'
a.classList.add('aiButton')
a.title = 'Fullscreen'
a.addEventListener('click', function() {
  document.querySelector('iframe[name=result]').requestFullscreen()
})

div.appendChild(a)
document.querySelector('.actionCont').insertBefore(div, document.getElementById('app-updates'))

Create a new script in your favorite userscript manager and copy-paste the code into it.

shreyasm-dev
  • 2,711
  • 5
  • 16
  • 34