Skip to content

Commit 84bbce7

Browse files
committed
try to modernize
1 parent a6c59f8 commit 84bbce7

14 files changed

+1310
-501
lines changed

Diff for: BUILD.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Build Notes
2+
3+
## Changes
4+
5+
modifications for s9 template pack:
6+
7+
o removed offline manifest
8+
o removed disclaimer; it's just a prototype anyway
9+
o removed google analytics script code
10+
o removed google maps script code
11+
o removed all slides
12+
13+
o in js/utils.js changed line 541pp queryAll('.transitionSlide')
14+
15+
- looks for h1 (not h2) and doesn't include img (icon)
16+
17+
o in styles/commons.css commented out rules for li and bullets
18+
19+
li {
20+
list-style: none;
21+
padding: 10px 0;
22+
}
23+
.bullets {
24+
font-size: 40px;
25+
}
26+
.bullets li::before {
27+
content: '· ';
28+
}
29+
30+
31+
## Some more (simple) modernizations
32+
33+
Use HTML5 (no XHTML e.g. /> etc.)
34+
35+
36+
## js/excss.js
37+
38+
Moved css preprocessor to attic (try to convert/use sass/scss - why? why not?)
39+
40+
## js/utils.js
41+
42+
Remove bind polyfill e.g.
43+
44+
```
45+
// bind polyfill
46+
if (!Function.prototype.bind) {
47+
Function.prototype.bind = function (oThis) {
48+
if (typeof this !== "function") {
49+
// closest thing possible to the ECMAScript 5 internal IsCallable function
50+
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
51+
}
52+
53+
var fSlice = Array.prototype.slice,
54+
aArgs = fSlice.call(arguments, 1),
55+
fToBind = this,
56+
fNOP = function () {},
57+
fBound = function () {
58+
return fToBind.apply(this instanceof fNOP
59+
? this
60+
: oThis || window,
61+
aArgs.concat(fSlice.call(arguments)));
62+
};
63+
64+
fNOP.prototype = this.prototype;
65+
fBound.prototype = new fNOP();
66+
67+
return fBound;
68+
};
69+
}
70+
```

Diff for: LICENSE.g5.txt

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
Copyright 2011 Google Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
16+
Original slides: Marcin Wichary ([email protected])
17+
Modifications: Chrome DevRel Team ([email protected])
18+
Alex Russell ([email protected])
19+
Brad Neuberg

Diff for: QUICKREF.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Quick Reference
2+
3+
4+
## Usage - Keyboard Shortcuts
5+
6+
7+
8+
9+
## Structure

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ More [Slide Show (S9) Project Site »](http://slideshow-s9.github.io)
1313

1414
## Intro
1515

16-
Google's [HTML5 Rocks Slides](https://github.com/html5rocks/www.html5rocks.com) code
16+
Google's [HTML5 Rocks Slides](https://github.com/html5rocks/slides.html5rocks.com) code
1717
bundled up into a Slide Show (S9) template pack (includes Moon, Sand and Sea Wave themes).
1818

1919
<!--

Diff for: _config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ collections:
1313

1414

1515
exclude:
16+
- attic
1617
- README.md
17-
- NOTES.md
18+
- QUICKREF.md
19+
- BUILD.md
20+
- LICENSE.g5.txt
1821
- package.json
1922
- g5.txt
2023
- io2011

Diff for: js/excss.js renamed to attic/js/excss.js

File renamed without changes.

0 commit comments

Comments
 (0)