mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(modules) add
This commit is contained in:
parent
ffda8aaddf
commit
b5928c3be9
58 changed files with 14081 additions and 3 deletions
4
modules/menu/example/example.css
Normal file
4
modules/menu/example/example.css
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
html, body, .menu-container {
|
||||
width: 99%;
|
||||
height: 99%;
|
||||
}
|
||||
16
modules/menu/example/menu-data.js
Normal file
16
modules/menu/example/menu-data.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var menu, MenuIO;
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
var element = document.querySelector('#js-menu-container'),
|
||||
options = {
|
||||
icon: true
|
||||
};
|
||||
|
||||
menu = MenuIO(element, options, {
|
||||
'help': function() {
|
||||
console.log('*help');
|
||||
}
|
||||
});
|
||||
})();
|
||||
15
modules/menu/example/menu-min.html
Normal file
15
modules/menu/example/menu-min.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Menu Example
|
||||
</title>
|
||||
<link rel="stylesheet" href="../menu-io.min.css">
|
||||
<link rel="stylesheet" href="example.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="js-menu-container" class="menu-container"></div>
|
||||
<script src="../menu-io.min.js"></script>
|
||||
<script src="menu-data.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
15
modules/menu/example/menu.html
Normal file
15
modules/menu/example/menu.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Menu Example
|
||||
</title>
|
||||
<link rel="stylesheet" href="../menu-io.css">
|
||||
<link rel="stylesheet" href="example.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="js-menu-container" class="menu-container"></div>
|
||||
<script src="../menu-io.js"></script>
|
||||
<script src="menu-data.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue