Exemplo n.º 1
0
    echo '</ul>';
} else {
    ?>
<div class="bs-callout bs-callout-warning">No syndication targets were found on your site. 
              You can provide a <a href="/docs#syndication">list of supported syndication targets</a> that will appear as checkboxes here.</div><?php 
}
?>
          </div>
        </div>
      </form>


      <hr>
      <div style="text-align: right;">
        Bookmarklet: <a href="javascript:<?php 
echo js_bookmarklet('partials/bookmark-bookmarklet', $this);
?>
" class="btn btn-default btn-xs">bookmark</a>
      </div>

  </div>

<script>
$(function(){

  // ctrl-s to save
  $(window).on('keydown', function(e){ 
    if(e.keyCode == 83 && e.ctrlKey){
      $("#btn_post").click();
    } 
  });
Exemplo n.º 2
0
?>
" class="form-control">
        </div>

        <div style="float: right; margin-top: 6px;">
          <button class="btn btn-success" id="btn_post">Post</button>
        </div>

      </form>

      <div style="clear: both;"></div>

      <hr>
      <div style="text-align: right;">
        Bookmarklet: <a href="javascript:<?php 
echo js_bookmarklet('partials/favorite-bookmarklet', $this);
?>
" class="btn btn-default btn-xs">favorite</a>
      </div>

  </div>

<script>
$(function(){

  // ctrl-s to save
  $(window).on('keydown', function(e){ 
    if(e.keyCode == 83 && e.ctrlKey){
      $("#btn_post").click();
    } 
  });