cyaml 0.0.42 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- data/stylesheets/cyaml/add-ons/microformats/microformats.sass +18 -18
- data/templates/project/config.scss +0 -10
- metadata +4 -23
- data/templates/project/application_new.html.haml +0 -97
- data/templates/project/button_gray.png +0 -0
- data/templates/project/button_red.png +0 -0
- data/templates/project/button_yellow.png +0 -0
- data/templates/project/ftod.js +0 -50
- data/templates/project/minmax.js +0 -144
- data/templates/project/shiny_buttons/background.png +0 -0
- data/templates/project/shiny_buttons/background_active.png +0 -0
- data/templates/project/sliding_door/round/bg.gif +0 -0
- data/templates/project/sliding_door/round/left.png +0 -0
- data/templates/project/sliding_door/round/left_on.png +0 -0
- data/templates/project/sliding_door/round/right.png +0 -0
- data/templates/project/sliding_door/round/right_on.png +0 -0
- data/templates/project/vlist/square/node.gif +0 -0
- data/templates/project/vlist/square/node_minus.gif +0 -0
- data/templates/project/vlist/square/node_plus.gif +0 -0
- data/templates/project/vlist/square/subnode.gif +0 -0
- data/templates/project/vlist/square/subnode_minus.gif +0 -0
- data/templates/project/vlist/square/subnode_plus.gif +0 -0
@@ -33,10 +33,10 @@
|
|
33
33
|
padding: 2px 1px 2px 70px !important
|
34
34
|
margin: 0 2px 0 !important
|
35
35
|
.vcard
|
36
|
-
background: #f8f8ec
|
36
|
+
background: #f8f8ec inline-image("add-ons/microformats/icons/hcard.png", 'image/png') 5px 5px no-repeat !important
|
37
37
|
a
|
38
38
|
padding-left: 11px
|
39
|
-
background:
|
39
|
+
background: inline-image("add-ons/microformats/icons/external_link.png", 'image/png') top left no-repeat
|
40
40
|
color: #679A06
|
41
41
|
.adr
|
42
42
|
display: block
|
@@ -44,10 +44,10 @@
|
|
44
44
|
.email
|
45
45
|
font-family: Consolas, "Lucida Console", "Andale Mono", "Bitstream Vera Sans Mono", "Courier New", Courier
|
46
46
|
.vevent
|
47
|
-
background: #f8f8ec
|
47
|
+
background: #f8f8ec inline-image("add-ons/microformats/icons/hcalendar.png", 'image/png') 5px 5px no-repeat !important
|
48
48
|
a
|
49
49
|
padding-left: 11px
|
50
|
-
background:
|
50
|
+
background: inline-image("add-ons/microformats/icons/external_link.png", 'image/png') top left no-repeat
|
51
51
|
color: #679A06
|
52
52
|
p
|
53
53
|
margin: 0
|
@@ -65,51 +65,51 @@
|
|
65
65
|
a
|
66
66
|
&.xfnRelationship
|
67
67
|
padding-right: 26px
|
68
|
-
background-image:
|
68
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-small.png", 'image/png')
|
69
69
|
background-repeat: no-repeat
|
70
70
|
background-position: right
|
71
71
|
&[rel~="colleague"], &[rel~="co-worker"]
|
72
72
|
padding-right: 21px
|
73
|
-
background-image:
|
73
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-colleague.png", 'image/png')
|
74
74
|
&[rel~="met"]
|
75
75
|
padding-right: 32px
|
76
|
-
background-image:
|
76
|
+
background-image: inline-image("add-ons/microformats/icons/icon-xfn.png", 'image/png') no-repeat right
|
77
77
|
&[rel~="colleague"][rel~="met"], &[rel~="co-worker"][rel~="met"]
|
78
78
|
padding-right: 26px
|
79
|
-
background-image:
|
79
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-colleague-met.png", 'image/png')
|
80
80
|
&[rel~="friend"]
|
81
81
|
padding-right: 21px
|
82
|
-
background-image:
|
82
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-friend.png", 'image/png')
|
83
83
|
&[rel~="met"]
|
84
84
|
padding-right: 26px
|
85
|
-
background-image:
|
85
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-friend-met.png", 'image/png')
|
86
86
|
&[rel~="sweetheart"]
|
87
87
|
padding-right: 21px
|
88
|
-
background-image:
|
88
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-sweetheart.png", 'image/png')
|
89
89
|
&[rel~="met"]
|
90
90
|
padding-right: 26px
|
91
|
-
background-image:
|
91
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-sweetheart-met.png", 'image/png')
|
92
92
|
&[rel~="child"]
|
93
93
|
padding-right: 21px
|
94
|
-
background-image:
|
94
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-child.png", 'image/png')
|
95
95
|
&[rel~="parent"]
|
96
96
|
padding-right: 21px
|
97
|
-
background-image:
|
97
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-parent.png", 'image/png')
|
98
98
|
&[rel~="spouse"]
|
99
99
|
padding-right: 21px
|
100
|
-
background-image:
|
100
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-spouse.png", 'image/png')
|
101
101
|
&[rel~="me"]
|
102
102
|
padding-right: 21px
|
103
|
-
background-image:
|
103
|
+
background-image: inline-image("add-ons/microformats/icons/xfn/xfn-me.png", 'image/png')
|
104
104
|
&[rel~="tag"]
|
105
105
|
padding-right: 32px
|
106
|
-
background-image:
|
106
|
+
background-image: inline-image("add-ons/microformats/icons/icon-rel-tag.png", 'image/png')
|
107
107
|
background-repeat: no-repeat
|
108
108
|
background-position: right
|
109
109
|
/* rel-tag
|
110
110
|
/* geo
|
111
111
|
abbr[class~="geo"]
|
112
112
|
padding-right: 32px
|
113
|
-
background:
|
113
|
+
background: inline-image("add-ons/microformats/icons/icon-geo.png", 'image/png') no-repeat right
|
114
114
|
border: none
|
115
115
|
cursor: default
|
@@ -1,10 +0,0 @@
|
|
1
|
-
$layout_width: 1000px;
|
2
|
-
$layout_max_width: $layout_width;
|
3
|
-
$layout_min_width: $layout_width;
|
4
|
-
$display_3rd_column: none; /* #col2 (none|block) */
|
5
|
-
$header_height: 20px;
|
6
|
-
$content_height: auto;
|
7
|
-
$footer_height: 250px;
|
8
|
-
$width_c1: 25%;
|
9
|
-
$width_c2: auto;
|
10
|
-
$width_c3: 50%;
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cyaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 73
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 43
|
10
|
+
version: 0.0.43
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Gerber
|
@@ -69,23 +69,9 @@ files:
|
|
69
69
|
- templates/project/yaml/core/yaml-focusfix.js
|
70
70
|
- templates/project/yaml/add-ons/syncheight/jquery.syncheight.js
|
71
71
|
- templates/project/yaml/add-ons/accessible-tabs/jquery.tabs.js
|
72
|
-
- templates/project/button_yellow.png
|
73
|
-
- templates/project/application_new.html.haml
|
74
|
-
- templates/project/vlist/square/node_plus.gif
|
75
|
-
- templates/project/vlist/square/subnode_minus.gif
|
76
|
-
- templates/project/vlist/square/node_minus.gif
|
77
|
-
- templates/project/vlist/square/subnode.gif
|
78
|
-
- templates/project/vlist/square/subnode_plus.gif
|
79
|
-
- templates/project/vlist/square/node.gif
|
80
|
-
- templates/project/button_red.png
|
81
72
|
- templates/project/index.html.haml
|
82
73
|
- templates/project/default_includes.scss
|
83
|
-
- templates/project/minmax.js
|
84
|
-
- templates/project/shiny_buttons/background_active.png
|
85
|
-
- templates/project/shiny_buttons/background.png
|
86
|
-
- templates/project/button_gray.png
|
87
74
|
- templates/project/application.html.haml
|
88
|
-
- templates/project/ftod.js
|
89
75
|
- templates/project/config.scss
|
90
76
|
- templates/project/add-ons/microformats/xfn/xfn-sweetheart.png
|
91
77
|
- templates/project/add-ons/microformats/xfn/xfn-sweetheart-met.png
|
@@ -139,11 +125,6 @@ files:
|
|
139
125
|
- templates/project/add-ons/microformats/icon-hcalendar.png
|
140
126
|
- templates/project/add-ons/microformats/icon-hcard.png
|
141
127
|
- templates/project/add-ons/microformats/icon-xfn.png
|
142
|
-
- templates/project/sliding_door/round/right.png
|
143
|
-
- templates/project/sliding_door/round/left.png
|
144
|
-
- templates/project/sliding_door/round/left_on.png
|
145
|
-
- templates/project/sliding_door/round/bg.gif
|
146
|
-
- templates/project/sliding_door/round/right_on.png
|
147
128
|
- templates/project/basemod.scss
|
148
129
|
- templates/project/manifest.rb
|
149
130
|
homepage: http://www.citrin.ch/
|
@@ -175,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
156
|
requirements: []
|
176
157
|
|
177
158
|
rubyforge_project:
|
178
|
-
rubygems_version: 1.8.
|
159
|
+
rubygems_version: 1.8.7
|
179
160
|
signing_key:
|
180
161
|
specification_version: 3
|
181
162
|
summary: the yaml framework as compass gem
|
@@ -1,97 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html{:lang => "en"}
|
3
|
-
%head
|
4
|
-
%meta{:charset => "utf-8"}/
|
5
|
-
%title Demo: Flexible Column Layout – YAML CSS Framework
|
6
|
-
/ Mobile viewport optimisation
|
7
|
-
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
|
8
|
-
/ (en) Add your meta data here
|
9
|
-
/ (de) Fuegen Sie hier ihre Meta-Daten ein
|
10
|
-
= stylesheet_link_tag 'basemod.css', :media => 'all'
|
11
|
-
/[if lte IE 7]
|
12
|
-
= stylesheet_link_tag 'iehacks.css', :media => 'all'
|
13
|
-
/[if lt IE 9]
|
14
|
-
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
15
|
-
%body.demo-2col
|
16
|
-
%ul.ym-skiplinks
|
17
|
-
%li
|
18
|
-
%a.ym-skip{:href => "#nav"} Skip to navigation (Press Enter)
|
19
|
-
%li
|
20
|
-
%a.ym-skip{:href => "#main"} Skip to main content (Press Enter)
|
21
|
-
.ym-wrapper
|
22
|
-
.ym-wbox
|
23
|
-
%header
|
24
|
-
%h1 Project Name
|
25
|
-
%nav#nav
|
26
|
-
.ym-hlist
|
27
|
-
%ul
|
28
|
-
%li.active
|
29
|
-
%strong Active
|
30
|
-
%li
|
31
|
-
%a{:href => "#"} Link
|
32
|
-
%li
|
33
|
-
%a{:href => "#"} Link
|
34
|
-
%li
|
35
|
-
%a{:href => "#"} Link
|
36
|
-
%li
|
37
|
-
%a{:href => "#"} Link
|
38
|
-
%form.ym-searchform
|
39
|
-
%input.ym-searchfield{:placeholder => "Search...", :type => "search"}/
|
40
|
-
%input.ym-searchbutton{:type => "submit", :value => "Search"}/
|
41
|
-
#main
|
42
|
-
.ym-column.linearize-level-1
|
43
|
-
.ym-col1
|
44
|
-
.ym-cbox
|
45
|
-
= yield
|
46
|
-
%section.box.info
|
47
|
-
%h2 Main Content
|
48
|
-
%p Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
49
|
-
%a.ym-button.ym-next{:href => "#"} Read More
|
50
|
-
%section.ym-grid.linearize-level-2
|
51
|
-
%article.ym-g50.ym-gl
|
52
|
-
.ym-gbox
|
53
|
-
/ content
|
54
|
-
%h3 Heading
|
55
|
-
%p Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
|
56
|
-
%article.ym-g50.ym-gr
|
57
|
-
.ym-gbox
|
58
|
-
/ content
|
59
|
-
%h3 Heading
|
60
|
-
%p Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
|
61
|
-
%section.ym-grid.linearize-level-2
|
62
|
-
%article.ym-g50.ym-gl
|
63
|
-
.ym-gbox
|
64
|
-
/ content
|
65
|
-
%h3 Heading
|
66
|
-
%p Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
|
67
|
-
%article.ym-g50.ym-gr
|
68
|
-
.ym-gbox
|
69
|
-
/ content
|
70
|
-
%h3 Heading
|
71
|
-
%p Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
|
72
|
-
%aside.ym-col3
|
73
|
-
.ym-cbox
|
74
|
-
%h2 Sidebar
|
75
|
-
%h4 Widget A
|
76
|
-
%ul
|
77
|
-
%li Item 1
|
78
|
-
%li Item 2
|
79
|
-
%li Item 3
|
80
|
-
%li Item 4
|
81
|
-
%li Item 5
|
82
|
-
%h4 Widget B
|
83
|
-
%ul
|
84
|
-
%li Item 1
|
85
|
-
%li Item 2
|
86
|
-
%li Item 3
|
87
|
-
%h4 Widget C
|
88
|
-
%ul
|
89
|
-
%li Item 1
|
90
|
-
%li Item 2
|
91
|
-
%li Item 3
|
92
|
-
%footer
|
93
|
-
%p
|
94
|
-
© Company 2011 – Layout based on
|
95
|
-
%a{:href => "http://www.yaml.de"} YAML
|
96
|
-
/ full skip link functionality in webkit browsers
|
97
|
-
%script{:src => "/javascripts/yaml/core/yaml-focusfix.js"}
|
Binary file
|
Binary file
|
Binary file
|
data/templates/project/ftod.js
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
//filler text on demand
|
2
|
-
// http://web-graphics.com/mtarchive/001667.php
|
3
|
-
|
4
|
-
var words=new Array('lorem','ipsum','dolor','sit','amet','consectetuer','adipiscing','elit','suspendisse','eget','diam','quis','diam','consequat','interdum');
|
5
|
-
|
6
|
-
function AddFillerLink(){
|
7
|
-
if(!document.getElementById || !document.createElement) return;
|
8
|
-
var i,l;
|
9
|
-
for(i=0;i<arguments.length;i++){
|
10
|
-
|
11
|
-
if (document.getElementById(arguments[i])) { /* Check elements exists - add Reinhard Hiebl */
|
12
|
-
l=document.createElement("a");
|
13
|
-
l.href="#";
|
14
|
-
l.appendChild(document.createTextNode("Add Text"));
|
15
|
-
l.onclick=function(){AddText(this);return(false)};
|
16
|
-
document.getElementById(arguments[i]).appendChild(l);
|
17
|
-
b=document.createTextNode(" | ");
|
18
|
-
document.getElementById(arguments[i]).appendChild(b);
|
19
|
-
r=document.createElement("a");
|
20
|
-
r.href="#";
|
21
|
-
r.appendChild(document.createTextNode("Remove Text"));
|
22
|
-
r.onclick=function(){RemoveText(this);return(false)};
|
23
|
-
document.getElementById(arguments[i]).appendChild(r);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
function AddText(el){
|
29
|
-
var s="",n,i;
|
30
|
-
n=RandomNumber(20,80);
|
31
|
-
for(i=0;i<n;i++)
|
32
|
-
s+=words[RandomNumber(0,words.length-1)]+" ";
|
33
|
-
var t=document.createElement("p");
|
34
|
-
t.setAttribute('class','added');
|
35
|
-
t.appendChild(document.createTextNode(s));
|
36
|
-
el.parentNode.insertBefore(t,el);
|
37
|
-
}
|
38
|
-
function RemoveText(el){
|
39
|
-
var parent = el.parentNode;
|
40
|
-
for(var i=0;i<parent.childNodes.length;i++) {
|
41
|
-
var para = parent.childNodes[i];
|
42
|
-
if(para.nodeName == "P" && para.getAttribute('class')=='added') {
|
43
|
-
parent.removeChild(para);
|
44
|
-
break;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
function RandomNumber(n1,n2){
|
49
|
-
return(Math.floor(Math.random()*(n2-n1))+n1);
|
50
|
-
}
|
data/templates/project/minmax.js
DELETED
@@ -1,144 +0,0 @@
|
|
1
|
-
// minmax.js: make IE5+/Win support CSS min/max-width/height
|
2
|
-
// version 1.0, 08-Aug-2003
|
3
|
-
// written by Andrew Clover <and@doxdesk.com>, use freely
|
4
|
-
|
5
|
-
/*@cc_on
|
6
|
-
@if (@_win32 && @_jscript_version>4)
|
7
|
-
|
8
|
-
var minmax_elements;
|
9
|
-
|
10
|
-
minmax_props= new Array(
|
11
|
-
new Array('min-width', 'minWidth'),
|
12
|
-
new Array('max-width', 'maxWidth'),
|
13
|
-
new Array('min-height','minHeight'),
|
14
|
-
new Array('max-height','maxHeight')
|
15
|
-
);
|
16
|
-
|
17
|
-
// Binding. Called on all new elements. If <body>, initialise; check all
|
18
|
-
// elements for minmax properties
|
19
|
-
|
20
|
-
function minmax_bind(el) {
|
21
|
-
var i, em, ms;
|
22
|
-
var st= el.style, cs= el.currentStyle;
|
23
|
-
|
24
|
-
if (minmax_elements==window.undefined) {
|
25
|
-
// initialise when body element has turned up, but only on IE
|
26
|
-
if (!document.body || !document.body.currentStyle) return;
|
27
|
-
minmax_elements= new Array();
|
28
|
-
window.attachEvent('onresize', minmax_delayout);
|
29
|
-
// make font size listener
|
30
|
-
em= document.createElement('div');
|
31
|
-
em.setAttribute('id', 'minmax_em');
|
32
|
-
em.style.position= 'absolute'; em.style.visibility= 'hidden';
|
33
|
-
em.style.fontSize= 'xx-large'; em.style.height= '5em';
|
34
|
-
em.style.top='-5em'; em.style.left= '0';
|
35
|
-
if (em.style.setExpression) {
|
36
|
-
em.style.setExpression('width', 'minmax_checkFont()');
|
37
|
-
document.body.insertBefore(em, document.body.firstChild);
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
// transform hyphenated properties the browser has not caught to camelCase
|
42
|
-
for (i= minmax_props.length; i-->0;)
|
43
|
-
if (cs[minmax_props[i][0]])
|
44
|
-
st[minmax_props[i][1]]= cs[minmax_props[i][0]];
|
45
|
-
// add element with properties to list, store optimal size values
|
46
|
-
for (i= minmax_props.length; i-->0;) {
|
47
|
-
ms= cs[minmax_props[i][1]];
|
48
|
-
if (ms && ms!='auto' && ms!='none' && ms!='0' && ms!='') {
|
49
|
-
st.minmaxWidth= cs.width; st.minmaxHeight= cs.height;
|
50
|
-
minmax_elements[minmax_elements.length]= el;
|
51
|
-
// will need a layout later
|
52
|
-
minmax_delayout();
|
53
|
-
break;
|
54
|
-
} }
|
55
|
-
}
|
56
|
-
|
57
|
-
// check for font size changes
|
58
|
-
|
59
|
-
var minmax_fontsize= 0;
|
60
|
-
function minmax_checkFont() {
|
61
|
-
var fs= document.getElementById('minmax_em').offsetHeight;
|
62
|
-
if (minmax_fontsize!=fs && minmax_fontsize!=0)
|
63
|
-
minmax_delayout();
|
64
|
-
minmax_fontsize= fs;
|
65
|
-
return '5em';
|
66
|
-
}
|
67
|
-
|
68
|
-
// Layout. Called after window and font size-change. Go through elements we
|
69
|
-
// picked out earlier and set their size to the minimum, maximum and optimum,
|
70
|
-
// choosing whichever is appropriate
|
71
|
-
|
72
|
-
// Request re-layout at next available moment
|
73
|
-
var minmax_delaying= false;
|
74
|
-
function minmax_delayout() {
|
75
|
-
if (minmax_delaying) return;
|
76
|
-
minmax_delaying= true;
|
77
|
-
window.setTimeout(minmax_layout, 0);
|
78
|
-
}
|
79
|
-
|
80
|
-
function minmax_stopdelaying() {
|
81
|
-
minmax_delaying= false;
|
82
|
-
}
|
83
|
-
|
84
|
-
function minmax_layout() {
|
85
|
-
window.setTimeout(minmax_stopdelaying, 100);
|
86
|
-
var i, el, st, cs, optimal, inrange;
|
87
|
-
for (i= minmax_elements.length; i-->0;) {
|
88
|
-
el= minmax_elements[i]; st= el.style; cs= el.currentStyle;
|
89
|
-
|
90
|
-
// horizontal size bounding
|
91
|
-
st.width= st.minmaxWidth; optimal= el.offsetWidth;
|
92
|
-
inrange= true;
|
93
|
-
if (inrange && cs.minWidth && cs.minWidth!='0' && cs.minWidth!='auto' && cs.minWidth!='') {
|
94
|
-
st.width= cs.minWidth;
|
95
|
-
inrange= (el.offsetWidth<optimal);
|
96
|
-
}
|
97
|
-
if (inrange && cs.maxWidth && cs.maxWidth!='none' && cs.maxWidth!='auto' && cs.maxWidth!='') {
|
98
|
-
st.width= cs.maxWidth;
|
99
|
-
inrange= (el.offsetWidth>optimal);
|
100
|
-
}
|
101
|
-
if (inrange) st.width= st.minmaxWidth;
|
102
|
-
|
103
|
-
// vertical size bounding
|
104
|
-
st.height= st.minmaxHeight; optimal= el.offsetHeight;
|
105
|
-
inrange= true;
|
106
|
-
if (inrange && cs.minHeight && cs.minHeight!='0' && cs.minHeight!='auto' && cs.minHeight!='') {
|
107
|
-
st.height= cs.minHeight;
|
108
|
-
inrange= (el.offsetHeight<optimal);
|
109
|
-
}
|
110
|
-
if (inrange && cs.maxHeight && cs.maxHeight!='none' && cs.maxHeight!='auto' && cs.maxHeight!='') {
|
111
|
-
st.height= cs.maxHeight;
|
112
|
-
inrange= (el.offsetHeight>optimal);
|
113
|
-
}
|
114
|
-
if (inrange) st.height= st.minmaxHeight;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
|
118
|
-
// Scanning. Check document every so often until it has finished loading. Do
|
119
|
-
// nothing until <body> arrives, then call main init. Pass any new elements
|
120
|
-
// found on each scan to be bound
|
121
|
-
|
122
|
-
var minmax_SCANDELAY= 500;
|
123
|
-
|
124
|
-
function minmax_scan() {
|
125
|
-
var el;
|
126
|
-
for (var i= 0; i<document.all.length; i++) {
|
127
|
-
el= document.all[i];
|
128
|
-
if (!el.minmax_bound) {
|
129
|
-
el.minmax_bound= true;
|
130
|
-
minmax_bind(el);
|
131
|
-
} }
|
132
|
-
}
|
133
|
-
|
134
|
-
var minmax_scanner;
|
135
|
-
function minmax_stop() {
|
136
|
-
window.clearInterval(minmax_scanner);
|
137
|
-
minmax_scan();
|
138
|
-
}
|
139
|
-
|
140
|
-
minmax_scan();
|
141
|
-
minmax_scanner= window.setInterval(minmax_scan, minmax_SCANDELAY);
|
142
|
-
window.attachEvent('onload', minmax_stop);
|
143
|
-
|
144
|
-
@end @*/
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|