Skip to content

Commit 13dd5d1

Browse files
tuning
1 parent 635bb07 commit 13dd5d1

10 files changed

Lines changed: 58 additions & 33 deletions

File tree

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ module.exports = function(grunt) {
4343
exec: {
4444
hta: {
4545
cmd: 'copy /y /B "' + path.resolve(__dirname + '/icon.ico') + '" + "' + path.resolve(__dirname + '/test/index.html') + '" "' + path.resolve(__dirname + '/TimeTable2pdf.hta') + '"'
46+
},
47+
run: {
48+
cmd: 'cmd /c start TimeTable2pdf.hta'
4649
}
4750
}
4851
});

TimeTable2pdf.hta

428 Bytes
Binary file not shown.

css/less_inc/folder.less

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
display: none;
77
}
88
#folderPathText {
9-
width: 478px;
10-
line-height: 1.6em;
9+
width: 516px;
10+
line-height: 25px;
1111
overflow: hidden;
1212
text-overflow: ellipsis;
13-
font-size: .8em;
13+
font-size: 14px;
1414
border: 2px solid;
15+
margin-right: 10px;
1516
border-top-color: AppWorkspace;
1617
border-left-color: AppWorkspace;
1718
border-bottom-color: ButtonFace;

css/less_inc/footer.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
display: inline-block;
1616
margin-top: 0;
1717
margin-bottom: 0;
18-
padding-bottom: .3em;
18+
padding-bottom: 6px;
1919
&.link {
2020
padding-top: 5px;
2121
}

css/less_inc/header.less

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
.help-icon {
44
position: absolute;
55
z-index: 1;
6-
top: 1em;
7-
right: 1em;
6+
top: 10px;
7+
right: 10px;
88
cursor: pointer;
99
}
1010
h1 {
11-
padding-left: 3em;
12-
padding-right: 3em;
11+
padding-left: 40px;
12+
padding-right: 40px;
13+
margin-top: 23px;
14+
margin-bottom: 23px;
15+
font-size: 25px;
1316
}
1417
}

css/less_inc/init.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ html, body {
1212
margin: 0;
1313
background-color: @bg;
1414
overflow: hidden;
15-
font-size: .9em;
15+
font-size: 16px;
1616
line-height: 1.2;
1717
height: 100%;
1818
}
@@ -21,7 +21,10 @@ input, button, label, .progress {
2121
}
2222
button, input[type=button] {
2323
cursor: pointer;
24-
font-size: .9em;
24+
font-size: 16px;
25+
}
26+
input[type=text] {
27+
font-size: 16px;
2528
}
2629
img {
2730
display: inline-block;

css/less_inc/main.less

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
.wrapper {
33
position: relative;
4-
padding-bottom: 8.5em;
4+
padding-bottom: 40px;
55
overflow: auto;
66
height: 100%;
77
overflow: hidden;
@@ -12,20 +12,28 @@
1212
position: relative;
1313
height: 100%;
1414
.app {
15-
width: 680px;
15+
width: 690px;
1616
margin-right: auto;
1717
margin-left: auto;
1818
position: relative;
19-
padding: 2rem;
19+
padding-top: 15px;
20+
padding-bottom: 0;
21+
padding-left: 15px;
22+
padding-right: 15px;
2023
font-family: Tahoma, sans-serif;
2124
.button {
22-
margin-top: 1.2em;
25+
margin-top: 10px;
26+
margin-bottom: 0;
2327
}
2428
#output {
25-
line-height: 1.6em;
29+
line-height: 16px;
2630
overflow: hidden;
2731
text-overflow: ellipsis;
28-
font-size: .8em;
32+
font-size: 12px;
33+
margin-bottom: 3px;
34+
margin-top: 5px;
35+
font-style: italic;
36+
color: #888888;
2937
}
3038
}
3139
}

