mirror of
https://github.com/prise6/anywhere
synced 2024-05-06 10:43:14 +02:00
some progress
tests and text, nothin’ fancy
This commit is contained in:
parent
0975cec3aa
commit
ce01ad1534
66
index.html
66
index.html
|
@ -2,7 +2,7 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
|
||||
<meta name="description" content="Follows any link, on any page. No idea what happens next.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<title>Anywhere</title>
|
||||
|
||||
|
@ -25,12 +25,72 @@
|
|||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en">
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|
||||
<link rel="stylesheet" href="mdl/material.min.css">
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>What up, world?</h1>
|
||||
<div class="demo-layout-transparent mdl-layout mdl-js-layout">
|
||||
<main class="mdl-layout__content">
|
||||
<div class="icon-zone">
|
||||
<i class="material-icons">open_with</i>
|
||||
<i class="material-icons">flip_to_back</i>
|
||||
<i class="material-icons md-48 orange600">open_in_browser</i>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h3>drag & drop this bookmarklet into your fav bar.</h3>
|
||||
<h3>Then, continue browsing as usual.</h3>
|
||||
<h3>When you click it, it <b>follows any link on the page.</b></h3>
|
||||
<h1>We have no idea what happens next.</h1>
|
||||
<button class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
|
||||
Button
|
||||
</button>
|
||||
|
||||
<button id="demo-show-toast" class="mdl-button mdl-js-button mdl-button--raised" type="button">Show Toast</button>
|
||||
<div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
|
||||
<div class="mdl-snackbar__text"></div>
|
||||
<button class="mdl-snackbar__action" type="button"></button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
(function() {
|
||||
'use strict';
|
||||
window['counter'] = 0;
|
||||
var snackbarContainer = document.querySelector('#demo-toast-example');
|
||||
var showToastButton = document.querySelector('#demo-show-toast');
|
||||
showToastButton.addEventListener('click', function() {
|
||||
'use strict';
|
||||
var data = {message: 'Example Message # ' + ++counter};
|
||||
snackbarContainer.MaterialSnackbar.showSnackbar(data);
|
||||
});
|
||||
}());
|
||||
</script>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
'use strict';
|
||||
var snackbarContainer = document.querySelector('#demo-snackbar-example');
|
||||
var showSnackbarButton = document.querySelector('#demo-show-snackbar');
|
||||
var handler = function(event) {
|
||||
showSnackbarButton.style.backgroundColor = '';
|
||||
};
|
||||
showSnackbarButton.addEventListener('click', function() {
|
||||
'use strict';
|
||||
showSnackbarButton.style.backgroundColor = '#' +
|
||||
Math.floor(Math.random() * 0xFFFFFF).toString(16);
|
||||
var data = {
|
||||
message: 'Button color changed.',
|
||||
timeout: 2000,
|
||||
actionHandler: handler,
|
||||
actionText: 'Undo'
|
||||
};
|
||||
snackbarContainer.MaterialSnackbar.showSnackbar(data);
|
||||
});
|
||||
}());
|
||||
</script>
|
||||
<script src="https://code.getmdl.io/1.1.3/material.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in a new issue