Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed up some of the javascript and formatting
  • Loading branch information
yamatt committed May 4, 2012
1 parent 665e271 commit 11f3a99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion static/all.css
Expand Up @@ -43,6 +43,7 @@ button {
}

.top-spacer {
display: inline-block;
display: block;
margin-top: 2em;
}

6 changes: 3 additions & 3 deletions static/qrapi.js
Expand Up @@ -27,7 +27,7 @@ var base_url = "/";
$(document).ready(function() {
var image_area = $('<div></div>');
image_area.attr('class', 'fat-border padding top-spacer');
var container = $('#container');
var form = $('form');

add_tip_to($('#tips'))

Expand All @@ -46,7 +46,7 @@ $(document).ready(function() {
image_area.empty();
image_area.hide();
image_area.append(qr_image);
container.append(image_area);
form.after(image_area);
image_area.fadeIn();
}
else {
Expand All @@ -62,7 +62,7 @@ function add_tip_to(element){
$(this).fadeIn("normal", function () {
setTimeout(function () {
add_tip_to(element)
}, 5000);
}, tip_delay);
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion templates/frontpage.html
Expand Up @@ -14,8 +14,8 @@
<span class="small grey block" id="tips"></span>
<button type="submit">Get QR image</button>
</form>
<span data-adblocksize="468x60" class="emberadblock" ></span>
</div>
<span data-adblocksize="468x60" class="emberadblock" ></span>
<div>
<h1>QR API</h1>
<p>Is an API that allows you to directly create images with QR patterns in them to be generated dynamically through a web interface</p>
Expand Down

0 comments on commit 11f3a99

Please sign in to comment.