css/less_inc/type.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
.type {
3-
margin-bottom: 1.4em;
3+
margin-bottom: 10px;
44
fieldset {
5-
margin-top: .6em;
5+
margin-top: 10px;
66
color: #333333;
77
&.first {
88
margin-top: 0;
@@ -37,19 +37,19 @@
3737
}
3838
}
3939
p {
40-
margin-bottom: .6em;
40+
margin-bottom: 10px;
4141
}
4242
}
4343
label {
4444
display: block;
4545
cursor: pointer;
46-
margin-bottom: .6em;
46+
margin-bottom: 10px;
4747
&.last {
4848
margin-bottom: unset;
4949
}
5050
}
5151
input {
52-
margin-right: .6em;
52+
margin-right: 10px;
5353
color: #000000;
5454
&[type=text] {
5555
width: 100%;

index.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ html(lang="ru")
1313
.main.clearfix
1414
.app.clearfix
1515
.type
16-
fieldset(text="Наименование организации")
16+
fieldset.first(text="Наименование организации")
1717
legend
1818
span Наименование организации
1919
label.input-label

vbs/index.vbs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
Option Explicit
22

3+
Const GBOU_LINK = "https://komsomol.minobr63.ru/"
4+
Const GIT_LINK = "https://github.com/KSOSH/TimeTableWord2Pdf/"
5+
Const PROJECTSOFT_LINK = "https://projectsoft.ru/"
6+
37
Const PDF = 17
48
Const cPrefixTitle = " КЛАССА НА "
5-
Const windowW = 1024
6-
Const windowH = 740
9+
Const windowW = 900
10+
Const windowH = 650
711

812
Dim WShell: Set WShell = CreateObject("WScript.Shell")
913
Dim objFSO: Set objFSO = CreateObject("Scripting.FileSystemObject")
@@ -239,15 +243,15 @@ Sub OU_OnChange()
239243
End Sub
240244

241245
Sub GIT_OnClick()
242-
WShell.Run "https://github.com/KSOSH/TimeTableWord2Pdf"
246+
WShell.Run GIT_LINK
243247
End Sub
244248

245249
Sub ProjectSoft_OnClick()
246-
WShell.Run "https://projectsoft.ru/"
250+
WShell.Run PROJECTSOFT_LINK
247251
End Sub
248252

249253
Sub GBOU_OnClick()
250-
WShell.Run "https://komsomol.minobr63.ru/"
254+
WShell.Run GBOU_LINK
251255
End Sub
252256

253257
Sub btnHelp_OnClick()
@@ -285,12 +289,18 @@ Sub btnConvert_OnClick()
285289
regExc.Global = False
286290
regExc.Pattern = "^~\$"
287291
If Not regExc.Test(objFile.Name) Then
292+
DoEvents(0)
293+
fCount = fCount + 1
294+
current = CStr(Round((fCount * 100) / (count))) & "%"
295+
ProgressLine.style.width = current
296+
ProgressVal.innerText = current
297+
DoEvents(0)
288298
tFName = objFile.Name
289299
' Запускаем Word если он ещё не запущен
290300
If objWord Is Nothing Then
291301
Set objWord = CreateObject("Word.Application")
292302
End If
293-
output.innerText = tFName
303+
output.innerText = "Конвертирование: " + tFName
294304
' Пустой заголовок
295305
docTitle = ""
296306
' Открываем документ
@@ -332,12 +342,9 @@ Sub btnConvert_OnClick()
332342
objDocument.Close
333343
' Обнуляем переменную
334344
' Set objDocument = Nothing
335-
fCount = fCount + 1
336-
current = CStr(Round((fCount * 100) / (count - 1))) & "%"
337-
ProgressLine.style.width = current
338-
ProgressVal.innerText = current
339-
DoEvents(0)
340345
End If
346+
Else
347+
count = count - 1
341348
End If
342349
Next
343350
' Если Word запущен - закроем его

0 commit comments

Comments
 (0)