scripts.js 607 B

12345678910111213141516171819202122232425
  1. /*
  2. Bones Scripts File
  3. Author: Eddie Machado
  4. This file should contain any js scripts you want to add to the site.
  5. Instead of calling it in the header or throwing it inside wp-head()
  6. this file will be called automatically in the footer so as not to
  7. slow the page load.
  8. */
  9. // as the page loads, cal these scripts
  10. $(document).ready(function() {
  11. // highlight search terms on search page
  12. if(typeof(hls_query) != 'undefined'){
  13. $(".post_content").highlight(hls_query, 1, "search-term");
  14. }
  15. // the placeholder fallback jquery (adds support for html5 placeholder)
  16. }); /* end of as page load scripts */