Skip to content

Commit f30c734

Browse files
committed
Update index.html, script.js, CSS
1 parent 97b6b52 commit f30c734

File tree

5 files changed

+353
-70
lines changed

5 files changed

+353
-70
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Install wasm-pack
3232
run: cargo install wasm-pack
3333
- name: wasm-pack build
34-
run: wasm-pack build --target web --no-pack --no-typescript --release --no-default-features --features "js-sys,html,gif,jpeg,png,pnm,tiff,bmp,webp"
34+
run: wasm-pack build --target web --no-pack --no-typescript --release --no-default-features --features "html,js-sys,gif,jpeg,png,pnm,tiff,bmp,webp"
3535
- name: Setup Pages
3636
uses: actions/configure-pages@v5
3737
- name: Upload artifact

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rm -rf ./pkg && wasm-pack build --target web --no-pack --no-typescript --release --no-default-features --features "js-sys,gif,jpeg,png,pnm,tiff,bmp,webp"
1+
rm -rf ./pkg && wasm-pack build --target web --no-pack --no-typescript --release --no-default-features --features "html,js-sys,gif,jpeg,png,pnm,tiff,bmp,webp"

index.html

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,9 @@
1818

1919
<div id="html-to-pdf-tab" class="tab-content">
2020
<div class="controls">
21-
22-
<div class="controls-row">
23-
<div class="controls-cell">
24-
<label for="pdf-title">Title:</label>
25-
<input type="text" id="pdf-title" value="My PDF Document">
26-
</div>
27-
</div>
28-
29-
<div class="controls-row">
30-
<div class="controls-cell">
31-
<label for="page-width">Width (mm):</label>
32-
<input type="number" id="page-width" value="210">
33-
</div>
34-
<div class="controls-cell">
35-
<label for="page-height">Height (mm):</label>
36-
<input type="number" id="page-height" value="297">
37-
</div>
38-
</div>
39-
40-
<div class="controls-row">
41-
<div class="controls-cell">
42-
<label for="image-compression">Image Compression (0-1, optional):</label>
43-
<input type="number" id="image-compression" placeholder="No Compression" min="0" max="1" step="0.1">
44-
</div>
45-
</div>
46-
21+
<!-- Save/Load config buttons will be added here via JavaScript -->
22+
23+
<!-- Resource previews container will be added here via JavaScript -->
4724
</div>
4825
<div class="file-inputs">
4926
<button id="add-image-html">Add Image</button>
@@ -62,6 +39,7 @@
6239
<button id="add-image-parse">Add Image</button>
6340
<button id="add-font-parse">Add Font</button>
6441
</div>
42+
<!-- Resource previews container will be added here via JavaScript -->
6543
</div>
6644
<div class="editor-container">
6745
<div class="line-numbers"></div>
@@ -71,7 +49,7 @@
7149

7250
<div id="sign-pdf-tab" class="tab-content hidden">
7351
<div class="controls">
74-
<label for="signature-image">Signature Image:</label>
52+
<label for="signature-image-uploade">Signature Image:</label>
7553
<input type="file" id="signature-image-upload" accept="image/*">
7654
<label for="signature-page">Page Number:</label>
7755
<input type="number" id="signature-page" value="1" min="1">
@@ -115,11 +93,13 @@
11593
</div>
11694
</div>
11795

96+
<!-- Hidden file inputs -->
11897
<input type="file" id="image-upload" accept="image/*" style="display: none;">
11998
<input type="file" id="font-upload" accept=".ttf,.otf,.woff,.woff2" style="display: none;">
12099
<input type="file" id="pdf-file-upload" accept=".pdf" style="display: none;">
100+
<!-- Config file input will be added via JavaScript -->
121101

122102
<script src="./pkg/printpdf.js" type="module"></script>
123103
<script src="./script.js" type="module"></script>
124-
</body >
104+
</body>
125105
</html>

0 commit comments

Comments
 (0)