-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (132 loc) · 5.34 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>craftkit : JavaScript UI library for Clear Web OOP</title>
<meta property="og:title" content="craftkit : JS library for SPA and PWA"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content=""/>
<meta property="og:url" content=""/>
<meta name="description" content="craftkit is an open source project to make JavaScript UI library for SPA and PWA by the way of Inversion of Markup.">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136310050-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-136310050-1');
</script>
<script src="docs/craft-uikit/scripts/prettify/prettify.js"></script>
<script src="docs/craft-uikit/scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="docs/craft-uikit/styles/prettify.css">
<link type="text/css" rel="stylesheet" href="docs/craft-uikit/styles/jsdoc.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body style="padding-top:44px;">
<style>
.top-menu {
position:fixed;top:0px;left:0px;width:100%;height:44px;
display:flex;flex-direction:row;
background-color:rgba(102,0,102,0.90);
line-height:44px;font-size:18px;
color:rgba(255,255,255,0.90);
font-family:'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
}
.top-menu-item-top {
display:inline-block;padding-left:44px;padding-right:44px;cursor:pointer;
}
.top-menu-item-top:hover {
background-color:rgba(102,0,102,0.75);
}
.top-menu-item {
display:inline-block;padding-left:22px;padding-right:22px;cursor:pointer;
}
.top-menu-item:hover {
background-color:rgba(102,0,102,0.75);
}
.top-menu-item-top a {
color:rgba(255,255,255,0.90);
}
.top-menu-item a {
color:rgba(255,255,255,0.90);
}
.top-menu-item-github {
display:inline-block;padding-right:44px;margin-left:auto;cursor:pointer;font-size:24px;
}
.top-menu-item-github a {
color:rgba(255,255,255,0.90);
}
</style>
<div class="top-menu">
<div class="top-menu-item-top"><a href="/">Top</a></div>
<div class="top-menu-item"><a href="/docs/craft-uikit/index.html">craft-uikit</a></div>
<div class="top-menu-item">
craft-widget-
<select id="widgetlink" onchange="var val=document.querySelector('#widgetlink').value; if(val){location.href=val;}">
<option value="">-</option>
<option value="/docs/craft-widget-navigationgroup/index.html">navigationgroup</option>
<option value="/docs/craft-widget-quicktools/index.html">quicktools</option>
<option value="/docs/craft-widget-calendar/index.html">calendar</option>
<option value="/docs/craft-widget-stickyheadernavi/index.html">stickyheadernavi</option>
</select>
</div>
<div class="top-menu-item-github"><a href="https://github.com/craftkit" title="Github Project Page"><i class="fa fa-github" aria-hidden="true"></i></a></div>
</div>
<section class="readme">
<article>
<h1>CraftKit</h1>
<div style="display:flex;flex-direction:row;">
<div>
<p>CraftKit is a JavaScript UI library for Clear Web OOP.</p>
<p>Try online tutorial: <br>
<a href="https://github.com/craftkit/craftkit-playground">https://github.com/craftkit/craftkit-playground)</a></p>
<p style="margin-top:44px;">Markup principle:</p>
<pre class="prettyprint source lang-javascript"><code><Hello name="world"></Hello>
</code></pre>
<p>CraftKit:</p>
<pre class="prettyprint source lang-javascript"><code>viewController.appendView(new Hello({name:"world"}));
</code></pre>
<p>Mobile application devplopers are more familiar with this way.</p>
</div>
<pre class="prettyprint source" style="margin-left:88px;padding:44px;background-color:#333;border-radius: 30px;"><code style="background-color:#333;">console:
> var hello_world = new HelloWorld();
> hello_world.loadView();
> document.body.appendChild(hello_world.view);
> MyApp_HelloWorld_0
HelloWorld {packagename: "MyApp.HelloWorld",
componentId: "MyApp_HelloWorld_0",
view: div#MyApp_HelloWorld_0, css: Array(1), …}
> MyApp_HelloWorld_0.view
<div id="MyApp_HelloWorld_0">...</div>
> MyApp_HelloWorld_0.shadow
#shadow-root (open)
> MyApp_HelloWorld_0.root
<div class="root">...</div>
> MyApp_HelloWorld_0.css
[style#MyApp_HelloWorld_0_1]
> MyApp_HelloWorld_0.say()
(say() is invoked -> show "Hello World!" in the page)
</code></pre>
</div>
</article>
</section>
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
<script src="scripts/jquery-3.1.1.min.js"></script>
<script src="scripts/search.js"></script>
<script src="scripts/collapse.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136310050-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-136310050-1');
</script>
</body>
</html>