1
0
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:
s2
2018-05-05 13:49:18 +02:00
commit 48c1138518
4 changed files with 10397 additions and 0 deletions

0
example/css/mywidget.css Normal file
View File

28
example/index.html Normal file
View 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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,5 @@
var spectacularwidget = function(me) {
me.innerHTML = 'this is so spectacular!';
};
window.spectacularwidget = spectacularwidget;