# JavaScript

## Moodle H2

H2 header inside a Moodle page is usually redundant. Remove that with the following code chunk.

## anki

Hide and show small texts. Click to toggle.

- The highest mountain in Japan is Mt. Fuji.
- The capital of Japan is Tokyo.

### modal window

Students may want to check the definition of difficult terms. Use modal windows let them do so very easily.

Set up the jquery modal…

prepare the dictionary…

Click to open the definitions:

- Macroeconomics
- Microeconomics
- Public Finance

Expand the usually hidden blocks with the following code. This code must be run at the end of the document.

## Macroeconomics

the branch of economics concerned with large-scale or general economic factors, such as interest rates and national productivity. (Definitions from Oxford Languages)

## Microeconomics

the part of economics concerned with single factors and the effects of individual decisions. (Definitions from Oxford Languages)

## Public Finance

Public finance is the study of the role of the government in the economy.[1] It is the branch of economics that assesses the government revenue and government expenditure of the public authorities and the adjustment of one or the other to achieve desirable effects and avoid undesirable ones. (Wikipedia)