Source

benoitc.im / _attachments / account.html

The default branch has multiple heads

Full commit
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>benoît chesneau, web craftman.</title>

    <!--[if IE]>

    <script>
        // allow IE to recognize HTMl5 elements
        document.createElement('section');
        document.createElement('article');
        document.createElement('aside');
        document.createElement('footer');
        document.createElement('header');
        document.createElement('nav');
        document.createElement('time');

    </script>
    <![endif]-->
    <link rel="openid.server" href="http://www.myopenid.com/server">
    <link rel="openid.delegate" href="http://bchesneau.myopenid.com/">
    <link rel="home index" href="http://benoitc.org/" type="text/html">
    <link rel="me author" href="http://benoitc.org/about.html" type="text/html">
    <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen, projection" />

</head>


<body>
        <header>
        <h1>
            <a rel="me author" href="benoitc.html">Benoît Chesneau</a>
        </h1>
        </header>
        <section id="content">
            <h1>Login via the popup or hit cancel.</h1>
            <p>Edit CouchDB's configuration to create admin users. You may be able to accomplish this via the HTTP API or <a href="http://wiki.apache.org/couchdb/Setting_up_an_Admin_account">of course by editing local.ini</a>.</p>
            <p>This blog will eventually move to application users (stored in the DB) but using admin users for now gives me a platform to experiment with validation models.</p>
        </section> 

        <footer id="main-footer">
            <p class="copyright">Copyright &copy; 2009 by <a rel="me author"
                href="about.html">Benoît Chesneau</a> </p>
        </footer>
</body>

    <script src="/_utils/script/json2.js"></script>
    <script src="/_utils/script/jquery.js"></script>
    <script src="/_utils/script/jquery.cookies.js"></script>
    <script src="/_utils/script/jquery.couch.js"></script>

    <script src="js/jquery.couchapp.js"></script>
    
    <script>
        $.CouchApp(function(app) {
		      var redirectUrl = document.location.hash.replace('#','');
		      $('#content').append('<p>Attempting login.</p>');
		      app.attemptLogin(function(login) {
		        if (redirectUrl) document.location = unescape(redirectUrl).replace('_design/','_design%2F');
		        $('#content').append('<p>Success.</p>');
		        $('h1').text('Welcome '+login);
		        $('#content').append('<p>Now that you\'re logged in, you can <a href="_show/edit">write blog posts.</a></p>');
		      }, function() {
		        $('h1').text('Incorrect login');
		        $('#content').append('<p>Fail.</p>');
		      });
		    });
    </script>

</html>