Skip to content

Commit 30e478f

Browse files
committed
Move prettyPrint to separate script block on example pages
1 parent d77909b commit 30e478f

11 files changed

+44
-24
lines changed

examples/allow-page-scroll.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
9090
allowPageScroll: true
9191
});
9292

93-
//enable syntax highlighter
94-
prettyPrint();
9593
});
9694
</script>
9795

9896

9997
<script type="text/javascript">
98+
99+
//enable syntax highlighter
100+
prettyPrint();
101+
100102
var _gaq = _gaq || [];
101103
_gaq.push(['_setAccount', 'UA-3112455-22']);
102104
_gaq.push(['_setDomainName', 'none']);

examples/chaining.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
7676
width: '300px'
7777
});
7878

79-
//enable syntax highlighter
80-
prettyPrint();
8179
});
8280
</script>
8381

8482

8583
<script type="text/javascript">
84+
85+
//enable syntax highlighter
86+
prettyPrint();
87+
8688
var _gaq = _gaq || [];
8789
_gaq.push(['_setAccount', 'UA-3112455-22']);
8890
_gaq.push(['_setDomainName', 'none']);

examples/disable-fade-out.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
8989
disableFadeOut: true
9090
});
9191

92-
//enable syntax highlighter
93-
prettyPrint();
9492
});
9593
</script>
9694

9795

9896
<script type="text/javascript">
97+
98+
//enable syntax highlighter
99+
prettyPrint();
100+
99101
var _gaq = _gaq || [];
100102
_gaq.push(['_setAccount', 'UA-3112455-22']);
101103
_gaq.push(['_setDomainName', 'none']);

examples/height-width.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
120120

121121
$('#testDiv3').slimScroll();
122122

123-
//enable syntax highlighter
124-
prettyPrint();
125123
});
126124
</script>
127125

128126

129127
<script type="text/javascript">
128+
129+
//enable syntax highlighter
130+
prettyPrint();
131+
130132
var _gaq = _gaq || [];
131133
_gaq.push(['_setAccount', 'UA-3112455-22']);
132134
_gaq.push(['_setDomainName', 'none']);

examples/mouse-wheel.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
9393
wheelStep: 100
9494
});
9595

96-
//enable syntax highlighter
97-
prettyPrint();
9896
});
9997
</script>
10098

10199

102100
<script type="text/javascript">
101+
102+
//enable syntax highlighter
103+
prettyPrint();
104+
103105
var _gaq = _gaq || [];
104106
_gaq.push(['_setAccount', 'UA-3112455-22']);
105107
_gaq.push(['_setDomainName', 'none']);

examples/multiple-elements.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
107107
'margin-right': '30px'
108108
});
109109

110-
//enable syntax highlighter
111-
prettyPrint();
112110
});
113111
</script>
114112

115113

116114
<script type="text/javascript">
115+
116+
//enable syntax highlighter
117+
prettyPrint();
118+
117119
var _gaq = _gaq || [];
118120
_gaq.push(['_setAccount', 'UA-3112455-22']);
119121
_gaq.push(['_setDomainName', 'none']);

examples/nested.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
7676
'margin': '0 10px 10px 0'
7777
});
7878

79-
80-
//enable syntax highlighter
81-
prettyPrint();
8279
});
8380
</script>
8481

8582

8683
<script type="text/javascript">
84+
85+
//enable syntax highlighter
86+
prettyPrint();
87+
8788
var _gaq = _gaq || [];
8889
_gaq.push(['_setAccount', 'UA-3112455-22']);
8990
_gaq.push(['_setDomainName', 'none']);

examples/programmatic-scrolling.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
132132
$('#testDiv2').slimScroll({ scrollTo: '20px' });
133133
});
134134

135-
//enable syntax highlighter
136-
prettyPrint();
137135
});
138136
</script>
139137

140138

141139
<script type="text/javascript">
140+
141+
//enable syntax highlighter
142+
prettyPrint();
143+
142144
var _gaq = _gaq || [];
143145
_gaq.push(['_setAccount', 'UA-3112455-22']);
144146
_gaq.push(['_setDomainName', 'none']);

examples/rail.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
183183
$('#testDiv5').slimscroll({
184184
railDraggable: false
185185
});
186-
187-
//enable syntax highlighter
188-
prettyPrint();
189186
});
190187
</script>
191188

192189

193190
<script type="text/javascript">
191+
192+
//enable syntax highlighter
193+
prettyPrint();
194+
194195
var _gaq = _gaq || [];
195196
_gaq.push(['_setAccount', 'UA-3112455-22']);
196197
_gaq.push(['_setDomainName', 'none']);

examples/scrollbar.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,15 @@ <h2>Facebook-style jQuery Scrollbar</h1>
182182
opacity: 1
183183
});
184184

185-
//enable syntax highlighter
186-
prettyPrint();
187185
});
188186
</script>
189187

190188

191189
<script type="text/javascript">
190+
191+
//enable syntax highlighter
192+
prettyPrint();
193+
192194
var _gaq = _gaq || [];
193195
_gaq.push(['_setAccount', 'UA-3112455-22']);
194196
_gaq.push(['_setDomainName', 'none']);

0 commit comments

Comments
 (0)