Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Fixed image reference in Windows markdown.
Work on icons and interface.
  • Loading branch information
manngo committed Jun 8, 2023
1 parent 44d6bf0 commit 1accd7c
Show file tree
Hide file tree
Showing 13 changed files with 51 additions and 34 deletions.
19 changes: 14 additions & 5 deletions README.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,34 +76,43 @@
height: 100%;
}
div.h1 h1 {
font-size: 3em;
font-size: 4em;
}
div.h1 p {
font-size: 1.75em;
font-size: 3em;
}
div.h1 a {
color: white;
font-weight: bold;
text-decoration: none;
padding-bottom: .125em;
font-size: 0.65em;
}

div.h1 img {
margin: 0 auto;
width: 12em;;
}

div#md>div.h3>pre {
font-size: 0.5em;
}

/* h2
================================================ */
div.h2 {
div.h2, div.h3 {
color: #333;
font-size: 3vw;
}


div.h2>h2 {
font-size: 2em;
background-color: var(--color);
color: white;
padding: .25em .5em;
}

div.h2>h3 {
div.h3>h3 {
color: var(--color);
}
div.h2 code {
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ You can omit any of the sub sections, and you can have multiple values inside th

As you might have guessed from the name, the file is in JSON format. JSON is very fussy, so it’s easy to make a mistake.

### Default Language Settings

Here are the default language settings:

```js
Expand All @@ -97,6 +99,10 @@ Here are the default language settings:
"extensions": ["php"],
"breaks": { "major": ["/**","/*:"], "minor": ["/*"] }
},
"python": {
"extensions": ["py"],
"breaks": { "major": ["#:"], "minor": ["#::"] }
},
"sql": {
"extensions": ["sql"],
"breaks": { "major": ["/**"], "minor": ["/*"] }
Expand All @@ -113,7 +119,6 @@ Here are the default language settings:
"extensions": ["txt","text","*"],
"breaks": { "major": ["#"], "minor": ["##"] }
}

}
```

Expand Down
Binary file added art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion art.t2d
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Drawing Units="px" PPU="1" Major="24" Subdivisions="6" Zoom="0.5" ViewPositionX="491.3222" ViewPositionY="322.8721" ActiveLayer="0" PrintSize="8.5,11"><Layer Name="Layer 1" Visible="True" Locked="False" CreationDate="04/09/2023 15:36:18"><Group><Group><Rectangle X="144" Y="64" Width="768" Height="960" FillPaint="LINEAR_GRADIENT,#667F80,1,#FFFFFF,1,210,0,1" StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" /><Line X1="240" Y1="160" X2="816" Y2="160" StrokeSize="4" /><Line X1="240" Y1="256" X2="816" Y2="256" StrokeSize="4" /><Line X1="240" Y1="352" X2="816" Y2="352" StrokeSize="4" /><Line X1="240" Y1="448" X2="816" Y2="448" StrokeSize="4" /><Line X1="240" Y1="544" X2="816" Y2="544" StrokeSize="4" /><Line X1="240" Y1="640" X2="816" Y2="640" StrokeSize="4" /><Line X1="240" Y1="736" X2="816" Y2="736" StrokeSize="4" /><Line X1="240" Y1="832" X2="816" Y2="832" StrokeSize="4" /><Line X1="240" Y1="928" X2="816" Y2="928" StrokeSize="4" /></Group><Group><Rectangle X="80" Y="0" Width="768" Height="960" FillPaint="LINEAR_GRADIENT,#FCE2CA,1,#FFFFFF,1,210,0,1" StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" /><Line X1="176" Y1="96" X2="752" Y2="96" StrokeSize="4" /><Line X1="176" Y1="192" X2="752" Y2="192" StrokeSize="4" /><Line X1="176" Y1="288" X2="752" Y2="288" StrokeSize="4" /><Line X1="176" Y1="384" X2="752" Y2="384" StrokeSize="4" /><Line X1="176" Y1="480" X2="752" Y2="480" StrokeSize="4" /><Line X1="176" Y1="576" X2="752" Y2="576" StrokeSize="4" /><Line X1="176" Y1="672" X2="752" Y2="672" StrokeSize="4" /><Line X1="176" Y1="768" X2="752" Y2="768" StrokeSize="4" /><Line X1="176" Y1="864" X2="752" Y2="864" StrokeSize="4" /></Group><Group><PathShape FillColor="#FEFFCD" Definition="M784 -64 L16 -64 L16 896 L464 896 L784 576 Z " StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#FFFFFF,1,225,0,1" Definition="M784 -64 L16 -64 L16 896 L464 896 L784 576 Z " StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#BEBFAC,1,60,0,1" Definition="M464 896 L464 576 L784 576 Z " StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" MiterLimit="40" PathClosed="True" /><Line X1="112" Y1="224" X2="688" Y2="224" StrokeSize="4" /><Line X1="112" Y1="320" X2="688" Y2="320" StrokeSize="4" /><Line X1="112" Y1="416" X2="688" Y2="416" StrokeSize="4" /><Line X1="112" Y1="512" X2="688" Y2="512" StrokeSize="4" /><Line X1="112" Y1="608" X2="368" Y2="608" StrokeSize="4" /><Line X1="112" Y1="704" X2="368" Y2="704" StrokeSize="4" /><Line X1="112" Y1="800" X2="368" Y2="800" StrokeSize="4" /><Rectangle X="104" Y="-32" Width="544" Height="128" FillColor="#FEFFCD" Stroked="False" Text="Document" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /><Rectangle X="104" Y="72" Width="512" Height="128" FillColor="#FEFFCD" Stroked="False" Text="Pager" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /></Group></Group></Layer></Drawing>
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Drawing Name="art" Units="px" PPU="1" Major="24" Subdivisions="12" Zoom="0.5" ViewPositionX="-589" ViewPositionY="162" ActiveLayer="0" Margin="36,36,36,36" MarginUnits="px" PrintSize="595.2756,841.8898"><Layer Name="Layer 1" Visible="True" Locked="False" CreationDate="09/04/2023 15:36:18"><PathShape FillPaint="LINEAR_GRADIENT,#667F80,1,#FFFFFF,1,210,0,1" Definition="M2760 88 C2760 74.80005 2770.8 64 2784 64 L3504 64 C3517.2 64 3528 74.80005 3528 88 L3528 1000 C3528 1013.2 3517.2 1024 3504 1024 L2784 1024 C2770.8 1024 2760 1013.2 2760 1000 Z " StrokeSize="8" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FCE2CA,1,#FFFFFF,1,210,0,1" Definition="M2688 24 C2688 10.80005 2698.8 0 2712 0 L3432 0 C3445.2 0 3456 10.80005 3456 24 L3456 936 C3456 949.2 3445.2 960 3432 960 L2712 960 C2698.8 960 2688 949.2 2688 936 Z " StrokeSize="8" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><Group><Group><Rectangle X="144" Y="64" Width="768" Height="960" FillPaint="LINEAR_GRADIENT,#667F80,1,#FFFFFF,1,210,0,1" StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" /><Line X1="240" Y1="160" X2="816" Y2="160" StrokeSize="4" /><Line X1="240" Y1="256" X2="816" Y2="256" StrokeSize="4" /><Line X1="240" Y1="352" X2="816" Y2="352" StrokeSize="4" /><Line X1="240" Y1="448" X2="816" Y2="448" StrokeSize="4" /><Line X1="240" Y1="544" X2="816" Y2="544" StrokeSize="4" /><Line X1="240" Y1="640" X2="816" Y2="640" StrokeSize="4" /><Line X1="240" Y1="736" X2="816" Y2="736" StrokeSize="4" /><Line X1="240" Y1="832" X2="816" Y2="832" StrokeSize="4" /><Line X1="240" Y1="928" X2="816" Y2="928" StrokeSize="4" /></Group><Group><Rectangle X="80" Y="0" Width="768" Height="960" FillPaint="LINEAR_GRADIENT,#FCE2CA,1,#FFFFFF,1,210,0,1" StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" /><Line X1="176" Y1="96" X2="752" Y2="96" StrokeSize="4" /><Line X1="176" Y1="192" X2="752" Y2="192" StrokeSize="4" /><Line X1="176" Y1="288" X2="752" Y2="288" StrokeSize="4" /><Line X1="176" Y1="384" X2="752" Y2="384" StrokeSize="4" /><Line X1="176" Y1="480" X2="752" Y2="480" StrokeSize="4" /><Line X1="176" Y1="576" X2="752" Y2="576" StrokeSize="4" /><Line X1="176" Y1="672" X2="752" Y2="672" StrokeSize="4" /><Line X1="176" Y1="768" X2="752" Y2="768" StrokeSize="4" /><Line X1="176" Y1="864" X2="752" Y2="864" StrokeSize="4" /></Group><Group><PathShape FillColor="#FEFFCD" Definition="M784 -64 L16 -64 L16 896 L464 896 L784 576 Z " StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#FFFFFF,1,225,0,1" Definition="M784 -64 L16 -64 L16 896 L464 896 L784 576 Z " StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#BEBFAC,1,60,0,1" Definition="M464 896 L464 576 L784 576 Z " StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" MiterLimit="40" PathClosed="True" /><Line X1="112" Y1="224" X2="688" Y2="224" StrokeSize="4" /><Line X1="112" Y1="320" X2="688" Y2="320" StrokeSize="4" /><Line X1="112" Y1="416" X2="688" Y2="416" StrokeSize="4" /><Line X1="112" Y1="512" X2="688" Y2="512" StrokeSize="4" /><Line X1="112" Y1="608" X2="368" Y2="608" StrokeSize="4" /><Line X1="112" Y1="704" X2="368" Y2="704" StrokeSize="4" /><Line X1="112" Y1="800" X2="368" Y2="800" StrokeSize="4" /><Rectangle X="104" Y="-32" Width="544" Height="128" FillColor="#FEFFCD" Stroked="False" Text="Document" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /><Rectangle X="104" Y="72" Width="512" Height="128" FillColor="#FEFFCD" Stroked="False" Text="Pager" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /></Group></Group><Group><Rectangle X="1680" Y="64" Width="768" Height="960" FillPaint="LINEAR_GRADIENT,#667F80,1,#FFFFFF,1,210,0,1" StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" /><Line X1="1776" Y1="160" X2="2352" Y2="160" StrokeSize="4" /><Line X1="1776" Y1="256" X2="2352" Y2="256" StrokeSize="4" /><Line X1="1776" Y1="352" X2="2352" Y2="352" StrokeSize="4" /><Line X1="1776" Y1="448" X2="2352" Y2="448" StrokeSize="4" /><Line X1="1776" Y1="544" X2="2352" Y2="544" StrokeSize="4" /><Line X1="1776" Y1="640" X2="2352" Y2="640" StrokeSize="4" /><Line X1="1776" Y1="736" X2="2352" Y2="736" StrokeSize="4" /><Line X1="1776" Y1="832" X2="2352" Y2="832" StrokeSize="4" /><Line X1="1776" Y1="928" X2="2352" Y2="928" StrokeSize="4" /></Group><Group><Rectangle X="1616" Y="0" Width="768" Height="960" FillPaint="LINEAR_GRADIENT,#FCE2CA,1,#FFFFFF,1,210,0,1" StrokeSize="4" StrokeLineCap="ROUND" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" /><Line X1="1712" Y1="96" X2="2288" Y2="96" StrokeSize="4" /><Line X1="1712" Y1="192" X2="2288" Y2="192" StrokeSize="4" /><Line X1="1712" Y1="288" X2="2288" Y2="288" StrokeSize="4" /><Line X1="1712" Y1="384" X2="2288" Y2="384" StrokeSize="4" /><Line X1="1712" Y1="480" X2="2288" Y2="480" StrokeSize="4" /><Line X1="1712" Y1="576" X2="2288" Y2="576" StrokeSize="4" /><Line X1="1712" Y1="672" X2="2288" Y2="672" StrokeSize="4" /><Line X1="1712" Y1="768" X2="2288" Y2="768" StrokeSize="4" /><Line X1="1712" Y1="864" X2="2288" Y2="864" StrokeSize="4" /></Group><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#FFFFFF,1,0,0,1" Definition="M2328 -72 L1560 -72 L1560 888 L2008 888 L2328 568 Z " StrokeSize="4" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#FFFFFF,1,225,0,1" Definition="M1872 1224 C1616.256 1224 1360.512 1224 1104 1224 L1104 2184 L1552 2184 L1872 1864 Z " StrokeSize="4" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#BEBFAC,1,60,0,1" Definition="M2008 888 L2008 568 L2328 568 Z " StrokeSize="4" StrokeLineJoin="BEVEL" MiterLimit="40" PathClosed="True" /><Line X1="1656" Y1="216" X2="2232" Y2="216" StrokeSize="4" /><Line X1="1656" Y1="312" X2="2232" Y2="312" StrokeSize="4" /><Line X1="1656" Y1="408" X2="2232" Y2="408" StrokeSize="4" /><Line X1="1656" Y1="504" X2="2232" Y2="504" StrokeSize="4" /><Line X1="1656" Y1="600" X2="1912" Y2="600" StrokeSize="4" /><Line X1="1656" Y1="696" X2="1912" Y2="696" StrokeSize="4" /><Line X1="1656" Y1="792" X2="1912" Y2="792" StrokeSize="4" /><Rectangle X="1648" Y="-40" Width="544" Height="128" Filled="False" Stroked="False" Text="Document" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /><Rectangle X="1648" Y="64" Width="512" Height="128" Filled="False" Stroked="False" Text="Pager" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#BEBFAC,1,60,0,1" Definition="M2008 888 L2008 568 L2328 568 Z " StrokeSize="4" StrokeLineJoin="BEVEL" MiterLimit="40" PathClosed="True" /><PathShape FillColor="#FEFFCD" Definition="M2640 1176 C2640 1162.8 2650.8 1152 2664 1152 L3384 1152 C3397.2 1152 3408 1162.8 3408 1176 L3408 2088 C3408 2101.2 3397.2 2112 3384 2112 L2664 2112 C2650.8 2112 2640 2101.2 2640 2088 Z " StrokeSize="4" StrokeLineJoin="BEVEL" ShadowVisible="True" ShadowOffsetX="12" ShadowOffsetY="12" ShadowBlur="12" ShadowColor="#000000,0.5" PathClosed="True" /><Group><Group><PathShape FillPaint="LINEAR_GRADIENT,#FEFCE0,1,#FEFFCD,1,270,0,1" Definition="M2640 -72 C2626.8 -72 2616 -61.19995 2616 -48 L2616 864 C2616 877.2 2626.8 888 2640 888 L3064 888 L3384 568 L3384 -48 C3384 -61.19995 3373.2 -72 3360 -72 Z " StrokeSize="8" StrokeLineJoin="BEVEL" MiterLimit="40" PathClosed="True" /></Group><PathShape FillPaint="LINEAR_GRADIENT,#FEFFCD,1,#BEBFAC,1,60,0,1" Definition="M3064 888 C3064 781.5548 3060 706.7641 3060 600 C3060 599.8848 3060 564 3096 564 L3384 568 Z " StrokeSize="8" StrokeLineJoin="BEVEL" MiterLimit="40" PathClosed="True" /></Group><Line X1="2712" Y1="240" X2="3288" Y2="240" StrokeSize="8" /><Line X1="2712" Y1="336" X2="3288" Y2="336" StrokeSize="8" /><Line X1="2832" Y1="528" X2="3288" Y2="528" StrokeSize="8" /><Line X1="2832" Y1="624" X2="2968" Y2="624" StrokeSize="8" /><Line X1="2832" Y1="720" X2="2968" Y2="720" StrokeSize="8" /><Line X1="2832" Y1="816" X2="2968" Y2="816" StrokeSize="8" /><Rectangle X="2704" Y="-16" Width="544" Height="128" Filled="False" Stroked="False" Text="/**&#x9;" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /><Rectangle X="2704" Y="376" Width="512" Height="128" Filled="False" Stroked="False" Text="/*" HorizontalAlignment="LEFT" FontSize="96" FontName="Lucida Grande" /><Line X1="2712" Y1="144" X2="3288" Y2="144" StrokeSize="8" /></Layer></Drawing>
Binary file added images/art.ico
Binary file not shown.
Binary file added images/art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/document-pager.icns
Binary file not shown.
Binary file modified images/document-pager.ico
Binary file not shown.
Binary file modified images/document-pager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 21 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,30 @@
<!--
<h1>Document Pager</h1>
-->
<form id="control">
<!--
<button type="button" name="about">About …</button>
-->
<p><input type="checkbox" name="show-highlight" id="control-show-highlight" checked><label for="control-show-highlight">Show Highlighted</label></p>
<hr>
<p id="font-size"><!-- ▼▲✚ -->
<button type="button" name="zoom-smaller" id="control-zoom-smaller">-</button><label for="control-zoom-smaller">⬇︎</label>
<button type="button" name="zoom-default" id="control-zoom-default"></button><label for="control-zoom-default">◼︎</label>
<button type="button" name="zoom-larger" id="control-zoom-larger">+</button><label for="control-zoom-larger">⬆︎</label>
</p>
<p><input type="checkbox" name="show-documents" id="control-show-documents" checked><label for="control-show-documents">Documents</label></p>
<!--
<label for="upload-file">Open or Drop File …</label><input type="file" name="upload" id="upload-file">
-->
<p><button type="button" name="full-screen" id="control-full-screen">Full Screen</button><label for="control-full-screen">Full Screen</label></p>
</form>
</header>
<aside id="about" data-load="/content/about.html"></aside>
<main>
<ul id="tabs"></ul>
<ul id="tabs">
<form id="control">
<!--
<button type="button" name="about">About …</button>
-->
<p><input type="checkbox" name="show-highlight" id="control-show-highlight" checked><label for="control-show-highlight">Show Highlighted</label></p>
<hr>
<!--
<p id="font-size">
<button type="button" name="zoom-smaller" id="control-zoom-smaller">-</button><label for="control-zoom-smaller">⬇︎</label>
<button type="button" name="zoom-default" id="control-zoom-default">•</button><label for="control-zoom-default">◼︎</label>
<button type="button" name="zoom-larger" id="control-zoom-larger">+</button><label for="control-zoom-larger">⬆︎</label>
</p>
-->
<p><input type="checkbox" name="show-documents" id="control-show-documents" checked><label for="control-show-documents">Documents</label></p>
<!--
<label for="upload-file">Open or Drop File …</label><input type="file" name="upload" id="upload-file">
-->
<p><button type="button" name="full-screen" id="control-full-screen">Full Screen</button><label for="control-full-screen">Full Screen</label></p>
</form>
</ul>
<div id="pager">
<nav id="documents">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "document-pager",
"version": "0.3.52",
"version": "0.3.53",
"description": "Document Pager: Displays a text document in tabbed pages.",
"main": "main.js",
"repository": "https://github.com/manngo/document-pager",
Expand Down
8 changes: 4 additions & 4 deletions scripts/pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ console.log(result);
elements.formControl.elements['show-highlight'].onclick=function(event) {
currentItem.click();
};
elements.formControl.elements['zoom-larger'].onclick=zoom.bind(null,1);
elements.formControl.elements['zoom-smaller'].onclick=zoom.bind(null,-1);
elements.formControl.elements['zoom-default'].onclick=zoom.bind(null,0);
// elements.formControl.elements['zoom-larger'].onclick=zoom.bind(null,1);
// elements.formControl.elements['zoom-smaller'].onclick=zoom.bind(null,-1);
// elements.formControl.elements['zoom-default'].onclick=zoom.bind(null,0);

elements.formControl.elements['show-documents'].onclick=function(event){
elements.main.classList.toggle('show-documents',this.checked);
Expand Down Expand Up @@ -856,7 +856,7 @@ console.log(result);

innerHTML=innerHTML.replace(/<img(.*?)src="(.*)"(.*?)>/g,function(match,p1,p2,p3,offset,string) {
// if (p2.match(/^https?:\/\//) || p2.startsWith('/')) return string;
if (p2.match(/^https?:\/\//) || p2.startsWith('/')) return `<img${p1}src="${p2}"${p3}>`;
if (p2.match(/^https?:\/\//) || p2.startsWith('/') || p2.match(/^[A-Z]:\//)) return `<img${p1}src="${p2}"${p3}>`;
else return `<img${p1}src="${currentTab.data.path}/${p2.replace(/^\//,'')}"${p3}>`;
});

Expand Down
8 changes: 4 additions & 4 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"extensions": ["php"],
"breaks": { "major": ["/**","/*:"], "minor": ["/*"] }
},
"python": {
"extensions": ["py"],
"breaks": { "major": ["#:"], "minor": ["#::"] }
},
"python": {
"extensions": ["py"],
"breaks": { "major": ["#:"], "minor": ["#::"] }
},
"sql": {
"extensions": ["sql"],
"breaks": { "major": ["/**"], "minor": ["/*"] }
Expand Down

0 comments on commit 1accd7c

Please sign in to comment.