-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow-hide-section.html
49 lines (36 loc) · 1.49 KB
/
show-hide-section.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - Simple Show Hide Section</title>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js">
</script>
<script
src="spicy.js">
</script>
<link rel="stylesheet" type="text/css" href="mm.css" />
<link rel="stylesheet" type="text/css" href="octicons.css" />
</head>
<body ng-app="spicyApp1">
<div id="github">
<span data-icon="" class="mega-icon octicon-file-submodule"></span>
<div ng-app id="ng-app">
<a href="#" ng-model="collapsed" ng-click="collapsed=!collapsed">Click here to <strong>Toggle (show/hide)</strong> description</a>
<div ng-show="collapsed">I am description for the above title, which was collapsed by default</div>
<hr />
<label for="chklabl">
<input type="checkbox" ng-model="checked" name="chklabl" id="chklabl"> Check this checkbox to show/hide this example is from AngularJS API Reference
</label>
<br/>
Show: <span ng-show="checked">I show up when your checkbox is checked.</span>
<br/>
Hide: <span ng-hide="checked">I hide when your checkbox is checked.</span>
<hr />
<span><span style="opacity:0.2;font-size:3px;">⬤</span> Minor difference (1 point)</span>
<span><span style="opacity:0.2;font-size:3px;">§</span> Minor difference (1 point)</span>
<span class="folddown" style="transform: rotate(0deg);">►</span>
<span class="folddown" style="transform: rotate(90deg);">►</span> = $0
</div>
</body>
</html>