Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrsjng committed Jun 12, 2016
1 parent 08d354a commit f6b1e15
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 107 deletions.
59 changes: 59 additions & 0 deletions demo/boxes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
* {
margin: 0;
padding: 0;
}

body {
width: 2000px;
height: 2000px;
background-color: #eee;
}

#map {
position: fixed;
top: 0;
right: 0;
width: 120px;
height: 100%;
z-index: 100;
}

#container {
position: relative;
left: 100px;
top: 100px;
width: 600px;
height: 600px;
outline: 4px solid #222;
overflow: auto;
}

#content {
width: 800px;
height: 1000px;
background-color: #ccc;
}

#container2 {
position: relative;
left: 100px;
top: 100px;
width: 300px;
height: 400px;
outline: 4px solid #222;
overflow: auto;
}

#content2 {
width: 500px;
height: 600px;
background-color: #aaa;
}

.checkers {
background-image:
linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
background-size: 100px 100px;
background-position: 0 0, 50px 50px
}
57 changes: 2 additions & 55 deletions demo/boxes.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,7 @@
<head>
<meta charset="utf-8">
<title>pagemap boxes demo</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
width: 2000px;
height: 2000px;
background-color: #eee;
}
#map {
position: fixed;
top: 0;
right: 0;
width: 120px;
height: 100%;
z-index: 100;
}
#container {
position: relative;
left: 100px;
top: 100px;
width: 600px;
height: 600px;
outline: 4px solid #222;
overflow: auto;
}
#content {
width: 800px;
height: 1000px;
background-color: #ccc;
}
#container2 {
position: relative;
left: 100px;
top: 100px;
width: 300px;
height: 400px;
outline: 4px solid #222;
overflow: auto;
}
#content2 {
width: 500px;
height: 600px;
background-color: #aaa;
}
.checkers {
background-image:
linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff),
linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
background-size: 100px 100px;
background-position: 0 0, 50px 50px
}
</style>
<link rel="stylesheet" href="boxes.css">
</head>
<body class="checkers">
<div id="container">
Expand All @@ -69,7 +16,7 @@

<canvas id="map"></canvas>

<script src="../dist/pagemap.js"></script>
<script src="../dist/pagemap.min.js"></script>
<script>
pagemap(document.querySelector('#map'), {
// viewport: document.querySelector('#container'),
Expand Down
47 changes: 47 additions & 0 deletions demo/text.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
* {
margin: 0;
padding: 0;
}

#map {
position: fixed;
top: 0;
right: 0;
width: 200px;
height: 100%;
z-index: 100;
}

body {
font-family: Bitter, Ubuntu, Arial, sans;
font-size: 16px;
color: #555;
}

main {
margin: 3em auto 6em auto;
max-width: 800px;
line-height: 1.6em;
}

h1 {
font-size: 3em;
font-weight: normal;
margin: 0 0 1em;
}

h2 {
font-size: 1.8em;
font-weight: normal;
margin: 3em 0 1em;
}

h3 {
font-size: 1.2em;
font-weight: bold;
margin: 2em 0 1em;
}

a {
color: #1E88E5;
}
57 changes: 8 additions & 49 deletions demo/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,16 @@
<head>
<meta charset="utf-8">
<title>pagemap text demo</title>
<style>
* {
margin: 0;
padding: 0;
}
#map {
position: fixed;
top: 0;
right: 0;
width: 200px;
height: 100%;
z-index: 100;
}
body {
font-family: Bitter, Ubuntu, Arial, sans;
font-size: 16px;
color: #555;
}
main {
margin: 3em auto 6em auto;
max-width: 800px;
line-height: 1.6em;
}
h1 {
font-size: 3em;
font-weight: normal;
margin: 0 0 1em;
}
h2 {
font-size: 1.8em;
font-weight: normal;
margin: 3em 0 1em;
}
h3 {
font-size: 1.2em;
font-weight: bold;
margin: 2em 0 1em;
}
a {
color: #1E88E5;
}
</style>
<link rel="stylesheet" href="text.css">
</head>
<body>
<canvas id="map"></canvas>

<script src="../dist/pagemap.min.js"></script>
<script>
pagemap(document.querySelector('#map'));
</script>

<main>
<header>
<h1>At Eos Accusamu</h1>
Expand Down Expand Up @@ -77,12 +43,5 @@ <h3>Nemo enim ipsam voluptatem</h3>
<p> Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, <a href="?">eaque veritatis</a> et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
</section>
</main>

<canvas id="map"></canvas>

<script src="../dist/pagemap.js"></script>
<script>
pagemap(document.querySelector('#map'));
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion dist/pagemap.js → dist/pagemap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pagemap",
"version": "0.1.0",
"version": "0.2.0",
"description": "Mini map for web pages.",
"homepage": "https://larsjung.de/pagemap/",
"bugs": "https://github.com/lrsjng/pagemap/issues",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
entry: './lib/pagemap.js',
output: {
path: './dist',
filename: 'pagemap.js',
filename: 'pagemap.min.js',
library: 'pagemap',
libraryTarget: 'umd'
},
Expand Down

0 comments on commit f6b1e15

Please sign in to comment.