Created
June 18, 2014 21:40
-
-
Save dstensnes/031663ddbce4f5464521 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html,body,iframe,div#content { | |
padding: 0; | |
margin: 0; | |
width: 100%; | |
height: 100%; | |
min-height: 100%; | |
border: 0; | |
background-color: #000000; | |
overflow: hidden; | |
} | |
div#content, iframe { | |
margin: auto; | |
box-sizing:border-box; | |
-moz-box-sizing:border-box; | |
height: 100%; | |
min-height: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- | |
vim: ts=2 sw=2 noexpandtab | |
--> | |
<html> | |
<head> | |
<title>test-atom-persists</title> | |
<link rel="stylesheet" type="text/css" href="app.css"> | |
</head> | |
<body> | |
<div id="content"> | |
<iframe src="https://www.google.com/"></iframe> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = require('app'); | |
var BrowserWindow = require('browser-window'); | |
// Quit when all windows are closed and no other one is listening to this. | |
app.on('window-all-closed', function() { | |
if (app.listeners('window-all-closed').length == 1) | |
app.quit(); | |
}); | |
var mainWindow = null; | |
var menu = null; | |
app.on('ready', function() { | |
mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
'use-content-size': true, | |
'overflow': 'hidden', | |
}); | |
mainWindow.loadUrl('file://' + __dirname + '/index.html'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "test-atom-persist", | |
"productName": "test-atom-persists", | |
"version": "0.1.0", | |
"main": "main.js", | |
"dependencies": { | |
"optimist": "*" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment