appscms-tools-theme 2.4.5 → 2.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65c14258fbee8d6417e2d2ff3204d6d598d7e60d9b9798fde197baa082cfdcba
4
- data.tar.gz: b2340a668a56a084a35a7ca519b4ec306ea29e7d5de8f978a1a580c5e1f18129
3
+ metadata.gz: 21f85a696be3759a40b22de3291da467d625ecf0a7662c7c58d7ecd5448f97db
4
+ data.tar.gz: c5712ac2408db8bb694a103b43e5e0d86c99bda79ab143543e75f4b52cd1975c
5
5
  SHA512:
6
- metadata.gz: 938b0e2fdb0d00079bc4aa4c782b7bf6a19939284581d4b5b5cb684afed7b5d300b249b4de938606127c2dca780fd0352225dd223b62b554efef073cabe4a1a6
7
- data.tar.gz: 01b5e1358ebadcfb7a59cffa012bfa996aa52803f7395a6cba63564ce5bad8c70004c5d20eaea452e98aa21fc8530b62ae14117340a4417d6d9aa150ffbabbb4
6
+ metadata.gz: f5f69879fc11a09a17add1639a0fbaa7b45dd95b5cf71008623f86de45c5661df7dc5fb443828e2fb4aea586db7b1af9b7986377c18d30297fb407d19f4bebb2
7
+ data.tar.gz: f75b4f7cb60484200f2d6e43f165daf058890f98d4ef00af3f1b613241cbae1cbdb22ef3f4ba11054816f662196614e71b0ba6d574676fe2682c535fd478dc91
@@ -198,6 +198,7 @@
198
198
  "/assets/js/redirectResult.js"
199
199
  ],
