mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
More tweaks on smoothly loading the background
This commit is contained in:
parent
3fa4609229
commit
89679cb09f
@ -12,13 +12,6 @@
|
||||
<link href="css/mathjs.css" rel="stylesheet" type="text/css">
|
||||
<link href="css/commandline.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<script type="text/javascript">
|
||||
var img = new Image();
|
||||
img.src = 'css/img/bright_squares.png';
|
||||
img.onload = function () {
|
||||
document.body.style.background = 'url(\'' + img.src + '\')';
|
||||
}
|
||||
</script>
|
||||
<script src="js/lib/math.min.js" type="text/javascript"></script>
|
||||
<script src="js/commandline.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB |
BIN
css/img/bright_squares_interlaced.png
Normal file
BIN
css/img/bright_squares_interlaced.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@ -1,6 +1,6 @@
|
||||
|
||||
body {
|
||||
background: #f5f5f5 repeat;
|
||||
background: #f5f5f5 url('img/bright_squares_interlaced.png') repeat;
|
||||
height: 100%;
|
||||
|
||||
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Verdana, Tahoma, sans-serif;
|
||||
|
||||
@ -155,10 +155,6 @@ if(!Array.prototype.indexOf) {
|
||||
}
|
||||
return -1;
|
||||
};
|
||||
|
||||
if (console && console.log) {
|
||||
console.log("Warning: Ancient browser detected. Please update your browser");
|
||||
}
|
||||
}
|
||||
|
||||
// Internet Explorer 8 and older does not support Array.forEach, so we define
|
||||
|
||||
2
js/lib/math.min.js
vendored
2
js/lib/math.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user