How can I make fiddles enter full-screen?
Asked Answered
P

4

20

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/
Perloff answered 16/1, 2015 at 12:52 Comment(3)
You can also set primary to flash here.Deflected
@EthanJWPlayer : pls check , I tried primary:flash and it stopped working .... jsfiddle.net/hiteshbhilai2010/6YyXH/74Perloff
What stopped working? It still plays for me.Deflected
F
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.

Femineity answered 16/1, 2015 at 13:2 Comment(4)
but still you need to click F11, is it because of stackoverflow?Perloff
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 onlyFemineity
@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 luckFemineity
There is no share buttonUreide
F
59

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.

Foregone answered 29/8, 2016 at 18:59 Comment(4)
But you will encounter a "run this fiddle" banner.Complementary
@AndersLindén which is a security feature apparently, you can just click itReset
Where share button is gone?Ratiocination
This gives a 404 nowFastigium
F
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.

Femineity answered 16/1, 2015 at 13:2 Comment(4)
but still you need to click F11, is it because of stackoverflow?Perloff
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 onlyFemineity
@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 luckFemineity
There is no share buttonUreide
T
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
Trumaine answered 21/3, 2021 at 18:16 Comment(0)
F
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.

Facia answered 29/11, 2020 at 18:56 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.