Skip to content
Snippets Groups Projects
Commit 467d63c0 authored by didierfred's avatar didierfred
Browse files

resolve sonar issues

parent 27dfb9e7
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
<table class="standard_table"> <table class="standard_table">
<tr> <tr>
<td align="left" ><h2 class="title"> SIMPLE MODIFY HEADERS </h2> </td> <td style="text-align:left"><h2 class="title"> SIMPLE MODIFY HEADERS </h2> </td>
<td align="right"> <img id="start_img" src="img/start.png" align="right" valign="top"> </img> </td> <td style="text-align:right"> <img id="start_img" src="img/start.png" alt="start/stop" style="float:right;vertical-align:top"> </img> </td>
</tr> </tr>
</table> </table>
<br/> <br/>
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
<br/> <br/>
<table class="standard_table"> <table class="standard_table">
<tr> <tr>
<td align="left" > <b> Url Patterns* : </b> <input id="targetPage" class="form_control input_url" type="text" value=""> </td> <td style="text-align:left" > <strong> Url Patterns* : </strong> <input id="targetPage" class="form_control input_url" type="text" value=""> </td>
<td align="right"> <td style="text-align:right">
<a href="#" id="export_button" class="btn btn-primary btn-sm" > <a href="#" id="export_button" class="btn btn-primary btn-sm" >
<span class="glyphicon glyphicon-export"></span> Export <span class="glyphicon glyphicon-export"></span> Export
</a> </a>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<tbody id="config_tab"> <tbody id="config_tab">
</tbody> </tbody>
</table> </table>
<table class="standard_table"> <tr><td align="center"> <table class="standard_table"> <tr><td style="text-align:center">
<a href="#" id="add_button" class="btn btn-primary btn-sm" style="width:100px"> <a href="#" id="add_button" class="btn btn-primary btn-sm" style="width:100px">
<span class="glyphicon glyphicon-plus"></span> New line <span class="glyphicon glyphicon-plus"></span> New line
</a> </a>
...@@ -80,10 +80,10 @@ ...@@ -80,10 +80,10 @@
<table class="standard_table"> <table class="standard_table">
<tr> <tr>
<td align="left" > <td style="text-align:left" >
<i style="font-size:10pt"> * Informations on url pattern can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all urls. It's possible to select mutliple url patterns using semicolon(;) separator </i> <em style="font-size:10pt"> * Informations on url pattern can be found <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank"> here.</a> <br> An empty string on the field will select all urls. It's possible to select mutliple url patterns using semicolon(;) separator </em>
</td> </td>
<td align="right"> <td style="text-align:right">
<a href="https://github.com/didierfred/SimpleModifyHeaders/tree/v1.6.2" target="_blank"> <span class="glyphicon glyphicon-question-sign"></span> About </a> <a href="https://github.com/didierfred/SimpleModifyHeaders/tree/v1.6.2" target="_blank"> <span class="glyphicon glyphicon-question-sign"></span> About </a>
</td> </td>
</tr> </tr>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<div id="parameters_screen" hidden> <div id="parameters_screen" hidden>
<h2 class="title"> SIMPLE MODIFY HEADERS </h2> <h2 class="title"> SIMPLE MODIFY HEADERS </h2>
<b> Parameters : </b> <strong> Parameters : </strong>
<br/> <br/>
<br/> <br/>
<input type="checkbox" id="debug_mode"> Debug mode </input> <input type="checkbox" id="debug_mode"> Debug mode </input>
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<iframe id="download" width="0" height="0" frameBorder="0"> <iframe id="download" title="hidden_download_frame" width="0" height="0" style="border:none;">
</iframe> </iframe>
<br/> <br/>
<script type="text/javascript" src="config.js"> </script> <script type="text/javascript" src="config.js"> </script>
......
...@@ -172,7 +172,7 @@ function reshapeTable() { ...@@ -172,7 +172,7 @@ function reshapeTable() {
} }
for (i=0;i<tr_elements.length;i++) { for (let i=0;i<tr_elements.length;i++) {
tr_elements[i].childNodes[4].childNodes[0].className=input_field_style; tr_elements[i].childNodes[4].childNodes[0].className=input_field_style;
tr_elements[i].childNodes[4].hidden = (!show_comments); tr_elements[i].childNodes[4].hidden = (!show_comments);
tr_elements[i].childNodes[3].childNodes[0].className=input_field_style; tr_elements[i].childNodes[3].childNodes[0].className=input_field_style;
...@@ -227,7 +227,7 @@ function isTargetValid(target) { ...@@ -227,7 +227,7 @@ function isTargetValid(target) {
if (target==="") return true; if (target==="") return true;
if (target===" ") return true; if (target===" ") return true;
if (target==="*") return true; if (target==="*") return true;
targets=target.split(";"); let targets=target.split(";");
for (i in targets) { for (i in targets) {
if (!targets[i].match("(http|https|[\*]):\/\/([\*][\.][^\*]*|[^\*]*|[\*])\/")) return false; if (!targets[i].match("(http|https|[\*]):\/\/([\*][\.][^\*]*|[^\*]*|[\*])\/")) return false;
} }
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title> Menu </title>
<style type="text/css"> <style type="text/css">
.button { .button {
background-color: #008CBA; /* Blue */ background-color: #008CBA; /* Blue */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment