-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html.bak
executable file
·264 lines (183 loc) · 11.3 KB
/
index.html.bak
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>关于@XUHE</title>
<meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com." />
<meta name="author" content="Bartek Szopka" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
<link href="css/impress-demo.css" rel="stylesheet" />
<link rel="shortcut icon" href="img/favicon.jpg" />
<link rel="apple-touch-icon" href="img/1apple-touch-icon.jpg" />
</head>
<body class="impress-not-supported">
<div class="fallback-message">
<p>你的浏览器 <b>不支持</b> 此演示效果.</p>
<p>体验最佳效果请使用最新版本的<b>Chrome</b>, <b>Safari</b> 或 <b>Firefox</b> 浏览器.</p>
</div>
<div id="impress">
<div id="comein" class="step present active" data-x="-500" data-y="-2500" data-z="-300" data-rotate-y="10" data-scale="1">
<p>欢迎</p>
<p><b></b></p>
</div>
<div id="welcome" class="step" data-x="-500" data-y="-1500" data-z="-300" data-rotate-y="0">
<p>你好,这里是</p>
<p>Celler<b class="positioning">X</b></p>
<p>我是<b class="">徐河</b></p><br/><br/><br/><br/><br/><br/>
<p>此演示效果基于<a target="_blank" href="https://github.com/bartaz/impress.js">impress.js*</a>制作</p>
</div>
<div id="bored" class="step" data-x="-1100" data-y="-2000">
<p>现在就读于<b class="positioning">成都东软学院</b></p>
<p>欢迎关注我的学校<a style="color:red;" href="http://www.nsu.edu.cn/HTML/intro/" target="_blank">@成都东软学院</a></p>
</div>
<div id="favlike" class="step" data-x="400" data-y="-2000">
<p><b>.爱好音乐鉴赏</b></p>
<p><b class="scaling">.电影</b></p>
<p><b class="scaling">.旅游</strong></p>
<p><b class="scaling">.钻研新奇的东西</b></p>
</div>
<div id="title" class="step" data-x="-220" data-y="-350" data-scale="4">
<h1 style="color:#9C9C9C;">CellerX</h1>
<p>人生照例是一场值得一搏的争衡,然而它的奖品是拼斗。 —— 拉尔夫·詹</p>
</div>
<div id="its" class="step" data-x="-600" data-y="3000" data-rotate="90" data-scale="5">
<p>不常看动漫,<strong>《银魂》</strong>是我最喜欢的。</p>
<p class="gintokisay">男人就是每天都要挑战自己的胆量。<br/>不明白这一点的话,总有一天会颓废的灵魂会死掉的。<br/>
如果真想保护住自己的容身之所,就拼上你的灵魂,全力以赴吧!<br/>
</p><p class="gintoki">——坂田银时</p>
</div>
<div id="big" class="step" data-x="2500" data-y="2800" data-rotate="180" data-scale="6">
<p>我是处女座<b style="color:#7EC0EE;">Virgo</b> <span class="thoughts">但是我的手机从来不贴膜:D</span></p>
</div>
<div id="tiny" class="step" data-x="1400" data-y="2700" data-z="-3000" data-rotate="300" data-scale="1">
<p>当然,也从来不用手机壳。</p>
</div>
<div id="ccccn" class="step" data-x="2600" data-y="500" data-z="-5000" data-rotate="300" data-scale="1">
<p> 我不是一个完美主义者。</p>
</div>
<div id="ing" class="step" data-x="3100" data-y="-850" data-rotate="270" data-scale="6">
<p>SO,我是一个性格<b class="positioning">随和</b>的人, <b class="rotating">9月11号</b>是我的生日,虽然这天对于<b class="scaling">美国</b>来说不是一个值得庆祝的日子。</p>
</div>
<div id="imagination" class="step" data-x="6700" data-y="0" data-scale="6">
<p>擅长:<b>手机刷机</b>,电脑重装系统。
<br/>
<b class="imagination">Just Kidding</b></p>
<p>不敢说擅长</br>目前在学校主修java、C#</p>
</div>
<div id="source" class="step" data-x="6750" data-y="2000" data-scale="4">
<p></p>
<q>欢迎关注:<br/>我的<a style="color:#8EE5EE;" target="_blank" href="https://blog.gintoki.cn">个人博客</a>,<a style="color:#EE3A8C;" target="_blank" href="http://weibo.com/CellerX">新浪微博</a>,<a style="color:#9ACD32;" target="_blank" href="http://twitter.com/CellerX">Twitter</a>和<a style="color:#EE9A00;" target="_blank" href="http://github.com/xuhe336136">GitHub</a>。<br/>
</q>
</div>
<div id="one-more-thing" class="step" data-x="6750" data-y="2800" data-scale="2">
<p style="font-size:38px;">最后...</p>
</div>
<!--
And the last one shows full power and flexibility of impress.js.
You can not only position element in 3D, but also rotate it around any axis.
So this one here will get rotated by -40 degrees (40 degrees anticlockwise) around X axis and
10 degrees (clockwise) around Y axis.
You can of course rotate it around Z axis with `data-rotate-z` - it has exactly the same effect
as `data-rotate` (these two are basically aliases).
-->
<div id="its-in-3d" class="step" data-x="6200" data-y="3700" data-z="-100" data-rotate-x="-40" data-rotate-y="10" data-scale="2">
<p><span class="have">感谢</span><span class="you">您</span><span class="noticed">的来访!</span><br/><span class="its">点击</span><span class="in">
<a style="color:red" href="http://www.gintoki.cn">这里</a></span><b>返回主页,</b></p>
<span class="footnote">点击<a style="color:red" href="https://blog.gintoki.cn">这里</a>返回我的博客</span>
</div>
<!--
So to summarize of all the possible attributes used to position presentation steps, we have:
* `data-x`, `data-y`, `data-z` - they define the position of **the center** of step element on
the canvas in pixels; their default value is 0;
* `data-rotate-x`, `data-rotate-y`, 'data-rotate-z`, `data-rotate` - they define the rotation of
the element around given axis in degrees; their default value is 0; `data-rotate` and `data-rotate-z`
are exactly the same;
* `data-scale` - defines the scale of step element; default value is 1
These values are used by impress.js in CSS transformation functions, so for more information consult
CSS transfrom docs: https://developer.mozilla.org/en/CSS/transform
-->
<div id="overview" class="step" data-x="3000" data-y="1500" data-scale="10">
</div>
</div>
<!--
Hint is not related to impress.js in any way.
But it can show you how to use impress.js features in creative way.
When the presentation step is shown (selected) its element gets the class of "active" and the body element
gets the class based on active step id `impress-on-ID` (where ID is the step's id)... It may not be
so clear because of all these "ids" in previous sentence, so for example when the first step (the one with
the id of `bored`) is active, body element gets a class of `impress-on-bored`.
This class is used by this hint below. Check CSS file to see how it's shown with delayed CSS animation when
the first step of presentation is visible for a couple of seconds.
...
And when it comes to this piece of JavaScript below ... kids, don't do this at home ;)
It's just a quick and dirty workaround to get different hint text for touch devices.
In a real world it should be at least placed in separate JS file ... and the touch content should be
probably just hidden somewhere in HTML - not hard-coded in the script.
Just sayin' ;)
-->
<div class="hint">
<p>使用空格或方向键继续</p>
</div>
<script>
if ("ontouchstart" in document.documentElement) {
document.querySelector(".hint").innerHTML = "<p>使用空格或方向键继续</p>";
}
</script>
<!--
Last, but not least.
To make all described above really work, you need to include impress.js in the page.
I strongly encourage to minify it first.
In here I just include full source of the script to make it more readable.
You also need to call a `impress().init()` function to initialize impress.js presentation.
And you should do it in the end of your document. Not only because it's a good practice, but also
because it should be done when the whole document is ready.
Of course you can wrap it in any kind of "DOM ready" event, but I was too lazy to do so ;)
-->
<script src="js/impress.js"></script>
<script>impress().init();</script>
<!--
The `impress()` function also gives you access to the API that controls the presentation.
Just store the result of the call:
var api = impress();
and you will get three functions you can call:
`api.init()` - initializes the presentation,
`api.next()` - moves to next step of the presentation,
`api.prev()` - moves to previous step of the presentation,
`api.goto( idx | id | element, [duration] )` - moves the presentation to the step given by its index number
id or the DOM element; second parameter can be used to define duration of the transition in ms,
but it's optional - if not provided default transition duration for the presentation will be used.
You can also simply call `impress()` again to get the API, so `impress().next()` is also allowed.
Don't worry, it wont initialize the presentation again.
For some example uses of this API check the last part of the source of impress.js where the API
is used in event handlers.
-->
</body>
</html>
<!--
Now you know more or less everything you need to build your first impress.js presentation, but before
you start...
Oh, you've already cloned the code from GitHub?
You have it open in text editor?
Stop right there!
That's not how you create awesome presentations. This is only a code. Implementation of the idea that
first needs to grow in your mind.
So if you want to build great presentation take a pencil and piece of paper. And turn off the computer.
Sketch, draw and write. Brainstorm your ideas on a paper. Try to build a mind-map of what you'd like
to present. It will get you closer and closer to the layout you'll build later with impress.js.
Get back to the code only when you have your presentation ready on a paper. It doesn't make sense to do
it earlier, because you'll only waste your time fighting with positioning of useless points.
If you think I'm crazy, please put your hands on a book called "Presentation Zen". It's all about
creating awesome and engaging presentations.
Think about it. 'Cause impress.js may not help you, if you have nothing interesting to say.
-->
<!--
Are you still reading this?
For real?
I'm impressed! Feel free to let me know that you got that far (I'm @bartaz on Twitter), 'cause I'd like
to congratulate you personally :)
But you don't have to do it now. Take my advice and take some time off. Make yourself a cup of coffee, tea,
or anything you like to drink. And raise a glass for me ;)
Cheers!
-->