Reputation: 4288
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/
Upvotes: 20
Views: 11681
Reputation: 726
EDIT 2024: This option has been completely removed by jsfiddle.
to test your apps in fullscreen, you could use the Fullscreen_API which works with the fiddles. Here is a sample
[Now Outdated]
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.
Upvotes: 60
Reputation: 356
In firefox only:
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:
Upvotes: 2
Reputation: 2834
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.
Upvotes: 1
Reputation: 1608
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.
Upvotes: 3