Sure, here's a simple example of a Five Nights at Freddy's fan game implemented as a single HTML file using JavaScript:
Five Nights at Freddy's Fan Game
🐻🐔🦊🐰
This simple fan game presents a game area with four pictograms of popular Five Nights at Freddy's characters (bear, chicken, fox, and rabbit). The pictograms change every second, and the user earns points by clicking on the rabbit pictogram. If the user clicks on any other pictogram, the game ends and their final score is displayed.
Please note that this is a very basic implementation and may not have the complexity or mechanics of the actual Five Nights at Freddy's game. It is just a demonstration of how a fan game can be created using HTML, JavaScript, and pictograms.