Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(chore): added testing page for jsfiddle fullscreen #216

Merged
merged 1 commit into from
Jul 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions server/raw/jsfiddle/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>jsfiddle fullscreen Tester | Fomantic-UI</title>
<link rel="stylesheet" type="text/css" href="/dist/semantic.min.css" >
<meta name="description" content="Testing jsfiddle fullscreen in Fomantic-UI. Especially for mobile" />
<meta name="keywords" content="jsfiddle, fullscreen, fomantic, semantic, mobile, html5, ui, library, framework, javascript, fork, official" />
</head>
<style>
body {
display: flex;
flex-direction: column;
}
iframe {
flex-grow:1;
}
@media only screen and (min-width: 767px) {
[class*="mobile only"] {
display: none !important;
}
}
</style>
<body>
<div class="ui top attached basic segment" >
<h3 class="ui header">
<a class="ui image" href="/"><img src="/images/logo.png"></a>
<div class="content">
jsfiddle tester <span class="mobile only">for mobile</span>
</div>
</h3>
<i class="small exclamation triangle icon"></i>
The Code below is located at <a id="orgfiddle" href="">https://jsfiddle.net</a> and embedded via an iframe
</div>
<iframe id="jsfiddle" src="http://" frameborder="0"></iframe>
</body>
<script>
var jsfiddleInfo = window.location.href.split("#!");
if(jsfiddleInfo.length > 1){
var orgFiddle = '//jsfiddle.net/'+jsfiddleInfo[1].replace(/[^a-zA-Z0-9\/]/g,'');
document.getElementById('jsfiddle').src = orgFiddle+'/embedded/result/';
document.getElementById('orgfiddle').href = orgFiddle;
}
else {
window.location.href = '/';
}
lubber-de marked this conversation as resolved.
Show resolved Hide resolved
</script>
</html>