Permalink
Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
1 parent 0d1a121 commit 558b603d080212a91739dce531e4aa8715f240fe @jakeboxer committed Aug 9, 2012
Showing with 28 additions and 37 deletions.
  1. +5 −7 index.html
  2. +1 −1 params.json
  3. +22 −29 stylesheets/styles.css
View
12 index.html
@@ -18,7 +18,7 @@
<div class="wrapper">
<header>
<h1>JBDeviceOwner</h1>
-<p>Auto-fill iOS registration forms with the device owner's name, email, and other data</p>
+ <p>Auto-fill iOS registration forms with the device owner's name, email, and other data</p>
<p class="view"><a href="https://github.com/jakeboxer/JBDeviceOwner">View the Project on GitHub <small>jakeboxer/JBDeviceOwner</small></a></p>
<ul>
<li><a href="https://github.com/jakeboxer/JBDeviceOwner/zipball/master">Download <strong>ZIP File</strong></a></li>
@@ -41,8 +41,7 @@
<h2>API</h2>
-<div class="highlight">
-<pre><span class="n">JBDeviceOwner</span> <span class="o">*</span><span class="n">owner</span> <span class="o">=</span> <span class="p">[</span><span class="n">UIDevice</span> <span class="n">currentDevice</span><span class="p">].</span><span class="n">owner</span><span class="p">;</span>
+<div class="highlight"><pre><span class="n">JBDeviceOwner</span> <span class="o">*</span><span class="n">owner</span> <span class="o">=</span> <span class="p">[</span><span class="n">UIDevice</span> <span class="n">currentDevice</span><span class="p">].</span><span class="n">owner</span><span class="p">;</span>
<span class="c1">// owner will be nil if the user's data could not be found.</span>
<span class="k">if</span> <span class="p">(</span><span class="n">owner</span> <span class="o">!=</span> <span class="nb">nil</span><span class="p">)</span> <span class="p">{</span>
@@ -51,9 +50,7 @@
<span class="n">self</span><span class="p">.</span><span class="n">emailTextField</span><span class="p">.</span><span class="n">text</span> <span class="o">=</span> <span class="n">owner</span><span class="p">.</span><span class="n">email</span><span class="p">;</span>
<span class="n">self</span><span class="p">.</span><span class="n">phoneTextField</span><span class="p">.</span><span class="n">text</span> <span class="o">=</span> <span class="n">owner</span><span class="p">.</span><span class="n">phone</span><span class="p">;</span>
<span class="p">}</span>
-</pre>
-</div>
-
+</pre></div>
<h2>How does it work?</h2>
@@ -89,6 +86,7 @@
<p>Project maintained by <a href="https://github.com/jakeboxer">jakeboxer</a></p>
<p>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></p>
</footer>
- <!--[if !IE]><script>fixScale(document);</script><!--<![endif]-->
+ <!--[if !IE]><script>fixScale(document);</script><![endif]-->
+
</body>
</html>
View
2 params.json
@@ -1 +1 @@
-{"name":"JBDeviceOwner","body":"Typing names, email addresses, and other personal info is never fun. This is often your user's first experience with your app, and it sucks.\r\n\r\nFortunately, these data often already exist somewhere on your user's phone. `JBDeviceOwner` presents them to iOS app developers with a simple interface.\r\n\r\n`JBDeviceOwner` can currently get you the following attributes of the device's owner:\r\n\r\n- Name\r\n- Email address\r\n- Phone number\r\n\r\nMore are coming.\r\n\r\n## API\r\n\r\n``` objc\r\nJBDeviceOwner *owner = [UIDevice currentDevice].owner;\r\n\r\n// owner will be nil if the user's data could not be found.\r\nif (owner != nil) {\r\n self.firstNameTextField.text = owner.firstName;\r\n self.lastNameTextField.text = owner.lastName;\r\n self.emailTextField.text = owner.email;\r\n self.phoneTextField.text = owner.phone;\r\n}\r\n```\r\n\r\n## How does it work?\r\n\r\nIt's really simple actually.\r\n\r\nMost iPhones are named \"Jake Boxer's iPhone\" (sometimes with a different person's name instead of mine). Most iPhones have their owner saved in their address book.\r\n\r\n`JBDeviceOwner` extracts the owner's name from the device name, finds the matching record in the address book, and populates the `JBDeviceOwner` instance with the data from the record.\r\n\r\nIf `JBDeviceOwner` can't figure out the owner's name, or if it can't find a matching record in the address book, it won't return anything.\r\n\r\n## How to install\r\n\r\n1. Download [the latest framework ZIP](https://github.com/downloads/jakeboxer/JBDeviceOwner/JBDeviceOwner.framework.zip) from [the Downloads tab](https://github.com/jakeboxer/JBDeviceOwner/downloads). Unzip/untar it.\r\n1. Drag `JBDeviceOwner.framework` into your project.\r\n1. Add `AddressBook.framework` to your project if it's not there already (it's an Apple framework).\r\n1. Add `-ObjC` to your target's \"Other Linker Flags\".\r\n1. Add `#import <JBDeviceOwner/JBDeviceOwner.h>` to any file where you want to use `JBDeviceOwner`.\r\n1. Delight your users!\r\n\r\n## Requirements\r\n\r\n- iOS 5.0\r\n\r\n## Thanks\r\n\r\nThis library was inspired by [Square](https://squareup.com/)'s iOS app, and by [John Feminella's awesome Quora explanation](http://www.quora.com/Square-company/How-does-Square-know-my-name-in-their-apps-registration-process) of Square's magic. Fantastic idea, super clear breakdown.\r\n\r\nBig thanks to [Jeff Verkoeyen](http://twitter.com/featherless) for his [iOS-Framework](https://github.com/jverkoey/iOS-Framework) guide. For some reason, creating static iOS frameworks is a giant hassle. Jeff made it super easy. Also, this might be the only Xcode tutorial I've ever followed where everything worked as expected.","tagline":"Auto-fill iOS registration forms with the device owner's name, email, and other data","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
+{"name":"JBDeviceOwner","google":"","note":"Don't delete this file! It's used internally to help with page regeneration.","tagline":"Auto-fill iOS registration forms with the device owner's name, email, and other data","body":"Typing names, email addresses, and other personal info is never fun. This is often your user's first experience with your app, and it sucks.\r\n\r\nFortunately, these data often already exist somewhere on your user's phone. `JBDeviceOwner` presents them to iOS app developers with a simple interface.\r\n\r\n`JBDeviceOwner` can currently get you the following attributes of the device's owner:\r\n\r\n- Name\r\n- Email address\r\n- Phone number\r\n\r\nMore are coming.\r\n\r\n## API\r\n\r\n``` objc\r\nJBDeviceOwner *owner = [UIDevice currentDevice].owner;\r\n\r\n// owner will be nil if the user's data could not be found.\r\nif (owner != nil) {\r\n self.firstNameTextField.text = owner.firstName;\r\n self.lastNameTextField.text = owner.lastName;\r\n self.emailTextField.text = owner.email;\r\n self.phoneTextField.text = owner.phone;\r\n}\r\n```\r\n\r\n## How does it work?\r\n\r\nIt's really simple actually.\r\n\r\nMost iPhones are named \"Jake Boxer's iPhone\" (sometimes with a different person's name instead of mine). Most iPhones have their owner saved in their address book.\r\n\r\n`JBDeviceOwner` extracts the owner's name from the device name, finds the matching record in the address book, and populates the `JBDeviceOwner` instance with the data from the record.\r\n\r\nIf `JBDeviceOwner` can't figure out the owner's name, or if it can't find a matching record in the address book, it won't return anything.\r\n\r\n## How to install\r\n\r\n1. Download [the latest framework ZIP](https://github.com/downloads/jakeboxer/JBDeviceOwner/JBDeviceOwner.framework.zip) from [the Downloads tab](https://github.com/jakeboxer/JBDeviceOwner/downloads). Unzip/untar it.\r\n1. Drag `JBDeviceOwner.framework` into your project.\r\n1. Add `AddressBook.framework` to your project if it's not there already (it's an Apple framework).\r\n1. Add `-ObjC` to your target's \"Other Linker Flags\".\r\n1. Add `#import <JBDeviceOwner/JBDeviceOwner.h>` to any file where you want to use `JBDeviceOwner`.\r\n1. Delight your users!\r\n\r\n## Requirements\r\n\r\n- iOS 5.0\r\n\r\n## Thanks\r\n\r\nThis library was inspired by [Square](https://squareup.com/)'s iOS app, and by [John Feminella's awesome Quora explanation](http://www.quora.com/Square-company/How-does-Square-know-my-name-in-their-apps-registration-process) of Square's magic. Fantastic idea, super clear breakdown.\r\n\r\n\r\nBig thanks to [Jeff Verkoeyen](http://twitter.com/featherless) for his [iOS-Framework](https://github.com/jverkoey/iOS-Framework) guide. For some reason, creating static iOS frameworks is a giant hassle. Jeff made it super easy. Also, this might be the only Xcode tutorial I've ever followed where everything worked as expected."}
View
51 stylesheets/styles.css
@@ -22,15 +22,13 @@ body {
width: 640px;
margin: 0 auto;
background: #DEDEDE;
- -moz-border-radius: 8px;
-webkit-border-radius: 8px;
- -o-border-radius: 8px;
+ -moz-border-radius: 8px;
-ms-border-radius: 8px;
- -khtml-border-radius: 8px;
+ -o-border-radius: 8px;
border-radius: 8px;
- -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
- -o-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
+ -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 1px, rgba(0, 0, 0, 0.45) 0 3px 10px;
}
@@ -54,11 +52,10 @@ strong {
}
header {
- -moz-border-radius: 8px 8px 0 0;
-webkit-border-radius: 8px 8px 0 0;
- -o-border-radius: 8px 8px 0 0;
+ -moz-border-radius: 8px 8px 0 0;
-ms-border-radius: 8px 8px 0 0;
- -khtml-border-radius: 8px 8px 0 0;
+ -o-border-radius: 8px 8px 0 0;
border-radius: 8px 8px 0 0;
background: #C6EAFA;
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ddfbfc), color-stop(100%, #c6eafa));
@@ -118,11 +115,10 @@ header ul {
background: -ms-linear-gradient(#77b9fb, #3782cd);
background: linear-gradient(#77b9fb, #3782cd);
border-radius: 5px;
- -moz-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
-webkit-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
- -o-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
+ -moz-box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
box-shadow: inset rgba(255, 255, 255, 0.45) 0 1px 0, inset rgba(0, 0, 0, 0.2) 0 -1px 0;
- width: 240px;
+ width: auto;
}
header ul:before {
content: '';
@@ -133,15 +129,13 @@ header ul:before {
right: -5px;
bottom: -6px;
background: rgba(0, 0, 0, 0.1);
- -moz-border-radius: 8px;
-webkit-border-radius: 8px;
- -o-border-radius: 8px;
+ -moz-border-radius: 8px;
-ms-border-radius: 8px;
- -khtml-border-radius: 8px;
+ -o-border-radius: 8px;
border-radius: 8px;
- -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
- -o-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
+ -moz-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0, inset rgba(255, 255, 255, 0.7) 0 -1px 0;
}
header ul li {
@@ -150,6 +144,9 @@ header ul li {
border-right: 1px solid #3A7CBE;
height: 38px;
}
+header ul li.single {
+ border: none;
+}
header ul li + li {
width: 78px;
border-left: 1px solid #8BBEF3;
@@ -187,11 +184,10 @@ section {
background: -o-linear-gradient(#fafafa, #dedede 700px);
background: -ms-linear-gradient(#fafafa, #dedede 700px);
background: linear-gradient(#fafafa, #dedede 700px);
- -moz-border-radius: 0 0 8px 8px;
-webkit-border-radius: 0 0 8px 8px;
- -o-border-radius: 0 0 8px 8px;
+ -moz-border-radius: 0 0 8px 8px;
-ms-border-radius: 0 0 8px 8px;
- -khtml-border-radius: 0 0 8px 8px;
+ -o-border-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
position: relative;
}
@@ -233,21 +229,21 @@ blockquote {
}
img {
- max-width:100%;
+ max-width: 100%;
}
code, pre {
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
color: #333;
font-size: 12px;
+ overflow-x: auto;
}
pre {
padding: 20px;
background: #3A3C42;
color: #f8f8f2;
margin: 0 -20px 20px;
- overflow-x:auto;
}
pre code {
color: #f8f8f2;
@@ -312,25 +308,22 @@ footer p + p {
}
.wrapper {
- -moz-border-radius: 0;
-webkit-border-radius: 0;
- -o-border-radius: 0;
+ -moz-border-radius: 0;
-ms-border-radius: 0;
- -khtml-border-radius: 0;
+ -o-border-radius: 0;
border-radius: 0;
- -moz-box-shadow: none;
-webkit-box-shadow: none;
- -o-box-shadow: none;
+ -moz-box-shadow: none;
box-shadow: none;
width: 100%;
}
footer {
- -moz-border-radius: 0;
-webkit-border-radius: 0;
- -o-border-radius: 0;
+ -moz-border-radius: 0;
-ms-border-radius: 0;
- -khtml-border-radius: 0;
+ -o-border-radius: 0;
border-radius: 0;
padding: 20px;
width: auto;

0 comments on commit 558b603

Please sign in to comment.