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
//MARK: - UITableViewDelegate | |
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | |
tableView.deselectRow(at: indexPath, animated: true) | |
let previousIndexPath = selectedIndexPath | |
if indexPath == selectedIndexPath { | |
selectedIndexPath = nil | |
} else { | |
selectedIndexPath = indexPath | |
} | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Introductie Javascript</title> | |
</head> | |
<body> | |
<a href="#" onClick="MaakDeBoxRood()" id="link1">Ik ben button 1</a> <br /> | |
<a href="javascript:MaakDeBoxRood()" id="link2">Ik ben button 2</a> <br /> |