Merge branch 'master' of github.com:Gluejar/regluit into payment

pull/1/head
Raymond Yee 2011-12-12 11:25:36 -08:00
commit c544dd0221
10 changed files with 25 additions and 4 deletions

View File

@ -15,6 +15,8 @@
{% block base_js %}
<script type="text/javascript" src="/static/js/jquery-1.6.3.min.js"></script>
{% endblock %}
<script type="text/javascript" src="/static/js/watermark_init.js"></script>
<script type="text/javascript" src="/static/js/watermark_change.js"></script>
{% block extra_head %}
{% endblock %}
</head>
@ -31,7 +33,7 @@
<div class="js-search">
<div class="js-search-inner">
<form action="{% url search %}" method="get">
<input type="text" placeholder="Search for a book..." size="25" class="inputbox" name="q" value="{{ q }}">
<input type="text" id="watermark" size="25" class="inputbox" name="q" value="{{ q }}">
<input type="button" onclick="this.form.searchword.focus();" class="button" value="Search">
</form>
</div>

View File

@ -51,6 +51,10 @@ var $j = jQuery.noConflict();
});
});
</script>
<script type="text/javascript" src="/static/js/watermark_init.js"></script>
<script type="text/javascript" src="/static/js/watermark_change.js"></script>
{% endblock %}
{% block topsection %}
@ -113,7 +117,7 @@ var $j = jQuery.noConflict();
<div id="js-search">
<label>What book would you give to the world? </label>
<form action="{% url search %}" method="get">
<input type="text" placeholder="Search for a book..." size="25" class="inputbox" name="q" value="{{ q }}">
<input type="text" id="watermark" onfocus="imgfocus()" onblur="imgblur()" size="25" class="inputbox" name="q" value="{{ q }}">
<input type="button" onclick="this.form.searchword.focus();" class="button" value="Search">
</form>
</div>

View File

@ -269,7 +269,7 @@ h2.page-heading {
float: left;
padding: 0;
margin: 5px 0 5px 20px;
background: none;
width: 175px;
}
#js-search input[type=button] {
background: url(/static/images/landingpage/search-button.png) 0 0 no-repeat;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@ -0,0 +1,9 @@
function imgblur(){
if (document.getElementById('watermark').value == "") {
document.getElementById('watermark').style.background="url('/static/images/google_watermark.gif') no-repeat left center";
}
}
function imgfocus(){
document.getElementById('watermark').style.background="";
}

View File

@ -0,0 +1,6 @@
var $j = jQuery.noConflict();
$j(document).ready(function() {
if (!$j('#watermark').val()) {
$j('#watermark').css({"background": "url('/static/images/google_watermark.gif') no-repeat left center"});
}
});

View File

@ -305,7 +305,7 @@ h2.page-heading {
float:left;
padding:0;
margin:5px 0 5px 20px;
background:none;
width: 175px;
}
&[type=button] {