Skip to content

Commit

Permalink
Release XLT 8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jowerner committed Mar 18, 2024
2 parents 2b1b716 + 45bcd8b commit d02dbba
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 2 deletions.
5 changes: 5 additions & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,11 @@ bootstrap
* License: MIT License
* Homepage: https://getbootstrap.com/
* More information in folder: doc/3rd-party-licenses/bootstrap

crosshair
* License: MIT License
* Homepage: https://eschmann.dev/crosshair.js/
* More information in folder: doc/3rd-party-licenses/crosshair

harPreview

Expand Down
30 changes: 30 additions & 0 deletions config/testreport/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -1775,3 +1775,33 @@ tr:hover .infinity { background: linear-gradient(rgb(200,120,120), rgba(0,0,0,0)
transform: rotate(360deg);
}
}

.crosshair {
display: block;
position: relative;
overflow: hidden;
}
.crosshair img {
width: 100%;
}
.crosshair .hair {
display: none;
position: absolute;
top: 0;
left: 0;
margin-top: -1px;
margin-left: -1px;
background: transparent;
border-top: 1px solid black;
border-left: 1px solid black;
pointer-events: none;
z-index: 2;
opacity: 0.3;
}
.crosshair .hair.hair-vertical {
height: 100%;
}
.crosshair .hair.hair-horizontal {
width: 100%;
}

64 changes: 64 additions & 0 deletions config/testreport/js/crosshair.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Based on crosshair.js - v0.1.0
* https://github.com/eschmar/crosshair
*/

(function ($) {
// constructor
function Plugin(element){
$(element).wrap('<div class="crosshair"></div>');
this.element = $(element).parent();
this.init();
}

Plugin.prototype = {
init: function() {
var app = this;
this.spawnCrosshair();

// hide crosshair onmouseleave
this.element.hover(function() {
app.element.find('.hair').show();
}, function() {
app.element.find('.hair').hide();
});
},

spawnCrosshair: function() {
this.element.append('<div class="hair hair-vertical"></div>');
this.element.append('<div class="hair hair-horizontal"></div>');

this.initCrosshair();
},

initCrosshair: function() {
var app = this;
$(this.element).on('mousemove touchmove', function(event) {
// calculate relative position
var offset, left, top;
offset = app.element.offset();
left = event.pageX - offset.left;
top = event.pageY - offset.top;

// update position
app.element.find('.hair.hair-horizontal').css('top', top);
app.element.find('.hair.hair-vertical').css('left', left);

event.stopPropagation();
});
}
}

// lightweight plugin wrapper, preventing against multiple instantiations
$.fn["crosshair"] = function () {
return this.each(function() {
if (!$.data(this, "crosshair")) {
$.data(this, "crosshair", new Plugin(this))
};
});
};

$(function(){
$('.chart').crosshair();
});
})( jQuery );
1 change: 1 addition & 0 deletions config/xsl/common/sections/head.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
<script src="js/jquery.scrollTo-2.1.3.min.js"/>
<script src="js/tabs.js"/>
<script src="js/table.js"/>
<script src="js/crosshair.js"/>

<link rel="icon" href="images/favicon.png" sizes="any" />
<link rel="icon" href="images/favicon.svg" type="image/svg+xml" />
Expand Down
21 changes: 21 additions & 0 deletions doc/3rd-party-licenses/crosshair/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2014 Marcel Eschmann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions doc/internal-doc/licenses/licenses.csv
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ xerces,Apache License 2.0,http://xerces.apache.org/xerces2-j/,
xstream,BSD 3-Clause License,https://x-stream.github.io/,
,,,
bootstrap,MIT License,https://getbootstrap.com/,
crosshair,MIT License,https://eschmann.dev/crosshair.js/,
harPreview,BSD 3-Clause License,https://github.com/janodvarko/harviewer,
headroomjs,MIT License,http://wicky.nillia.ms/headroom.js/,
highlightjs,BSD 3-Clause License,https://highlightjs.org/,
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.xceptance</groupId>
<artifactId>xlt</artifactId>
<version>8.0.0</version>
<version>8.1.0</version>
<packaging>jar</packaging>

<name>XLT</name>
Expand Down Expand Up @@ -210,7 +210,7 @@
<dependency>
<groupId>org.htmlunit</groupId>
<artifactId>neko-htmlunit</artifactId>
<version>3.11.2</version>
<version>3.11.3</version>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
Expand Down

0 comments on commit d02dbba

Please sign in to comment.