- Refactoring (Browser unsupported): Restore newly appied HTML/CSS standards, add lbs; remove now unused file

- Fix (Browser unsupported page): Fix IE download link, caniuse links (use more broad SVG category)
master
Brett Zamir 2018-05-18 11:55:28 +08:00
parent 89cbab7217
commit 80d49ed0e4
2 changed files with 15 additions and 16 deletions

View File

@ -1,10 +1,10 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="chrome=1"/> <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<link rel="icon" type="image/png" href="images/logo.png"/> <link rel="icon" type="image/png" href="images/logo.png"/>
<link rel="stylesheet" href="svg-editor.css" type="text/css"/> <link rel="stylesheet" href="svg-editor.css"/>
<title>Browser does not support SVG | SVG-edit</title> <title>Browser does not support SVG | SVG-edit</title>
<style> <style>
body { body {
@ -28,20 +28,27 @@
bottom: 0; bottom: 0;
width: 100%; width: 100%;
} }
#caniuse>iframe { #caniuse > iframe {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
</style> </style>
</head> </head>
<body> <body>
<img id="logo" src="images/logo.png" width="48" height="48" alt="SVG-edit logo" /> <img id="logo" src="images/logo.png" width="48" height="48" alt="SVG-edit logo" />
<p>Sorry, but your browser does not support SVG. Below is a list of alternate browsers and versions that support SVG and SVG-edit (from <a href="https://caniuse.com/#feat=svg-html5">caniuse.com</a>).</p> <p>Sorry, but your browser does not support SVG. Below is a list of
<p>Try the latest version of <a href="https://www.getfirefox.com">Firefox</a>, <a href="https://www.google.com/chrome/">Chrome</a>, <a href="https://www.apple.com/safari/">Safari</a>, <a href="https://www.opera.com/download">Opera</a> or <a href="http://windows.microsoft.com/ie9">Internet Explorer</a>.</p> alternate browsers and versions that support SVG and SVG-edit
(from <a href="https://caniuse.com/#cats=SVG">caniuse.com</a>).
</p>
<p>Try the latest version of
<a href="https://www.getfirefox.com">Firefox</a>,
<a href="https://www.google.com/chrome/">Chrome</a>,
<a href="https://www.apple.com/safari/">Safari</a>,
<a href="https://www.opera.com/download">Opera</a> or
<a href="https://support.microsoft.com/en-us/help/17621/internet-explorer-downloads">Internet Explorer</a>.
</p>
<div id="caniuse"> <div id="caniuse">
<iframe src="https://caniuse.com/#feat=svg-html5"></iframe> <iframe src="https://caniuse.com/#cats=SVG"></iframe>
</div> </div>
</body> </body>
</html> </html>

View File

@ -1,8 +0,0 @@
/* eslint-disable no-var */
/* globals $ */
var viewportHeight = window.innerHeight || ($(window).height() - 140);
var iframe = document.createElement('iframe');
iframe.style.width = '100%';
iframe.style.height = viewportHeight + 'px';
iframe.src = 'http://caniuse.com/#cats=SVG';
document.body.appendChild(iframe);