mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-02 20:00:05 +02:00
an example to minify
This commit is contained in:
0
example/css/mywidget.css
Normal file
0
example/css/mywidget.css
Normal file
28
example/index.html
Normal file
28
example/index.html
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Example</title>
|
||||||
|
|
||||||
|
<!-- jquery is not used in this example, it's just here to demo the compression -->
|
||||||
|
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
||||||
|
<!-- the widget -->
|
||||||
|
<script type="text/javascript" charset="utf-8" src="js/spectacularwidget.js"></script>
|
||||||
|
|
||||||
|
<!-- some css -->
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/mywidget.css" />
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id="mywidget"></div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//widget init
|
||||||
|
spectacularwidget(document.getElementById('mywidget'));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
10364
example/js/jquery.js
vendored
Normal file
10364
example/js/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
example/js/spectacularwidget.js
Normal file
5
example/js/spectacularwidget.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
var spectacularwidget = function(me) {
|
||||||
|
me.innerHTML = 'this is so spectacular!';
|
||||||
|
};
|
||||||
|
|
||||||
|
window.spectacularwidget = spectacularwidget;
|
Reference in New Issue
Block a user