Skip to content

Commit

Permalink
Fit our default quote better and add some more funny quotes on page load
Browse files Browse the repository at this point in the history
  • Loading branch information
dannydb committed Jan 9, 2014
1 parent 4a29891 commit 91015c1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion less/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ header {
margin: @line-height-computed;
position: relative;
padding: @grid-gutter-width * 2;
font-size: 75px;
font-size: 90px;
line-height: 1 !important;
overflow: hidden;

Expand Down
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h1>Quotable</h1>
</div>
<div class="form-group">
<label for="fontsize">Font Size</label>
<input id="fontsize" name="fontsize" type="range" min="32" max="106">
<input id="fontsize" name="fontsize" type="range" min="32" max="106" value="90">
</div>
<div class="form-group">
<label for="show">Show Attribution</label>
Expand Down
16 changes: 9 additions & 7 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ $(function(){
$poster.removeClass('square two-to-one').addClass($(this).attr('id'));

if ($poster.hasClass('two-to-one')){
adjust_font_size(36);
$font_size.val(36);
adjust_font_size(32);
$font_size.val(32);
} else {
adjust_font_size(72);
$font_size.val(72);
adjust_font_size(90);
$font_size.val(90);
}
});

Expand All @@ -116,9 +116,11 @@ $(function(){
.append('<span>,</span> <em>' + input_text + '</em>');
});

// This event is interfering with the medium editor in some browsers
// $('h1').on('keyup', function(){
// process_text();
// // This event is interfering with the medium editor in some browsers
// $('blockquote').on('keyup', function(){

// console.log($(this)[0].selectionStart);
// process_text();
// });


Expand Down
2 changes: 1 addition & 1 deletion www/test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h1>Quotable</h1>
<label>Aspect ratio</label>
<div id="aspect-ratio" class="btn-group">
<button id="square" class="btn btn-default btn-primary">Square</button>
<button id="two-to-one" class="btn btn-default">2:1 (Twitter)</button>
<button id="two-to-one" class="btn btn-default">2:1 <small>(Twitter)</small></button>
</div>
</div>
<div class="form-group">
Expand Down

0 comments on commit 91015c1

Please sign in to comment.