<commit_before>/*
* PSIc0h custom scripts for H&T Website
* Author: <NAME>
* License: MIT
*/

jQuery('document').ready( function() {
  // PSIc0h --- moving product features from description to below add-to-cart button
    var prepend_element = jQuery('#psi_product_features_interior');
    jQuery('#psi_product_features').prepend(prepend_element);

  // --- PSIc0h --- on hover fade 1st div out and fade 2nd div out, when hover stops, fade 2nd div out and fade 1st in
  // --- Works for whatever is named with the specific classes (psi_flip_wrapper is parent of both psi_flip_box_front and psi_flip_box_back)
  function psi_fade_product_images() {
  var psi_target_front;
  var psi_target_back;
    jQuery('.psi_flip_wrapper').hover(function() {
      psi_target_front = jQuery(this).find('.psi_flip_box_front');
      psi_target_back = jQuery(this).find('.psi_flip_box_back');
      jQuery(psi_target_front).fadeOut(300);
      jQuery(psi_target_back).fadeIn(300);
    }, function() {
        jQuery(psi_target_back).fadeOut(300);
        jQuery(psi_target_front).fadeIn(300);
    });
  }
  psi_fade_product_images();

  // PSIc0h --- removing product information after the product summary on certain pages (checking page IDs is done in functions.php)
  // function psi_remove_product_info_after_product_sumamry() {
  //   var pro_product_element = jQuery('#').clone();
  //   jQuery('#').prepend(pro_product_element);
  // }

// end document.ready
});
<commit_msg>formatting<commit_after>/*
* PSIc0h custom scripts for H&T Website
* Author: <NAME>
* License: MIT
*/

jQuery('document').ready( function() {
  // --- PSIc0h --- moving product features from description to below add-to-cart button
    var prepend_element = jQuery('#psi_product_features_interior');
    jQuery('#psi_product_features').prepend(prepend_element);

  // --- PSIc0h --- on hover fade 1st div out and fade 2nd div out, when hover stops, fade 2nd div out and fade 1st in
  // --- Works for whatever is named with the specific classes (psi_flip_wrapper is parent of both psi_flip_box_front and psi_flip_box_back)
  // --- maybe need to move this out of the document.ready... but later
  function psi_fade_product_images() {
  var psi_target_front;
  var psi_target_back;
    jQuery('.psi_flip_wrapper').hover(function() {
      psi_target_front = jQuery(this).find('.psi_flip_box_front');
      psi_target_back = jQuery(this).find('.psi_flip_box_back');
      jQuery(psi_target_front).fadeOut(300);
      jQuery(psi_target_back).fadeIn(300);
    }, function() {
        jQuery(psi_target_back).fadeOut(300);
        jQuery(psi_target_front).fadeIn(300);
    });
  }
  psi_fade_product_images();

  // --- PSIc0h --- removing product information after the product summary on certain pages (checking page IDs is done in functions.php)
  // function psi_remove_product_info_after_product_sumamry() {
  //   var pro_product_element = jQuery('#').clone();
  //   jQuery('#').prepend(pro_product_element);
  // }

// end document.ready
});

{'fraction_non_alphanumeric': 0.12462612163509472, 'fraction_numerical': 0.013293452974410104, 'mean_word_length': 3.9263502454991817, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4490369', 'n_tokens_mistral': 1000, 'n_tokens_neox': 937, 'n_words': 231}