working somewhat on thinkpad - doesn't pass tests
This commit is contained in:
@@ -38,14 +38,13 @@
|
||||
font-family:sans-serif;
|
||||
text-align:left;
|
||||
text-shadow: none;
|
||||
white-space: normal;
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
-o-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#djDebug button, #djDebug a.button {
|
||||
#djDebug button {
|
||||
background-color: #eee;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eee), color-stop(100%, #cccccc));
|
||||
background-image: -webkit-linear-gradient(top, #eee, #cccccc);
|
||||
@@ -65,7 +64,7 @@
|
||||
text-shadow: 0 1px 0 #eee;
|
||||
}
|
||||
|
||||
#djDebug button:hover, #djDebug a.button:hover {
|
||||
#djDebug button:hover {
|
||||
background-color: #ddd;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ddd), color-stop(100%, #bbb));
|
||||
background-image: -webkit-linear-gradient(top, #ddd, #bbb);
|
||||
@@ -79,7 +78,7 @@
|
||||
text-shadow: 0 1px 0 #ddd;
|
||||
}
|
||||
|
||||
#djDebug button:active, #djDebug a.button:active {
|
||||
#djDebug button:active {
|
||||
border: 1px solid #aaa;
|
||||
border-bottom: 1px solid #888;
|
||||
-webkit-box-shadow: inset 0 0 5px 2px #aaa, 0 1px 0 0 #eee;
|
||||
@@ -287,7 +286,7 @@
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
background-color:#fff;
|
||||
display:table;
|
||||
display:block;
|
||||
margin-top:0.8em;
|
||||
overflow: auto;
|
||||
}
|
||||
@@ -657,6 +656,3 @@
|
||||
#djDebug .djdt-highlighted {
|
||||
background-color: lightgrey;
|
||||
}
|
||||
.djdt-hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
5
static/debug_toolbar/js/jquery_post.js
vendored
5
static/debug_toolbar/js/jquery_post.js
vendored
@@ -1,4 +1 @@
|
||||
var djdt = {jQuery: jQuery.noConflict(true)};
|
||||
if (window.define) {
|
||||
window.define.amd = _djdt_define_amd_backup;
|
||||
}
|
||||
var djdt = {jQuery: jQuery.noConflict(true)}; window.define = _djdt_define_backup;
|
||||
|
||||
6
static/debug_toolbar/js/jquery_pre.js
vendored
6
static/debug_toolbar/js/jquery_pre.js
vendored
@@ -1,5 +1 @@
|
||||
var _djdt_define_amd_backup;
|
||||
if (window.define) {
|
||||
_djdt_define_amd_backup = window.define.amd;
|
||||
window.define.amd = undefined;
|
||||
}
|
||||
var _djdt_define_backup = window.define; window.define = undefined;
|
||||
|
||||
@@ -64,16 +64,16 @@
|
||||
|
||||
if (name == 'button') {
|
||||
var form = self.parents('form:eq(0)');
|
||||
ajax_data.url = self.attr('formaction');
|
||||
ajax_data['url'] = self.attr('formaction');
|
||||
|
||||
if (form.length) {
|
||||
ajax_data.data = form.serialize();
|
||||
ajax_data.type = form.attr('method') || 'POST';
|
||||
ajax_data['data'] = form.serialize();
|
||||
ajax_data['type'] = form.attr('method') || 'POST';
|
||||
}
|
||||
}
|
||||
|
||||
if (name == 'a') {
|
||||
ajax_data.url = self.attr('href');
|
||||
ajax_data['url'] = self.attr('href');
|
||||
}
|
||||
|
||||
$.ajax(ajax_data).done(function(data){
|
||||
@@ -141,13 +141,13 @@
|
||||
// due to djdt.handleDragged being set to true.
|
||||
if (djdt.handleDragged || event.pageY != startPageY) {
|
||||
var top = baseY + event.clientY;
|
||||
|
||||
|
||||
if (top < 0) {
|
||||
top = 0;
|
||||
} else if (top + handle.height() > windowHeight) {
|
||||
top = windowHeight - handle.height();
|
||||
}
|
||||
|
||||
|
||||
handle.css({top: top});
|
||||
djdt.handleDragged = true;
|
||||
}
|
||||
@@ -213,13 +213,11 @@
|
||||
$('#djDebugToolbar li').removeClass('djdt-active');
|
||||
// finally close toolbar
|
||||
$('#djDebugToolbar').hide('fast');
|
||||
handle = $('#djDebugToolbarHandle');
|
||||
handle.show();
|
||||
$('#djDebugToolbarHandle').show();
|
||||
// set handle position
|
||||
var handleTop = djdt.cookie.get('djdttop');
|
||||
if (handleTop) {
|
||||
handleTop = Math.min(handleTop, window.innerHeight - handle.outerHeight() - 10);
|
||||
handle.css({top: handleTop + 'px'});
|
||||
$('#djDebugToolbarHandle').css({top: handleTop + 'px'});
|
||||
}
|
||||
// Unbind keydown
|
||||
$(document).unbind('keydown.djDebug');
|
||||
|
||||
@@ -23,16 +23,16 @@
|
||||
var $row = $('<tr class="' + ((rowCount % 2) ? 'djDebugOdd' : 'djDebugEven') + '"></tr>');
|
||||
if (endStat) {
|
||||
// Render a start through end bar
|
||||
$row.html('<td>' + stat.replace('Start', '') + '</td>' +
|
||||
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong> </strong></div></div></td>' +
|
||||
$row.html('<td>' + stat.replace('Start', '') + '</td>' +
|
||||
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong> </strong></div></div></td>' +
|
||||
'<td>' + (perf.timing[stat] - timingOffset) + ' (+' + (perf.timing[endStat] - perf.timing[stat]) + ')</td>');
|
||||
$row.find('strong').css({width: getCSSWidth(stat, endStat)});
|
||||
} else {
|
||||
// Render a point in time
|
||||
$row.html('<td>' + stat + '</td>' +
|
||||
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong> </strong></div></div></td>' +
|
||||
'<td>' + (perf.timing[stat] - timingOffset) + '</td>');
|
||||
$row.find('strong').css({width: 2});
|
||||
$row.html('<td>' + stat + '</td>' +
|
||||
'<td class="timeline"><div class="djDebugTimeline"><div class="djDebugLineChart"><strong> </strong></div></div></td>' +
|
||||
'<td>' + (perf.timing[stat] - timingOffset) + '</td>');
|
||||
$row.find('strong').css({width: 2});
|
||||
}
|
||||
$row.find('djDebugLineChart').css({left: getLeft(stat) + '%'});
|
||||
$('#djDebugBrowserTimingTableBody').append($row);
|
||||
|
||||
Reference in New Issue
Block a user