23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

see how WinJS itself is implemented. (Note: if you want to search within these files, you must open and<br />

search only within the specific file. These are not included in solution-wide or project-wide searches.)<br />

FIGURE 2-6 A Blank app project fully expanded in Solution Explorer.<br />

As you would expect, there’s not much app-specific code for this type of project. For example, the<br />

<strong>HTML</strong> has only a single paragraph element in the body, the one you can replace with “Hello World” if<br />

you’re really not feeling complete without doing so. What’s more important at present are the<br />

references to the WinJS components: a core stylesheet (ui-dark.css or ui-light.css), base.js, and ui.js:<br />

<br />

<br />

<br />

<br />

Hello World<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Content goes here<br />

<br />

<br />

You will generally always have these references (perhaps using ui-light.css instead) in every <strong>HTML</strong><br />

file of your project. The //’s in the WinJS paths refer to shared libraries rather than files in your app<br />

56

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!