Created
June 1, 2016 06:10
-
-
Save takustaqu/05cedd32f98a782a3475b802946557a2 to your computer and use it in GitHub Desktop.
This file contains 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
// IF文 | |
if(IS_APPEAR){ | |
$(this).addClass("appear"); | |
} else { | |
$(this).removeClass("appear"); | |
} | |
if(IS_APPEAR_NARROW){ | |
$(this).addClass("current"); | |
} else { | |
$(this).removeClass("current"); | |
} | |
// サンコン演算子 | |
IS_APPEAR ? | |
$(this).addClass("appear") : $(this).removeClass("appear"); | |
IS_APPEAR_NARROW ? | |
$(this).addClass("current") : $(this).removeClass("current"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment