OSDN Git Service
(root)
/
pybbs
/
pybbs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
live preview plugin jQuery
[pybbs/pybbs.git]
/
static
/
js
/
main.js
1
var
2
arg = {
3
'font-size':'2em',
4
'transform':'rotate(5deg)'
5
};
6
narg = {
7
'font-size':'initial',
8
'transform':'initial'
9
};
10
11
$(function(){
12
$('div').on('click',function(){
13
$(this).css(arg);
14
})
15
.on('mouseout',function(){
16
$(this).css(narg);
17
})
18
.on('mousemove',function(){
19
$(this).css(narg);
20
});
21
});
22
$(document).ready(function(){
23
$('.livepreview').livePreview({
24
trigger: 'hover',
25
viewWidth: 300,
26
viewHeight: 200,
27
targetWidth: 1000,
28
targetHeight: 800,
29
scale: '0.5',
30
offset: 50,
31
position: 'left'
32
});
33
});