PORTSMOUTH, N.H. – A Portsmouth High School teacher who made a fool of herself by dancing like a duck in class to the song “F*** Donald Trump” while dressed as the Republican presidential candidate is now apologizing for her outrageous behavior.

She’s also blaming her students for the production, which a witness recorded with a cellphone and posted online.

MORE NEWS: From Classroom to Consulate Chef: Culinary Student Lands Dream Job at U.S. Embassy in Paris

Math teacher Kara Kelley is on paid administrative leave after a video posted online showed her dressed as The Donald and dancing ridiculously to a profanity-laced “F*** Donald Trump” song in class on Halloween, Seacoast Online reports.

Kelley told the news site a department head previously dressed as Donald Trump for a school “Twin Day,” so she figured the costume was appropriate.

“I figured if he can wear a Trump costume, I can wear a Trump costume,” Kelley said, adding that she’ll be voting for Hillary Clinton today. “It was Halloween, I thought it would be fun and I liked it.”

Kelley contends she dances “all the time” during class and when a student played the “F*** Donald Trump” song she didn’t listen to the lyrics, she was just “feeling the beat.”

“I have been dancing already,” she said.

“I never heard the song and didn’t know what the lyrics were and I was really just dancing a little to it and feeling the beat,” Kelley said. “After a while, I realized they were saying ‘F*** Donald Trump’ and I said, ‘Guys, guys, we’ve gotta stop, we’ve gotta get back to work, let’s shut it down’ and we did.

MORE NEWS: Know These Before Moving From Cyprus To The UK

“I shouldn’t have let that go on and when I figured it out, it was too late.”

[xyz-ihs snippet=”NEW-In-Article-Rev-Content-Widget”]

Kelley said she’s received threats and her job is now on the line because of the mishap. She contends she even had to get special permission to go to a district school to vote Tuesday, NH 1 reports.

Kelley was approached by school officials shortly after her classroom performance because a parent contacted them about the video. They asked her to change out of her Donald duds, but she refused because her colleague who wore his Trump get-up for Twin Day wasn’t required to do so.

“Mind you, during this whole meeting I’m still in a Trump costume,” she said. “I was escorted out of the building in a Trump costume.”

But instead of heading home to contemplate her actions, Kelley decided to recreate her performance without the “F*** Donald Trump” tunes for the annual Portsmouth Halloween Parade the same night.

Kelley said she danced along the parade route in front of a New Orleans jazz band, and “it was very cathartic.”

And while Kelley contends that her students are to blame for making the school a national embarrassment by recording her behavior with phones they’re supposed to have “put away” in class, she issued a quasi-apology that makes it clear she expects to return to the classroom.

“I am sorry I let the music (expletive) Donald Trump play in my classroom. In an instant, I let inappropriate music be played by a student in my classroom, something I will try and prevent in the future. I should have been more aware of the fact that cell phones allow students to make recordings, musical outbursts, and other distractions in the middle of class, and that sometimes, like here, a relaxed classroom atmosphere is not the best classroom atmosphere,” Kelley wrote in a statement presented during a meeting between her union lawyer and city attorneys Nov. 3.

“That is doubly true in the middle of a highly charged presidential race. I do not regret wearing a Donald Trump costume to class on Halloween, but I do regret letting matters get beyond my control in class,” she continued. “I will be more aware of that in the future and endeavor to not let something like that happen in my class again.”

District superintendent Steve Zadravec condemned Kelley’s antics last week by has not disclosed what, if any, punishment the teacher might face.

Kelley alleges school officials plan to impose a one week unpaid suspension, and she will fight it if they do.

“If I get a week suspension I would grieve it,” she told Seacoast Online. “I feel like I’ve apologized to (school officials) and I’m looking forward to apologizing to my students. Let’s get back to business as usual.”