Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

IE fixes *and including an IE specific CSS link)

  • Loading branch information...
commit 5e3a23b36aa4c58eb1dfbecc978cae68d2ccbd47 1 parent a419ad1
@remy remy authored
View
5 public/css/ie.css
@@ -0,0 +1,5 @@
+#library {
+ filter: alpha(opacity=0);
+ -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
+}
+
View
11 public/css/style.css
@@ -552,7 +552,9 @@ body.preview #source select {
outline: 0;
}
-.mobile textarea {
+.mobile textarea,
+.ie6 textarea,
+.ie7 textarea {
margin: 0.4em;
border: 0;
padding: 0;
@@ -572,6 +574,12 @@ body.preview #source select {
-webkit-appearance: none;
}
+.ie6 textarea,
+.ie7 textarea {
+ width: 100%;
+ height: 100%;
+}
+
#javascript {
margin-top: 26px;
}
@@ -2299,6 +2307,7 @@ pre .highlight:last-of-type {
}
.brand img {
+ border: 0;
vertical-align: top;
margin-top: 4px ;
}
View
1  public/js/editors/mobileCodeMirror.js
@@ -3,6 +3,7 @@ var noop = function () {};
if (document.body.className.indexOf('ie6') !== -1 || document.body.className.indexOf('ie7') !== -1) {
$('body').addClass('mobile');
+ jsbin.lameEditor = true;
Editor = function (el, options) {
this.textarea = el;
this.win = { document : this.textarea };
View
2  public/js/render/live.js
@@ -48,7 +48,7 @@ function codeChangeLive(event, data) {
// ignore
} else if (panel.visible) {
// test to see if they're write a while loop
- if (jsbin.panels.focused && jsbin.panels.focused.id === 'javascript') {
+ if (!jsbin.lameEditor && jsbin.panels.focused && jsbin.panels.focused.id === 'javascript') {
// check the current line doesn't match a for or a while or a do - which could trip in to an infinite loop
editor = jsbin.panels.focused.editor;
line = editor.getLine(editor.getCursor().line);
View
18 public/js/render/render.js
@@ -30,18 +30,6 @@ var iframedelay = (function () {
return iframedelay;
}());
-
-
-var useCustomConsole = !(function () {
- var ok = typeof window.console !== 'undefined';
- try {
- window.console.log('jsbin init test');
- } catch (e) {
- ok = false;
- }
- return ok;
-})();
-
var re = null;
function getPreparedCode() {
@@ -124,12 +112,6 @@ function getPreparedCode() {
close = parts.length == 2 && parts[1] ? parts[1] : '';
}
- // FIXME is this even worth while now we have our own console? RS July 1, 2012
- if (useCustomConsole) {
- source += "<script src=\"http://jsbin.com/js/render/console.js\"></script>\n<script>\n";
- }
-
-
// RS: not sure why I ran this in closure, but it means the expected globals are no longer so
// source += "<script>\n(function(){" + js + "\n}())\n</script>\n" + close;
var type = jsbin.settings && jsbin.settings.processors && jsbin.settings.processors.javascript ? ' type="text/' + jsbin.settings.processors.javascript + '"' : '';
View
26 views/index.html
@@ -6,6 +6,7 @@
<link rel="icon" href="{{static}}/images/favicon.png">
<link rel="stylesheet" href="{{static}}/css/style.css?{{version}}" type="text/css">
{{#custom_css}}<link rel="stylesheet" href="{{static}}/{{custom_css}}?{{version}}" type="text/css">{{/custom_css}}
+<!--[if lte IE 8 ]><link rel="stylesheet" href="{{static}}/css/ie.css?{{version}}" type="text/css"><![endif]-->
</head>
<!--[if lt IE 7 ]><body class="source ie ie6"><![endif]-->
<!--[if lt IE 8 ]><body class="source ie ie7"><![endif]-->
@@ -117,7 +118,7 @@
</div>
<div>
<label>Password<br>
- <input required name="password" type="password"></<label>
+ <input required name="password" type="password"></label>
</div>
<div>
<input type=submit value="Register">
@@ -206,29 +207,6 @@
<p>You can jump to the latest bin by adding <code>/latest</code> to your URL</p><a class="dismiss" href="#">Dismiss x</a>
{{/flash_info}}
</div>
-<div id="old-login" class="modal">
- <div>
- <h2>Log in / Register</h2>
- <p id="loginFeedback"></p>
- <p>Logging in will associate your account with all bins you create, and allow you to access that complete history.</p>
- <form action="/login" method="post">
- <div>
- <label for="username">Username</label><input id="username" type="text" name="username">
- </div>
- <div>
- <label for="password">Password</label><input id="password" type="password" name="password">
- </div>
- <div>
- <label for="email">Email</label><input id="email" type="email" name="email">
- <p>Email is just used to reset your password - it's not used for anything else.</p>
- </div>
- <div>
- <input type="submit" value="Log in">
- </div>
- <input type="hidden" name="_csrf" value="{{token}}" />
- </form>
- </div>
-</div>
<div id="keyboardHelp" class="modal">
<h2>Keyboard Shortcuts</h2>
<table>
Please sign in to comment.
Something went wrong with that request. Please try again.