A Pen by Andrés González Aragón on CodePen.
Created
February 1, 2017 01:57
-
-
Save Quantium/84dc9a52ff6b0b5fa8db167d1612ada8 to your computer and use it in GitHub Desktop.
JEpBQp
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
<div id="output"> | |
</div> | |
<p id="chimino"> | |
Chimino animal maldito sal de tu ahujerito que vamos a trabajar | |
</p> | |
<p id="fundamentos"> | |
Los fundamentos de la psicología de la comunicación son 4. El psicoanálisis, el conductismo, El Gestalt, el cognocitivismo. | |
</p> | |
<p id="representantes"> | |
El máximo representante del conductimos es el estadounidense Skiner. El máximo representante del psicoanálisis el Sigmund Freud. Fred Pears del Gestalt y Jean Piaget. | |
</p> | |
<p id="elba"> | |
Elba Esther Gordillo es la mamá de todos los anteriores, y cada mexicano tiene una Elba Esther Gordillo dentro. | |
</p> | |
<p id="creep"> | |
I don't care if hurts, I wanna have control, I wanna perfect body, I wanna perfect soul, I want you to notice when I'm not around. | |
</p> |
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
$('p').on('click', function(e){ | |
$('#output').text($(this).attr('id')) | |
$('p').removeClass('hightlighted'); | |
$(this).addClass('hightlighted'); | |
}); |
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> |
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
.hightlighted { | |
color : #33AAFF; | |
background-color: #CCC333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment