Skip to content

Commit 1d80e1a

Browse files
committed
closes #11: optimize html v2 size a little
1 parent abc8940 commit 1d80e1a

File tree

6 files changed

+17
-62
lines changed

6 files changed

+17
-62
lines changed

libcpychecker_html/extlib/jquery-1.7.1.min.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

libcpychecker_html/extlib/reset-20110126.css

Lines changed: 0 additions & 48 deletions
This file was deleted.

libcpychecker_html/extlib/reset-20110126.min.css

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libcpychecker_html/extlib/zepto-1.1.3.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libcpychecker_html/make_html.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ def head(self):
7777
media='screen',
7878
type='text/css'
7979
)
80-
for css in ('extlib/reset-20110126', 'pygments_c', 'style')
80+
for css in ('extlib/reset-20110126.min', 'pygments_c', 'style')
8181
)
8282
head.extend(
8383
E.SCRIPT(
8484
file_contents(js + '.js'),
8585
type='text/javascript',
8686
)
8787
for js in (
88+
'extlib/zepto-1.1.3.min',
8889
'extlib/prefixfree-1.0.4.min',
89-
'extlib/jquery-1.7.1.min',
9090
'script'
9191
)
9292
)

libcpychecker_html/script.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ $(function() {
8989
// state commentary, highlight the dot and the comment and
9090
// the row itself
9191
var $group = $row.add(flow[0].$state).add($new_cell);
92-
$new_cell.add(flow[0].$state).hover(
93-
function() { $group.addClass('selected'); },
94-
function() { $group.removeClass('selected'); }
95-
);
92+
$new_cell.add(flow[0].$state).on({
93+
mouseenter: function() { $group.addClass('selected'); },
94+
mouseleave: function() { $group.removeClass('selected'); }
95+
});
9696

9797
flow.shift();
9898
}
@@ -117,10 +117,10 @@ $(function() {
117117
// with that line
118118
if ($selectables.length) {
119119
$selectables = $selectables.add($row);
120-
$row.find('td:last-child').hover(
121-
function() { $selectables.addClass('selected') },
122-
function() { $selectables.removeClass('selected') }
123-
);
120+
$row.find('td:last-child').on({
121+
mouseenter: function() { $selectables.addClass('selected') },
122+
mouseleave: function() { $selectables.removeClass('selected') }
123+
});
124124
}
125125
});
126126
});

0 commit comments

Comments
 (0)