Skip to content

Instantly share code, notes, and snippets.

//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
}
@eddie1707
eddie1707 / javascript.html
Created January 27, 2014 13:03
Javascript opdracht
<!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 />