SHARE
TWEET

Untitled

a guest Dec 23rd, 2016 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*Optionen - Allgemein - Anpassen - JavaScript (Footer)*/
  2.  
  3. <script> // Warenkorn Icon und Überschrift Farbe ändern
  4.  
  5. jQuery( document ).ready(function() {
  6.     jQuery(".cart-mini .fa, .cart-mini strong").change();
  7. });
  8.  
  9. jQuery( document ).ajaxComplete(function() {
  10.     jQuery(".cart-mini .fa, .cart-mini strong").change();
  11. });      
  12.  
  13.  
  14. jQuery.fn.change = function() {
  15.     if (jQuery('span.cart-items').text() == '0') {
  16.         jQuery(this).removeClass("voll").addClass("leer");  
  17.     }
  18.     else {
  19.         jQuery(this).removeClass("leer").addClass("voll");  
  20.     }
  21.   };
  22.  
  23. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top