Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Put back demo input styles inline, and prevent demo form from submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lou Huang committed Apr 27, 2014
1 parent 8f3a1c6 commit d1aea2d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions demo.html
Expand Up @@ -4,6 +4,28 @@
body { font-family: Arial, sans-serif; font-size:13px; }
</style>
<link rel="stylesheet" href="jquery.geocodify.css"/>
<style>
#geocoder {
width: 315px;
height: 14px;
font-size: 14px;
line-height: 20px;
border: 1px solid #ccc;
outline: none;
vertical-align: top;
padding: 9px 5px;
margin: 0;
position: relative;
z-index: 9002;
color: black;
font-family: inherit;
box-sizing:inherit;
}

#geocoder:focus {
border: 1px solid #2262CC;
}
</style>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="http://underscorejs.org/underscore-min.js"></script>
Expand Down Expand Up @@ -39,6 +61,11 @@ <h1>Headline here</h1>
});
}
});

// Prevent demo form from submitting
$('form').on('submit', function (e) {
e.preventDefault();
})
</script>
</body>
</html>

0 comments on commit d1aea2d

Please sign in to comment.