forked from ryhan/fixie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.html
More file actions
executable file
·53 lines (50 loc) · 1.08 KB
/
sample.html
File metadata and controls
executable file
·53 lines (50 loc) · 1.08 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Fixie.js Sample</title>
<style>
body{
font-family: Helvetica, arial, sans-serif;
width:800px;
margin:150px auto;
}
img{
width:400px;
height:300px;
float:right;
margin:20px;
}
</style>
</head>
<body>
<article>
<h1 class="fixie"></h1>
<section class="fixie">
<!-- Ignored elements -->
<div></div>
<hr>
<span class="icon"></span>
<i class="icon"></i>
</section>
<p> Check us out at <a class="fixie"></a>,
and don't forget to view source.</p>
<section class="fixie">
<p></p>
<img/>
<ul></ul>
<p></p>
<ol></ol>
</section>
<h2 class="fixie"></h2>
<section class="fixie"></section>
</article>
<script type="text/javascript" src="fixie.js"></script>
<script>
// Change default dictionary
var words= ["Je", "france", "sport", "aurait mieux fait", "super", "voir", "plus", "Mister-graphX"];
fixie.setWordLibrary(words).init();
// Changes default image source to Picsum
// fixie.setImagePlaceholder('https://picsum.photos/${w}/${h}/${text}').init();
</script>
</body>
</html>