200
200
  "calculatorData": {
201
+ "calculatorWarning": "❗ Our PECARN calculator shouldn't be used as a single source of knowledge; this tool cannot replace professional clinical judgment.",
201
202
  "calculatorRow": [
202
203
  {
203
204
  "labelName": "Given in: ",
@@ -212,6 +213,7 @@
212
213
  "labelName": "Occurrence of the disease: 1 in..",
213
214
  "labelId": "Occurrence of the disease: 1 in..__id",
214
215
  "inputBox": "text",
216
+ "inputType": "text",
215
217
  "inputId": "Occurrence of the disease: 1 in.._input_Id",
216
218
  "dropDownId": "Occurrence of the disease: 1 in.._dd_Id",
217
219
  "dateTimePicker": false
@@ -197,7 +197,6 @@
197
197
  "<link rel=\"stylesheet\" href=\"/css/feature1.css\" crossorigin='anonymous' />"
198
198
  ],
199
199
  "jscdns": [
200
- "<script crossorigin='anonymous' src=\"/assets/js/googledrive.js\"></script>",
201
- "<script crossorigin='anonymous' src=\"/js/feature1.js\"></script>"
200
+ "<script crossorigin='anonymous' src=\"/assets/js/googledrive.js\"></script>"
202
201
  ]
203
202
  }
@@ -9,6 +9,10 @@
9
9
  "imgalt": "altvalue",
10
10
  "nofileupload": true,
11
11
  "variant": "primary",
12
+ "downloadFormats": [
13
+ "png",
14
+ "jpg"
15
+ ],
12
16
  "TITLE": "Image border tool- Surround your images with a border",
13
17
  "META": "Image border tool helps you to add a simple border frame to your image. You can customize border colour and width. Border sets the focal subject.",
14
18
  "TEXTUAL_CONTENT": [],
@@ -9,9 +9,10 @@
9
9
  <nav class="header-navbar navbar navbar-expand-lg">
10
10
  <div class="container px-0">
11
11
  {% if dataToShow.navbarBrandText != "" %}
12
- <a class="navbar-brand" href="/" title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
12
+ <a id="home-link" class="navbar-brand" href="/"
13
+ title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
13
14
  {% else %}
14
- <a href="/">
15
+ <a id="home-link" href="/">
15
16
  <img class="header-logo-height" src="{{ dataToShow.navbarBrandLogo }}" alt="{{ dataToShow.navbarBrandLogo }}"
16
17
  {%- if site.crossorigin -%} crossorigin {%- endif -%}>
17
18
  </a>
@@ -100,9 +101,10 @@
100
101
  <header id="header">
101
102
  <nav class="navbar navbar-expand-lg py-3 px-sm-2">
102
103
  {% if dataToShow.navbarBrandText != "" %}
103
- <a class="navbar-brand" href="/" title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
104
+ <a id="home-link" class="navbar-brand" href="/"
105
+ title="{{dataToShow.navbarBrandText}}">{{dataToShow.navbarBrandText}}</a>
104
106
  {% else %}
105
- <a href="/">
107
+ <a id="home-link" href="/">
106
108
  <img class="logo-height" src="{{ dataToShow.navbarBrandLogo }}" alt="{{ dataToShow.navbarBrandLogo }}" {%- if
107
109
  site.crossorigin -%} crossorigin {%- endif -%}>
108
110
  </a>
@@ -22,7 +22,12 @@ layout: feature
22
22
  <div class="col-md-12">
23
23
  <div class="d-flex calculator-inputs">
24
24
  {%- if item.inputBox -%}
25
- <input class="form-control" type="text" name="{{item.inputName}}" id="{{item.inputId}}">
25
+ {%- assign inputBoxType = "number" -%}
26
+ {%- if item.inputType -%}
27
+ {%- assign inputBoxType = item.inputType -%}
28
+ {%- endif -%}
29
+ <input class="form-control" type="{{inputBoxType}}" name="{{item.inputName}}"
30
+ id="{{item.inputId}}">
26
31
  {%- endif -%}
27
32
  {%- if item.dropDown -%}
28
33
  <select class="form-control" name="{{item.dropDownName}}" id="{{item.dropDownId}}"></select>
@@ -66,5 +71,14 @@ layout: feature
66
71
  </div>
67
72
  {%- endif -%}
68
73
  </div>
74
+
69
75
  </div>
76
+ {%- if calculatorData.calculatorWarning-%}
77
+ <div class="warning-alert-box mt-4">
78
+ <div class="alert alert-danger" role="alert">
79
+ {{ calculatorData.calculatorWarning }}
80
+ </div>
81
+ </div>
82
+ {%- endif -%}
83
+
70
84
  </div>
@@ -30,7 +30,8 @@
30
30
  {%- if page.layout != "frame" and page.layout != "photo-effects-home" -%}
31
31
  <div class="flex-container pb-3">
32
32
  <div class="flex-class py-4 mt-4 mt-md-0 ">
33
- <div class="d-flex justify-content-center align-items-center"><span class="fHhdVc">
33
+ <div id="h1-img-wrapper" class="d-flex justify-content-center align-items-center"><span id="h1-img"
34
+ class="fHhdVc">
34
35
  <div class="div-cont feature-img mr-2">
35
36
  {%- if featureData.img -%}
36
37
  <img style=width:{{featureData.imgwidth}};height:{{featureData.imgheight}};
@@ -47,7 +48,7 @@
47
48
  </div>
48
49
  </span>
49
50
  {%- assign featureh1 = featureData.H1 | replace: "$variable", page.value -%}
50
- <h1 class="feature-h1">{%- for word in featureh1-%}
51
+ <h1 id="feature-h1" class="feature-h1">{%- for word in featureh1-%}
51
52
  {%- if forloop.first == true -%}
52
53
  {{word | capitalize }}
53
54
  {%- else -%}
@@ -56,7 +57,7 @@
56
57
  {%- endfor -%}</h1>
57
58
  </div>
58
59
  {%- assign featureh2 = featureData.H2 | replace: "$variable", page.value -%}
59
- <h2 class="feature-h2">
60
+ <h2 id="feature-h2" class="feature-h2">
60
61
  {%- for word in featureh2 -%}
61
62
  {%- if forloop.first == true -%}
62
63
  {{word | capitalize }}
@@ -254,6 +255,7 @@
254
255
  {%- endif -%}
255
256
  {% include footer/index.html %}
256
257
  {% include script.html %}
258
+ <script defer src="/app.js"></script>
257
259
  </body>
258
260
 
259
261
  </html>
@@ -64,11 +64,18 @@ layout: feature
64
64
  <div class="select-format-title">image's format</div>
65
65
  <div class="download-format">
66
66
  <select name="image-format" id="image-format">
67
+ {%- if pageData.downloadFormats -%}
68
+ {%- for item in pageData.downloadFormats -%}
69
+ <option value="{{item}}">{{item}}</option>
70
+ {%- endfor -%}
71
+ {%- else -%}
67
72
  <option value="png">png</option>
68
73
  <option value="jpg">jpg</option>
69
74
  <option value="jpeg">jpeg</option>
70
75
  <option value="webp">webp</option>
71
76
  <option value="gif">gif</option>
77
+ {%- endif -%}
78
+
72
79
  </select>
73
80
  </div>
74
81
  </div>
@@ -746,3 +746,12 @@ input[type='range']::-moz-focus-outer {
746
746
  border: 1px solid #ccc;
747
747
  padding: 30px;
748
748
  }
749
+
750
+ @media (max-width: 768px) {
751
+ .download-format {
752
+ padding: 0px 5px;
753
+ }
754
+ #download-button {
755
+ margin-left: auto;
756
+ }
757
+ }
data/assets/css/tools.css CHANGED
@@ -1264,7 +1264,7 @@ ol li::marker {
1264
1264
  }
1265
1265
 
1266
1266
  #header {
1267
- display: block !important;
1267
+ display: block;
1268
1268
  position: sticky;
1269
1269
  top: 0;
1270
1270
  z-index: 10;
@@ -1279,3 +1279,4 @@ ol li::marker {
1279
1279
  .catPad li {
1280
1280
  margin: 0 0 20px !important;
1281
1281
  }
1282
+
data/assets/js/theme.js CHANGED
@@ -9,3 +9,19 @@ $(document).ready(function () {
9
9
  })
10
10
  }
11
11
  })
12
+ var removeNav = () => {
13
+ let homeLink = document.getElementById('home-link')
14
+ homeLink.style.marginRight = '10px'
15
+ document.getElementById('h1-img-wrapper').prepend(homeLink)
16
+ document
17
+ .getElementById('h1-img-wrapper')
18
+ .style.setProperty('align-items', 'unset', 'important')
19
+ document.getElementById('header').style.display = 'none'
20
+ document.getElementById('h1-img').style.display = 'none'
21
+ document.getElementById('feature-h1').style.width = '100%'
22
+ document.getElementById('feature-h2').style.display = 'none'
23
+ let safeUiAlert = document.getElementById('safeui-alert')
24
+ if (safeUiAlert) {
25
+ safeUiAlert.style.display = 'none'
26
+ }
27
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.5
4
+ version: 2.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms