forked from mdbootstrap/TW-Elements
-
Notifications
You must be signed in to change notification settings - Fork 1
/
text-content.html
184 lines (157 loc) · 6.61 KB
/
text-content.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!--DROP THIS FILE INTO YOUR BROWSER TO PREVIEW THE EFFECT-->
<!DOCTYPE html>
<html>
<head>
<!--ADDITTONAL LINKS TO MAKE THE EXAMPLES LOOK PRETTY-->
<!-- Bootstrap core CSS for better functionality-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Some cool icons -->
<link href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" rel="stylesheet">
<!-- Awesome Material Design for Bootstrap Styles -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.8.2/css/mdb.min.css" rel="stylesheet">
<!-- CORE FILES FOR PERFECT SCROLLBAR FUNCTIONALITY -->
<!-- The Perfect Scrollbar CSS files -->
<link href="../css/perfect-scrollbar.css" rel="stylesheet">
<!-- The Perfect Scrollbar JS files -->
<script src="../dist/perfect-scrollbar.js"></script>
<!--DEFINE CONTAINER-->
<style>
body {
background-color: rgba(3, 169, 244, 0.1);
}
#container {
background-color: rgb(255, 255, 255);
position: relative;
margin: 100px auto;
padding: 0px;
width: 600px;
height: 500px;
overflow: auto;
}
#container .content {
width: 1280px;
height: 900px;
}
</style>
</head>
<body>
<!--EXAMPLE CONTENT-->
<section class="text-center">
<br>
<h1>Text content</h1>
<p class="lead">You can preview the effect offline below or <strong>fork ready to use template</strong> of this
example.</p>
<a class="btn btn-lg btn-outline-grey" href="https://mdbootstrap.com/freebies/perfect-scrollbar/"><i
class="fas fa-book mr-2"></i>DOCUMENTATION</a>
<a class="btn btn-lg btn-outline-black" href="https://github.com/mdbootstrap/perfect-scrollbar"><i
class="fab fa-github mr-2"></i>GITHUB</a>
<a class="btn btn-lg btn-outline-primary"
href="https://mdbootstrap.com/snippets/jquery/filipkapusta/819005?utm_campaign=PS&utm_source=Package"><i
class="fas fa-code mr-2"></i>TEMPLATE</a>
<hr>
<br>
<div id="container" class="rounded">
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>The command takes options applicable</p>
<p>Beeing scrolled by you was a pleasure.</p>
<p><strong>See you at mdbootstrap.com</strong></p>
</div>
<button class="btn btn-info" id='redraw'>Redraw</button>
</section>
<!--EXAMPLE CONTENT-->
<!--ADD PERFECT SCROLLBAR TO CONTAINER-->
<script>
var $ = document.querySelector.bind(document);
var ps = new PerfectScrollbar('#container');
$('#redraw').addEventListener('click', function () {
var oldHtml = $('#container').innerHTML;
$('#container').innerHTML = '';
setTimeout(function () {
$('#container').innerHTML = oldHtml;
ps.update();
}, 500);
});
</script>
<!--ADDITTONAL SCRIPTS TO MAKE THE EXAMPLE CONTENT LOOK PRETTY-->
<section>
<!--jQuery-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.8.2/js/mdb.min.js">
</script>
</section>
<!-- Footer -->
<footer class="page-footer white-color font-small z-depth-5 d-block">
<!-- Copyright -->
<div class="row pt-3 px-3 w-100">
<div class="col-md-4 d-md-block d-none">
<p class="text-primary ml-3">Project maintained by
<a href="https://mdbootstrap.com/?utm_campaign=PS&utm_source=Package"><img class="align-self-top"
style="height:20px;" src="https://mdbootstrap.com/img/Marketing/general/logo/small/mdb.png"></a></p>
</div>
<div class="text-center text-primary col-md-8 col-lg-4">
<p>Docs & Examples made pretty with
<a href="https://mdbootstrap.com/jquery/docs/?utm_campaign=PS&utm_source=Package"
class="text-primary font-weight-bold">Free MDB UI Kit</a></p>
</div>
<div class="col-md-4 d-lg-block d-none">
<div class="flex-right float-right">
<!--Github-->
<a href="https://https://github.com/mdbootstrap/bootstrap-material-design" class="pin-ic">
<i class="fab fa-github fa-lg text-primary mr-4"> </i>
</a>
<!-- Facebook -->
<a href="https://www.facebook.com/mdbootstrap" class="fb-ic">
<i class="fab fa-facebook-f fa-lg text-primary mr-4"> </i>
</a>
<!-- Twitter -->
<a class="tw-ic">
<i href="https://twitter.com/mdbootstrap?lang=en" class="fab fa-twitter fa-lg text-primary mr-4"> </i>
</a>
<!--Linkedin -->
<a href="https://www.linkedin.com/company/material-design-for-bootstrap/" class="li-ic">
<i class="fab fa-linkedin-in fa-lg text-primary mr-4"> </i>
</a>
<!--Newsletter-->
<a href="https://mdbootstrap.com/docs/jquery/newsletter/" class="pin-ic">
<i class="fas fa-envelope fa-lg text-primary"> </i>
</a>
</div>
</div>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</body>
</html>