forked from techlab/create-jquery-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (33 loc) · 1.07 KB
/
index.html
File metadata and controls
41 lines (33 loc) · 1.07 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
<!DOCTYPE html>
<html>
<head>
<title>{{name}} Example</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Include Plugin CSS file -->
<link href="./css/{{fileName}}.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<br />
<section class="container">
<div class="row">
<div class="col-md-8">
<p id="element1">Plugin Element 1</p>
<p id="element2">Plugin Element 2</p>
</div>
</div>
</section>
<!-- Include jQuery -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js" type="text/javascript"></script>
<!-- Include Plugin JS file -->
<script src="./js/{{fileName}}.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
// Call Plugin
$('#element1').{{functionName}}();
// Call Plugin with options
$('#element2').{{functionName}}({ myStyle: 'my-style2' });
});
</script>
</body>
</html>