You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.2 KiB
JavaScript

$(document).ready(function() {
$('.chosen_words').click( function(){
var word = $(this).text();
alert(word);
});
$('.t_chosen_words').click( function(){
var word = $(this).text();
alert(word);
});
$('.TO, .DT, .IN, .WDT, .WP, .MD, .PRP, .CC, .marks, .comma, .dot').click(
function() {
$('.TO, .DT, .IN, .WDT, .WP, .MD, .PRP, .CC, .marks, .comma, .dot').toggleClass('hide');
});
$('.JJ').click(
function() {
$('.JJ').toggleClass('adjective');
});
$('.NN, .NNS').click(
function() {
$('.NN, .NNS').toggleClass('noun');
});
$('.VB, .VBZ, .VBN, .VVD').click(
function() {
$('.VB, .VBZ, .VBN, .VVD').toggleClass('verb');
});
$('.NNP, .NNPS').click(
function() {
$('.NNP, .NNPS').toggleClass('propernoun');
});
$('.RB').click(
function() {
$('.RB').toggleClass('adverb');
});
$('.RBR, .JJR').click(
function() {
$('.RBR, .JJR').toggleClass('adverb-comparative');
});
$('.RBS').click(
function() {
$('.RBS').toggleClass('adverb-superlative');
});
$('.image').click(
function() {
$(this).toggleClass('img_clicked');
});
$('.t_image').click(
function() {
$(this).toggleClass('t_img_clicked');
})
})