Forked from digitalgeneralist/gist:e89b2eb3f735bdb51fde
          
        
    
          Last active
          March 14, 2016 14:11 
        
      - 
      
- 
        Save thomasfr/fcec40e289bd40d9461a to your computer and use it in GitHub Desktop. 
    function sidebars
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $(function() { | |
| console.log('ich werde ausgeführt wenn alle DOM ready und alles geladen ist') | |
| function triggerColLeftIcon(){ | |
| $('.col-icon-left').css({'display':'none!important'}); | |
| $('.col-icon-right').css({'display':'block!important'}); | |
| } | |
| function triggerColRightIcon(){ | |
| $('.col-icon-right').css({'display':'none!important'}); | |
| $('.col-icon-left').css({'display':'block!important'}); | |
| } | |
| $('.col-icon-left').on('click', triggerColLeftIcon); | |
| $('.col-icon-right').on('click', triggerColRightIcon); | |
| }); | |
| // oder | |
| (function($) { | |
| $('.col-icon-left').on('click', function() { | |
| $('.col-icon-left').css({'display':'none!important'}); | |
| $('.col-icon-right').css({'display':'block!important'}); | |
| }); | |
| $('.col-icon-right').on('click', function() { | |
| $('.col-icon-right').css({'display':'none!important'}); | |
| $('.col-icon-left').css({'display':'block!important'}); | |
| }); | |
| })(jQuery); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment