Skip to content

Commit

Permalink
Consistent, WSK-based styles for all the examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Sep 16, 2014
1 parent 021c01b commit 49b2f4d
Show file tree
Hide file tree
Showing 10 changed files with 308 additions and 67 deletions.
36 changes: 28 additions & 8 deletions beacon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,33 @@
limitations under the License.
-->
<html>
<head>
<head lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="description" content="Sample illustrating the use of Beacon.">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Beacon Sample</title>

<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../images/touch/chrome-touch-icon-192x192.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-title" content="Beacon Sample">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon-precomposed.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">

<link rel="icon" href="../images/favicon.ico">

<link rel="stylesheet" href="../styles/main.css">
</head>
<body>
Expand Down Expand Up @@ -56,13 +75,13 @@ <h1>Beacon Sample</h1>

<!-- // [START code-block] -->
<script>
window.addEventListener('unload', logData, false);
window.addEventListener('unload', logData, false);

var diagnosticData = 'Sent by a beacon!';
var diagnosticData = 'Sent by a beacon!';

function logData() {
navigator.sendBeacon("https://putsreq.herokuapp.com/Dt7t2QzUkG18aDTMMcop", diagnosticData);
}
function logData() {
navigator.sendBeacon("https://putsreq.herokuapp.com/Dt7t2QzUkG18aDTMMcop", diagnosticData);
}
</script>
<!-- // [END code-block] -->

Expand All @@ -72,8 +91,9 @@ <h1>Beacon Sample</h1>
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53563471-1');
ga('create', 'UA-53563471-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>
29 changes: 26 additions & 3 deletions collections-iterators-es6/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,34 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="description" content="Sample illustrating the use of ES6 Collections and Iterators.">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Collections and Iterators (ES6) Sample</title>

<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../images/touch/chrome-touch-icon-192x192.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-title" content="Collections and Iterators (ES6) Sample">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon-precomposed.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">

<link rel="icon" href="../images/favicon.ico">

<link rel="stylesheet" href="../styles/main.css">
</head>
<body>
Expand All @@ -40,7 +60,9 @@ <h1>Collections and Iterators (ES6) Sample</h1>
</p>

<!-- // [START code-block] -->
<pre id="log"></pre>
<div class="output">
<pre id="log"></pre>
</div>

<script>
function log() {
Expand Down Expand Up @@ -110,8 +132,9 @@ <h1>Collections and Iterators (ES6) Sample</h1>
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53563471-1');
ga('create', 'UA-53563471-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>
87 changes: 55 additions & 32 deletions css-shapes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,53 +14,75 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="description" content="Sample illustrating the use of CSS Shapes Level 1.">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>CSS Shapes Level 1 Sample</title>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>

<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../images/touch/chrome-touch-icon-192x192.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-title" content="CSS Shapes Level 1 Sample">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon-precomposed.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">

<link rel="icon" href="../images/favicon.ico">

<link rel="stylesheet" href="../styles/main.css">
</head>

<body>
<h1>CSS Shapes Level 1 Sample</h1>
<p>Available in <a href="http://www.chromestatus.com/feature/5163890719588352">Chrome 37+</a></p>

<style>
.shape {
width: 160px;
height: 160px;
background-color: red;
background-size: 260px 260px;
}
p {
width: 100%;
max-width: 500px;
font-size: 14px;
}
.shape {
width: 160px;
height: 160px;
background-color: red;
background-size: 260px 260px;
}
p {
width: 100%;
max-width: 500px;
font-size: 14px;
}

p:after {
content: '';
display:block;
clear: both;
}
p:after {
content: '';
display:block;
clear: both;
}

.polygon {
-webkit-clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%);
clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%);
}
.polygon {
-webkit-clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%);
clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%);
}

.circle {
-webkit-clip-path: circle(80px at 50% 50%);
clip-path: circle(80px at 50% 50%);
}
.circle {
-webkit-clip-path: circle(80px at 50% 50%);
clip-path: circle(80px at 50% 50%);
}

.inset {
border-radius: 40px;
width: 140px;
height: 140px;
}
.inset {
border-radius: 40px;
width: 140px;
height: 140px;
}
</style>

<h2>Defining the shape</h2>
Expand Down Expand Up @@ -256,8 +278,9 @@ <h2>Shape spacing</h2>
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53563471-1');
ga('create', 'UA-53563471-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>
27 changes: 24 additions & 3 deletions dialog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,37 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="description" content="Sample illustrating the use of the dialog element.">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>&lt;dialog&gt; Element Sample</title>

<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700' rel='stylesheet' type='text/css'>
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../images/touch/chrome-touch-icon-192x192.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-title" content="dialog Element Sample">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon-precomposed.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">

<link rel="icon" href="../images/favicon.ico">

<link rel="stylesheet" href="../styles/main.css">
</head>

<body>
<h1>&lt;dialog&gt; Element Sample</h1>
<p>Available in <a href="http://www.chromestatus.com/feature/5770237022568448">Chrome 37+</a></p>
Expand Down Expand Up @@ -54,8 +74,9 @@ <h1>&lt;dialog&gt; Element Sample</h1>
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53563471-1');
ga('create', 'UA-53563471-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>
30 changes: 27 additions & 3 deletions encoding-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,37 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="description" content="Sample illustrating the use of the Encoding API.">

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Encoding API Sample</title>

<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../images/touch/chrome-touch-icon-192x192.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-title" content="Encoding API Sample">

<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon-precomposed.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">

<link rel="icon" href="../images/favicon.ico">

<link rel="stylesheet" href="../styles/main.css">
</head>

<body>
<h1>Encoding API Sample</h1>
<p>Available in <a href="http://www.chromestatus.com/feature/5714368087982080">Chrome 38+</a></p>
Expand All @@ -42,7 +63,9 @@ <h1>Encoding API Sample</h1>
</p>

<!-- // [START code-block] -->
<pre id="results"></pre>
<div class="output">
<pre id="results"></pre>
</div>

<script>
if ('TextDecoder' in window) {
Expand Down Expand Up @@ -90,8 +113,9 @@ <h1>Encoding API Sample</h1>
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53563471-1');
ga('create', 'UA-53563471-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Built with love using Web Starter Kit -->
</body>
</html>
Loading

0 comments on commit 49b2f4d

Please sign in to comment.