Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 74c14d2

Browse files
authored
Load HammerJs in index.html (#47)
* Load HammerJs * Fix lint error
1 parent 7d19065 commit 74c14d2

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

angular-cli.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"prefix": "app",
1919
"mobile": false,
2020
"styles": [
21-
"main.scss"
21+
"main.scss",
22+
"highlightjs/solarized-light.css"
2223
],
2324
"scripts": [],
2425
"environments": {

browser-providers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const configuration = {
1414
'IE9': { unitTest: {target: null}, e2e: {target: null}},
1515
'IE10': { unitTest: {target: null}, e2e: {target: null}},
1616
'IE11': { unitTest: {target: null}, e2e: {target: null}},
17-
'Edge': { unitTest: {target: 'SL'}, e2e: {target: null}},
17+
'Edge': { unitTest: {target: null}, e2e: {target: null}},
1818
'Android4.1': { unitTest: {target: null}, e2e: {target: null}},
1919
'Android4.2': { unitTest: {target: null}, e2e: {target: null}},
2020
'Android4.3': { unitTest: {target: null}, e2e: {target: null}},
@@ -297,4 +297,4 @@ function buildConfiguration(type, target) {
297297
.map(item => [item, configuration[item][type]])
298298
.filter(([item, conf]) => conf.target == target)
299299
.map(([item, conf]) => `${target}_${item.toUpperCase()}`);
300-
}
300+
}

src/app/examples/dialog-result/dialog-result-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class DialogResultExample {
1515
let dialogRef = this.dialog.open(DialogResultExampleDialog);
1616
dialogRef.afterClosed().subscribe(result => {
1717
this.selectedOption = result;
18-
})
18+
});
1919
}
2020
}
2121

src/index.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<meta charset="utf-8">
55
<title>Angular Material</title>
66
<base href="/">
7-
87
<meta name="viewport" content="width=device-width, initial-scale=1">
98

109
<link rel="icon" type="image/x-icon" href="favicon.ico">
@@ -16,24 +15,17 @@
1615
<link rel="icon" type="image/png" href="assets/img/favicons/android-chrome-192x192.png"
1716
sizes="192x192">
1817
<link rel="manifest" href="assets/img/favicons/manifest.json">
19-
2018
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
21-
22-
<!-- TODO(jelbourn): load highlight.js style based on the current theme -->
23-
<link rel="stylesheet" href="./highlightjs/solarized-light.css">
2419
</head>
2520

2621
<body>
27-
2822
<material-docs-app>Loading...</material-docs-app>
29-
<!-- TODO: google feedback -->
30-
<!-- TODO: twitter widget (but only on pages that use twitter) -->
31-
3223
<script>
3324
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
3425
ga('create', 'UA-8594346-24', 'auto');
3526
ga('send', 'pageview');
3627
</script>
3728
<script async src='https://www.google-analytics.com/analytics.js'></script>
29+
<script async src="https://ajax.googleapis.com/ajax/libs/hammerjs/2.0.8/hammer.min.js"></script>
3830
</body>
3931
</html>

0 commit comments

Comments
 (0)