This repository has been archived by the owner on Feb 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
229 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | ||
<meta name="viewport" | ||
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> | ||
<meta name="apple-mobile-web-app-capable" content="yes"/> | ||
<title>ScrollableContainer</title> | ||
|
||
<link rel="stylesheet" href="../../delite/themes/defaultapp.css"> | ||
|
||
<script type="text/javascript" src="../../requirejs/require.js"></script> | ||
|
||
<script type="text/javascript"> | ||
require.config({ | ||
baseUrl: "../.." | ||
}); | ||
</script> | ||
|
||
<script type="text/javascript"> | ||
require(["deliteful-build/boot"], function(){ | ||
require([ | ||
"delite/register", | ||
"deliteful/ScrollableContainer", | ||
"delite/theme!delite/themes/{{theme}}/global.css", // page level CSS | ||
"requirejs-domready/domReady!" | ||
], function(register){ | ||
register.parse(); | ||
}); | ||
|
||
}); | ||
</script> | ||
|
||
<style type="text/css"> | ||
.container1 { | ||
position: absolute; | ||
top: 20px; | ||
left: 20px; | ||
width: 200px; | ||
height: 300px; | ||
} | ||
.container2 { | ||
position: absolute; | ||
top: 20px; | ||
left: 240px; | ||
width: 200px; | ||
height: 300px; | ||
} | ||
.scrollContainer { | ||
white-space: nowrap; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
ul { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
li { | ||
padding: 0 0.5em; | ||
height: 2em; | ||
list-style-type: none; | ||
line-height: 2em; | ||
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); | ||
border-bottom: 1px solid #222222; | ||
cursor: pointer; | ||
} | ||
li:hover { | ||
background-color: #61C6EB; | ||
} | ||
li:active { | ||
background-color: #007fea; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container1"> | ||
<div style="background-color: lightblue">Scrolling in both directions</div> | ||
|
||
<d-scrollable-container class="scrollContainer" id="scrollContainer1" | ||
scrollDirection="both" style="background-color: lightgreen;"> | ||
|
||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Duis cursus odio eu nisl ultrices dictum.</p> | ||
<p>Sed tincidunt metus et magna placerat eget vehicula dolor faucibus. | ||
Nunc nec augue ac mi rutrum congue. Donec at augue felis.</p> | ||
<p>Proin et lectus at mauris adipiscing pulvinar tempor vitae lacus. | ||
Aliquam erat volutpat. Sed eget sem eu turpis ultrices ullamcorper | ||
sed ut augue.</p> | ||
<p>Nunc in augue lectus. Curabitur ac posuere libero. Duis luctus dignissim nisl | ||
suscipit vehicula. Cras ut augue odio.</p> | ||
<p>Integer blandit ligula congue erat pellentesque nec egestas mi | ||
hendrerit</p> | ||
<p>Nunc sollicitudin nisl sed est porta vitae viverra nulla rutrum. | ||
Praesent erat tortor, scelerisque sit amet gravida a, sodales a libero.</p> | ||
<p>Pellentesque nec arcu nulla, id laoreet orci. Vivamus sit amet quam eu ante | ||
pulvinar rhoncus sit amet non ipsum.</p> | ||
<p>Sed mattis felis sed risus tincidunt in sagittis justo rhoncus. Praesent ut | ||
justo feugiat neque gravida convallis eget mattis felis. | ||
<p>Vestibulum vitae velit ante, sed convallis sem. | ||
Curabitur gravida volutpat odio eget tincidunt. Mauris pellentesque placerat | ||
massa ut venenatis. Mauris ultrices hendrerit dui vel fermentum.</p> | ||
</ul> | ||
</d-scrollable-container> | ||
</div> | ||
|
||
<div class="container2"> | ||
<div style="background-color: lightblue">Vertical scrolling</div> | ||
|
||
<!-- Using default scrollDirection, which is "vertical" --> | ||
<d-scrollable-container style="background-color: lightgreen" | ||
class="scrollContainer" id="scrollContainer2"> | ||
<ul> | ||
<li>Abigail</li> | ||
<li>Abram</li> | ||
<li>Alisia</li> | ||
<li>Aliza</li> | ||
<li>Angelita</li> | ||
<li>Apryl</li> | ||
<li>Ardella</li> | ||
<li>Arvilla</li> | ||
<li>Astrid</li> | ||
<li>Bao</li> | ||
<li>Bee</li> | ||
<li>Bernita</li> | ||
<li>Bunny</li> | ||
<li>Carri</li> | ||
<li>Chandra</li> | ||
<li>Charley</li> | ||
<li>Cherrie</li> | ||
<li>China</li> | ||
<li>Christian</li> | ||
<li>Chu</li> | ||
<li>Chuck</li> | ||
<li>Clorinda</li> | ||
<li>Clotilde</li> | ||
<li>Colton</li> | ||
<li>Cristina</li> | ||
<li>Daryl</li> | ||
<li>Deeann</li> | ||
<li>Devon</li> | ||
<li>Devona</li> | ||
<li>Dino</li> | ||
<li>Dorcas</li> | ||
<li>Duncan</li> | ||
<li>Eleanora</li> | ||
<li>Elisha</li> | ||
<li>Ellan</li> | ||
<li>Etha</li> | ||
<li>Evangeline</li> | ||
<li>Fredia</li> | ||
<li>Frida</li> | ||
<li>Gayle</li> | ||
<li>Genevive</li> | ||
<li>Grayce</li> | ||
<li>Haywood</li> | ||
<li>Holli</li> | ||
<li>Inell</li> | ||
<li>Ira</li> | ||
<li>Irena</li> | ||
<li>Jacklyn</li> | ||
<li>Janay</li> | ||
<li>Janine</li> | ||
<li>Jayme</li> | ||
<li>Jeannetta</li> | ||
<li>Josefina</li> | ||
<li>Karine</li> | ||
<li>Kary</li> | ||
<li>Katheryn</li> | ||
<li>Katia</li> | ||
<li>Keren</li> | ||
<li>Kyle</li> | ||
<li>Lakesha</li> | ||
<li>Lakisha</li> | ||
<li>Latina</li> | ||
<li>Laurene</li> | ||
<li>Lizbeth</li> | ||
<li>Loralee</li> | ||
<li>Luis</li> | ||
<li>Marhta</li> | ||
<li>Marva</li> | ||
<li>Mercedes</li> | ||
<li>Meri</li> | ||
<li>Mikel</li> | ||
<li>Mozelle</li> | ||
<li>Nia</li> | ||
<li>Pamella</li> | ||
<li>Pricilla</li> | ||
<li>Ramona</li> | ||
<li>Reynaldo</li> | ||
<li>Rima</li> | ||
<li>Rochell</li> | ||
<li>Roma</li> | ||
<li>Rosalyn</li> | ||
<li>Roselee</li> | ||
<li>Rosetta</li> | ||
<li>Rufina</li> | ||
<li>Sanjuanita</li> | ||
<li>Shanae</li> | ||
<li>Shandi</li> | ||
<li>Shannon</li> | ||
<li>Shenita</li> | ||
<li>Sherman</li> | ||
<li>Sophia</li> | ||
<li>Starla</li> | ||
<li>Stewart</li> | ||
<li>Talisha</li> | ||
<li>Tamar</li> | ||
<li>Trey</li> | ||
<li>Valeri</li> | ||
<li>Verena</li> | ||
<li>Wonda</li> | ||
<li>Wyatt</li> | ||
</ul> | ||
</d-scrollable-container> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters