Skip to content

Commit

Permalink
2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oppoic committed Dec 12, 2024
1 parent 955a52e commit 9fe51f8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 28 deletions.
27 changes: 14 additions & 13 deletions src/css/mycss.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.mainBox{
.mainBox {
position: relative;
padding: 0px 30px 0px 10px;
padding: 2px 5px;
box-sizing: border-box;
}

.tool-right{
.tool-right {
position: absolute;
top: 30px;
right: 10px;
Expand All @@ -19,10 +19,10 @@
float: right;
}

.btn-group-right a{
.btn-group-right a {
width: 45px;
margin: 8px 2px 0px 0px;
padding: 0;
padding: 0;
}

div.btn-group-right>button {
Expand All @@ -32,26 +32,27 @@ div.btn-group-right>button {
padding: 0;
border-radius: 2px;
border: 1px solid transparent;
background-color:#3883fa;
font-family: arial,sans-serif;
background-color: #3883fa;
font-family: arial, sans-serif;
}

div.btn-group-right>button:hover {
background-color: rgba(255,255,255,.2);
border: 1px solid rgba(255,255,255,.4)
background-color: rgba(255, 255, 255, .2);
border: 1px solid rgba(255, 255, 255, .4)
}

div.btn-group-right>button:active,div.btn-group-right>button:focus {
background-color: rgba(255,255,255,.3)
div.btn-group-right>button:active,
div.btn-group-right>button:focus {
background-color: rgba(255, 255, 255, .3)
}

/*Bootstrap 5/12*/
.col-md-1-5,
.col-lg-1-5 {
position: relative;
min-height: 1px;
padding-right: 10px;
padding-left: 10px;
padding-right: 5px;
padding-left: 5px;
}

@media (min-width: 992px) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/myscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ $(window).bind('resize', function () {
});

function setHeight() {
$("[data-tgt='container']").height($(window).height());
$("[data-tgt='container']").height($(window).height() - 4);
}

function addIconHideAndShow() {
if ($(".container-fluid .mainBox").length >= getMaxBoxCount()) {
$(".tool-right").hide();
$(".mainBox").css("padding-right", "10px");
$(".mainBox").css("padding-right", "5px");
}
else {
$(".tool-right").show();
Expand Down
15 changes: 3 additions & 12 deletions src/js/samplejson.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,11 @@ var samplejson = [
"description": "Format several JSON documents in one window, depends to your screen width, up to 6",
"source code": "https://github.com/oppoic/JSONViewer",
"download": {
"Google Chrome": "https://chrome.google.com/webstore/detail/jsonviewer/khbdpaabobknhhlpglenglkkhdmkfnca",
"Microsoft Edge": "https://microsoftedge.microsoft.com/addons/detail/plbmlbokmdfffnjgepkiknofbbljempm",
"Google Chrome": "https://chromewebstore.google.com/detail/jsonviewer/khbdpaabobknhhlpglenglkkhdmkfnca",
"Microsoft Edge": "https://microsoftedge.microsoft.com/addons/detail/jsonviewer/plbmlbokmdfffnjgepkiknofbbljempm",
"Firefox": "https://addons.mozilla.org/zh-CN/firefox/addon/jsonviewpro/"
}
},
{
"project": "ModifyAjaxResponse",
"description": "Modify response text of ajax requests",
"source code": "https://github.com/oppoic/ModifyAjaxResponse",
"download": {
"Google Chrome": "https://chrome.google.com/webstore/detail/modifyajaxresponse/odpiadnfijfeggnnodoaaphkkjkmpnia",
"Microsoft Edge": "https://microsoftedge.microsoft.com/addons/detail/koeofaphicbgllfobkdbacgmcpnaifhn"
}
},
{
"thanks": [
{
Expand Down Expand Up @@ -45,7 +36,7 @@ var samplejson = [
"oppoic@163.com",
"opponic@gmail.com"
],
"blog": "https://www.cnblogs.com/oppoic/",
"blog": "https://www.cnblogs.com/oppoic",
"github": "https://github.com/oppoic",
"company": {
"name": "septnet",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "JSONViewer",
"description": "Format several JSON documents in one window, depends to your screen width, up to 6",
"version": "2.1.1",
"version": "2.1.2",
"icons": {
"16": "images/16.png",
"32": "images/32.png",
Expand Down

0 comments on commit 9fe51f8

Please sign in to comment.