<commit_before>(function($) {

  $(function(){
    var top_nav = $('#top-nav');
    $('body').css('padding-top', $('body>.container-fluid').offset().top + 'px');
    top_nav.css('position', 'fixed');

    if($("#g-theme-menu")){
      $('#g-theme-menu li>a').click(function(){
        var $el = $(this);
        var themeHref = $el.data('css-href');
        $.save_user_settings("site-theme", themeHref, function(){
          $('#site-theme').attr('href', themeHref);

          setTimeout(function(){
            var nav_height = $('#top-nav').height();
            $('body').animate({'padding-top': (nav_height + 18)}, 500, 'easeOutBounce');
          }, 500);

          $('#g-theme-menu li').removeClass('active');
          $el.parent().addClass('active');
        });
      })
    }
  });

})(jQuery);<commit_msg>try to load theme css use image tag, not success, need help.<commit_after>(function($) {

  $(function(){
    var top_nav = $('#top-nav');
    $('body').css('padding-top', $('body>.container-fluid').offset().top + 'px');
    top_nav.css('position', 'fixed');

    if($("#g-theme-menu")){
      $('#g-theme-menu li>a').click(function(){
        var $el = $(this);
        var themeHref = $el.data('css-href');
        $.save_user_settings("site-theme", themeHref, function(){

          //$('<img />').load(function () {
            $('#site-theme').attr('href', themeHref);

            setTimeout(function(){
              var nav_height = $('#top-nav').height();
              $('body').animate({'padding-top': (nav_height + 18)}, 500, 'easeOutBounce');
            }, 500);

          //  $(this).remove();
          //}).attr('src', themeHref);

          $('#g-theme-menu li').removeClass('active');
          $el.parent().addClass('active');
        });
      })
    }
  });

})(jQuery);
{'fraction_non_alphanumeric': 0.24613686534216336, 'fraction_numerical': 0.008830022075055188, 'mean_word_length': 2.4731800766283527, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2958687', 'n_tokens_mistral': 584, 'n_tokens_neox': 559, 'n_words': 91}