Skip to content

Commit

Permalink
移动 example 目录到 gh-pages 分支(从 master)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Jul 20, 2017
1 parent 1003184 commit 6113fba
Show file tree
Hide file tree
Showing 4 changed files with 513 additions and 779 deletions.
126 changes: 126 additions & 0 deletions example/Mouseover_Popup_Image_Viewer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<html>
<head>
<meta charset="UTF-8">
<title>GM_config 模仿 Mouseover Popup Image Viewer 设置界面</title>
</head>
<body>
<script src="https://rawgit.com/ywzhaiqi/GM_config/master/gm_config.js"></script>
<script>
GM_config.init({
id: 'MPIV',
title: 'Mouseover Popup Image Viewer',
frameStyle: {
width: '652px',
},
skin: 1,
css: [
'#GM_config_scales_var { margin-left: 10px; }',
].join('\n'),
fields: {
'popup': {
label: 'Popup:',
type: 'select',
options: {
'auto': 'automatically',
'context': 'right click or ctrl',
'ctrl': 'ctrl'
},
line: 'start',
},
'delay': {
label: ' after',
type: 'text',
default: 500,
size: 2,
after: ' ms',
},
'thumbnails': {
label: ' over ',
type: 'select',
options: ['thumbnails and text links', 'thumbnails only'],
},
'preload': {
label: ' Preloading',
type: 'checkbox',
labelPos: 'right',
line: 'end'
},

// line two
'zoom': {
label: 'Zoom: ',
type: 'select',
options: {
'context': 'right click or shift',
'wheel': 'wheel up or shift',
'shift': 'shift',
'auto': 'automatically'
},
line: 'start'
},
'scales': {
label: ' Custom scale factors: ',
type: 'text',
size: 15,
placeholder: 'e.g. 0 0.5 1 2',
},
'line_scales': {
label: '(?)',
type: 'span',
title: "values smaller than popup's non-zoomed size are skipped, 0 = fit to window, 0! = same as 0 but replaces factors smaller than calculated value so zoom jumps directly to calculated value, asterisk after value marks default zoom factor (e.g. 1*)",
style: 'cursor:help'
},

'scale': {
label: 'Only show popup over scaled-down images when natural size is ',
type: 'text',
size: 2,
'default': 1.5,
after: ' times larger',
line: 'start',
},
'center': {
label: ' Always centered ',
type: 'checkbox',
labelPos: 'right',
line: 'start',
},
'cursor': {
label: ' Autohide cursor ',
type: 'checkbox',
labelPos: 'right',
},
'imagetab': {
label: ' Run in image tabs',
type: 'checkbox',
labelPos: 'right',
line: 'end',
},

'close': {
label: 'If zooming out further is not possible, ',
type: 'select',
options: {
'': 'stay in zoom mode',
'close': 'close popup'
},
},

'css': {
label: 'Custom CSS:',
type: 'textarea',
labelPos: 'top',
placeholder: 'Custom CSS'
},
'hosts': {
label: 'Custom host rules:',
type: 'textarea',
labelPos: 'top'
}
}
});

GM_config.open();
</script>
</body>
</html>
Loading

0 comments on commit 6113fba

Please sign in to comment.