Created
October 11, 2012 21:37
-
-
Save theClarkSell/3875642 to your computer and use it in GitHub Desktop.
31 Days of Windows 8 - Day 1
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
body { | |
} | |
@media screen and (-ms-view-state: fullscreen-landscape) { | |
} | |
@media screen and (-ms-view-state: filled) { | |
} | |
@media screen and (-ms-view-state: snapped) { | |
} | |
@media screen and (-ms-view-state: fullscreen-portrait) { | |
} |
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> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Day1</title> | |
<!-- WinJS references --> | |
<link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" /> | |
<script src="//Microsoft.WinJS.1.0/js/base.js"></script> | |
<script src="//Microsoft.WinJS.1.0/js/ui.js"></script> | |
<!-- Day1 references --> | |
<link href="/css/default.css" rel="stylesheet" /> | |
<script src="/js/default.js"></script> | |
</head> | |
<body> | |
<p>Content goes here</p> | |
</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
(function () { | |
"use strict"; | |
WinJS.Binding.optimizeBindingReferences = true; | |
var app = WinJS.Application; | |
var activation = Windows.ApplicationModel.Activation; | |
app.onactivated = function (args) { | |
if (args.detail.kind === activation.ActivationKind.launch) { | |
if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) { | |
// TODO: This application has been newly launched. Initialize your application here. | |
} else { | |
// TODO: This application has been reactivated from suspension.Restore application state here. | |
} | |
args.setPromise(WinJS.UI.processAll()); | |
} | |
}; | |
app.oncheckpoint = function (args) { | |
}; | |
app.start(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment