Skip to content

Commit

Permalink
Add clouds background
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Aug 15, 2018
1 parent 797bd87 commit dc711b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file added images/clouds.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.html
Expand Up @@ -18,7 +18,7 @@
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body>
<div class="desktop"></div>
<div class="desktop" style="background-image: url(images/clouds.jpg); background-size: cover; background-position: center;"></div>
<div class="taskbar">
<button class="start-button" title="Click here to begin.">
<img src="images/start.png"/><b>Start</b>
Expand Down
3 changes: 3 additions & 0 deletions src/programs.js
Expand Up @@ -50,12 +50,15 @@ function Paint(){
backgroundImage: "url(" + canvas.toDataURL() + ")",
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundSize: "auto",
});
};
contentWindow.systemSetAsWallpaperTiled = function(canvas){
$desktop.css({
backgroundImage: "url(" + canvas.toDataURL() + ")",
backgroundRepeat: "repeat",
backgroundPosition: "0 0",
backgroundSize: "auto",
});
};
});
Expand Down

0 comments on commit dc711b2

Please sign in to comment.