Skip to content

Commit

Permalink
Added in privacy and settings pages
Browse files Browse the repository at this point in the history
Added in privacy and settings pages
  • Loading branch information
bitchwhocodes committed Jun 19, 2013
1 parent 14053ac commit 46933c9
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<Content Include="js\instagram.js" />
<Content Include="js\jquery.js" />
<Content Include="js\navigator.js" />
<Content Include="pages\about.html" />
<Content Include="pages\home\home.css" />
<Content Include="pages\home\home.html" />
<Content Include="pages\home\home.js" />
Expand All @@ -73,10 +74,10 @@
<Content Include="pages\popular\popular.css" />
<Content Include="pages\popular\popular.html" />
<Content Include="pages\popular\popular.js" />
<Content Include="pages\privacy.html" />
<Content Include="pages\tags\tags.css" />
<Content Include="pages\tags\tags.html" />
<Content Include="pages\tags\tags.js" />
<Content Include="readme.md" />
<None Include="APIMASH_INSTAGRAM_API_TemporaryKey.pfx" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
// TODO: This application has been newly launched. Initialize
// your application here.
initializePages();
} else {
// TODO: This application has been reactivated from suspension.
// Restore application state here.
Expand All @@ -40,6 +41,17 @@
// suspended, call args.setPromise().
app.sessionState.history = nav.history;
};
function initializePages() {


//About and Privacy Policy Settings Charm
WinJS.Application.onsettings = function (e) {
e.detail.applicationcommands = {
"aboutSettings": { title: "About", href: "/pages/about.html" },
"privacySettings": { title: "Privacy Policy", href: "/pages/privacy.html" }
};
WinJS.UI.SettingsFlyout.populateSettings(e);
};
}
app.start();
})();
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!doctype HTML>
<html>
<head>
<title>About settings flyout</title>
<link href="/css/settings.css" rel="stylesheet" />
</head>
<body >
<!-- BEGINSETTINGSFLYOUT -->
<div data-win-control="WinJS.UI.SettingsFlyout" aria-label="About the Tumblr Lawls app flyout" data-win-options="{settingsCommandId:'aboutSettings',width:'wide'}">
<!-- Use either 'win-ui-light' or 'win-ui-dark' depending on the contrast between the header title and background color -->
<div class="win-ui-dark win-header" > <!-- Background color reflects app's personality -->
<button type="button" onclick="WinJS.UI.SettingsFlyout.show()" class="win-backbutton"></button>
<div class="win-label">About Tumblr API kit</div>
</div>
<div class="win-content" >
<div class="win-settings-section">
<div id="aboutTumblr">
The Windows 8 Instagram Explorer App is a completely free app for educational and entertainment purposes only. The code for this app is open source and available on Github&nbsp;<a href="https://github.com/bitchwhocodes/Windows8API" target="_blank" >here.</a><p>


</div>
</div>
</div>
</div>
<!-- ENDSETTINGSFLYOUT -->
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype HTML>
<html>
<head>
<title>Legal notices settings flyout</title>
<link href="/css/settings.css" rel="stylesheet" />
</head>
<body>
<!-- BEGINSETTINGSFLYOUT -->
<div data-win-control="WinJS.UI.SettingsFlyout" aria-label="Legal notices settings flyout" data-win-options="{settingsCommandId:'privacySettings',width:'wide'}">
<!-- Use either 'win-ui-light' or 'win-ui-dark' depending on the contrast between the header title and background color -->
<div class="win-ui-dark win-header"> <!-- Background color reflects app's personality -->
<button type="button" onclick="WinJS.UI.SettingsFlyout.show()" class="win-backbutton"></button>
<div class="win-label">Privacy Policy</div>
</div>
<div class="win-content">
<div class="win-settings-section">
<div id="privacyPolicy">

This privacy policy governs your use of the software application Windows 8 Instagram Starter Api Kit ("Application") for mobile devices that was created by Stacey Mulcahy(@bitchwhocodes).

The Application is for educational and entertainment purposes only and does not share any information about you or the location of your mobile device.

The only Internet operation performed by the Application is via the "Share Charm" invoked by you. In this instance only the information you choose to share from the Application is made available to another Windows Store app you chose from the list. No information about you is stored.

</div>
</div>
</div>
</div>
<!-- ENDSETTINGSFLYOUT -->
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ App Ideas:
- Instatour - create a tour of an area through instagram photos

###Future Features
- There is some bugginess with the layout using the List view control. Will be fixing this.


----------

Expand Down

0 comments on commit 46933c9

Please sign in to comment.